This soft copy for use by IBM employees only.
The psyslclr Command
You can use the
psyslclr
command to delete log entries in the log files
generated by syslogd. There are options that allow you to select the files and
records that are trimmed, as follows:
Options and Parameters
-a
Trims logs on all nodes in the system partition.
-e
Trims records before endtime (MMddhhmm).
-f facilities
Uses the facilities list to parse the syslog.conf file.
-g config
Specifies the use of an alternate syslog.conf file.
h
Displays usage information.
-l logs
(Lowercase L) Reports on the list of log files, if the syslog.conf
file is not parsed.
-n nodes
Reports records matching the nodes.
-p priority
Uses priority value to pass the syslog.conf file.
-s starttime
Trims records created after starttime (MMddhhmm).
-w hosts
Runs the command on the file or list of host names. If the
argument begins with a slash (/), it is interpreted as a file
containing a list of nodes to execute the command on. Otherwise
it can be a list of host names.
The
-f
and
-p
options can be used to control selecting files in the configuration
file. All files found in the configuration file will be trimmed if both options are not
used. If neither the
-a
nor
-w
options are used,
psyslclr
defaults to the local
node.
6.2.5 Maintain Error Logs
View error logs
smit splogview
The contents of each file entry and output of each command entry on the target
nodes in the log table amd.tab can be displayed to the stdout of the node from
which you are executing the
splm
command. To do this, issue the following from
the command line:
splm -a view -t /spdata/sys1/logtables/amd.tab
Archive error logs
You can create, remove, or gather error log archives to a central location where
they can be (optionally) written to tape or mailed to another location.
To access the archive Logs SMIT menu, enter:
smit sparchive
The fast path to invoke to the Create Archive menu is:
smit spcreate_archive
To create an archive on each target node in the directory
/var/archives/arc_weekly.tab, issue from the command line:
170
SP PD Guide
Summary of Contents for RS/6000 SP
Page 2: ......
Page 14: ...This soft copy for use by IBM employees only xii SP PD Guide...
Page 16: ...This soft copy for use by IBM employees only xiv SP PD Guide...
Page 106: ...This soft copy for use by IBM employees only 86 SP PD Guide...
Page 178: ...This soft copy for use by IBM employees only 158 SP PD Guide...
Page 214: ...This soft copy for use by IBM employees only 194 SP PD Guide...
Page 248: ...This soft copy for use by IBM employees only 228 SP PD Guide...
Page 290: ...This soft copy for use by IBM employees only 270 SP PD Guide...
Page 292: ...This soft copy for use by IBM employees only 272 SP PD Guide...
Page 300: ...This soft copy for use by IBM employees only 280 SP PD Guide...
Page 304: ...This soft copy for use by IBM employees only 284 SP PD Guide...
Page 308: ...This soft copy for use by IBM employees only 288 SP PD Guide...
Page 310: ...This soft copy for use by IBM employees only 290 SP PD Guide...
Page 316: ...IBML This soft copy for use by IBM employees only Printed in U S A SG24 4778 00...