Skip to content
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

FileReader.getData() does not return full mibinfo #47

Open
JoshuaFry opened this issue Apr 27, 2019 · 0 comments
Open

FileReader.getData() does not return full mibinfo #47

JoshuaFry opened this issue Apr 27, 2019 · 0 comments

Comments

@JoshuaFry
Copy link

I see that in localfile.py the FileReader class does not fill in the oid/oids fields as well as some others listed in the mibinfo.py class. Are there plans to implement this in the future?

Currently the return of FileReader.getData() looks like so
return MibInfo(path='file://%s' % f, file=mibfile, name=mibalias, mtime=mtime), decode(mibData)

I want to easily get ahold of these data fields.

   "name": "commonDeviceFeatureKeys",
   "oid": "1.3.6.1.4.1.331.1.2.1.1.7",
   "class": "objectidentity",
   "status": "current"
 },

I have used mibdump.py command line tool to generate JSON files but I would like to be able to access this info from a function call. Or generate the JSON without having to open a terminal.
Any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant