-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decode bootfiles with numeric OIDs is not working (option “-o”) #18
Comments
Thanks, will take a look. |
Sergey, unfortunately I cannot reproduce this. Please see below output.
|
Adrian, I need to see OID numbers for all SnmpMibObjects with "-o" ./docsis -d cm.bin ./docsis -o -d cm.bin As you can see I don't have any changes and differences in output with “-o” and without “-o” I compile and use docsis 0.9.8-dev on Centos 5.11 server. |
Please add a complete decoded config file. I will use that file for more tests. |
This is my test bootfile decoded with 0.9.8-dev. Main |
I checked the source code and -o option does not do what we expected it to do. I think it was a misunderstanding into the description of that option. What it will do is that it will not load the MIB files which are loaded by default. By not loading the MIBs, some of the OIDs will look more numerical, but it was never supposed to be a complete numerical option. I will convert this into a feature request as we need another option together with -o to specifically make it look like:
Is this what you are looking for? I understand the real need for -o option especially when you are working with PacketCable / EuroPacketCable configuration files. |
Thanks for researching. |
Sergey, I think I finally have this fixed. Sorry that it took me so long but I had to learn A LOT about net-snmp libraries first. Please download and compile the following code:
Here is how the output will look now:
Give it a try, let me know if other changes are needed (maybe add this with a new argument?) and if everything is OK me or Richard will accept the changes. This is a really nice feature in my opinion, especially when working with PacketCable configuration files. |
I tried to decode my bootfiles in docsis 098-dev with option “-o” and don't see numeric OIDs on outputs. I always see OID names.
$ docsis098 -d test.bin
Main
{
NetworkAccess 1;
SnmpMibObject docsDevEvControl.0 Integer 1; /* resetLog /
SnmpMibObject ifAdminStatus.1 Integer 1; / up /
$
$ docsis098 -o -d test.bin
Main
{
NetworkAccess 1;
SnmpMibObject docsDevEvControl.0 Integer 1; / resetLog /
SnmpMibObject ifAdminStatus.1 Integer 1; / up */
$
Please fix the issue with decoding bootfiles with numeric OIDs.
The text was updated successfully, but these errors were encountered: