Hi, David:

   When I try the following snmpbulkwalk command, I will get "No Such Instance" 
message.

[jerhu...@snmplab-linux2 ~/performance_extra]$ snmpbulkwalk -v2c -c public 
172.28.83.92 -Cr80 vtpVlanState.1.100
CISCO-VTP-MIB::vtpVlanState.1.100 = No Such Instance currently exists at this 
OID

   But if I use snmpbulkget and I will get result back:

[jerhu...@snmplab-linux2 ~/performance_extra]$ snmpbulkget -v2c -c public 
172.28.83.92 -Cr80 vtpVlanState.1.100
CISCO-VTP-MIB::vtpVlanState.1.1002 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.1003 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.1004 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.1005 = INTEGER: operational(1)
.....
.....
CISCO-VTP-MIB::vtpVlanIfIndex.1.1002 = INTEGER: 65
CISCO-VTP-MIB::vtpVlanIfIndex.1.1003 = INTEGER: 68
CISCO-VTP-MIB::vtpVlanIfIndex.1.1004 = INTEGER: 66
CISCO-VTP-MIB::vtpVlanIfIndex.1.1005 = INTEGER: 67
CISCO-VTP-MIB::vlanInfo.2.1.0 = INTEGER: 1

    So should I use snmpbulkwalk or snmpbulkget?

Thanks.

- Jerry

=============================================================================
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Shield
Sent: Monday, November 09, 2009 1:52 AM
To: Jerry Huang (jerhuang)
Cc: [email protected]
Subject: Re: snmpbulkwalk syntax

2009/10/28 Jerry Huang (jerhuang) <[email protected]>:
> I have the following command syntax works fine for "getbulk from
> snmpResearch":
>
>           getbulk -v2c 172.28.83.100 public 0 1000 vtpVlanState.1.300
>
> What is the corresponding for "snmpbulkwalk"?


The simplest command would be

     snmpbulkwalk  -v2c -c public   172.28.83.100    vtpVlanState.1.300

That uses default values of 0 (for non-repeaters) and 10 (for max repetitions) 
To ask for 1000 repetitions, try

     snmpbulkwalk  -v2c -c public -Cr1000  172.28.83.100    vtpVlanState.1.300


Dave
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to