![]() |
Cisco IOS SNMP Support Command Reference
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
startup test boolean through write mib-data
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contents
startup (test boolean) through write mib-data startup (test boolean)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. Usage GuidelinesThe startup command triggers an event when the conditions specified for the Boolean trigger test are met. 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. Usage GuidelinesThe startup command triggers an event when the conditions specified for the existence trigger test are met. 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. Syntax Description
Command DefaultThe rising or falling threshold value is checked against the set value during startup when the trigger type is threshold. Usage GuidelinesThe startup command starts an event when conditions for the threshold trigger test are met. 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. Usage GuidelinesThe 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: The Boolean tests are comparison tests that are performed based on one of the following parameters: The threshold tests are performed based on the following parameters: ExamplesThe 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
test snmp trap auth-framwork sec-violationTo test CISCO-AUTH-FRAMEWORK-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the test snmp trap auth-framwork sec-violationcommand in priveleged EXEC mode. ExamplesThis example shows the output of the SNMP camSecurityViolationNotif trap when it is not configured: Router# test snmp trap auth-framework sec-violation cafSecurityViolationNotif was disabled. Router# This example shows the output of the SNMP camSecurityViolationNotif trap when it is configured: Router# test snmp trap auth-framework sec-violation cafSecurityViolationNotif was sent. Router# test snmp trap bridgeTo test BRIDGE-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the test snmp trap bridgecommand in priveleged EXEC mode. ExamplesThis example shows the output of test snmp trap bridge newroot when snmp-server enable traps bridge newroot is not configured: Router# test snmp trap bridge newroot newRoot notification is disabled. Router# This example shows the output of test snmp trap bridge newroot when snmp-server enable traps bridge newroot is configured: Router# test snmp trap bridge newroot newRoot notification was sent. Router# test snmp trap c6kxbarTo test CISCO-CAT6K-CROSSBAR-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the test snmp trap c6kxbarcommand in priveleged EXEC mode.
test
snmp
trap
c6kxbar
{flowctrl-bus | intbus-crccvrd | intbus-crcexcd | swbus | tm-channel-above | tm-channel-below | tm-swbus-above | tm-swbus-below}
Syntax Description
Usage GuidelinesThe 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. ExamplesThis example shows the output of the SNMP cc6kxbarFlowCtrlBusThrExcdNotif notification when it is not configured: Router# test snmp trap c6kxbar flowctrl-bus cc6kxbarFlowCtrlBusThrExcdNotif notification is disabled. Router# This example shows the output of the SNMP cc6kxbarFlowCtrlBusThrExcdNotif notification when it is configured: Router# test snmp 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# test snmp trap c6kxbar intbus-crcexcd cc6kxbarIntBusCRCErrExcdNotif notification is disabled. Router# This example shows the output of the SNMP cc6kxbarIntBusCRCErrExcdNotif notification when it is configured: Router# test snmp 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#
test snmp trap call-homeTo test CISCO-CALLHOME-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the test snmp trap call-homecommand in priveleged EXEC mode. ExamplesThis example shows the output of the SNMP ccmSmtpMsgSendFailNotif notification when it is not configured: Router# test snmp 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# test snmp 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# test snmp 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# test snmp trap call-home server-fail ccmSmtpServerFailNotif notification was sent. Router# test snmp trap config-copyTo 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 the test snmp trap config-copy command in privileged EXEC mode. Usage GuidelinesThe 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. ExamplesThe following example shows how to simulate the verification of config-copy traps:
Router#
test snmp trap config-copy
Generating CONFIG-COPY-MIB trap
00:20:44: SNMP: Queuing packet to 10.2.14.2
00:20:44: SNMP: V2 Trap, reqid 2, errstat 0, erridx 0
sysUpTime.0 = 124470
snmpTrapOID.0 = ccCopyMIBTraps.1
ccCopyTable.1.5.2 = 10.10.10.10
ccCopyTable.1.6.2 =
ccCopyTable.1.10.2 = 3
ccCopyTable.1.11.2 = 124470
ccCopyTable.1.12.2 = 124470
Router#
test snmp trap dhcp-snooping bindingstest snmp trap dot1xTo test CISCO-PAE-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the test snmp trap dot1xcommand in priveleged EXEC mode. ExamplesThis example shows the output of the SNMP cpaeAuthFailVlanNotif notification when it is not configured: Router# test snmp 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# test snmp trap dot1x auth-fail-vlan cpaeAuthFailVlanNotif notification was sent. Router# test snmp trap entity-diagTo test CISCO-ENTITY-DIAG-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the test snmp trap c6kxbarcommand in privileged EXEC mode.
test
snmp
trap
entity-diag
{boot-up-fail | hm-test-recover | hm-thresh-reached | scheduled-test-fail}
ExamplesThis example shows the output of the SNMP ceDiagBootupFailedNotif notification when it is not configured: Router# test snmp 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# test snmp 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# test snmp 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# test snmp 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 ifeventTo test CISCO-ERR-DISABLE-MIB cErrDisableInterfaceEventRev1 Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap errdisable ifeventcommand in priveleged EXEC mode. ExamplesThis example shows the output of test snmp trap errdisable ifevent when snmp-server enable traps errdisable is not configured: Router# test snmp trap errdisable ifevent cErrDisableInterfaceEventRev1 notification is disabled. Router# This example shows the output of test snmp trap errdisable ifevent when snmp-server enable traps errdisable is configured: Router# test snmp trap errdisable ifevent cErrDisableInterfaceEventRev1 notification was sent. Router# test snmp trap flex-links statusTo test CISCO-FLEX-LINKS-MIB cflIfStatusChangeNotif traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap flex-links statuscommand in priveleged EXEC mode. ExamplesThis example shows the output of the SNMP cflIfStatusChangeNotif trap when it is not configured: Router# test snmp trap flex-links status cflIfStatusChangeNotifnotification is disabled. Router# This example shows the output of the SNMP cflIfStatusChangeNotif trap when it is configured: Router# test snmp trap flex-links status cflIfStatusChangeNotif notification was sent. Router# test snmp trap fru-ctrlTo test CISCO-ENTITY-FRU-CONTROL-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap fru-ctrlcommand in privileged EXEC mode. ExamplesThis example shows the output of the test SNMP cefcFRUInserted trap when it is not configured: Router# test snmp trap fru-ctrl insert cefcFRUInserted notification is disabled. Router# This example shows the output of the SNMP cefcFRUInserted trap when it is configured: Router# test snmp trap fru-ctrl insert cefcFRUInserted notification was sent. Router# test snmp trap l2-control vlanTo test CISCO-ENTITY-FRU-CONTROL-MIB clcVLANMacLimitNotif traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap l2-control vlancommand in privileged EXEC mode. ExamplesThis example shows the output of the clcVLANMacLimitNotif trap when it is not configured: Router# test snmp trap l2-control vlan clcVLANMacLimitNotif notification is disabled. Router# This example shows the output of the SNMP clcVLANMacLimitNotif trap when it is configured: Router# test snmp trap l2-control vlan clcVLANMacLimitNotif notification was sent. Router# test snmp trap l2tcTo test CISCO-L2-TUNNEL-CONFIG-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap l2tccommand in privileged EXEC mode. ExamplesThis example shows the output of the cltcTunnelDropThresholdExceeded trap when it is not configured: Router# test snmp trap l2tc drop cltcTunnelDropThresholdExceeded notification is disabled. Router# This example shows the output of the SNMP cltcTunnelDropThresholdExceeded trap when it is configured: Router# test snmp trap l2tc drop cltcTunnelDropThresholdExceeded notification was sent. Router# test snmp trap mac-notificationTo test CISCO-MAC-NOTIFICATION-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap mac-notificationcommand in privileged EXEC mode. ExamplesThis example shows the output of the SNMP cmnMacChangeNotification trap when it is not configured: Router# test snmp trap mac-notification change cmnMacChangeNotification notification is disabled. Router# This example shows the output of the SNMP cmnMacChangeNotification trap when it is configured: Router# test snmp trap mac-notification change cmnMacChangeNotification notification was sent. Router# test snmp trap module-auto-shutdownTo test CISCO-MODULE-AUTO-SHUTDOWN-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap module-auto-shutdowncommand in privileged EXEC mode. ExamplesThis example shows the output of the SNMP cmasModuleAutoShutdown trap when it is not configured: Router# test snmp 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# test snmp trap module-auto-shutdown auto-shutdown cmasModuleAutoShutdown notification is sent. Router# test snmp trap port-securityTo test CISCO-PORT-SECURITY-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap port-securitycommand in privileged EXEC mode. ExamplesThis example shows the output of the SNMP cpsIfVlanSecureMacAddrViolation trap when it is not configured: Router# test snmp 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# test snmp trap port-security ifvlan-mac cpsIfVlanSecureMacAddrViolation notification was sent. Router# test snmp trap power-ethernet port-on-offTo test POWER-ETHERNET-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap power-ethernetcommand in privieleged EXEC mode. ExamplesThis example shows the output of the SNMP pethPsePortOnOffNotification trap when it is not configured: Router# test snmp 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# test snmp trap power-ethernet port-on-off pethPsePortOnOffNotification notification was sent. Router# test snmp trap snmpTo 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 the test snmp trap snmp command in privileged EXEC mode. Syntax Description
Usage GuidelinesSNMP 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. ExamplesThe 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
test snmp trap stackTo test CISCO-STACK-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap stackcommand in privileged EXEC mode. ExamplesThis example shows the output of the SNMP chassisAlarmOff trap when it is not configured: Router# test snmp trap stack chassis-off chassisAlarmOff notification is disabled. Router# This example shows the output of the SNMP chassisAlarmOff trap when it is configured: Router# test snmp trap stack chassis-off chassisAlarmOff notification was sent. Router# test snmp trap storm-controlTo test the Simple Network Management Protocol (SNMP) CISCO-PORT-STORM-CONTROL-MIB traps, use the test snmp trap storm-controlcommand in privileged EXEC mode. test snmp trap stpxTo test CISCO-STP-EXTENSIONS-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap stpxcommand in privileged EXEC mode. ExamplesThis example shows the output of the SNMP stpxInconsistencyUpdate trap when it is not configured: Router# test snmp trap stpx inconsistency stpxInconsistencyUpdate notification is disabled. Router# This example shows the output of the SNMP stpxInconsistencyUpdate trap when it is configured: Router# test snmp trap stpx inconsistency stpxInconsistencyUpdate notification was sent. Router# test snmp trap syslogTo verify the reception of the system logging message Simple Network Management Protocol (SNMP) notifications by the SNMP manager in a simulated scenario, use the test snmp trap syslogcommand in privileged EXEC mode. Usage GuidelinesSystem 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. ExamplesThe following example shows how to replicate a syslog trap and its reception by the NMS:
Router# test snmp trap syslog
Generating SYSLOG-MIB Trap
00:07:25: SNMP: Queuing packet to 10.4.9.2
00:07:25: SNMP: V1 Trap, ent ciscoSyslogMIB.2, addr 192.16.12.8, gentrap 6, spectra
clogHistoryEntry.2.1 = TEST
clogHistoryEntry.3.1 = 5
clogHistoryEntry.4.1 = 1.3.6.1.4.1.9.9.10.1
clogHistoryEntry.5.1 = Syslog test trap
clogHistoryEntry.6.1 = 44596
00:07:25: SNMP: Queuing packet to 10.4.9.2
00:07:25: SNMP: V2 Trap, reqid 4, errstat 0, erridx 0
sysUpTime.0 = 44596
snmpTrapOID.0 = ciscoSyslogMIB.2.0.1
clogHistoryEntry.2.1 = TEST
clogHistoryEntry.3.1 = 5
clogHistoryEntry.4.1 = 1.3.6.1.4.1.9.9.10.1
clogHistoryEntry.5.1 = Syslog test trap
clogHistoryEntry.6.1 = 44596
test snmp trap udldTo test CISCO-UDLDP-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the test snmp trap udldcommand in privileged EXEC mode. ExamplesThis example shows the output of the SNMP cudldpFastHelloLinkFailRptNotification notification when it is not configured: Router# test snmp 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# test snmp trap udld link-fail-rpt cudldpFastHelloLinkFailRptNotification notification was sent. Router# test snmp trap vswitch vslTo test CISCO-VIRTUAL-SWITCH-MIB Simple Network Management Protocol (SNMP) notifications (traps and informs), use the test snmp trap vswitch vslcommand in privileged EXEC mode. ExamplesThis example shows the output of the SNMP cvsVSLConnectionChangeNotif notification when it is not configured: Router# test snmp trap vswitch vsl cvsVSLConnectionChangeNotif notification is disabled. Router# This example shows the output of the SNMP cvsVSLConnectionChangeNotif notification when it is configured: Router# test snmp trap vswitch vsl cvsVSLConnectionChangeNotif notification was sent. Router# test snmp trap vtpTo test CISCO-VTP-MIB traps Simple Network Management Protocol (SNMP) traps and informs, use the test snmp trap vtpcommand in privileged EXEC mode.
test
snmp
trap
vtp
{digest-error | mode-change | port-status | pruning-change | rev-error | server-disable | v1-detected | version-change | vlan-create | vlan-delete}
Syntax Description
ExamplesThis example shows the output of the SNMP vtpConfigDigestError trap when it is not configured: Router# test snmp trap vtp digest-error vtpConfigDigestError notification is disabled. Router# This example shows the output of the SNMP vtpConfigDigestError trap when it is configured: Router# test snmp trap vtp digest-error vtpConfigDigestError notification was sent. Router# test snmp trap vtp pruning-changeExamplesThis 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.
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. Usage GuidelinesThe existence trigger tests are performed based on the following parameters: When the test type is not specified, both present and absent tests are performed. 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. Syntax DescriptionCommand History
Usage GuidelinesFor 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. ExamplesIn 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. Router(config)# snmp mib bulkstat transfer ifMibTesting Router(config-bulk-tr)# schema carMibTesting1 Router(config-bulk-tr)# schema carMibTesting2 Router(config-bulk-tr)# format bulkBinary Router(config-bulk-tr)# transfer-interval 60 Router(config-bulk-tr)# buffer-size 10000 Router(config-bulk-tr)# url primary ftp://user2:pswd@192.168.10.5/functionality/ Router(config-bulk-tr)# url secondary tftp://user2@192.168.10.8/tftpboot/ Router(config-bulk-tr)# buffer-size 2500000 Router(config-bulk-tr)# enable Router(config-bulk-tr)# exit 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. value typeTo specify the type of expression to use during object sampling, use the value type command in expression configuration mode. To disable the specified value type, use the no form of this command.
value
type
[counter32 | unsigned32 | timeticks | integer32 | ipaddress | octetstring | objectid | counter64]
no
value
type
Syntax Description
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. Usage GuidelinesThe 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. write mib-dataTo save MIB data to system memory (NVRAM) for MIB Data Persistence, use the write mib-datacommand in EXEC mode. Command History
Usage GuidelinesThe 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 snmp mib persist command in global configuration mode. Any modified MIB data must be written to NVRAM memory using the write mib-data command. If the write mib-data command is not used, modified MIB data is not saved automatically, even if MIB Persistence is enabled. Executing the write mib-data command saves only the current MIB data; if the MIB object values are changed, you should reenter the write mib-data command to ensure that those values are persistent across reboots. ExamplesThe 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: Router# configure terminal Router(config)# snmp mib persist circuit Router(config)# snmp mib persist event Router(config)# end Router# write mib-data © 2012 Cisco Systems, Inc. All rights reserved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|