Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a network printer that has SMNP support.
Doing a "snmpbulkwalk -c public -v 2c 192.168.155.226 ." return a lot of data, some in plain english (SNMPv2-MIB::snmpOutGetResponses.0) but the most interesting part is something obscure (SNMPv2-SMI::enterprises.11.2.3.9.4.2.1.1.2.21.0 = INTEGER: 100663296 ). For the last, I just figure out it is the installed memory on device, 96MBytes.
I got a MIB from HP's site, in plain ascii text. The comments on the header of file says:
-- This MIB file is the Master MIB file for the JetDirect SNMP implementation.
-- It includes all objects defined for both internal cards and external boxes.
--
-- This MIB successfully compiles with mosty 7.1. (as of 7/25/95)
--
-- Last Updated: April 24, 1998
--
-- HP OBJECT IDENTIFIER ::= { iso org(3) dod(6) internet(1) private(4) enterprises(1) 11 }
The question is: How can I use this file to translate those numeric identifiers in something I can understand, like "installedMemory" or whatever ?
just place the file in your system mib directory, e.g. /usr/local/share/snmp/mibs then use the -m option to explicitly use them. there are a LOT of mibs and they aren't all loaded by default. you can use the MIBLIST environmental variable to set which additional ones are always loaded by the snmp tools. check the snmpwalk / snmpget / snmpcmd manpages for additional information.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.