Re: SNMP OID list???

From: Glenn Chisholm <glenn@dont-contact.us>
Date: Fri, 15 Jan 1999 13:33:50 -0700 (MST)

> I grabbed the UCD SNMP kit and ran snmpwalk -p 3401 <mymachine> public
> .1.3.6, and I get a list of around 525 key/value pairs. I went through the
> MIB that comes with Squid, did some massaging to get a list of all
> OBJECT-TYPEs and OBJECT IDENTIFIERs, and came up with only 98 entries.
>
        That should be about correct, there are about 98 different objects
that Squid's SNMP Agent will return. However in some cases there are
serveral instances of one object. For example :

        cacheHttpAllSvcTime OBJECT-TYPE
                SYNTAX Integer32
                MAX-ACCESS read-only
                STATUS current
        ::= { cacheMedianSvcEntry 2 }

Is an object that in your version of Squid has 60 different instances so
when you do a walk you get :

cacheMedianSvcTable.cacheMedianSvcEntry.cacheHttpAllSvcTime.1 = 0
cacheMedianSvcTable.cacheMedianSvcEntry.cacheHttpAllSvcTime.5 = 0
cacheMedianSvcTable.cacheMedianSvcEntry.cacheHttpAllSvcTime.60 = 0

In you case you get 1..60 instead of 1/5/60.

> Does someone have a list that shows the human-readable names matched with
> the SNMP dotted numbers for all of the OIDs that squid's SNMP functions
> return? I'm looking for something like:
>
> squid.cachePerf.cacheSysPerf.cacheCpuUsage
> 1.3.6.1.4.1.3495.1.3.1.5
>
My guess is the mibdefs.pm file we have on :

        http://www.ircache.net/Cache/Statistics/mrtg/mibdefs.pm

Which looks like:

    'cacheSysVMsize' => '1.3.6.1.4.1.3495.1.1.1',
    'cacheSysStorage' => '1.3.6.1.4.1.3495.1.1.2',
    'cacheAdmin' => '1.3.6.1.4.1.3495.1.2.1',
    'cacheSoftware' => '1.3.6.1.4.1.3495.1.2.2',
    'cacheVersionId' => '1.3.6.1.4.1.3495.1.2.3',
    'cacheSysPageFaults' => '1.3.6.1.4.1.3495.1.3.1.1',
    'cacheSysNumReads' => '1.3.6.1.4.1.3495.1.3.1.2',
    'cacheSysDefReads' => '1.3.6.1.4.1.3495.1.3.1.3',

glenn
Received on Fri Jan 15 1999 - 13:28:41 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:03 MST