Hi Lee,

Thanks for the response.

I attempted to track back the defs as you suggested..

I will describe the process in case my method was flawed:

I located where the mac definitions were taking place on the 'working' 
machine  by searching the Net-SNMP directory (D:\Program 
Files\OPENXTRA\NET-SNMP)  file contents for "MacAddress ::="

That led me to SNMPv2-TC.txt in D:\Program 
Files\OPENXTRA\NET-SNMP\usr\share\snmp\mibs. 
Examining that file, I found the same display hint that you showed below.

I then repeated the above process on the machine that  was displaying 
incorrectly ( format "F0 1F AF nn nn nn  "            183          learned
)

It came down the the same file " SNMPv2-TC.txt" in "C:\program files 
(x86)\openxtra\net-snmp\usr\share\snmp\mibs"
and it had the same display hint notation.

The interesting thing is that from the old machine (correct display) I can 
launch the new machines exec with the command below

\\PCNm\c$\PROGRA~2\OPENXTRA\NET-SNMP\usr\bin\snmptable -m BRIDGE-MIB -v 1 
-c <community>  <IP> 1.3.6.1.2.1.17.4.3

and the format is incorrect. Likewise when I launch the exec on the old 
machine, from the new one, the format is incorrect.

Any other ideas, or ideas on how I can track this down? I am using the 
output from this command in a program, and the program is crashing because 
the output is different. And, while I could modify the program to accept 
either format, Id rather know how to make the 2 PCs format the output data 
the same.

thanks again for your help

keith




From:
Lee <ler...@gmail.com>
To:
keith.abb...@pattersoncompanies.com
Cc:
net-snmp-users@lists.sourceforge.net
Date:
01/31/2014 02:49 PM
Subject:
Re: diff in output format between 2 machines



> ... copied over essentially all of the core files

I'm guessing one or more files on the new machine don't match up with
the files on the old machine & you're missing a display hint on the
new machine.

I have non-standard mib files & locations, so I can't point you to a
set of files to check.
What you'll need to do is find the file where dot1dTpFdbAddress is
defined; for me it's in BRIDGE-MIB.my:
dot1dTpFdbAddress OBJECT-TYPE
    SYNTAX      MacAddress
    MAX-ACCESS  read-only
    STATUS      current

no display hint, so find where MacAddress is defined; probably near
the top of the file:
IMPORTS MacAddress FROM SNMPv2-TC

figure out where SNMPv2-TC comes from, look in there for the
definition of MacAddress

MacAddress ::= TEXTUAL-CONVENTION
    DISPLAY-HINT "1x:"
    STATUS       current
    DESCRIPTION
            "Represents an 802 MAC address represented in the
            `canonical' order defined by IEEE 802.1a, i.e., as if it
            were transmitted least significant bit first, even though
            802.5 (in contrast to other 802.x protocols) requires MAC
            addresses to be transmitted most significant bit first."
    SYNTAX       OCTET STRING (SIZE (6))

add the display hint if it's missing.

Regards,
Lee



On 1/30/14, keith.abb...@pattersoncompanies.com
<keith.abb...@pattersoncompanies.com> wrote:
> Hello All,
>
> I am having a strange problem between 2 machines.
>
> I installed Net-SNMP on a new windows7 - 64b machine - the first time in 
a
> while - and copied over essentially all of the core files from the
> existing machine (also win7-64b)  to insure they were configured the 
same.
>
> I have verified the version on both is 5.2.1.2
>
> However when I run the command below on both machines, I get different
> output formats - plus the new machine shows a lot of garbage entries
>
> snmptable -m BRIDGE-MIB -v 1 -c <community>  <IP> 1.3.6.1.2.1.17.4.3
>
> (sample output from original machine)    I want it to look like this:
> f0:4d:a2:nn:nn:nn             24          learned
> f0:4d:a2:nn:nn:nn           241          learned
> f0:4d:a2:nn:nn:nn            241          learned
> f0:4d:a2:nn:nn:nn            134          learned
> f0:4d:a2:nn:nn:nn           241          learned
> f0:4d:a2:nn:nn:nn            82          learned
> f0:4d:a2:nn:nn:nn         239          learned
>
> (sample output from new machine)
> "F0 1F AF nn nn nn  "            183          learned
> "F0 1F AF nn nn nn  "            174          learned
> "F0 1F AF nn nn nn  "            183          learned
> "F0 1F AF nn nn nn  "            174          learned
> "F0 1F AF nn nn nn  "             24          learned
>              "dM¢+Å""             24          learned
>              "dM¢Ü¶z"            241          learned
>              "dM¢Ü·-"            241          learned
>
> As you can see, the second sample has quotes around it - with upper and
> lower case; no colons separating the groups.
>
> I have a very vague memory of some configuration command you enter 1 
time
> to fix this but I cant find anything on it in the official FAQ or 
general
> google searches.
>
> Has anyone run across this before?
>
> Thx




NOTICE: This email transmission and any attachments that accompany it may 
contain information that is confidential or otherwise exempt from 
disclosure under applicable law and is intended solely for the use of the 
individual(s) to whom it was intended to be addressed. If you have 
received this email by mistake, or you are not the intended recipient, any 
disclosure, dissemination, distribution, copying or other use or retention 
of this communication or its substance is prohibited. If you have received 
this communication in error, please immediately report to the author via 
email that you received this message by mistake and also permanently 
destroy printed copies and delete the original and all copies of this 
email and any attachments from your computer. 
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to