hi tam, one can query an OID without having any MIB files installed ...
ohio> snmpget -c public test-rtr .1.3.6.1.4.1.9.9.109.1.1.1.1.4.1 SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.4.1 = Gauge32: 11 ohio> however, if one wants to query by object-value ... that's when one needs MIB files installed. the MIB files permit the net-snmp utilities to translate between that long string of numbers and something vaguely human-readable: guru> snmptranslate .1.3.6.1.4.1.9.9.109.1.1.1.1.4.1 CISCO-PROCESS-MIB::cpmCPUTotal1min.1 guru> guru> snmpget -c public test-rtr cpmCPUTotal1min.1 CISCO-PROCESS-MIB::cpmCPUTotal1min.1 = Gauge32: 11 guru> i'm guessing that either (a) you haven't yet copied the Cisco enterprise MIB files to the appropriate location, or (b) you haen't yet modified net-snmp's snmp.conf file to tell the net-snmp libraries to look at this location. i post some rudimentary install instructions around this -- how to install enterprise MIB files (like Cisco's) and how to persuade the net-snmp toolkit to use them -- at http://www.skendric.com/device/ that URL, and http://www.skendric.com/trend/ also contain Perl code which queries various Cisco-specific object-values ... you might find some of the variables useful, if not the code itself. --sk stuart kendrick fhcrc Subject: Re: Collecting CPU & Memory Utilization on Cisco Catalyst 6500 From: Dave Shield <[EMAIL PROTECTED]> To: Tam Vo <[EMAIL PROTECTED]> Cc: net-snmp-users@lists.sourceforge.net Date: Mon, 19 Dec 2005 09:09:35 +0000 On Fri, 2005-12-16 at 11:16 -0800, Tam Vo wrote: > I am able to get MIB-II information from the switch, but nothing else. How are you trying to retrieve the Cisco-specific information? What commands are you giving? ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users