RE: snmpwalk vs snmpget

Vinod Nanjaiah <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <174230991E95D743B0C91DF471EF44E84360394C61@MTW02MSG02.mindtree.com>
>> On doing a snmpget (snmpget -v1 -cdemo localhost vpnIFIndex.0) for index 0
>> it fails with the following error message -
>>
>> "vpnIFIndex.0: Unknown Object Identifier (Index out of range: 0 (vpnIFIndex))"

> What is the MIB definition for vpnIFIndex  ?

This is how I have defined vpnIFIndex.

vpnTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF VpnEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "sequence"
    ::= { vpnGrpInfo 7 }

vpnEntry OBJECT-TYPE
    SYNTAX      VpnEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "entry"
    INDEX   { vpnIFIndex }
    ::= { vpnTable 1 }

VpnEntry ::= SEQUENCE {
    vpnIFIndex           InterfaceIndex,
    vpnIFType            Integer32,
    vpnAddType           Integer32

>Dave

http://www.mindtree.com/email/disclaimer.html

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.