To specify whether an event can be triggered for the Boolean trigger test, use the
startup command in event trigger boolean configuration mode. To disable the configured settings, use the
no form of this command.
startup
nostartup
Syntax Description
This command has no arguments or keywords.
Command Default
The startup event is enabled when the Boolean trigger test is enabled.
This command was integrated into Cisco IOS Release 12.2(33)SRE.
12.2(50)SY
This command was integrated into Cisco IOS Release 12.2(50)SY.
Usage Guidelines
The
startup command triggers an event when the conditions specified for the Boolean trigger test are met.
Examples
The following example shows how to specify startup for the Boolean trigger test:
Router(config)# snmp mib event trigger owner owner1 name EventA
Router(config-event-trigger)# test boolean
Router(config-event-trigger-boolean)# startup
Router(config-event-trigger-boolean)# end
Related Commands
Command
Description
test
Enables a trigger test.
startup (test existence)
To specify whether an event can be triggered for the existence trigger test, use the
startup command in event trigger existence configuration mode. To disable the configured settings, use the
no form of this command.
startup
{ present | absent }
nostartup
{ present | absent }
Syntax Description
present
Triggers the present startup test when the existence trigger conditions are met.
absent
Triggers the absent startup test when the existence trigger conditions are met.
Command Default
By default, both present and absent startup tests are triggered.
Command Modes
Event trigger existence configuration (config-event-trigger-existence)
Command History
Release
Modification
12.4(20)T
This command was introduced.
12.2(33)SRE
This command was integrated into Cisco IOS Release 12.2(33)SRE.
12.2(50)SY
This command was integrated into Cisco IOS Release 12.2(50)SY.
Usage Guidelines
The
startup command triggers an event when the conditions specified for the existence trigger test are met.
Examples
The following example shows how to specify startup for the existence trigger test:
Router(config)# snmp mib event trigger owner owner1 name EventA
Router(config-event-trigger)# test existence
Router(config-event-trigger-existence)# startup
Router(config-event-trigger-existence)# end
Related Commands
Command
Description
test
Enables a trigger test.
startup (test threshold)
To specify whether an event can be triggered for the threshold trigger test, use the
startup command in event trigger threshold configuration mode. To disable the configured settings, use the
no form of this command.
startup
{ rising | falling | rise-or-falling }
nostartup
Syntax Description
rising
Specifies the rising threshold value to check against the set value during startup when the trigger type is threshold.
falling
Specifies the falling threshold value to check against the set value during startup when the trigger type is threshold.
rise-or-falling
Specifies the rising or falling threshold value to check against the set value during startup when the trigger type is threshold. This is the default value.
Command Default
The rising or falling threshold value is checked against the set value during startup when the trigger type is threshold.
This command was integrated into Cisco IOS Release 12.2(33)SRE.
12.2(50)SY
This command was integrated into Cisco IOS Release 12.2(50)SY.
Usage Guidelines
The
startup command starts an event when conditions for the threshold trigger test are met.
Examples
The following example shows how to specify startup for the threshold trigger test:
Router(config)# snmp mib event trigger owner owner1 name EventA
Router(config-event-trigger)# test threshold
Router(config-event-trigger-threshold)# startup rising
Router(config-event-trigger-threshold)# end
Related Commands
Command
Description
test
Enables a trigger test.
test (event trigger)
To specify the type of test to perform during an event trigger, use the
test command in event trigger configuration mode. To disable the trigger test configuration settings, use the
no form of this command.
test
{ existence | boolean | threshold }
notest
{ existence | boolean | threshold }
Syntax Description
existence
Enables the existence trigger test.
boolean
Enables the Boolean trigger test. Boolean test is the default trigger test performed during event triggers.
This command was integrated into Cisco IOS Release 12.2(33)SRE.
12.2(50)SY
This command was integrated into Cisco IOS Release 12.2(50)SY.
Usage Guidelines
The trigger table in the Event MIB has supplementary tables for additional objects that are configured based on the type of test performed for the trigger. For each trigger entry type such as existence, threshold, or Boolean, the corresponding tables (existence, threshold, and Boolean tables) are populated with the information required to perform the test. You can set event triggers based on existence, threshold, and Boolean trigger types.
The existence trigger tests are performed based on the following parameters:
Absent
Present
Changed
The Boolean tests are comparison tests that are performed based on one of the following parameters:
Unequal
Equal
Less
Less Or Equal
Greater
Greater Or Equal
The threshold tests are performed based on the following parameters:
Rising
Falling
Rising or Falling
Examples
The following example shows how to enable the existence trigger test:
Router(config)# snmp mib event trigger owner owner1 name triggerA
Router(config-event-trigger)# test existence
Router(config-event-trigger-existence)#
The following example shows how to enable the Boolean trigger test:
Router(config)# snmp mib event trigger owner owner1 name EventA
Router(config-event-trigger)# test boolean
Router(config-event-trigger-boolean)#
The following example shows how to enable the threshold trigger test:
Router(config)# snmp mib event trigger owner owner1 name triggerA
Router(config-event-trigger)# test threshold
Router(config-event-trigger-threshold)#
Related Commands
Command
Description
comparison
Specifies the type of Boolean comparison to be performed.
eventowner
Specifies the event owner for an event trigger according to the trigger type and status of the trigger.
objectlist
Configures a list of objects during an event.
startup
Specifies whether an event can be triggered for the Boolean, existence, or threshold trigger test.
value
Sets a value for the Boolean trigger test.
test snmp trap auth-framwork sec-violation
To test CISCO-AUTH-FRAMEWORK-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the testsnmptrapauth-framworksec-violationcommand in priveleged EXEC mode.
testsnmptrapauth-framworksec-violation
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default setting.
Command Modes
Privileged EXEC mode
Command History
Release
Modification
12.2(33)SXI
This command was introduced on the Supervisor Engine 720.
Examples
This example shows the output of the SNMP camSecurityViolationNotif trap when it is not configured:
Router# testsnmp trap auth-framework sec-violation
cafSecurityViolationNotif was disabled.
Router#
This example shows the output of the SNMP camSecurityViolationNotif trap when it is configured:
Router# testsnmp trap auth-framework sec-violation
cafSecurityViolationNotif was sent.
Router#
test snmp trap bridge
To test BRIDGE-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the testsnmptrapbridgecommand in priveleged EXEC mode.
testsnmptrapbridge
{ newroot | topologychange }
Syntax Description
newroot
Tests SNMP newRoot notifications.
topologychange
Tests SNMP topologyChange notifications.
Command Default
This command has no default setting.
Command Modes
Priveleged EXEC mode
Command History
Release
Modification
12.2(33)SXI
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of testsnmptrapbridgenewroot when snmp-server enable traps bridge newroot is not configured:
Router# testsnmp trap bridge newroot
newRoot notification is disabled.
Router#
This example shows the output of testsnmptrapbridgenewroot when snmp-server enable traps bridge newroot is configured:
Router# testsnmp trap bridge newroot
newRoot notification was sent.
Router#
Related Commands
Command
Description
snmp-serverenabletrapsbridge
Enables the SNMP BRIDGE-MIB notifications.
test snmp trap c6kxbar
To test CISCO-CAT6K-CROSSBAR-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the testsnmptrapc6kxbarcommand in priveleged EXEC mode.
The flowctrl-bus keyword is supported on the Supervisor Engine 32 only.
The tm-channel-above and tm-channel-below keywords are not supported on Supervisor Engine 32.
Examples
This example shows the output of the SNMP cc6kxbarFlowCtrlBusThrExcdNotif notification when it is not configured:
Router# testsnmp trap c6kxbar flowctrl-bus
cc6kxbarFlowCtrlBusThrExcdNotif notification is disabled.
Router#
This example shows the output of the SNMP cc6kxbarFlowCtrlBusThrExcdNotif notification when it is configured:
Router# testsnmp trap c6kxbar flowctrl-bus
cc6kxbarFlowCtrlBusThrExcdNotif notification was sent.
Router#
This example shows the output of the SNMP cc6kxbarIntBusCRCErrExcdNotif notification when it is not configured:
Router# testsnmp trap c6kxbar intbus-crcexcd
cc6kxbarIntBusCRCErrExcdNotif notification is disabled.
Router#
This example shows the output of the SNMP cc6kxbarIntBusCRCErrExcdNotif notification when it is configured:
Router# testsnmp trap c6kxbar intbus-crcexcd
cc6kxbarIntBusCRCErrExcdNotif notification was sent.
Router#
This example shows the output of the SNMP cc6kxbarIntBusCRCErrRcvrdNotif notification when it is not configured:
Router# test snmp trap c6kxbar intbus-crcvrd
cc6kxbarIntBusCRCErrExcdNotif notification is disabled.
Router#
This example shows the output of the SNMP cc6kxbarIntBusCRCErrRcvrdNotif notification when it is configured:
Router# test snmp trap c6kxbar intbus-crcvrd
cc6kxbarIntBusCRCErrExcdNotif notification was sent.
Router#
This example shows the output of the SNMP cc6kxbarSwBusStatusChangeNotif notification when it is not configured:
Router# test snmp trap c6kxbar swbus
cc6kxbarSwBusStatusChangeNotif notification is disabled.
Router#
This example shows the output of the SNMP cc6kxbarSwBusStatusChangeNotif notification when it is configured:
Router# test snmp trap c6kxbar swbus
cc6kxbarSwBusStatusChangeNotif notification was sent.
Router#
This example shows the output of the SNMP cc6kxbarTMChUtilAboveNotif notification when it is not configured:
Router# test snmp trap c6kxbar tm-channel-above
cc6kxbarTMChUtilAboveNotif notification is disabled.
Router#
This example shows the output of the SNMP cc6kxbarTMChUtilAboveNotif notification when it is configured:
Router# test snmp trap c6kxbar tm-channel-above
cc6kxbarTMChUtilAboveNotif notification was sent.
Router#
This example shows the output of the SNMP cc6kxbarTMChUtilBelowNotif notification when it is not configured:
Router# test snmp trap c6kxbar tm-channel-below
cc6kxbarTMChUtilBelowNotif notification is disabled.
Router#
This example shows the output of the SNMP cc6kxbarTMChUtilBelowNotif notification when it is configured:
Router# test snmp trap c6kxbar tm-channel-below
cc6kxbarTMChUtilBelowNotif notification was sent.
Router#
This example shows the output of the SNMP cc6kxbarTMSwBusUtilAboveNotif notification when it is not configured:
Router# test snmp trap c6kxbar tm-swbus-above
cc6kxbarTMSwBusUtilAboveNotif notification is disabled.
Router#
This example shows the output of the SNMP cc6kxbarTMSwBusUtilAboveNotif notification when it is configured:
Router# test snmp trap c6kxbar tm-swbus-above
cc6kxbarTMSwBusUtilAboveNotif notification was sent.
Router#
This example shows the output of the SNMP cc6kxbarTMSwBusUtilBelowNotif notification when it is not configured:
Router# test snmp trap c6kxbar tm-swbus-below
cc6kxbarTMSwBusUtilBelowNotif notification is disabled.
Router#
This example shows the output of the SNMP cc6kxbarTMSwBusUtilBelowNotif notification when it is configured:
Router# test snmp trap c6kxbar tm-swbus-below
cc6kxbarTMSwBusUtilBelowNotif notification was sent.
Router#
Related Commands
Command
Description
snmp-serverenabletrapsc6kxbar
Enables the SNMP c6kxbar notification traps.
test snmp trap call-home
To test CISCO-CALLHOME-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the testsnmptrapcall-homecommand in priveleged EXEC mode.
This command was introduced on the Supervisor Engine 720.
Examples
This example shows the output of the SNMP ccmSmtpMsgSendFailNotif notification when it is not configured:
Router# testsnmp trap call-home message-send-fail
ccmSmtpMsgSendFailNotif notification is disabled.
Router#
This example shows the output of the SNMP ccmSmtpMsgSendFailNotif notification when it is configured:
Router# testsnmp trap call-home message-send-fail
ccmSmtpMsgSendFailNotif notification was sent.
Router#
This example shows the output of the SNMP ccmSmtpServerFailNotif notification when it is not configured:
Router# testsnmp trap call-home server-fail
ccmSmtpServerFailNotif notification is disabled.
Router#
This example shows the output of the SNMP ccmSmtpServerFailNotif notification when it is configured:
Router# testsnmp trap call-home server-fail
ccmSmtpServerFailNotif notification was sent.
Router#
test snmp trap config-copy
To verify the reception of config-copy notifications by the Network Management System (NMS) or the Simple Network Management Protocol (SNMP) manager in a simulated scenario, use thetestsnmptrapconfig-copy command in privileged EXEC mode.
testsnmptrapconfig-copy
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC (#)
Command History
Release
Modification
12.2(33)SXI
This command was introduced.
12.2(33)SRE
This command was integrated into Cisco IOS Release 12.2(33)SRE.
Usage Guidelines
The Config-Copy MIB facilitates the copying of SNMP agent configuration files to the startup configuration or the local Cisco IOS file system, and vice versa. The config-copy notifications are sent to the NMS or the SNMP manager to indicate the successful completion of config-copy operation to or from the SNMP agent.
Examples
The following example shows how to simulate the verification of config-copy traps:
Displays information about every SNMP packet sent or received by the router.
snmp-serverenabletraps
Enables all SNMP notification types that are available on your system.
snmp-serverhost
Specifies the recipient of an SNMP notification operation.
test snmp trap dhcp bindings
To test the cdsBindingsNotification trap, use the testsnmptrapdhcpbindingsEXEC command.
testsnmptrapdhcpbindings
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default settings.
Command Modes
Privileged EXEC mode
Command History
Release
Modification
12.2(33)SXI
Support for this command was introduced on the Catalyst 6500 series switch.
Examples
This example shows how to test the cdsBindingsNotification traps:
Router# test snmp trap dhcp bindings
cdsBindingsNotification notification is disabled.
test snmp trap dhcp-snooping bindings
To test the cdsBindingsNotification trap, use the testsnmptrapdhcp-snoopingbindingsprivileged EXEC command.
testsnmptrapdhcp-snoopingbindings
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default settings.
Command Modes
Privileged EXEC mode
Command History
Release
Modification
12.2(33)SXI4
Support for this command was introduced on the Catalyst 6500 series.
Examples
This example shows how to test the cdsBindingsNotification trap:
Router# test snmp trap dhcp-snooping bindings
cdsBindingsNotification notification is disabled.
test snmp trap dot1x
To test CISCO-PAE-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the testsnmptrapdot1xcommand in priveleged EXEC mode.
This command was introduced on the Supervisor Engine 720.
Examples
This example shows the output of the SNMP cpaeAuthFailVlanNotif notification when it is not configured:
Router# testsnmp trap dot1x auth-fail-vlan
cpaeAuthFailVlanNotif notification was disabled.
Router#
This example shows the output of the SNMP cpaeAuthFailVlanNotif notification when it is configured:
Router# testsnmp trap dot1x auth-fail-vlan
cpaeAuthFailVlanNotif notification was sent.
Router#
test snmp trap entity-diag
To test CISCO-ENTITY-DIAG-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the testsnmptrapc6kxbarcommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720.
Examples
This example shows the output of the SNMP ceDiagBootupFailedNotif notification when it is not configured:
Router# testsnmp trap entity-diag boot-up-fail
ceDiagBootupFailedNotif notification is disabled.
Router#
This example shows the output of the SNMP ceDiagBootupFailedNotif notification when it is configured:
Router# testsnmp trap entity-diag boot-up-fail
ceDiagBootupFailedNotif notification was sent.
Router#
This example shows the output of the SNMP ceDiagHMTestRecoverNotif notification when it is not configured:
Router# testsnmp trap dot1x hm-test-recover
ceDiagHMTestRecoverNotif notification is disabled.
Router#
This example shows the output of the SNMP ceDiagHMTestRecoverNotif notification when it is configured:
Router# testsnmp trap dot1x hm-test-recover
ceDiagHMTestRecoverNotif notification was sent.
Router#
This example shows the output of the SNMP ceDiagHMThresholdReachedNotif notification when it is not configured:
Router# test snmp trap entity-diag hm-thresh-reached
ceDiagHMThresholdReachedNotif notification is disabled.
Router#
This example shows the output of the SNMP ceDiagHMThresholdReachedNotif notification when it is configured:
Router# test snmp trap entity-diag hm-thresh-reached
ceDiagHMThresholdReachedNotif notification was sent.
Router#
This example shows the output of the SNMP ceDiagScheduledTestFailedNotif notification when it is not configured:
Router# test snmp trap entity-diag scheduled-test-fail
ceDiagHMThresholdReachedNotif notification is disabled.
Router#
This example shows the output of the SNMP ceDiagScheduledTestFailedNotif notification when it is configured:
Router# test snmp trap entity-diag scheduled-test-fail
ceDiagHMThresholdReachedNotif notification was sent.
Router#
test snmp trap errdisable ifevent
To test CISCO-ERR-DISABLE-MIB cErrDisableInterfaceEventRev1 Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptraperrdisableifeventcommand in priveleged EXEC mode.
testsnmptraperrdisableifevent
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default settings.
Command Modes
Privileged EXEC mode
Command History
Release
Modification
12.2(33)SXI4
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of testsnmptraperrdisableifevent when snmp-server enable traps errdisable is not configured:
Router# testsnmp trap errdisable ifevent
cErrDisableInterfaceEventRev1 notification is disabled.
Router#
This example shows the output of testsnmptraperrdisableifevent when snmp-server enable traps errdisable is configured:
Router# testsnmp trap errdisable ifevent
cErrDisableInterfaceEventRev1 notification was sent.
Router#
Related Commands
Command
Description
snmp-serverenabletrapserrdisable
Enables SNMP errdisable notifications.
test snmp trap flex-links status
To test CISCO-FLEX-LINKS-MIB cflIfStatusChangeNotif traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapflex-linksstatuscommand in priveleged EXEC mode.
testsnmptrapflex-linksstatus
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default settings.
Command Modes
Privileged EXEC mode
Command History
Release
Modification
12.2(33)SXI
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP cflIfStatusChangeNotif trap when it is not configured:
Router# testsnmp trap flex-links status
cflIfStatusChangeNotifnotification is disabled.
Router#
This example shows the output of the SNMP cflIfStatusChangeNotif trap when it is configured:
Router# testsnmp trap flex-links status
cflIfStatusChangeNotif notification was sent.
Router#
test snmp trap fru-ctrl
To test CISCO-ENTITY-FRU-CONTROL-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapfru-ctrlcommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the test SNMP cefcFRUInserted trap when it is not configured:
Router# testsnmp trap fru-ctrl insert
cefcFRUInserted notification is disabled.
Router#
This example shows the output of the SNMP cefcFRUInserted trap when it is configured:
Router# testsnmp trap fru-ctrl insert
cefcFRUInserted notification was sent.
Router#
test snmp trap l2-control vlan
To test CISCO-ENTITY-FRU-CONTROL-MIB clcVLANMacLimitNotif traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapl2-controlvlancommand in privileged EXEC mode.
testsnmptrapl2-controlvlan
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default settings.
Command Modes
Privileged EXEC mode
Command History
Release
Modification
12.2(33)SXI
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the clcVLANMacLimitNotif trap when it is not configured:
Router# testsnmp trap l2-control vlan
clcVLANMacLimitNotif notification is disabled.
Router#
This example shows the output of the SNMP clcVLANMacLimitNotif trap when it is configured:
Router# testsnmp trap l2-control vlan
clcVLANMacLimitNotif notification was sent.
Router#
test snmp trap l2tc
To test CISCO-L2-TUNNEL-CONFIG-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapl2tccommand in privileged EXEC mode.
testsnmptrapl2tc
{ drop | shutdown | sys-threshold }
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the cltcTunnelDropThresholdExceeded trap when it is not configured:
Router# testsnmp trap l2tc drop
cltcTunnelDropThresholdExceeded notification is disabled.
Router#
This example shows the output of the SNMP cltcTunnelDropThresholdExceeded trap when it is configured:
Router# testsnmp trap l2tc drop
cltcTunnelDropThresholdExceeded notification was sent.
Router#
test snmp trap mac-notification
To test CISCO-MAC-NOTIFICATION-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapmac-notificationcommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP cmnMacChangeNotification trap when it is not configured:
Router# testsnmp trap mac-notification change
cmnMacChangeNotification notification is disabled.
Router#
This example shows the output of the SNMP cmnMacChangeNotification trap when it is configured:
Router# testsnmp trap mac-notification change
cmnMacChangeNotification notification was sent.
Router#
test snmp trap module-auto-shutdown
To test CISCO-MODULE-AUTO-SHUTDOWN-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapmodule-auto-shutdowncommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP cmasModuleAutoShutdown trap when it is not configured:
Router# testsnmp trap module-auto-shutdown auto-shutdown
cmasModuleAutoShutdown notification is disabled.
Router#
This example shows the output of the SNMP cmasModuleAutoShutdown trap when it is configured:
Router# testsnmp trap module-auto-shutdown auto-shutdown
cmasModuleAutoShutdown notification is sent.
Router#
test snmp trap port-security
To test CISCO-PORT-SECURITY-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapport-securitycommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP cpsIfVlanSecureMacAddrViolation trap when it is not configured:
Router# testsnmp trap port-security ifvlan-mac
cpsIfVlanSecureMacAddrViolation notification is disabled.
Router#
This example shows the output of the SNMP cpsIfVlanSecureMacAddrViolation trap when it is configured:
Router# testsnmp trap port-security ifvlan-mac
cpsIfVlanSecureMacAddrViolation notification was sent.
Router#
test snmp trap power-ethernet port-on-off
To test POWER-ETHERNET-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrappower-ethernetcommand in privieleged EXEC mode.
testsnmptrappower-ethernetport-on-off
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default settings.
Command Modes
Privileged EXEC mode
Command History
Release
Modification
12.2(33)SXI
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP pethPsePortOnOffNotification trap when it is not configured:
Router# testsnmp trap power-ethernet port-on-off
pethPsePortOnOffNotification notification is disabled.
Router#
This example shows the output of the SNMP pethPsePortOnOffNotification trap when it is configured:
Router# testsnmp trap power-ethernet port-on-off
pethPsePortOnOffNotification notification was sent.
Router#
test snmp trap snmp
To verify the reception of Simple Network Management Protocol (SNMP) notifications by the Network Management System (NMS) or the SNMP manager in a simulated scenario, use thetestsnmptrapsnmp command in privileged EXEC mode.
Verifies the generation and reception of the SNMP authentication failure notification by the SNMP manager. The authentication failure trap indicates that the SNMP agent has received a protocol message from the SNMP manager that is not properly authenticated.
coldstart
Verifies the generation and reception of the SNMP coldStart notifications by the SNMP manager. A coldStart trap indicates that the SNMP agent is reinitializing and its configuration may have changed.
linkup
Verifies the generation and reception of the SNMP linkUp notifications by the SNMP manager. A linkUp trap indicates if a communication link represented in the agent’s configuration is activated.
linkdown
Verifies the generation and reception of the SNMP linkDown notifications by the SNMP manager. A linkDown trap indicates if a communication link represented in the agent’s configuration fails.
warmstart
Verifies the generation and reception of the SNMP warmStart notifications by the SNMP manager. A warmStart trap indicates that the SNMP agent is reinitializing and its configuration is not modified.
Command Modes
Privileged EXEC (#)
Command History
Release
Modification
12.2(33)SXI
This command was introduced.
12.2(33)SRE
This command was integrated into Cisco IOS Release 12.2(33)SRE.
Usage Guidelines
SNMP traps or notifications provide information about improper user authentication, restarts, closing of a connection, loss of connection to a neighbor router, or other significant events to the NMS.
Before testing the SNMP traps, configure the SNMP manager for the device and enable SNMP traps.
Examples
The following example shows how to simulate the verification of the authentication failure trap:
Router#test snmp trap snmp authentication
Generating Authentication failure trap
Sep 12 08:37:49.935: SNMP: Queuing packet to 10.4.9.2
Sep 12 08:37:49.935: SNMP: V1 Trap, ent snmpTraps, addr 192.168.0.1, gentrap 4
lsystem.5.0 = 10.10.10.10
ciscoMgmt.412.1.1.1.0 = 1
ciscoMgmt.412.1.1.2.0 = 10.10.10.10
Sep 12 08:38:55.995: SNMP: Packet sent via UDP to 10.4.9.2
Sep 12 08:38:56.263: SNMP: Packet sent via UDP to 10.4.9.2
Related Commands
Command
Description
debug snmp packet
Displays information about every SNMP packet sent or received by the router.
snmp-serverenabletraps
Enables all SNMP notification types that are available on your system.
snmp-serverhost
Specifies the recipient of an SNMP notification operation.
test snmp trap stack
To test CISCO-STACK-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapstackcommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP chassisAlarmOff trap when it is not configured:
Router# testsnmp trap stack chassis-off
chassisAlarmOff notification is disabled.
Router#
This example shows the output of the SNMP chassisAlarmOff trap when it is configured:
Router# testsnmp trap stack chassis-off
chassisAlarmOff notification was sent.
Router#
test snmp trap storm-control
To test the Simple Network Management Protocol (SNMP) CISCO-PORT-STORM-CONTROL-MIB traps, use thetestsnmptrapstorm-controlcommand in privileged EXEC mode.
testsnmptrapstrom-controlevent-rev1
Syntax Description
event-rev1
Tests the cpscEventRev1 trap.
Command Modes
Privileged EXEC (#)
Command History
Release
Modification
12.2(33)SXJ
This command was introduced.
Usage Guidelines
SNMP traps or notifications provide information about storm-control events.
Examples
The following example shows how to test the SNMP CISCO-PORT-STORM-CONTROL-MIB trap:
Router#test snmp trap storm-control event-rev1
cpscEventRev1 notification was sent.
Router#
Related Commands
Command
Description
snmp-server enable traps storm-control
Enables SNMP storm-control trap notifications.
snmp-serverhost
Specifies the recipient of an SNMP notification operation.
test snmp trap stpx
To test CISCO-STP-EXTENSIONS-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapstpxcommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP stpxInconsistencyUpdate trap when it is not configured:
Router# testsnmp trap stpx inconsistency
stpxInconsistencyUpdate notification is disabled.
Router#
This example shows the output of the SNMP stpxInconsistencyUpdate trap when it is configured:
Router# testsnmp trap stpx inconsistency
stpxInconsistencyUpdate notification was sent.
Router#
test snmp trap syslog
To verify the reception of the system logging message Simple Network Management Protocol (SNMP) notifications by the SNMP manager in a simulated scenario, use the testsnmptrapsyslogcommand in privileged EXEC mode.
testsnmptrapsyslog
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC (#)
Command History
Release
Modification
12.2(33)SXI
This command was introduced.
12.2(33)SRE
This command was integrated into Cisco IOS Release 12.2(33)SRE.
Usage Guidelines
System logging messages are status notification messages that are generated by the routing device during operation. These messages are typically logged to a destination such as the terminal screen, or to a remote syslog host.
Examples
The following example shows how to replicate a syslog trap and its reception by the NMS:
Displays information about every SNMP packet sent or received by the router.
snmp-serverenabletraps
Enables all SNMP notification types that are available on your system.
snmp-serverhost
Specifies the recipient of an SNMP notification operation.
test snmp trap trustsec
To test CISCO-TRUSTSEC-MIB Simple Network Management Protocol (SNMP) notification (traps and informs), use the
test
snmp
trap
trustsec
command in privileged EXEC mode.
This example shows the output of the test SNMP ctsAuthzCacheFileErrNotif trap when it is not configured:
Device# test snmp trap trustsec authz-file-error
ctsAuthzCacheFileErrNotif notification is disabled.
This example shows the output of the test SNMP ctsAuthzCacheFileErrNotif trap when it is configured:
Device# test snmp trap trustsec authz-file-error
ctsAuthzCacheFileErrNotif notification was sent.
Related Commands
Command
Description
snmp-server enable traps trustsec
Enables SNMP trustsec notification traps and informs.
test snmp trap trustsec-interface
To test CISCO-TRUSTSEC-INTERFACE-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the
test
snmp
trap
trustsec-interface
command in privileged EXEC mode.
This example shows the output of the test SNMP ctsiIfAuthenticationFailNotif trap when it is not configured:
Device# test snmp trap trustsec-interface authc-fail
ctsiIfAuthenticationFailNotif notification is disabled.
This example shows the output of the test SNMP ctsiIfAuthenticationFailNotif trap when it is configured:
Device# test snmp trap trustsec-interface authc-fail
ctsiIfAuthenticationFailNotif notification was sent.
Related Commands
Command
Description
snmp-server enable traps trustsec-interface
Enables SNMP trustsec-interface notification traps and informs.
test snmp trap trustsec-policy
To test CISCO-TRUSTSEC-POLICY-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the
test
snmp
trap
trustsec-policy
command in privileged EXEC mode.
This example shows the output of the test SNMP ctspAuthorizationSgaclFailNotif trap when it is not configured:
Device# test snmp trap trustsec-policy authz-sgacl-fail
ctspAuthorizationSgaclFailNotif notification is disabled.
This example shows the output of the test SNMP ctspAuthorizationSgaclFailNotif trap when it is configured:
Device# test snmp trap trustsec-policy authz-sgacl-fail
ctspAuthorizationSgaclFailNotif notification was sent.
Related Commands
Command
Description
snmp-server enable traps trustsec-policy
Enables SNMP trustsec-policy notification traps and informs.
test snmp trap trustsec-server
To test CISCO-TRUSTSEC-SERVER-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the
test
snmp
trap
trustsec-server
command in privileged EXEC mode.
This example shows the output of the test SNMP ctsvNoProvisionSecretNotif trap when it is not configured:
Device# test snmp trap trustsec-server provision-secret
ctsvNoProvisionSecretNotif notification is disabled.
This example shows the output of the test SNMP ctsvNoProvisionSecretNotif trap when it is configured:
Device# test snmp trap trustsec-sxp-server provision-secret
ctsvNoProvisionSecretNotif notification was sent.
Related Commands
Command
Description
snmp-server enable traps trustsec-server
Enables SNMP trustsec-server notification traps and informs.
test snmp trap trustsec-sxp
To test CISCO-TRUSTSEC-SXP-MIB Simple Network Management Protocol (SNMP) notification (traps and informs), use the
test
snmp
trap
trustsec-sxp
command in privileged EXEC mode.
This example shows the output of the test SNMP ctsxSxpBindingConflictNotif trap when it is not configured:
Device# test snmp trap trustsec-sxp binding-conflict
ctsxSxpBindingConflictNotif notification is disabled.
This example shows the output of the test SNMP ctsxSxpBindingConflictNotif trap when it is configured:
Device# test snmp trap trustsec-sxp binding-conflict
ctsxSxpBindingConflictNotif notification was sent.
Related Commands
Command
Description
snmp-server enable traps trustsec-sxp
Enables SNMP trustsec-sxp notification traps and informs.
test snmp trap udld
To test CISCO-UDLDP-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the testsnmptrapudldcommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP cudldpFastHelloLinkFailRptNotification notification when it is not configured:
Router# testsnmp trap udld link-fail-rpt
cudldpFastHelloLinkFailRptNotification notification is disabled.
Router#
This example shows the output of the SNMP cudldpFastHelloLinkFailRptNotification notification when it is configured:
Router# testsnmp trap udld link-fail-rpt
cudldpFastHelloLinkFailRptNotification notification was sent.
Router#
test snmp trap vswitch dual-active
To test whether the CISCO-VIRTUAL-SWITCH-MIB Simple Network Management Protocol (SNMP) notification (trap) can be generated in the dual-active state, use the
testsnmptrapvswitchdual-active command in privileged EXEC mode.
testsnmptrapvswitchdual-active
Syntax Description
This command has no keywords or arguments.
Command Default
The CISCO-VIRTUAL-SWITCH-MIB SNMP notification is not sent.
Command Modes
Privileged EXEC (#)
Command History
Release
Modification
15.1(1)SY
This command was introduced.
Usage Guidelines
The
snmp-serverenabletrapsvswitchdual-active command enables the dual-active state change notification. When the VSS changes state to dual-active, the SNMP agent sends the cvsDualActiveDetectionNotif notification.
Enable the
snmp-serverenabletrapsvswitchdual-active command before running the
testsnmptrapvswitchdual-active command.
Examples
The following is sample output from the
testsnmptrapvswitchdual-active command when the SNMP cvsDualActiveDetectionNotif notification is enabled:
Device(config)# snmp-server enable traps vswitch dual-active
Device(config)# exit
Device# test snmp trap vswitch dual-active
cvsDualActiveDetectionNotif notification was sent.
The following is sample output from the
testsnmptrapvswitchdual-active command when the SNMP cvsDualActiveDetectionNotif notification is disabled:
Device(config)# no snmp-server enable traps vswitch dual-active
Device(config)# exit
Device# test snmp trap vswitch dual-active
cvsDualActiveDetectionNotif notification is disabled.
Related Commands
Command
Description
snmp-serverenabletrapsvswitchdual-active
Enables the CISCO-VIRTUAL-SWITCH-MIB SNMP cvsDualActiveDetectionNotif notification.
testsnmptrapvswitchvsl
Tests the CISCO-VIRTUAL-SWITCH-MIB SNMP notification (trap and inform).
test snmp trap vswitch vsl
To test CISCO-VIRTUAL-SWITCH-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the
testsnmptrapvswitchvslcommand in privileged EXEC mode.
testsnmptrapvswitchvsl
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default setting.
Command Modes
Privileged EXEC mode
Command History
Release
Modification
12.2(33)SXI
This command was introduced on the Supervisor Engine 720.
Examples
This example shows the output of the SNMP cvsVSLConnectionChangeNotif notification when it is not enabled:
Router# testsnmp trap vswitch vsl
cvsVSLConnectionChangeNotif notification is disabled.
Router#
This example shows the output of the SNMP cvsVSLConnectionChangeNotif notification when it is enabled:
Router# testsnmp trap vswitch vsl
cvsVSLConnectionChangeNotif notification was sent.
Router#
test snmp trap vtp
To test CISCO-VTP-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the testsnmptrapvtpcommand in privileged EXEC mode.
This command was introduced on the Supervisor Engine 720 and Supervisor Engine 32.
Examples
This example shows the output of the SNMP vtpConfigDigestError trap when it is not configured:
Router# testsnmp trap vtp digest-error
vtpConfigDigestError notification is disabled.
Router#
This example shows the output of the SNMP vtpConfigDigestError trap when it is configured:
Router# testsnmp trap vtp digest-error
vtpConfigDigestError notification was sent.
Router#
test snmp trap vtp pruning-change
To test the vtpPruningStateOperChange trap, use the testsnmptrapvtppruning-changeEXEC command.
testsnmptrapvtppruning-change
Syntax Description
This command has no keywords or arguments.
Command Default
This command has no default settings.
Command Modes
EXEC mode
Command History
Release
Modification
12.2(33)SXI4
Support for this command was introduced on the Catalyst 6500 series.
Examples
This example shows that testing the vtpPruningStateOperChange cannot occur without first enabling SNMP VTP traps:
Router# test snmp trap vtp pruning-change
vtpPruningStateOperChange notification is disabled.
This example shows how to test the vtpPruningStateOperChange:
Router# test snmp trap vtp pruning-change
vtpPruningStateOperChange notification is sent.
Related Commands
Command
Description
snmp-server enable traps vtp
Enables SNMP VTP traps.
type (test existence)
To specify the type of existence trigger test to perform, use the
type command in event trigger existence configuration mode. To disable the specified trigger test type, use the
no form of this command.
type
{ present | absent | changed }
notype
{ present | absent | changed }
Syntax Description
present
Specifies whether the trigger conditions for the existence test are present.
absent
Specifies whether the trigger conditions for the existence test are absent.
changed
Specifies whether the trigger conditions for the existence test are changed.
Command Default
By default, both present and absent tests are performed.
Command Modes
Event trigger existence configuration (config-event-trigger-existence)
Command History
Release
Modification
12.4(20)T
This command was introduced.
12.2(33)SRE
This command was integrated into Cisco IOS Release 12.2(33)SRE.
12.2(50)SY
This command was integrated into Cisco IOS Release 12.2(50)SY.
Usage Guidelines
The existence trigger tests are performed based on the following parameters:
Absent
Present
Changed
When the test type is not specified, both present and absent tests are performed.
Examples
The following example shows how to specify the existence trigger test as present:
Router(config)#snmp mib event trigger owner owner1 name triggerA
Router(config-event-trigger)# test existence
Router(config-event-trigger-existence)# type present
Router(config-event-trigger-existence)# end
Related Commands
Command
Description
test
Enables a trigger test.
url (bulkstat)
To specify the host to which bulk statistics files should be transferred, use the url command in Bulk Statistics Transfer configuration mode. To remove a previously configured destination host, use the no form of this command.
url
{ primary | secondary }
url
nourl
{ primary | secondary }
Syntax Description
primary
Specifies the URL to be used first for bulk statistics transfer attempts.
secondary
Specifies the URL to be used for bulk statistics transfer attempts if the transfer to the primary URL is not successful.
url
Destination URL address for the bulk statistics file transfer. Use FTP, RCP, or TFTP. The Cisco IOS File System (IFS) syntax for these URLs is as follows:
Bulk Statistics Transfer configuration (config-bulk-tr)
Command History
Release
Modification
12.0(24)S
This command was introduced.
12.3(2)T
This command was integrated into Cisco IOS Release 12.3(2)T.
12.2(25)S
This command was integrated into Cisco IOS Release 12.2(25)S.
12.2(33)SRA
This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2(33)SXH
This command was integrated into Cisco IOS Release 12.2(33)SXH.
12.2(33)SB
This command was integrated into Cisco IOS Release 12.2(33)SB.
Cisco IOS XE Release 2.1
This command was integrated into Cisco IOS Release XE 2.1.
Usage Guidelines
For bulk statistics transfer retry attempts, a single retry consists of an attempt to send first to the primary URL, and then to the secondary URL.
Examples
In the following example, an FTP server is used as the primary destination for the bulk statistics file. If a transfer to that address fails, an attempt is made to send the file to the TFTP server at 192.168.10.5. No retry command is specified, which means that only one attempt to each destination will be made.
Configures the number of retries that should be attempted for sending bulk statistics files.
snmpmibbulkstattransfer
Names a bulk statistics transfer configuration and enters Bulk Statistics Transfer configuration mode.
value (test boolean)
To set a value for the Boolean trigger test, use the
value command in event trigger boolean configuration mode. To disable the configured settings, use the
no form of this command.
valueinteger-value
novalue
Syntax Description
integer-value
Numerical value to set for the Boolean test. The default is 0.
This command was integrated into Cisco IOS Release 12.2(33)SRE.
12.2(50)SY
This command was integrated into Cisco IOS Release 12.2(50)SY.
Usage Guidelines
The
value command specifies the value to be set for the Boolean trigger test.
Examples
The following example shows how to set a value for the Boolean trigger test:
Router(config)# snmp mib event trigger owner owner1 name triggerA
Router(config-event-trigger)# test boolean
Router(config-event-trigger-boolean)# value 10
Router(config-event-trigger-boolean)# end
Related Commands
Command
Description
test
Enables a trigger test.
value type
To specify the type of expression to use during object sampling, use the
valuetype command in expression configuration mode. To disable the specified value type, use the
no form of this command.
(Optional) Specifies a counter32 value. Counter32 specifies a value that represents a count. The value ranges from 0 to 4294967295.
unsigned32
(Optional) Specifies an unsigned integer value. Unsigned32 specifies a value that includes only non-negative integers. The value ranges from 0 to 4294967295.
timeticks
(Optional) Specifies a value based on timeticks. Timeticks represents a non-negative integer value that specifies the elapsed time between two events, in units of hundredth of a second.
When objects in the MIB are defined using the subset of Abstract Syntax Notation One (ASN.1), the description of the object type identifies this reference period.
integer32
(Optional) Specifies an integer32 value. The Integer32 represents 32-bit signed integer values for the Simple Network Management Protocol (SNMP). The value range includes both negative and positive numbers.
ipaddress
(Optional) Specifies a value based on the IP address. The IP address is a string of four octets. The IP address value type is generally an IPv4 address. This value is encoded as four bytes in the network byte order.
octetstring
(Optional) Specifies a value based on octetstring. The octetstring specifies octets of binary or textual information. The octet string length ranges from 0 to 65535 octets.
objectid
(Optional) Specifies a value based on the object identifier of an object. Each object type in a MIB is identified by an object identifier value assigned by the administrator. The object identifier identifies the value type that has an assigned object identifier value.
counter64
(Optional) Specifies a counter64 value. Counter64, like counter32, specifies a value that represents a count. However, the counter64 value ranges from 0 to 18446744073709551615. This value type is used when a 32-bit counter rollover occurs in less than an hour.
Command Default
The default value type is counter32.
Command Modes
Expression configuration mode (config-expression)
Command History
Release
Modification
12.4(20)T
This command was introduced.
12.2(33)SRE
This command was integrated into Cisco IOS Release 12.2(33)SRE.
12.2(50)SY
This command was integrated into Cisco IOS Release 12.2(50)SY.
Usage Guidelines
The
valuetype command specifies a value for expression evaluation.
Examples
The following example shows how to specify the counter32 value type:
Router(config)# snmp mib expression owner owner1 name ExpressionA
Router(config-expression)# value type counter32
Router(config-expression)# end
Related Commands
Command
Description
snmpmibexpressionowner
Specifies the owner for an expression.
wildcard (expression)
To specify whether an object used for evaluating an expression is to be wildcarded during an event configuration, use the
wildcard command in expression configuration mode. To remove the wildcard object identifier, use the
no form of this command.
wildcard
nowildcard
Syntax Description
This command has no arguments or keywords.
Command Default
This command is enabled by default.
Command Modes
Expression configuration (config-expression)
Command History
Release
Modification
12.4(20)T
This command was introduced.
12.2(50)SY
This command was integrated into Cisco IOS Release 12.2(50)SY.
Usage Guidelines
The
wildcard command allows you to apply a single expression to multiple instances of the same MIB object. When you specify this choice and provide a partial object identifier, the application obtains the object values and discovers the instances of the object. By default, the objects are identified based on instances and are not wildcarded.
Examples
The following example shows how to specify the wildcard object identifier by using the
wildcard command:
Router(config)# snmp mib expression owner owner1 name expression1
Router(config-expression)#object 2
Router(config-expression-object)# wildcard
Router(config-expression-object)# end
Related Commands
Command
Description
object id
Specifies the object identifier of an object associated with an event.
snmpmibexpressionowner
Specifies the owner of an expression.
write mib-data
To save MIB data to system memory (NVRAM) for MIB Data Persistence, use the writemib-datacommand in EXEC mode.
writemib-data
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC (#)
Command History
Release
Modification
15.0(1)M
This command was introduced in a release earlier than Cisco IOS Release 15.0(1)M.
12.2(33)SRC
This command was integrated into a release earlier than Cisco IOS Release 12.2(33)SRC.
12.2(33)SXI
This command was integrated into a release earlier than Cisco IOS Release 12.2(33)SXI.
Cisco IOS XE Release 2.1
This command was implemented on the Cisco ASR 1000 Series Aggregation Services Routers.
Usage Guidelines
The MIB Data Persistence feature allows the SNMP data of a MIB to be persistent across reloads; that is, the values of certain MIB objects are retained even if your networking device reboots.
To determine which MIBs support “MIB Persistence” in your release, use the snmpmibpersist command in global configuration mode.
Any modified MIB data must be written to NVRAM memory using the writemib-data command. If the writemib-data command is not used, modified MIB data is not saved automatically, even if MIB Persistence is enabled. Executing the writemib-data command saves only the current MIB data; if the MIB object values are changed, you should reenter the writemib-data command to ensure that those values are persistent across reboots.
Examples
The following example shows the enabling of event MIB persistence, circuit MIB persistence, and saving the changes to set object values for these MIBs to NVRAM: