So you have a snmpd daemon running on some box and you want to retrieve information from it, there are 2 cool tools out there namely snmpwalk and snmpget, but you can use more advanced systems like nagios etc..
Check with a client with:
System UPTIME
arditi@blackbox:~$ snmpget -v 2c -c public 192.168.0.15 system.sysUpTime.0 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (45385010) 5 days, 6:04:10.10
Check installed packages on the system and version as well (it’s like rpm -qa)
snmpwalk -Ov -OQ -v2c -c public 192.168.0.15 .1.3.6.1.2.1.25.6.3.1.2
INFO
arditi@blackbox:~$ snmpwalk -Os -c public -v 2c 192.168.0.15 system
sysDescr.0 = STRING: Linux butters.localdomain 2.6.22.19-72.e19 #1 SMP Thu Nov 26 12:12:03 EST 2009 i686 sysObjectID.0 = OID: netSnmpAgentOIDs.10 sysUpTimeInstance = Timeticks: (45411055) 5 days, 6:08:30.55 sysContact.0 = STRING: butters <a.xxxx@xxx.xxx> sysName.0 = STRING: butters.localdomain sysLocation.0 = STRING: Unknown sysORLastChange.0 = Timeticks: (179) 0:00:01.79 sysORID.1 = OID: snmpFrameworkMIBCompliance sysORID.2 = OID: snmpMPDCompliance sysORID.3 = OID: usmMIBCompliance sysORID.4 = OID: snmpMIB sysORID.5 = OID: tcpMIB sysORID.6 = OID: ip sysORID.7 = OID: udpMIB sysORID.8 = OID: vacmBasicGroup sysORDescr.1 = STRING: The SNMP Management Architecture MIB. sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching. sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model. sysORDescr.4 = STRING: The MIB module for SNMPv2 entities sysORDescr.5 = STRING: The MIB module for managing TCP implementations sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations sysORDescr.7 = STRING: The MIB module for managing UDP implementations sysORDescr.8 = STRING: View-based Access Control Model for SNMP. sysORUpTime.1 = Timeticks: (178) 0:00:01.78 sysORUpTime.2 = Timeticks: (178) 0:00:01.78 sysORUpTime.3 = Timeticks: (178) 0:00:01.78 sysORUpTime.4 = Timeticks: (179) 0:00:01.79 sysORUpTime.5 = Timeticks: (179) 0:00:01.79 sysORUpTime.6 = Timeticks: (179) 0:00:01.79 sysORUpTime.7 = Timeticks: (179) 0:00:01.79 sysORUpTime.8 = Timeticks: (179) 0:00:01.79 arditi@blackbox:~$
IFTABLE
snmpwalk -v 2c -c public 192.168.0.15 1.3.6.1.2.1.2.2
Revisions
- 26 April, 2011 @ 10:00 [Current Revision] by Admir
- 26 April, 2011 @ 9:59 by Admir
- 26 April, 2011 @ 9:58 by Admir
No comments yet.