A. Follow this procedure:
tsMsgSend = .1.3.6.1.4.1.9.2.9.9 from the OLD-CISCO-TS-MIB
tsMsgSend OBJECT-TYPE
-- FROM OLD-CISCO-TS-MIB
SYNTAX Integer { nothing(1), reload(2), messagedone(3), abort(4) }
MAX-ACCESS read-write
STATUS Mandatory
DESCRIPTION "Sends the message. The value determines what
to do after the message has completed."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) cisco(9)
local(2) lts(9) 9 }
On the Cisco router, you must set these commands to support the reload command:
snmp-server community private RW
snmp-server system-shutdown
This example reloads the router with IP address 10.16.99.55:
# ./snmpset 10.16.99.55 private .1.3.6.1.4.1.9.2.9.9.0 i 2
!--- This is an explanation of the variables that this command uses.
10.16.99.55 = ip address of your router
private = R/W SNMP Community string of your router
.1.3.6.1.4.1.9.2.9.9.0 = tsMsgSend SNMP MIB OID
i = Integer as defined SYNTAX in the MIB
2 = reload command as defined in the MIB
Wednesday, August 13, 2008
Reload a cisco router with use of SNMP
SNMP: Frequently Asked Questions About IOS Software - Cisco Systems
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment