Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

SNMP Objects

Options
  • 04-03-2010 1:24pm
    #1
    Registered Users Posts: 1,126 ✭✭✭


    Hi,

    Im just learning about snmp at the moment as I am using it in a college project to retrieve information about network devices.

    Im a bit confused about objects though. Is there a set list of objects or do you create your own. When I say objects I mean things like sysUpTime, sysLocation etc.

    The reason I ask is that I set up an ubuntu virtual machine at home and installed the net-snmp package. I can run all the command line applications to like snmpwalk etc to my router, my desktop and get back information like sysDecr, Location, up time etc. I tried running the following command to my laptop:

    $snmpget -v 2c -c public 192.168.1.15 sysUpTime.0

    Now it is communicating with the laptop as it comes back with something like snmpv2mib - sysUpTime not there. Not those words exactly but you know what I mean. I also ran an snmpwalk to my laptop and it worked but none of the things like

    sysUpTime
    sysLocation etc were returned.

    These commands return this type of information when I send it to my router or desktop.

    On my laptop I have the net-snmp agent running. Any ideas here??

    Thanks


Comments

  • Registered Users Posts: 6,210 ✭✭✭bonzodog2


    AFAIK there are standard MIBs, and private ones, and maybe public but specialised ones. They describe the mapping between the numeric node description and text (e.g. sysUpTime). I don't think its mandatory to implement every node in a MIB spec though. Again, AFAIK....

    When you " snmpwalk to my laptop and it worked", did it give you any results ?
    Not sure, but I don't think "On my laptop I have the net-snmp agent running" counts as running a SNMP service

    There are a few GUI SNMP tools around

    You can run the net-snmp tools from Windows too.

    PM sent


  • Registered Users Posts: 1,126 ✭✭✭mossy464


    bonzodog2 wrote: »
    AFAIK there are standard MIBs, and private ones, and maybe public but specialised ones. They describe the mapping between the numeric node description and text (e.g. sysUpTime). I don't think its mandatory to implement every node in a MIB spec though. Again, AFAIK....

    When you " snmpwalk to my laptop and it worked", did it give you any results ?
    Not sure, but I don't think "On my laptop I have the net-snmp agent running" counts as running a SNMP service

    There are a few GUI SNMP tools around

    You can run the net-snmp tools from Windows too.


    Yes when i ran snmpwalk to my laptop I got results. I sent them to a txt file but I dont have that here as I am at work. I will post the results later.

    It looks like a lot of OIDs in the file.

    Is it possible that the OID's are there for sysUpTime etc just not the textual names??

    On my desktop I have the windows snmp service running and when I query this machine it returns all the data like sysUpTime etc.

    I tried running the windows snmp service on my laptop but it kept stopping as soon as i started it so im using the net-snmp agent.


  • Registered Users Posts: 1,629 ✭✭✭NullZer0


    Check out the universal device poller in the Solarwinds Engineers toolset (free trial).

    This kinda helped me understand things by setting up custom pollers etc.
    They also have some videos on this worth a look :-)


  • Registered Users Posts: 6,210 ✭✭✭bonzodog2


    mossy464 wrote: »
    Yes when i ran snmpwalk to my laptop I got results. I sent them to a txt file but I dont have that here as I am at work. I will post the results later.

    It looks like a lot of OIDs in the file.

    Is it possible that the OID's are there for sysUpTime etc just not the textual names??

    On my desktop I have the windows snmp service running and when I query this machine it returns all the data like sysUpTime etc.

    I tried running the windows snmp service on my laptop but it kept stopping as soon as i started it so im using the net-snmp agent.

    The queries between the SNMP client and server are all done with the numeric values of the MIB objects, the text names like sysUpTime are just translated by the client for your convenience

    If the windows SNMP service works on a desktop but not on a laptop, I think the problem is with the laptop. Maybe you have to start it from an admin account ?


  • Registered Users Posts: 6,210 ✭✭✭bonzodog2


    mossy464 wrote: »
    Yes when i ran snmpwalk to my laptop I got results.

    It looks like a lot of OIDs in the file.

    Make sure the MIBs are in the right place. If you're running snmpwalk/snmpget etc their output should be translated into the user-friendly names in the output


  • Advertisement
Advertisement