accounting-policy [acct-policy-id] [access | network] [associations]
show>log
This command displays accounting policy information.
the policy ID that uniquely identifies the accounting policy, expressed as a decimal integer
only displays access accounting policies
only displays network accounting policies
only displays accounting policy associations
The following output is an example of accounting policy information, and Table: Accounting Policy Field Descriptions describes the fields.
Output ExampleA:ALU-1# show log accounting-policy
==============================================================================
Accounting Policies
==============================================================================
Policy Type Def Admin Oper Intvl File Record Name
Id State State Id
------------------------------------------------------------------------------
1 access No Up Up 15 1 service-ingress-packets
2 access Yes Up Up 15 2 service-ingress-octets
==============================================================================
A:ALU-1#
A:ALU-1# show log accounting-policy 10
==============================================================================
Accounting Policies
==============================================================================
Policy Type Def Admin Oper Intvl File Record Name
Id State State Id
------------------------------------------------------------------------------
10 access Yes Up Up 5 3 service-ingress-packets
Description : (Not Specified)
Data Loss Count : 0 Data Loss TimeStamp: N/A
This policy is applied to:
Svc Id: 100 SAP : 1/1/8:0 Collect-Stats
Svc Id: 101 SAP : 1/1/8:1 Collect-Stats
Svc Id: 102 SAP : 1/1/8:2 Collect-Stats
Svc Id: 106 SAP : 1/1/8:6 Collect-Stats
Svc Id: 107 SAP : 1/1/8:7 Collect-Stats
Svc Id: 108 SAP : 1/1/8:8 Collect-Stats
Svc Id: 109 SAP : 1/1/8:9 Collect-Stats
...
==============================================================================
A:ALU-1#
A:ALU-1# show log accounting-policy access
==============================================================================
Accounting Policies
==============================================================================
Policy Type Def Admin Oper Intvl File Record Name
Id State State Id
------------------------------------------------------------------------------
10 access Yes Up Up 5 3 service-ingress-packets
==============================================================================
A:ALU-1#
Label |
Description |
---|---|
Policy ID |
The identifying value assigned to a specific policy |
Type |
Identifies the accounting policy type forwarded to the configured accounting file |
access: indicates that the policy is an access accounting policy |
|
network: indicates that the policy is a network accounting policy |
|
none: indicates no accounting policy types assigned |
|
Def |
Yes: indicates that the policy is a default policy |
No: indicates that the policy is not a default policy |
|
Admin State |
Displays the administrative state of the policy |
Up: indicates that the policy is administratively enabled |
|
Down: indicates that the policy is administratively disabled |
|
Oper State |
Displays the operational state of the policy |
Up: indicates that the policy is operationally up |
|
Down: indicates that the policy is operationally down |
|
Intvl |
Displays the interval, in minutes, in which statistics are collected and written to their destination. The default depends on the record name type. |
File ID |
The log destination |
Record Name |
The accounting record name that represents the configured record type |
Description |
The description of the accounting policy |
Data Loss Count |
The number of times a statistics data loss has occurred |
Data Loss Timestamp |
The timestamp of the last data loss occurrence. If there are no losses, the timestamp is N/A. |
This policy is applied to |
Specifies the entities that the accounting policy is applied to |
accounting-records
show>log
This command displays accounting policy record names.
The following output is an example of accounting policy record information, and Table: Accounting Records Field Descriptions describes the fields.
Output ExampleA: ALU-1# show log accounting-records
==========================================================
Accounting Policy Records
==========================================================
Record # Record Name Def. Interval
----------------------------------------------------------
1 service-ingress-octets 5
2 service-egress-octets 5
3 service-ingress-packets 5
4 service-egress-packets 5
5 network-ingress-octets 15
6 network-egress-octets 15
7 network-ingress-packets 15
8 network-egress-packets 15
11 combined-network-ing-egr-octets 15
12 combined-service-ing-egr-octets 5
13 complete-service-ingress-egress 5
32 saa 5
54 complete-network-ing-egr 15
==========================================================
A:ALU-1#
Label |
Description |
---|---|
Record # |
The record ID that uniquely identifies the accounting policy, expressed as a decimal integer |
Record Name |
The accounting record name |
Def. Interval |
The default interval, in minutes, in which statistics are collected and written to their destination |
applications
show>log
This command displays a list of all application names that can be used in event-control and filter commands.
The following output is an example of an application list (not all applications apply to the 7705 SAR).
Output ExampleA:ALU-1# show log applications
==================================
Log Event Application Names
==================================
Application Name
----------------------------------
APS
ATM
BFD
BGP
CHASSIS
CPMHWFILTER
DEBUG
DHCP
DHCPS
DOT1X
EFM_OAM
ERING
ETH_CFM
FILTER
FIREWALL
FR
IGMP
IGMP_SNOOPING
IP
IPSEC
IPSEC_CPM
ISIS
LAG
LDP
LLDP
LOGGER
MCPATH
MC_REDUNDANCY
MIRROR
MLD
MLD_SNOOPING
MPLS
MWMGR
NGE
NTP
OAM
OSPF
PIM
PIM_SNOOPING
PORT
PPP
PTP
QOS
RADIUS
RIP
RIP_NG
ROUTE_NEXT_HOP
ROUTE_POLICY
RSVP
SCADA
SECURITY
SNMP
STP
SUB_HOST_TRK
SVCMGR
SYSTEM
TIP
TSS
USER
VRRP
VRTR
==================================
A:ALU-1#
event-control [application-id [event-name | event-number]]
event-control application-id event-namedetail
show>log
This command displays event control settings for events, including whether the event is suppressed or generated, and the severity level for the event.
If no options are specified, all events, alarms, and traps are listed.
displays event control for the specified application
displays event control for the named application event
displays event control for the specified application event number
displays detailed event-control information
The following output is an example of event control information, and Table: Event Control Field Descriptions describes the fields. Because the output is very large, only a sample of the events are shown here.
Output ExampleA:gal171# show log event-control
=======================================================================
Log Events
=======================================================================
Application
ID# Event Name P g/s Logged Dropped
-----------------------------------------------------------------------
ATM:
2004 tAtmTcSubLayerDown MI gen 0 0
2005 tAtmTcSubLayerClear MI gen 0 0
L 2006 atmVclStatusChange WA gen 0 0
...
CHASSIS:
2001 cardFailure MA gen 4 0
2002 cardInserted MI gen 3 0
2003 cardRemoved MI gen 8 0
2004 cardWrong MI gen 0 0
2005 EnvTemperatureTooHigh MA gen 0 0
2007 powerSupplyOverTemp CR gen 0 0
2008 powerSupplyAcFailure CR gen 0 0
2009 powerSupplyDcFailure CR gen 0 0
2010 powerSupplyInserted MA gen 0 0
2011 powerSupplyRemoved MA gen 0 0
2012 redPrimaryCPMFail CR gen 0 0
2016 clearNotification MA gen 0 0
2017 syncIfTimingHoldover CR gen 0 0
2018 syncIfTimingHoldoverClear CR gen 0 0
2019 syncIfTimingRef1Alarm MI gen 0 0
2020 syncIfTimingRef1AlarmClear MI gen 0 0
2021 syncIfTimingRef2Alarm MI gen 0 0
2022 syncIfTimingRef2AlarmClear MI gen 0 0
2023 flashDataLoss MA gen 0 0
2024 flashDiskFull MA gen 0 0
2025 softwareMismatch MA gen 0 0
2026 softwareLoadFailed MA gen 0 0
2027 bootloaderMismatch MA gen 0 0
2028 bootromMismatch MA gen 0 0
2029 fpgaMismatch MA gen 0 0
2030 syncIfTimingBITSAlarm MI gen 0 0
2031 syncIfTimingBITSAlarmClear MI gen 0 0
2032 cardUpgraded MA gen 0 0
2033 cardUpgradeInProgress MA gen 0 0
2034 cardUpgradeComplete MA gen 0 0
2050 powerSupplyInputFailure CR gen 0 0
2051 powerSupplyOutputFailure CR gen 0 0
2052 mdaHiBwMulticastAlarm MI gen 0 0
2056 mdaCfgNotCompatible MA gen 0 0
2057 extAlarmInput1Detected CR gen 0 0
2058 extAlarmInput2Detected MA gen 0 0
2059 extAlarmInput3Detected MA gen 0 0
2060 extAlarmInput4Detected MI gen 0 0
2061 extAlarmCleared MA gen 0 0
2062 syncIfTimingExternAlarm MI gen 0 0
2063 syncIfTimingExternAlarmClear MI gen 0 0
2064 cardBgDiagsFault MI gen 0 0
2065 fanCriticalFailure CR gen 0 0
2066 fanMinorFailure MI gen 0 0
2067 cardSyncFileNotPresent MI gen 0 0
2058 tmnxEqMdaXplError MI sup 0 0
...
DEBUG:
L 2001 traceEvent MI gen 0 0
DOT1AG:
2001 dot1agCfmFaultAlarm MI gen 0 0
EFM_OAM:
2001 tmnxDot3OamPeerChanged MI gen 0 0
2002 tmnxDot3OamLoopDetected MI gen 0 0
2003 tmnxDot3OamLoopCleared MI gen 0 0
FILTER:
2001 tIPFilterPBRPacketsDrop WA gen 0 0
2002 tFilterEntryActivationFailed WA gen 0 0
2003 tFilterEntryActivationRestored WA gen 0 0
IP:
L 2001 clearRTMError MI gen 0 0
L 2002 ipEtherBroadcast MI gen 0 0
L 2003 ipDuplicateAddress MI gen 0 0
L 2004 ipArpInfoOverwritten MI gen 0 0
L 2005 fibAddFailed MA gen 0 0
L 2006 qosNetworkPolicyMallocFailed MA gen 0 0
L 2007 ipArpBadInterface MI gen 0 0
L 2008 ipArpDuplicateIpAddress MI gen 0 0
L 2009 ipArpDuplicateMacAddress MI gen 0 0
....
....
USER:
L 2001 cli_user_login MI gen 2 0
L 2002 cli_user_logout MI gen 1 0
L 2003 cli_user_login_failed MI gen 0 0
L 2004 cli_user_login_max_attempts MI gen 0 0
L 2005 ftp_user_login MI gen 0 0
L 2006 ftp_user_logout MI gen 0 0
L 2007 ftp_user_login_failed MI gen 0 0
L 2008 ftp_user_login_max_attempts MI gen 0 0
L 2009 cli_user_io MI sup 0 48
L 2010 snmp_user_set MI sup 0 0
L 2011 cli_config_io MI gen 4357 0
=======================================================================
A:ALU-1#
Label |
Description |
---|---|
Application |
The application name |
ID# |
The event ID number within the application L ID#: an "L" in front of an ID represents event types that do not generate an associated SNMP notification. Most events generate a notification; only the exceptions are marked with a preceding "L". |
Event Name |
The event name |
P |
CL: the event has a cleared severity/priority |
CR: the event has critical severity/priority |
|
IN: the event has indeterminate severity/priority |
|
MA: the event has major severity/priority |
|
MI: the event has minor severity/priority |
|
WA: the event has warning severity/priority |
|
g/s |
gen: the event is generated/logged by event control |
sup: the event is suppressed/dropped by event control |
|
thr: specifies that throttling is enabled |
|
Logged |
The number of events logged/generated |
Dropped |
The number of events dropped/suppressed |
event-handling
show>log
This command enables the context to display Event Handling System (EHS) information.
handler [handler-name]
handler detail
show>log>event-handling
This command displays event handler information.
specifies an event handler name
displays detailed information for all event handlers
The following is an example of event handler information, and Table: Event Handler Field Descriptions describes the fields.
Output ExampleA:7705:Dut-C# show log event-handling handler "handler_1"
===============================================================================
Event Handling System - Handlers
===============================================================================
===============================================================================
Handler : handler_1
===============================================================================
Description : test_handler
Admin State : up Oper State : up
-------------------------------------------------------------------------------
Handler Execution Statistics
Success : 1
Err No Entry : 0
Err Adm Status : 0
Total : 1
-------------------------------------------------------------------------------
Handler Action-List Entry
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Entry-id : 1
Description : test_entry
Admin State : up Oper State : up
Script
Policy Name : script_policy_1
Policy Owner : TiMOS CLI
Min Delay : 0
Last Exec : 05/24/2018 19:03:31
-------------------------------------------------------------------------------
Handler Action-List Entry Execution Statistics
Success : 1
Err Mn Delay : 0
Err Launch : 0
Err Adm Status : 0
Total : 1
===============================================================================
Label |
Description |
---|---|
Handler |
The name of the event handler |
Description |
The event handler description string |
Admin State |
The administrative state of the event handler |
Oper State |
The operational state of the event handler |
Handler Execution Statistics |
|
Success |
The number of times that the event handler was successfully triggered |
Err No Entry |
The number of times that the event handler failed to trigger due to no action-list entry |
Err Adm Status |
The number of times that the event handler was not executed because the entry was administratively disabled |
Total |
The total number of times that the event handler attempted execution |
Handler Action-List Entry |
|
Entry-id |
The action-list entry identifier |
Description |
The action-list entry description string |
Admin State |
The administrative state of the action-list entry |
Oper State |
The operational state of the action-list entry |
Script |
|
Policy Name |
The name of the related script policy |
Policy Owner |
The owner of the related script policy |
Min Delay |
The configured minimum delay time between subsequent executions of the action specified in the entry |
Last Exec |
The timestamp of the last successful execution of the action-list entry |
Handler Action-List Entry Execution Statistics |
|
Success |
The number of times that the action-list entry was successfully queued to run. For a script-policy entry, this indicates that the script request has been enqueued but does not necessarily indicate that the script has successfully launched or completed. |
Err Mn Delay |
The number of times that the action-list entry attempted to execute before the minimum delay time expired |
Err Launch |
The number of times that the action-list entry was not successfully queued to run. This could be caused by a number of conditions, including a full script request input queue. |
Err Adm Status |
The number of times that the action-list entry was not executed because the entry was administratively disabled |
Total |
The total number of times that the action-list entry attempted execution |
information
show>log>event-handling
This command displays general information about EHS, as well as handler and trigger statistics.
The following is an example of EHS information.
Output ExampleA:7705:Dut-C# show log event-handling information
===============================================================================
Event Handling System - Event Trigger Statistics
===============================================================================
_______________________________________________________________________________
Application Name
Event Id Total Success ErrNoEntry AdmStatus
-------------------------------------------------------------------------------
OAM
2001 0 0 0 0
-----------------------------------------------------------------------------
Entry FilMatch Trigger Debounce FilFail ErrAdmSta ErrFilter ErrHandler
-----------------------------------------------------------------------------
1 0 0 0 0 0 0 0
10 0 0 0 0 0 0 0
-----------------------------------------------------------------------------
SUM 0 0 0 0 0 0 0
_______________________________________________________________________________
Application Name
Event Id Total Success ErrNoEntry AdmStatus
-------------------------------------------------------------------------------
OAM
2004 0 0 0 0
-----------------------------------------------------------------------------
Entry FilMatch Trigger Debounce FilFail ErrAdmSta ErrFilter ErrHandler
-----------------------------------------------------------------------------
1 0 0 0 0 0 0 0
-----------------------------------------------------------------------------
SUM 0 0 0 0 0 0 0
===============================================================================
EVENTS PROCESSED Total Success ErrNoEntry AdmStatus
-------------------------------------------------------------------------------
0 0 0 0
===============================================================================
===============================================================================
Event Handling System - Event Handler Statistics
===============================================================================
_______________________________________________________________________________
Handler Total Success ErrNoEntry AdmStatus
handler_1 0 0 0 0
-----------------------------------------------------------------------------
Entry Id Launch MinDelay ErrLaunch ErrAdmSta
-----------------------------------------------------------------------------
1 0 0 0 0
-----------------------------------------------------------------------------
SUMMARY 0 0 0 0
===============================================================================
HANDLERS SUMMARY Total Success ErrNoEntry AdmStatus
-------------------------------------------------------------------------------
0 0 0 0
===============================================================================
scripts
show>log>event-handling
This command displays handler configuration and script run queue information.
The following is an example of script information.
Output ExampleA:7705:Dut-C# show log event-handling scripts
===============================================================================
Event Handling System - Script Policy Association
===============================================================================
-------------------------------------------------------------------------------
No Matching Entries Found
===============================================================================
===============================================================================
Event Handling System - Script Association
===============================================================================
-------------------------------------------------------------------------------
No Matching Entries Found
===============================================================================
===============================================================================
Event Handling System - Script Launched List
===============================================================================
Run # Script owner Script name Script state
-------------------------------------------------------------------------------
No Matching Entries
===============================================================================
event-parameters [application-id [event-name | event-number]]
show>log
This command displays the common parameters and specific parameters of log event or of all log events. This lets a user know what parameters can be passed from a triggering event to the triggered EHS script.
displays event parameters for the specified application
displays event parameters for the named application event
displays event parameters for the specified application event number
The following is an example of log event parameter information.
Output Example# show log event-parameters "oam" 2001
=======================================================================
Common Event Parameters
appid
name
eventid
severity
subject
gentime
Event Specific Parameters
tmnxOamPingCtlOwnerIndex
tmnxOamPingCtlTestIndex
tmnxOamPingCtlTgtAddrType
tmnxOamPingCtlTgtAddress
tmnxOamPingResultsTestRunIndex
tmnxOamPingResultsOperStatus
tmnxOamPingResultsMinRtt
tmnxOamPingResultsMaxRtt
tmnxOamPingResultsAverageRtt
tmnxOamPingResultsRttSumOfSquares
tmnxOamPingResultsRttOFSumSquares
tmnxOamPingResultsMtuResponseSize
tmnxOamPingResultsSvcPing
tmnxOamPingResultsProbeResponses
tmnxOamPingResultsSentProbes
tmnxOamPingResultsLastGoodProbe
tmnxOamPingCtlTestMode
tmnxOamPingHistoryIndex
=======================================================================
file-id [log-file-id]
show>log
This command displays event log file information.
If no command line parameters are specified, a summary output of all event log files is displayed.
Specifying a file ID displays detailed information on the event log file.
displays detailed information on the specified event log file
The following output is an example of event log file information, and Table: Log File Summary Field Descriptions describes the fields.
Output ExampleA:ALU-1# show log file-id
=============================================================
File Id List
=============================================================
file-id rollover retention admin backup oper
location location location
-------------------------------------------------------------
1 60 4 cf3: none none
2 60 3 cf3: none none
3 1440 12 cf3: none none
10 1440 12 cf3: none none
11 1440 12 cf3: none none
15 1440 12 cf3: none none
20 1440 12 cf3: none none
=============================================================
A:ALU-1#
A:ALU-1# show log file-id 10
=============================================================
File Id List
=============================================================
file-id rollover retention admin backup oper
location location location
-------------------------------------------------------------
10 1440 12 cf3: none none
Description : Main
=============================================================
===============================================================
File Id 10 Location cf3:
===============================================================
file name expired state
---------------------------------------------------------------
cf3:\log\log0302-20060501-012205 yes complete
cf3:\log\log0302-20060501-014049 yes complete
cf3:\log\log0302-20060501-015344 yes complete
cf3:\log\log0302-20060501-015547 yes in progress
=============================================================
Label |
Description |
---|---|
file-id |
The log file ID |
rollover |
The rollover time for the log file, which is the amount of time before the file is partitioned into a new file. |
retention |
The retention time for the file in the system, which is how long the file should be retained in the file system |
admin location |
The flash device specified for the file location |
none: indicates no specific flash device was specified |
|
backup location |
The backup compact flash device specified for the file location |
oper location |
The actual flash device on which the log file exists |
file name |
The complete pathname of the file associated with the log ID |
expired |
Indicates whether the retention period for this file has passed |
state |
in progress: indicates the current open log file |
complete: indicates the old log file |
filter-id [filter-id]
show>log
This command displays event log filter policy information. If you specify a filter ID, the command also displays the filter match criteria.
displays detailed information on the specified event filter policy ID
The following outputs are examples of event log filter policy information:
filter ID summary information (Output Example, Table: Filter ID Summary Field Descriptions)
filter ID information with match criteria specified (Output Example, Table: Filter ID Match Criteria Field Descriptions )
*A:ALU-48>config>log# show log filter-id
=============================================================================
Log Filters
=============================================================================
Filter Applied Default Description
Id Action
-----------------------------------------------------------------------------
1 no forward
5 no forward
10 no forward
1001 yes drop Collect events for Serious Errors Log
=============================================================================
*A:ALU-48>config>log#
Label |
Description |
---|---|
Filter Id |
The event log filter ID |
Applied |
no: the event log filter is not currently in use by a log ID |
yes: the event log filter is currently in use by a log ID |
|
Default Action |
drop: the default action for the event log filter is to drop events not matching filter entries |
forward: the default action for the event log filter is to forward events not matching filter entries |
|
Description |
The description string for the filter ID |
*A:ALU-48>config>log# show log filter-id 1001
==========================================================================
Log Filter
==========================================================================
Filter-id : 1001 Applied : yes Default Action: drop
Description : Collect events for Serious Errors Log
--------------------------------------------------------------------------
Log Filter Match Criteria
--------------------------------------------------------------------------
Entry-id : 10 Action : forward
Application : Operator : off
Event Number : 0 Operator : off
Severity : major Operator : greaterThanOrEqual
Subject : Operator : off
Match Type : exact string :
Router : Operator : off
Match Type : exact string :
Description : Collect only events of major severity or higher
--------------------------------------------------------------------------
==========================================================================
Label |
Description |
---|---|
Entry-id |
The event log filter entry ID |
Action |
default: there is no explicit action for the event log filter entry and the filter's default action is used on matching events |
drop: the action for the event log filter entry is to drop matching events |
|
forward: the action for the event log filter entry is to forward matching events |
|
Description: (Entry-id) |
The description string for the event log filter entry |
Application |
The event log filter entry application match criterion |
Event Number |
The event log filter event ID match criterion |
Severity |
cleared: the event log filter severity match is cleared |
indeterminate: the event log filter entry application event severity indeterminate match criterion |
|
critical: the event log filter entry application event severity critical match criterion |
|
major: the event log filter entry application event severity cleared match criterion |
|
minor: the event log filter entry application event severity minor match criterion |
|
warning: the event log filter entry application event severity warning match criterion |
|
Subject |
Displays the event log filter entry subject string match criterion |
Router |
Displays the event log filter entry router router-instance string match criterion |
Operator: |
There is an operator field for each match criteria: application, event number, severity, and subject |
equal: matches when equal to the match criterion |
|
greaterThan: matches when greater than the match criterion |
|
greaterThanOrEqual: matches when greater than or equal to the match criterion |
|
lessThan: matches when less than the match criterion |
|
lessThanOrEqual: matches when less than or equal to the match criterion |
|
notEqual: matches when not equal to the match criterion |
|
off: no operator specified for the match criterion |
log-collector
show>log
This command displays log collector statistics for the main, security, change and debug log collectors.
The following output is an example of log collector statistics, and Table: Log Collector Field Descriptions describes the fields.
Output ExampleA:ALU-1# show log log-collector
===============================================================================
Log Collectors
===============================================================================
Main Logged : 1224 Dropped : 0
Dest Log Id: 99 Filter Id: 0 Status: enabled Dest Type: memory
Dest Log Id: 100 Filter Id: 1001 Status: enabled Dest Type: memory
Security Logged : 3 Dropped : 0
Change Logged : 3896 Dropped : 0
Debug Logged : 0 Dropped : 0
===============================================================================
A:ALU-1#
Label |
Description |
---|---|
<Collector Name> |
Main: the main event stream contains the events that are not explicitly directed to any other event stream |
Security: the security stream contains all events that affect attempts to breach system security, such as failed login attempts, attempts to access MIB tables to which the user is not granted access or attempts to enter a branch of the CLI to which access has not been granted |
|
Change: the change event stream contains all events that directly affect the configuration or operation of this node |
|
Debug: the debug-trace stream contains all messages in the debug stream |
|
Dest. Log ID |
Specifies the event log stream destination |
Filter ID |
The value is the index to the entry that defines the filter to be applied to this log's source event stream to limit the events output to this log's destination. If the value is 0, then all events in the source log are forwarded to the destination. |
Status |
Enabled: logging is enabled |
Disabled: logging is disabled |
|
Dest. Type: |
Console: a log created with the console type destination displays events to the physical console device Events are displayed to the console screen whether a user is logged in to the console or not. A user logged in to the console device or connected to the CLI via a remote Telnet or SSH session can also create a log with a destination type of 'session'. Events are displayed to the session device until the user logs off. When the user logs off, the 'session' type log is deleted. |
Syslog: all selected log events are sent to the syslog address |
|
SNMP traps: events defined as SNMP traps are sent to the configured SNMP trap destinations and are logged in NOTIFICATION-LOG-MIB tables |
|
File: all selected log events are directed to a file on the CSM's compact flash disk |
|
Memory: all selected log events are directed to an in-memory storage area |
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]
show>log
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.
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.
displays only events with the specified and higher severity
displays only events generated by the specified application
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.
limits the number of log entries displayed to the number specified
specifies a router name up to 32 characters to be used in the display criteria
specifies to use a regular expression as match criteria for the router instance string
displays only log entries matching the specified text subject string. The subject is the object affected by the event; for example, the port-id would be the subject for a link-up or link-down event.
specifies to use a regular expression as parameters with the specified subject string
specifies the log sort direction. Logs are normally shown from the newest entry to the oldest in descending sequence number order on the screen. When using the ascending parameter, the log will be shown from the oldest to the newest entry.
The following output is an example of event log summary information, and Table: Log ID Field Descriptions describes the fields.
Output ExampleA:ALU-1# show log log-id
=====================================================================
Event Logs
=====================================================================
Log Source Filter Admin Oper Logged Dropped Dest Dest Size
Id Id State State Type Id
--------------------------------------------------------------------
1 none none up down 52 0 file 10 N/A
2 C none up up 41 0 syslog 1 N/A
99 M none up up 2135 0 memory 500
=====================================================================
A:ALU-1#
Label |
Description |
---|---|
Log Id |
An event log destination |
Source |
no: the event log filter is not currently in use by a log ID |
yes: the event log filter is currently in use by a log ID |
|
M: the event source for the log ID is the Main event category |
|
C: the event source for the log ID is the Change event category |
|
none: the event log filter is currently in use by a log ID |
|
Filter ID |
The value is the index to the entry that defines the filter to be applied to this log's source event stream to limit the events output to this log's destination. If the value is 0, then all events in the source log are forwarded to the destination. |
Admin State |
Up: indicates that the administrative state is up |
Down: indicates that the administrative state is down |
|
Oper State |
Up: indicates that the operational state is up |
Down: indicates that the operational state is down |
|
Logged |
The number of events that have been sent to the log sources that were forwarded to the log destination |
Dropped |
The number of events that have been sent to the log sources that were not forwarded to the log destination because they were filtered out by the log filter |
Dest. Type |
Console: all selected log events are directed to the system console. If the console is not connected, then all entries are dropped. |
Syslog: all selected log events are sent to the syslog address |
|
SNMP traps: events defined as SNMP traps are sent to the configured SNMP trap destinations and are logged in NOTIFICATION-LOG-MIB tables |
|
File: all selected log events are directed to a file on the CSM's compact flash disk |
|
Memory: all selected log events are directed to an in-memory storage area |
|
Dest ID |
The event log stream destination |
Size |
The allocated memory size for the log |
A:gal171# show log log-id 99
===============================================================================
Event Log 99
===============================================================================
Description : Default System Log
Memory Log contents [size=500 next event=3722 (wrapped)]
3721 2008/02/07 09:14:06.69 UTC WARNING: SYSTEM #2006 Base LOGGER
"Log File Id 2 configuration modified"
3720 2008/02/07 09:13:18.86 UTC WARNING: SYSTEM #2006 Base LOGGER
"Log File Id 2 configuration modified"
3719 2008/02/01 11:54:15.67 UTC MINOR: IP #2004 management PIP MANAGEMENT
"ARP information overwritten for 10.120.52.253 by 00:e0:52:d4:a5:00"
3718 2008/02/01 11:54:15.40 UTC MINOR: IP #2004 management PIP MANAGEMENT
"ARP information overwritten for 10.120.52.253 by 00:e0:5e:00:a5:00"
...
===============================================================================
A:gal171
snmp-trap-group [log-id]
show>log
This command displays SNMP trap group configuration information.
displays only SNMP trap group information for the specified trap group log ID
The following output is an example of SNMP trap group information, and Table: SNMP Trap Group Field Descriptions describes the fields.
Output Example*A:ALU-48>config>log# show log snmp-trap-group
===============================================================================
SNMP Trap Groups
===============================================================================
id name
port address
-------------------------------------------------------------------------------
29 name
162 10.20.30.10
===============================================================================
*A:ALU-48>config>log#
*A:ALU-48>config>log# show log snmp-trap-group 90
===============================================================================
SNMP Trap Group 90
===============================================================================
Description : none
-------------------------------------------------------------------------------
Name : 10.121.107.98:162
Address : 10.121.107.98
Port : 162
Version : v2c
Community : private
Sec. Level : none
Replay : disabled
First replay : n/a
Last replay : never
===============================================================================
*A:ALU-48>config>log#
Label |
Description |
---|---|
Name |
The log destination ID for an event stream |
Address |
The IP address of the trap receiver |
Port |
The destination UDP port used for sending traps to the destination, expressed as a decimal integer |
Version |
Specifies the SNMP version format to use for traps sent to the trap receiver. Valid values are v1, v2c, and v3. |
Community |
The community string required by snmpv1 or snmpv2c trap receivers |
Sec. Level |
The required authentication and privacy security levels required to access the views on this node |
Replay |
Indicates whether the replay parameter has been configured for the trap-target address: enabled or disabled |
First replay |
Indicates the sequence ID of the first missed notification that will be replayed when a route by which the trap-target address can be reached is added to the routing table. If no notifications are waiting to be replayed, this field shows "n/a". |
Last replay |
Indicates the last time that missed events were replayed to the trap-target address. If no events have ever been replayed, this field shows "never". |
syslog [syslog-id]
show>log
This command displays syslog event log destination summary information or detailed information on a specific syslog destination.
displays detailed information on the specified syslog event log destination
The following output is an example of syslog event log destination summary information, and Table: Syslog Field Descriptions describes the fields.
Output Example*A:ALU-48>config>log# show log syslog
===============================================================================
Syslog Target Hosts
===============================================================================
Id Ip Address Port Sev Level
Below Level Drop Facility Pfx Level
-------------------------------------------------------------------------------
2 unknown 514 info
0 local7 yes
3 unknown 514 info
0 mail yes
===============================================================================
*A:ALU-48>config>log#
*A:ALU-48>config>log# show log syslog 1
===============================================================================
Syslog Target 1
===============================================================================
IP Address : 192.168.15.22
Port : 514
Log-ids : none
Prefix : Sr12
Facility : mail
Severity Level : info
Prefix Level : yes
Below Level Drop : 0
Description : Linux Station Springsteen
===============================================================================
*A:ALU-48>config>log#
Label |
Description |
---|---|
Syslog ID |
The syslog ID number for the syslog destination |
IP Address |
The IP address of the syslog target host |
Port |
The configured UDP port number used when sending syslog messages |
Facility |
The facility code for messages sent to the syslog target host |
Severity Level |
The syslog message severity level threshold |
Below Level Dropped |
A count of messages not sent to the syslog collector target because the severity level of the message was above the configured severity. The higher the level, the lower the severity. |
Prefix Present |
Yes: a log prefix was prepended to the syslog message sent to the syslog host |
No: a log prefix was not prepended to the syslog message sent to the syslog host |
|
Description |
A text description stored in the configuration file for a configuration context |
LogPrefix |
The prefix string prepended to the syslog message |
Log-id |
Events are directed to this destination |