Logging Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
10.33
show log
Displays the contents of the buffered log. By default the entire contents of the buffered log is
displayed. If the optional "tail" parameter is specified only the latest 10 messages in the buffered
log are displayed. A numerical value can be specified after the "tail" parameter to select how
many of the latest messages should be displayed.
Syntax
show log [tail[<10-250>]]
Mode
Privileged Exec and Configure mode
Examples
To display the contents of the buffered log use the command:
<date> <time> <facility>.<severity> <program[<pid>]>: <message>
--------------------------------------------------------------------
2006 Nov 10 09:30:09 syslog.notice syslog-ng[67]: syslog-ng starting
up; version=\’2.0rc3\’
2006 Nov 10 09:30:09 auth.warning portmap[106]: user rpc not found,
reverting to user bin
2006 Nov 10 09:30:09 cron.notice crond[116]: crond 2.3.2 dillon,
started, log level 8
2006 Nov 10 09:30:14 daemon.err snmpd[181]: /flash/.configs/
snmpd.conf: line 20: Error: bad SUBTREE object 2006 Nov 10 09:30:14
user.info HSL[192]: HSL: INFO: Registering port port1.0.1
...
To display the 10 latest entries in the buffered log use the command:
<date> <time> <facility>.<severity> <program[<pid>]>: <message>
--------------------------------------------------------------------
2006 Nov 10 13:30:01 cron.notice crond[116]: USER manager pid 469 cmd
logrotate /etc/logrotate.conf
2006 Nov 10 13:30:01 cron.notice crond[116]: USER manager pid 471 cmd
nbqueue --wipe
2006 Nov 10 13:35:01 cron.notice crond[116]: USER manager pid 472 cmd
nbqueue --wipe
2006 Nov 10 13:40:01 cron.notice crond[116]: USER manager pid 477 cmd
nbqueue --wipe
2006 Nov 10 13:44:36 syslog.notice syslog-ng[67]: Log statistics;
processed=\’center(queued)=70\’, processed=\’2006 Nov 10 13:45:01
cron.notice crond[116]: USER manager pid 478 cmd logrotate /etc/
logrotate.conf
2006 Nov 10 13:45:01 cron.notice crond[116]: USER manager pid 480 cmd
nbqueue --wipe
Parameter
Description
show
Show running system information
log
Display logging information
tail
Display only the latest log entries
<10-250>
Specify the number of log entries to display
awplus#
show log
awplus#
show log tail 10