Which OID snmp should I see if my printers and switches are running

I am new to snmp and I am trying to figure out what OID I should get / trap to see if my printers, switches (and servers) are working? I don't need to know the details - just a test. I successfully received a getbulk request (and on foot) from a device, both from bash and iReasoning MIB browser .

Edit:

Maybe,

.1.3.6.1.2.1.1.3.0
Name/OID: sysUpTime.0; Value (TimeTicks): 194 hours 43 seconds (69844352)

only used for this !? What happens when something goes wrong? - will it reset immediately? -or will he just stop counting? Or is it just the time since the last switch?

+3
source share
1 answer

Printers

Printer MIBv2, ...

sysUpTime.0 - OID, , , SNMP ( RFC 1213: MIB-II). , 99%, . sysUpTime , - ; , sysUpTime.0, 248 ( 32- ).

Ethernet

Ethernet sysDescr.0 sysUpTime.0; , up/down ... ifOperStatus, ifIndex, ifName, . ...

[mpenning@Hotcoffee ~]$ ## Walk ifName correlated to ifIndex
[mpenning@Hotcoffee ~]$ snmpwalk -v 2c -c Public 172.25.116.6 .1.3.6.1.2.1.31.1.1.1.1
iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "Fa0/0"
iso.3.6.1.2.1.31.1.1.1.1.2 = STRING: "Nu0"
[mpenning@Hotcoffee ~]$ ## Walk ifOperStatus (up==1)
[mpenning@Hotcoffee ~]$ snmpwalk -v 2c -c Public 172.25.116.6 .1.3.6.1.2.1.2.2.1.8
iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.8.2 = INTEGER: 1
[mpenning@Hotcoffee ~]$

, , "Fa0/0" (: 1) "Nu0" (: 2) ifOperStatus ""; - , OID .

, bash ; , Net-SNMP SNMP

+3

All Articles