Loading/installing MIBS and getting SNMP to give data

Posted on 2003-03-15
Medium Priority
Last Modified: 2007-12-19
Hello All,

I have a linux server running Debian 3.0 with kernal 2.4.18. I have installed snmpd version 4.2.3 but I am unable to get below  . MIB. Once I have passed the basic system info I recieve "End of MIB" when using snmpwalk. From my research I believe I need to add MIB modules for the stuff I want to monitor like CPU, network traffic etc..

How do I add/load these addition MIBS so that snmpd will responde to the query? My MIBs are in /usr/share/snmp/mibs and below is my basic snmpd.conf file which is basiclly the default.

Thanks Hartman

**** snmpd.conf *****
com2sec paranoid  localhost     *******

group MyROSystem v1         paranoid
group MyROSystem v2c        paranoid
group MyROSystem usm        paranoid
group MyROGroup  v1         readonly
group MyROGroup  v2c        readonly
group MyROGroup  usm        readonly
group MyRWGroup  v1         readwrite
group MyRWGroup  v2c        readwrite
group MyRWGroup  usm        readwrite

view all    included  .1                               80
view system included  .iso.org.dod.internet.mgmt.mib-2.system

access MyROSystem ""      any       noauth    exact  system none   none
access MyROGroup  ""      any       noauth    exact  all    none   none
access MyRWGroup  ""      any       noauth    exact  all    all    none

syslocation Unknown (configure /etc/snmp/snmp.local.conf)
syscontact Unknown <root@localhost> (configure /etc/snmp/snmp.local.conf)

proc mountd
proc ntalkd 4
proc sendmail 10 1

disk / 10000

load 12 14 14
**** end of file ****
Question by:Hartman
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
LVL 10

Expert Comment

ID: 8145505
which command u are using to access mibs...
u need to use public  group.
LVL 10

Expert Comment

ID: 8145508
can u directly start the walk at branch 2
LVL 10

Expert Comment

ID: 8145518
i mean 4.2
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

ID: 8147872

I am using snmpwalk to see how far I get down. For example

# snmpwalk -v 1 localhost ****** 2

End of MIB

But this returns some info but I can't get any more

# snmpwalk -v 1 localhost ****** .

I think my problem is either I dont know how to access the local MIB data to get what info I need or somehow the default install only goes so far and I need to add the rest which I don't know how to do.


LVL 10

Expert Comment

ID: 8148715
refer the mib by the names...
e.g. snmpwalk system
this would walk down the system branch...
this would also insure that the snmp-utils have recognized the branch u want to work upon.

if the mib which u are trying to view is not the one which came with snmp-utils,,, this can help you find out if snmp-utils has reognised it...so if your mib has a branch say foobar. and after giving the comman to view foobar. and error might indicate that the mib is not recognised . this is beacause if its recognised, the mapping from name to numbers is possible for snmp-utils.

i guess network interface statistics can be obtained from the ".if" branch, somewhere below system branch

Author Comment

ID: 8151611

When I do the following, I get lots of standard looking info

# snmpwalk system

But when I do

# snmpwalk system.if
system.if: Unknown Object Identifier (Sub-id not found: system -> if)

I'm not sure what MIBS came with my snmp, I have debian and I installed the default package. In /usr/share/snmp/mibs, there are tons of files.

I understand in general the fole of the MIBS I just have no exprince working with them, ie testing and and adding.

LVL 10

Expert Comment

ID: 8156682
snmpwalk system.interfaces
snmpwalk interfaces

Author Comment

ID: 8159165

When I do

# snmpwalk host community system.interfaces

I get this

# system.interfaces: Unknown Object Identifier (Sub-id not found: system -> interfaces)

That is what I get for everything below system.

LVL 10

Expert Comment

ID: 8160727
**** ...i dont have a linux box to test...
but try
snmpwalk interfaces...

btw...do u have the tree list of the branches under system...
if not just redirect the output of the "snmpwalk system" to a file and see thru it carefully if the required information is present...

damn, i donno when i can get my box with penguin...

Author Comment

ID: 8160984

# snmpwalk localhost ***** interfaces
End of MIB

Here is the output from system

# snmpwalk localhost ***** system
system.sysDescr.0 = Linux aragorn.*****.com 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (1487373) 4:07:53.73
system.sysContact.0 = Hartman <root@localhost> (configure /etc/snmp/snmp.local.conf)
system.sysName.0 = aragorn.*****.com
system.sysLocation.0 = Unknown (configure /etc/snmp/snmp.local.conf)
system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIB
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMP
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBComplian
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects for network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2 entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing TCP implementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP and ICMP implementations
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP implementations
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control Model for SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management Architecture MIB.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitions for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (0) 0:00:00.00
End of MIB

Im at a total loss.

LVL 10

Accepted Solution

kiranghag earned 2000 total points
ID: 8163572
key w8 a sec..
what does the ***** in your command means???
have u passed public as community.???

Author Comment

ID: 8166063

**** = protected community name :)

Hey I got so crazy I removed/reinstalled snmp/snmpd and for some reason now everything comes up fine.

Thanks for your help and I will give you the points.


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question