Log Command Reference
304 7705 SAR OS System Management Guide
log-id
Syntax log-id [log-id] [severity severity-level] [application application] [sequence from-seq
[to-seq]] [count count] [router router-instance [expression]] [subject subject [regexp]]
[ascending | descending]
Context show>log
Description This command displays an event log summary with settings and statistics or the contents of a specific
log file, SNMP log, or memory log.
If the command is specified with no command line options, a summary of the defined system logs is
displayed. The summary includes log settings and statistics.
If the log ID of a memory, SNMP, or file event log is specified, the command displays the contents of
the log. Additional command line options control what and how the contents are displayed.
Contents of logs with console, session or syslog destinations cannot be displayed. The actual events
can only be viewed on the receiving syslog or console device.
Parameters log-id — displays the contents of the specified log file or memory log ID. The log ID must have a
destination of an SNMP or log file or a memory log for this parameter to be used.
Values 1 to 99
Default displays the event log summary
severity-level — displays only events with the specified and higher severity
Values cleared, indeterminate, critical, major, minor, and warning
Default all severity levels
application — displays only events generated by the specified application
Values aps, atm, bgp, chassis, debug, dhcp, dot1ag, efm_oam, eth-cfm,
filter, ip, isis, ldp, logger, mpls, ntp, oam, ospf, port, ppp, ptp, qos,
rip, route_policy, rsvp, security, snmp, stp, svcmgr, system, user,
vrtr
Default all applications
sequence from-seq [to-seq] — displays the log entry numbers from a particular entry sequence
number (from-seq) to another sequence number (to-seq). The to-seq value must be larger than
the from-seq value.
If the to-seq number is not provided, the log contents to the end of the log are displayed unless
the count parameter is present, in which case the number of entries displayed is limited by the
count.
Values 1 to 4294967295
Default all sequence numbers