This soft copy for use by IBM employees only.
The psyslrpt Command
You can use the
psyslprt
command to generate reports of log entries in the log
files generated on a set of nodes by syslogd. Options allow you to select the
files and records that will be reported.
Options and Parameters
-a
Generates the report on all nodes in the system partition.
-e
Reports on 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
Reports 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.
Note:
If neither the
-a
nor
-w
options are used,
psyslprt
defaults to the local
node.
6.2.4 Trimming syslog Files
The size of the syslog log files is
not configurable and will continue to grow until
you trim it manually.
The syslogd daemon is stopped during the trimming process and then restarted
with either the default configuration file (/etc/syslog.conf) or an alternate file.
To run the
psyslclr
command, you must be defined as a Kerberos principal in
the /etc/logmgt.acl file.
The fastpath to invoke the Trim Log Files SMIT menu is:
smit psyslclr
To trim all records older than 30 days from the log file /var/adm/msgs on the
local node, you can perform this command:
psyslclr -y 30 -l /var/adm/msgs
To trim all records from all log files found in the alternate syslog configuration
file /var/adm/syslog.conf, perform this command:
psyslclr -g /var/adm/syslog.conf -y 0
You can add the
psyslclr
command to the crontab to perform a scheduled
syslog trimming.
168
SP PD Guide
Содержание RS/6000 SP
Страница 2: ......
Страница 14: ...This soft copy for use by IBM employees only xii SP PD Guide...
Страница 16: ...This soft copy for use by IBM employees only xiv SP PD Guide...
Страница 106: ...This soft copy for use by IBM employees only 86 SP PD Guide...
Страница 178: ...This soft copy for use by IBM employees only 158 SP PD Guide...
Страница 214: ...This soft copy for use by IBM employees only 194 SP PD Guide...
Страница 248: ...This soft copy for use by IBM employees only 228 SP PD Guide...
Страница 250: ...This soft copy for use by IBM employees only Figure 102 setup_authent Script Flow Chart 2 7 230 SP PD Guide...
Страница 252: ...This soft copy for use by IBM employees only Figure 104 setup_authent Script Flow Chart 4 7 232 SP PD Guide...
Страница 254: ...This soft copy for use by IBM employees only Figure 106 setup_authent Script Flow Chart 6 7 234 SP PD Guide...
Страница 258: ...This soft copy for use by IBM employees only Figure 110 install_cw Script Flow Chart 3 3 238 SP PD Guide...
Страница 260: ...This soft copy for use by IBM employees only Figure 112 setup_server Script Flow Chart 2 23 240 SP PD Guide...
Страница 262: ...This soft copy for use by IBM employees only Figure 114 setup_server Script Flow Chart 4 23 242 SP PD Guide...
Страница 264: ...This soft copy for use by IBM employees only Figure 116 setup_server Script Flow Chart 6 23 244 SP PD Guide...
Страница 266: ...This soft copy for use by IBM employees only Figure 118 setup_server Script Flow Chart 8 23 246 SP PD Guide...
Страница 268: ...This soft copy for use by IBM employees only Figure 120 setup_server Script Flow Chart 10 23 248 SP PD Guide...
Страница 270: ...This soft copy for use by IBM employees only Figure 122 setup_server Script Flow Chart 12 23 250 SP PD Guide...
Страница 272: ...This soft copy for use by IBM employees only Figure 124 setup_server Script Flow Chart 14 23 252 SP PD Guide...
Страница 274: ...This soft copy for use by IBM employees only Figure 126 setup_server Script Flow Chart 16 23 254 SP PD Guide...
Страница 276: ...This soft copy for use by IBM employees only Figure 128 setup_server Script Flow Chart 18 23 256 SP PD Guide...
Страница 278: ...This soft copy for use by IBM employees only Figure 130 setup_server Script Flow Chart 20 23 258 SP PD Guide...
Страница 280: ...This soft copy for use by IBM employees only Figure 132 setup_server Script Flow Chart 22 23 260 SP PD Guide...
Страница 284: ...This soft copy for use by IBM employees only Figure 136 rc switch Script Flow Chart 3 8 264 SP PD Guide...
Страница 286: ...This soft copy for use by IBM employees only Figure 138 rc switch Script Flow Chart 5 8 266 SP PD Guide...
Страница 288: ...This soft copy for use by IBM employees only Figure 140 rc switch Script Flow Chart 7 8 268 SP PD Guide...
Страница 290: ...This soft copy for use by IBM employees only 270 SP PD Guide...
Страница 292: ...This soft copy for use by IBM employees only 272 SP PD Guide...
Страница 300: ...This soft copy for use by IBM employees only 280 SP PD Guide...
Страница 304: ...This soft copy for use by IBM employees only 284 SP PD Guide...
Страница 308: ...This soft copy for use by IBM employees only 288 SP PD Guide...
Страница 310: ...This soft copy for use by IBM employees only 290 SP PD Guide...
Страница 316: ...IBML This soft copy for use by IBM employees only Printed in U S A SG24 4778 00...