Bart,

Thanks for the reply, I actually did try it with semicolons. Unfortunately, the 
shell sees the semicolon as a command terminator, so that didn't advance the 
cause.

Pat



----- Original Message ----
From: Bart Van Assche <[email protected]>
To: Patrick Rebert <[email protected]>
Cc: [email protected]
Sent: Sun, October 28, 2012 3:30:48 PM
Subject: Re: Problems with net-snmp on cygwin

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
>1
> 
> 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

Reply via email to