Skip to content

Metamako - Problems parsing system description #13

Open

Description

@gavmckee80
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

Activity

  1. ogenstad commented on Sep 22, 2017

    @ogenstad
    Member

    Can you also do a: print hostinfo.__dict__

  2. gavmckee80 commented on Sep 22, 2017

    @gavmckee80
    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>}
    
  3. ogenstad commented on Sep 22, 2017

    @ogenstad
    Member

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

  4. ogenstad commented on Oct 6, 2018

    @ogenstad
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions