# # Simple Network Managment Protocol # Write by Emelyanov Roman, ers@ers.msk.ru # 18.04.2001 # Reboot cisco snmpset .1.3.6.1.4.1.9.2.9.9.0 i 2 Need: read-write community In config file: snmp-server system-shutdown Log: none Download cisco config snmpset .1.3.6.1.4.1.9.2.1.55.1.2.3.4 string "cfg" Need: read-write community Ip address tftp server: 1.2.3.4 Log: Jul 6 10:41:43 10.0.1.1 134: %SYS-4-SNMP_WRITENET: SNMP WriteNet request. Writing current configuration to 10.0.1.2. Upload cisco config snmpset .1.3.6.1.4.1.9.2.1.53.1.2.3.4 string "cfg" Need: read-write community Ip address tftp server: 1.2.3.4 Log: Jul 6 10:42:34 10.0.1.1 138: %SYS-4-SNMP_HOSTCONFIGSET: SNMP hostConfigSet request. Loading configuration from 10.0.1.2. Jul 6 10:42:38 10.0.1.1 139: %SYS-5-CONFIG: Configured from cfg by console tftp from 10.0.1.2 Up-Down Interface snmpset .1.3.6.1.2.1.2.2.1.x i y where x 1-eth0,2-ser0,3-ser1,5-12-async1-8 y 1-up,2-down Disable routing snmpset .1.3.6.1.2.1.4.1.0 i 2 Need: read-write community View routing table snmpnetstat -r public Need: read community Remote netstat snmpnetstat -a public Need: read community Clear line snmpset .1.3.6.1.4.1.9.2.9.10.0 i x x - line Get CPU loading .1.3.6.1.4.1.9.2.1.56(57,58).0