5

Cisco交换机通过snmp来重启

 7 months ago
source link: https://bajie.dev/posts/20240124-cisco_snmp_reboot/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Cisco交换机通过snmp来重启

2024-01-24 1 分钟阅读

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

首先去cisco交换机配置:

snmp-server community private RW  
snmp-server system-shutdown  

然后在linux机器上执行:

# snmpset -v 2c -c private 192.168.1.1 .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

最后,Fuck Cisco!!!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK