Hi gents,

I've got my agent working to my satisfaction & now want to get the MIB to work so that I get something meaningful printed out on a GET. (This is probably arse-about-face, but that's usual for me :)

I've pretty much copied the stuff from NETSNMP_EXAMPLES_MIB, as you can see. I have set MIBS=ALL, and copied this MIB into /usr/local/share/snmp/mibs. (I also recompiled the apps with-mibs.. = fourD ...., but I don't think this was necessary ?).

But when walking .1.3.6.1.4.1.19967, the returned OIDs are only translated up to ...enterprises.19967

Presumably once I've got this sorted I should be able to snmpwalk <blah> <blah> target fourD?

Best regards
Steve


FOURD-MIB DEFINITIONS ::= BEGIN


IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, Integer32 FROM SNMPv2-SMI
    SnmpAdminString                         FROM SNMP-FRAMEWORK-MIB
    netSnmp                                 FROM NET-SNMP-MIB
    RowStatus, StorageType                  FROM SNMPv2-TC
    InetAddressType, InetAddress            FROM INET-ADDRESS-MIB
;

fourD       MODULE-IDENTITY
    LAST-UPDATED "200406231600Z"
    ORGANIZATION "www.4dllc.com"
    CONTACT-INFO    
         "postal:   Steve Comfort
                    18 Ruskin Rd
                    Bergvliet RSA 7945

          email:    [EMAIL PROTECTED]"
    DESCRIPTION
        "Test MIB objects for agent module example implementations"
    REVISION     "200406231600Z"
    DESCRIPTION
        "First draft"
    ::= {1 3 6 1 4 1 19967 }

--
-- top level structure
--
fourDpppoeScalars      OBJECT IDENTIFIER ::= { fourD 1 }
fourDdhcpScalars       OBJECT IDENTIFIER ::= { fourD 2 }
fourDtrapScalars       OBJECT IDENTIFIER ::= { fourD 3 }
fourDwifiScalars       OBJECT IDENTIFIER ::= { fourD 4 }

-- All the variables are stored as strings in the appropriate config file.
-- To avoid data type conversions, they are all defined as OCTET STRING

fourDpppoeUser OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..80))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The PPPOE user name"
    DEFVAL { "steve" }
    ::= { fourDpppoeScalars 1 }

fourDpppoePassword OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..80))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The PPPOE password associated with the user name"
    DEFVAL { "" }
    ::= { fourDpppoeScalars 2 }

fourDpppoeClampmss OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..80))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The maximum value to use for the MTU size"
    DEFVAL { "1412" }
    ::= { fourDpppoeScalars 3 }

fourDpppoeSynchronous OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..80))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "Whether to use Synchronous PPPOE or not"
    DEFVAL { "0" }
    ::= { fourDpppoeScalars 4 }

fourDpppoeDemand OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..80))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The timeout to use for demand dialling"
    DEFVAL { "0" }
    ::= { fourDpppoeScalars 5 }

fourDpppoeDnstype OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..80))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The type of DNS to use (SPECIFY | SERVER)"
    DEFVAL { "NO_CHANGE" }
    ::= { fourDpppoeScalars 6 }

fourDpppoeDns1 OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..80))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The IP Address pof the 1st DNS server"
    DEFVAL { "" }
    ::= { fourDpppoeScalars 7 }

fourDpppoeDns2 OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..80))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The IP Address of the second DNS server"
    DEFVAL { "" }
    ::= { fourDpppoeScalars 8 }

fourDrebootTrap OBJECT-TYPE
    SYNTAX      INTEGER 
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "SETting this value to 1 will reboot the target after 1 minute"
    DEFVAL { "" }
    ::= { fourDtrapScalars 1 }
    
fourDwifiEssid OBJECT-TYPE
    SYNTAX      OCTET STRING 
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The ESSID for the wireless interface"
    DEFVAL { "" }
    ::= { fourDwifiScalars 1 }

fourDwifiPreferredAp OBJECT-TYPE
    SYNTAX      OCTET STRING 
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The IP Address of the preferred Access Point"
    DEFVAL { "" }
    ::= { fourDwifiScalars 2 }
    
fourDwifiKey OBJECT-TYPE
    SYNTAX      OCTET STRING 
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The Encryption Key used on the wifi interface"
    DEFVAL { "" }
    ::= { fourDwifiScalars 3 }
    
fourDwifiChannel OBJECT-TYPE
    SYNTAX      OCTET STRING 
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The channel in/to use"
    DEFVAL { "" }
    ::= { fourDwifiScalars 4 }

END

Reply via email to