Hi,
I have added a new funtionality that permit to decode the Object Identifier
on a SNMP packet with the definition declared on private MIB files.
Actually Ethereal permit to show the name of the SNMP Object Identifier
(OID) captured only if it's compiled with the UCD/NET-SNMP library, and the
decoding of the OID happens only for standard MIBS and not for private MIB.
These new features, that doesn't impact on the normal way as ethereal
working, use a file that contains the OID and the name of the MIB variable.
Below an example of the sintax of the file:
1 iso
1.3 iso.org
1.3.6 iso.org.dod
1.3.6.1 iso.org.dod.internet
1.3.6.1.4 iso.org.dod.internet.private.
1.3.6.1.4.1 iso.org.dod.internet.private.enterprises
but the file can also contain a single line that has more associations
between OID and variable mib name as reported below:
1.3.6.1.4.1 iso.org.dod.internet.private.enterprises
All the associations between OID and the variable mib name present on the
file will be stored on memory and for every SNMP packet will be show
the decoding.
It's possible to compile manually the file that contains the associations or
use a script (I normally use a TCL script that uses a scotty-snmp library to
compile my private MIB files and to produce the file used for the new
functionality added on ethereal).
I think that this new feature don't introduce regression at the normal way
as ethereal working, the feature is running only if a file that contains the
association is resent, otherwise the normal behavior is warranty.
These new code, added on packet-snmp.c file, was tested on Linux RedHat
7.3/8.0 and with ethereal version 0.9.7 and 0.9.8.
In attachment at this e-mail you can find a screenshot of how this feature
working on ethereal with and without the support of NET-SNMP library.
If somebody thinks that this feature is useful can reply at this mail to
receive the source code and more explanations.
Best regards,
Alex
Attachment:
etherealDSO.png
Description: PNG image
Attachment:
etherealDSO_NET-SNMP.png
Description: PNG image