Cisco Snmp: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 5: Zeile 5:
 
*R1(config)#exit
 
*R1(config)#exit
 
*R1#copy running-config startup-config
 
*R1#copy running-config startup-config
 
 
=CPU=
 
=CPU=
 
==Snmpwalk==
 
==Snmpwalk==
*snmpwalk  -v2c -c sysadm 192.168.240.100 .1.3.6.1.4.1.9.2.1.56
+
*snmpwalk  -v2c -c sysadm 10.0.10.199 .1.3.6.1.4.1.9.2.1.56
 
  iso.3.6.1.4.1.9.2.1.56.0 = INTEGER: 9
 
  iso.3.6.1.4.1.9.2.1.56.0 = INTEGER: 9
 
==Snmpget==
 
==Snmpget==

Version vom 11. November 2021, 13:52 Uhr

Cisco

  • R1#configure terminal
  • R1(config)#snmp-server community public RO
  • R1(config)#snmp-server community privat RW
  • R1(config)#exit
  • R1#copy running-config startup-config

CPU

Snmpwalk

  • snmpwalk -v2c -c sysadm 10.0.10.199 .1.3.6.1.4.1.9.2.1.56
iso.3.6.1.4.1.9.2.1.56.0 = INTEGER: 9

Snmpget

  • snmpget -v2c -c sysadm 192.168.240.100 .1.3.6.1.4.1.9.2.1.56.0
iso.3.6.1.4.1.9.2.1.56.0 = INTEGER: 9

Nagios oder Icinga

define command{
        command_name    check_cisco
        command_line    $USER1$/check_snmp -H  $HOSTADDRESS$ -C $ARG1$ -w $ARG1$ -c $ARG3$ -o $ARG4$
        }

define host {
        host_name  gigabit
        address    192.168.240.100
        use       generic-host
       }


define service{
        use                             generic-service
        host_name                       gigabit
        service_description             gigabit-cpuload
        check_command                   check_cisco!sysadm!85!90!1.3.6.1.4.1.9.2.1.56.0
        }

Links