[ale] SNMP on Linux (Debian)

Christopher Fowler cfowler at outpostsentinel.com
Wed Mar 12 09:01:53 EST 2003


Use net-snmp on the Linux box and use an NMS client.  
Just because there is a mib, does not mean that there is Linux support
for that mib.  In our case, we had to create our own MIB and we created
our own code to supply the data for that mib.

Net-SNMP has an RMON module, but currently there is not code in the
RMON (skeleton) module to provide useful data on a Linux host.  Any help
on that would be greatly appreciated by the folks at net-snmp.  I know
we discussed it many times before. And there have been many questions as
to why RMON gets do not supply any useful information.  

Here is my output

IF-MIB::ifNumber.0 = INTEGER: 3
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 10000000
IF-MIB::ifSpeed.3 = Gauge32: 10000000
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:e0:81:20:2b:10
IF-MIB::ifPhysAddress.3 = STRING: 0:e0:81:20:2b:11
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifInOctets.1 = Counter32: 15364
IF-MIB::ifInOctets.2 = Counter32: 895943
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 108
IF-MIB::ifInUcastPkts.2 = Counter32: 8939
IF-MIB::ifInUcastPkts.3 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 15364
IF-MIB::ifOutOctets.2 = Counter32: 1023120
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 108
IF-MIB::ifOutUcastPkts.2 = Counter32: 7540
IF-MIB::ifOutUcastPkts.3 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero




On Tue, 2003-03-11 at 22:10, David Corbin wrote:
> I'm trying to get MRTG (and maybe some other SNMP stuff) set up.  I'm 
> having trouble figuring out the MIB for remote interfaces.
> 
> I can do "snmpwalk host public", and spits out lots of  things that 
> start with "system.", but I can't actually get any detailed information 
> using snmpget. 
> 
> interfaces.ifTable.ifEntry.ifDescr has been suggested as the correct one, but when I try that I get a failure.
> 
> What's the correct way to access information about a Linux system via SNMP?
> 
> David
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list