Re: How do add the .1.3.6.1.4 OID root to the default output of an snmpwalk for which no OID argument is given.

Fulko Hew <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAGuV3hPNbtAfZ2h96f+c6Z0d9g1oDi6yGDROdV7uUNP6deFoMg@mail.gmail.com>
On Wed, Nov 5, 2014 at 8:47 AM, PEOPLES, MICHAEL P <[email protected]> wrote:
> When executing the following command on a Brocade Vyatta 5600, you only get
> OIDs from a root OID of .1.3.6.1.2.
>
> snmpwalk -c XXXXXXX -v 2c vyatta01.foo.com
>
> However, the vendor specific OIDs are available only in the root OID
> .1.3.6.1.4. I need to get these vendor OIDs when performing a "bare"
> snmpwalk as shown above.
>
> I have a situation where I cannot change the command used to retrieve data,
> so I cannot simply add .1.3.6.1.4 to the end of the snmpwalk command. I also
> cannot change the SNMP agent (Net-SNMP) running on the Vyatta router.

.. snip ...

The default starting OID for the snmpwalk command (if you don't specify one)
is MIB-2 (.1.3.6.1.2) ... so that's all you will get unless you
specify otherwise.

If you want to walk the whole tree you will need to do:

snmpwalk -c XXXXXXX -v 2c vyatta01.foo.com 1

or to get only the vendor specific OIDs, then you can do

snmpwalk -c XXXXXXX -v 2c vyatta01.foo.com 1.3.6.1.4

------------------------------------------------------------------------------
_______________________________________________
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.