We had a system outage, and now I am trying to figure out how to get raw data to store in a log file.
I have a flat file that has multiple IP port line.
I want to telnet to each and log each.
But as soon as I connect to the first, it stays there.
This is on an HPUX 11.23 system. I dont think I can get expect on it, but, I dont know how expect can do this either.
These are non-interactive ports, so as soon I telnet to port, I am getting raw data.
Last edited by Corona688; 10-05-2012 at 12:19 PM..
Hi,
I am running a script where i need to run another command in a particular folder which I do not have access so I need
to login as su to that folder and run that script...what are the options I need so that I
can skip interactive mode ..here is what I tried..
#! /usr/bin/sh... (2 Replies)
Hello everybody,
I have one small issue... :(
When i'm trying to connect another unix box through below script..
#!/usr/bin/bash
ssh $1 <<EOF
Commands
.
.
exit
EOF
But getting some syntax error "-sh: syntax error at line 2: `end of file' unexpected". I used to use... (2 Replies)
Hello
I wrote a nice Perl script that is intended to find and copy some files when getting a TERM signal. Now I wanted to make a shell script that starts/restarts the Perl script if it crashes/ends because of errors and make a log of all output the Perl Script gives. The problem is that it won't... (1 Reply)
Hello
I wrote a nice Perl script that is intended to find and copy some files when getting a TERM signal. Now I wanted to make a shell script that starts/restarts the Perl script if it crashes/ends because of errors and make a log of all output the Perl Script gives. The problem is that it won't... (11 Replies)
Hi All,
I am preparing a script which executes following things:
1) Logs into 8 cluster one by one.
2) After logging into each cluster,it prints the cluster name & then exit from that cluster.
3) Then it logs to next cluster & peform the same task.
Here is what i have written :
for... (8 Replies)
I am trying to write a script that can be called by other scripts to print output to a log. I also want to be able to rotate the log file for this script with a max of 5 logs files. This is what I have so far:
#/bin/ksh
. /taipso75/scripts/IPSM_run_profile.sh*
log=${IPSM_HOME}/log
(
echo... (1 Reply)
Hi,
I am trying to write a script to run a command on multiple linux based servers and get the o/p. I am using ssh to login. It is a celerra box and EMC NAS product.
I am able login but i am not able to run nas command nas_pool -size -all the NAS server. I am getting the following error. ... (2 Replies)
I am connecting to a device using telnet, I want my script to perform certain commands : ie- show device , show inventory..etc and write the output it sees from the terminal to a file.
this is what I have got :
#!/usr/bin/expect --
set running 1
spawn telnet <ip address>
expect ... (1 Reply)
When unlocking a Linux server's console there's no event indicating successful logging
Is there a way I can fix this ?
I have the following in my rsyslog.conf
auth.info /var/log/secure
authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies
LEARN ABOUT OSX
ncalogd.conf
ncalogd.conf(4) File Formats ncalogd.conf(4)NAME
ncalogd.conf - NCA logging configuration file
SYNOPSIS
/etc/nca/ncalogd.conf
DESCRIPTION
The ncalogd.conf is used to configure Solaris Network Cache and Accelerator ("NCA") logging. The file contains two fields, key and value.
The status key is used to indicate if the user wants to have NCA logging turned on. If the value of status key is enabled, then NCA logging
will be turned on. If the value of the status key is disabled, then NCA logging will not be invoked. The default value is disabled.
The logd_path_name key specifies the absolute pathname of the log file. The log file must be a raw device without a filesystem or a file on
a local file system. The default value is /var/nca/log. logd_path_name can also contain a whitespace-delimited list of values for multiple
log files to a maximum of 16. If you specify multiple log files, you must enclose the list in quotation marks ("). With multiple files, NCA
logging moves to the next file on the list once the file size specified by logd_file_size has been reached. When the last file is full, NCA
logging rotates back to the first file in the list. A pointer to the current log file is stored in /var/nca/current.
The logd_file_size key specifies the value of the file size, in bytes, allowed for each log file specified in by the logd_path_name key.
The default value is 1000000 bytes.
In order to implement changes to the ncalogd.conf file, you will need to stop and start NCA logging or reboot.
NCA stores logs in a binary format. Use the ncab2clf(1) utility to convert the log from a binary format to the Common Log File format.
EXAMPLES
Example 1: A Sample ncalogd.conf File
The following is a sample ncalogd.conf file that specifies three log files:
#
# NCA Log Daemon Configuration File
#
status=enabled
logd_path_name="/var/nca/log1 /var/nca/log2 /var/nca/log3"
logd_file_size=1000000
Note that there is no NCA logging daemon. Logging is performed as one of the functions of the NCA software.
FILES
/etc/nca/ncalogd.conf Lists configuration parameters for NCAlogging.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWncar |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO nca(1), ncab2clf(1), ncakmod(1), dd(1M), door_create(3DOOR), nca.if(4), ncakmod.conf(4), attributes(5)
System Administration Guide: IP Services
SunOS 5.10 22 Jan 2002 ncalogd.conf(4)