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

Metamako - Problems parsing system description #13

Open
gavmckee80 opened this issue Sep 22, 2017 · 4 comments
Open

Metamako - Problems parsing system description #13

gavmckee80 opened this issue Sep 22, 2017 · 4 comments

Comments

@gavmckee80
Copy link

In [199]: dev = SnmpHandler(host='x.x.x.x', community='xxxxx', version='2c',timeout=5)

In [200]: hostinfo = HostInfo(dev)

In [201]: hostinfo.get_all()

In [202]: hostinfo.description
Out[202]: u'Metamako MOS release 0.13.3 \\(build 5083\\) running on a MetaConnect 48'

In [203]: hostinfo.version
Out[203]: 'UNKNOWN'

In [204]: hostinfo.vendor
Out[204]: 'UNKNOWN'

In [205]: hostinfo.os
Out[205]: 'UNKNOWN'

Another system description example
Metamako MOS release 0.14.1 (build mos-0.14+55) running on a MetaConnect 48

@ogenstad
Copy link
Member

Can you also do a: print hostinfo.__dict__

@gavmckee80
Copy link
Author

In [233]: print hostinfo.__dict__
{'sysobjectid': '1.3.6.1.4.1.43191.1.2.3', 'vendor': 'UNKNOWN', 'description': u'Metamako MOS release 0.13.3 \\(build 5083\\) running on a MetaConnect 48', 'uptime': datetime.timedelta(188, 9457, 560000), 'contact': u'', 'location': u'xxxxxxxxxx', 'version': 'UNKNOWN', 'os': 'UNKNOWN', '_snmp': <nelsnmp.snmp.SnmpHandler object at 0x7ff54f104f10>}

@ogenstad
Copy link
Member

Which version of nelsnmp are you running? Based on what I can see this should already work..

@ogenstad
Copy link
Member

ogenstad commented Oct 6, 2018

Do you have any updates on this?

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

2 participants