Cisco交换机通过snmp来重启

这是个什么命题?!没办法,有时候需要用到这种方式

首先去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!!!


Cisco 路由器的操作审计
Cisco Snmpv3的设置
comments powered by Disqus