Re: Problems with net-snmp on cygwin

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 10/28/12 19:58, Patrick Rebert wrote:
> Having trouble with the colon-delimited lists of mibs (and mibdirs). Can anyone
> explain these results? Doesn't seem that the -m argument is being split on
> colons to make a list. Getting same result for -M argument.
> 
> $  bw -Os -m +CISCO-CDP-MIB:CISCO-CONFIG-COPY-MIB 10.108.0.2 cdpCacheTable
> MIB search path:
> /home/rebertp1/.snmp/mibs;/usr/local/share/snmp/mibs;/usr/local/share/snmp/mibs/cisco/v1
> 
> Cannot find module (CISCO-CDP-MIB:CISCO-CONFIG-COPY-MIB): At line 4 in (none)
> cdpCacheTable: Unknown Object Identifier (Sub-id not found: (top) ->
> cdpCacheTable)
> 
> rebertp1@BTVSAPRTG01V ~/.snmp
> $  bw -Os -m +CISCO-CDP-MIB 10.108.0.2 cdpCachePlatform
> cdpCachePlatform.2.15 = STRING: "cisco WS-C2950G-48-EI"
> cdpCachePlatform.3.16 = STRING: "cisco WS-C2950G-48-EI"
> cdpCachePlatform.7.34 = STRING: "OE674"
> cdpCachePlatform.148.20 = STRING: "cisco WS-C4506"
> cdpCachePlatform.196.21 = STRING: "cisco WS-C4506"
> 
> rebertp1@BTVSAPRTG01V ~/.snmp
> $ alias bw
> alias bw='snmpbulkwalk -v2c'
> 
> rebertp1@BTVSAPRTG01V ~/.snmp
> $ bw -V
> NET-SNMP version: 5.7.2
> 
> rebertp1@BTVSAPRTG01V ~/.snmp

Net-SNMP uses a colon (:) as separator character on Unix systems and a
semicolon (;) on Windows systems. Have you already tried something like
this ?

bw -Os -m "+CISCO-CDP-MIB;CISCO-CONFIG-COPY-MIB" 10.108.0.2 cdpCacheTable

Bart.


------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
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.