这是个什么命题?!没办法,有时候需要用到这种方式
首先去cisco交换机配置:
1snmp-server community private RW
2snmp-server system-shutdown
然后在linux机器上执行:
1# snmpset -v 2c -c private 192.168.1.1 .1.3.6.1.4.1.9.2.9.9.0 i 2
2
3!--- This is an explanation of the variables that this command uses.
4
5 10.16.99.55 = ip address of your router
6 private = R/W SNMP Community string of your router
7.1.3.6.1.4.1.9.2.9.9.0 = tsMsgSend SNMP MIB OID
8 i = Integer as defined SYNTAX in the MIB
9 2 = reload command as defined in the MIB
最后,Fuck Cisco!!!