本檔案提供常見問題的答案,並指導使用者尋找有關SNMP和SNMP問題與Cisco裝置的相關有用資源。
A.執行以下程式:
sysReset = .1.3.6.1.4.1.9.2.9.9 from the CISCO-STACK-MIB.my sysReset OBJECT-TYPE -- FROM CISCO-STACK-MIB SYNTAX Integer { other(1), reset(2), resetMinDown(3) } MAX-ACCESS read-write STATUS Current DESCRIPTION "Writing reset(2) to this object resets the control logic of all modules in the system. Writing resetMinDown(3) to this object resets the system with the minimal system down time. The resetMinDown(3) is only supported in systems with redundant supervisors." ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) cisco(9) workgroup(5) ciscoStackMIB(1) systemGrp(1) 9 }在Cisco交換器上,必須設定set snmp community read-write private命令以支援reload命令。
以下示例使用IP地址10.16.99.55重新載入路由器:
# ./snmpset 10.16.99.55 private .1.3.6.1.4.1.9.2.9.9.0 i 2以下是之前使用的變數的解釋:
10.16.99.55 = ip address of your switch private = R/W SNMP Community string of your switch . 1.3.6.1.4.1.9.2.9.9.0 = the instance of sysReset Object i = Integer as defined SYNTAX in the MIB 2 = reload command as defined in the MIB