Cisco Snmp test: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 1: Zeile 1:
 
+
=Snmpwalk=
=CPU=
 
==Snmpwalk==
 
 
*snmpwalk -v2c -c public r1  | head -4
 
*snmpwalk -v2c -c public r1  | head -4
 
<pre>
 
<pre>
Zeile 9: Zeile 7:
 
Compiled Fri 04-Mar-11 06:49 by prod_rel_team"
 
Compiled Fri 04-Mar-11 06:49 by prod_rel_team"
 
</pre>
 
</pre>
 
==Snmpget==
 
*snmpget  -v2c -c public 10.0.10.99 .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=
 
<pre>
 
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
 
        }
 
</pre>
 
 
=Links=
 
*http://support.ipmonitor.com/mibs/CISCO-ENVMON-MIB/tree.aspx
 
*http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html
 

Aktuelle Version vom 9. Februar 2022, 10:53 Uhr

Snmpwalk

  • snmpwalk -v2c -c public r1 | head -4
iso.3.6.1.2.1.1.1.0 = STRING: "Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(24)T5, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Fri 04-Mar-11 06:49 by prod_rel_team"