Linux access to the sensor readings
Dear all
I am trying to access to the sensors' reading through snmp from a linux machine.
I enabled on the sensorcheck interface the snmp protocol and I managed to connect to it from my linux server:
[root@fotcluster2 ~]# snmpwalk -v2c -cpublic 10.208.130.18
SNMPv2-MIB::sysDescr.0 = STRING: Temperature & Sensor Gateway
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.17095
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (24358512) 2 days, 19:39:45.12
SNMPv2-MIB::sysContact.0 = STRING: http://www.serverscheck.com
SNMPv2-MIB::sysName.0 = STRING: SensorGateway
SNMPv2-MIB::sysLocation.0 = STRING: Data Center
However I am unable to find the reading of the sensors.
I've tried also to use the mib for the specific sensor but the results is rather puzzling to me:
[root@fotcluster2 ~]# snmpwalk -MALL -v2c -cpublic 10.208.130.18
No log handling enabled - turning on stderr logging
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (MTA-MIB): At line 0 in (none)
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
Cannot find module (SCTP-MIB): At line 0 in (none)
Cannot find module (RMON-MIB): At line 0 in (none)
Cannot find module (EtherLike-MIB): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
iso.3.6.1.2.1.1.1.0 = STRING: "Temperature & Sensor Gateway"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.17095
iso.3.6.1.2.1.1.3.0 = Timeticks: (24377211) 2 days, 19:42:52.11
iso.3.6.1.2.1.1.4.0 = STRING: "http://www.serverscheck.com"
iso.3.6.1.2.1.1.5.0 = STRING: "SensorGateway"
iso.3.6.1.2.1.1.6.0 = STRING: "Data Center"
Now the question is: can the reading be accessed in Linux without having to setup a trap (and hence a server who receives the trap)?
Regards
Antonio
I am trying to access to the sensors' reading through snmp from a linux machine.
I enabled on the sensorcheck interface the snmp protocol and I managed to connect to it from my linux server:
[root@fotcluster2 ~]# snmpwalk -v2c -cpublic 10.208.130.18
SNMPv2-MIB::sysDescr.0 = STRING: Temperature & Sensor Gateway
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.17095
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (24358512) 2 days, 19:39:45.12
SNMPv2-MIB::sysContact.0 = STRING: http://www.serverscheck.com
SNMPv2-MIB::sysName.0 = STRING: SensorGateway
SNMPv2-MIB::sysLocation.0 = STRING: Data Center
However I am unable to find the reading of the sensors.
I've tried also to use the mib for the specific sensor but the results is rather puzzling to me:
[root@fotcluster2 ~]# snmpwalk -MALL -v2c -cpublic 10.208.130.18
No log handling enabled - turning on stderr logging
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (MTA-MIB): At line 0 in (none)
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
Cannot find module (SCTP-MIB): At line 0 in (none)
Cannot find module (RMON-MIB): At line 0 in (none)
Cannot find module (EtherLike-MIB): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
iso.3.6.1.2.1.1.1.0 = STRING: "Temperature & Sensor Gateway"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.17095
iso.3.6.1.2.1.1.3.0 = Timeticks: (24377211) 2 days, 19:42:52.11
iso.3.6.1.2.1.1.4.0 = STRING: "http://www.serverscheck.com"
iso.3.6.1.2.1.1.5.0 = STRING: "SensorGateway"
iso.3.6.1.2.1.1.6.0 = STRING: "Data Center"
Now the question is: can the reading be accessed in Linux without having to setup a trap (and hence a server who receives the trap)?
Regards
Antonio
Comments
have you tried doing another walk and have it start with ".1.3.6" I can give you specific OID's if you need it or you can do an SNMP walk using our software on a windows platform and then list the OID's you want to access through your linux system and create scripts of SNMP get to access the specific values you need.