Skip to content

Rework how we gather model number from targets #28

@ventris

Description

@ventris

Currently we have a list of oids that we scrape to get the model for the model specific oids, and the first one that got data will be the one used.

def model(self, target):
model_oids = [
'.1.3.6.1.2.1.47.1.1.1.1.13.1', # Normal switches
'.1.3.6.1.2.1.47.1.1.1.1.13.1001', # Stacked switches
'.1.3.6.1.2.1.47.1.1.1.1.13.10', # Nexus
'.1.3.6.1.2.1.1.1.0', # Other appliances (sysDescr)
]

This is a problem with juniper mx10k routers as they will send its id number on 1.3.6.1.2.1.47.1.1.1.1.13.1 and not the readable model number.
The model number is send by the 1.3.6.1.2.1.1.1.0 oid on those routers and that is last in the current list.

Evaluate if it is possible to change this without breaking all other targets.

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