Child pages
  • noc lookup-mib
Skip to end of metadata
Go to start of metadata

Name

noc lookup-mib – Perform OID to name and name to OID MIB lookups

Synopsis

noc lookup-mib <value1> [.. <valueN>]

Description

Lookup loaded MIBs for OID or name depending on <value> format. If <value> is OID, MIBs will be searched for OID and resulting name will be written to stdout. Otherwise, MIBs will be searched for name and resulting OID will be dumped to stdout. In case of failed lookup, an error message printed and command returns with non-zero exit code.

Options:

--tracebackPrint traceback on exception

Examples

Lookup for OID by name

/opt/noc$ ./noc lookup-mib IF-MIB::ifName.14
1.3.6.1.2.1.31.1.1.1.1.14 

Lookup for name by OID

/opt/noc$ ./noc lookup-mib 1.3.6.1.2.1.31.1.1.1.1.14
IF-MIB::ifName.14 

Failed lookup

/opt/noc$ ./noc lookup-mib IF-MIB::ifNamx
Error: Not found: IF-MIB::ifNamx 

See Also

noc import-mib