display mib-index interface

Function

The display mib-index interface command displays interface indexes in a management information base (MIB).

Format

display mib-index interface [ interface-type [ interface-number ] | interface-name ]

Parameters

Parameter Description Value
interface-type

Displays the index value of an interface with a specified type in a MIB.

ifType specifies the type of an interface, such as an Ethernet interface.

ifNum specifies the interface number, which is used together with ifType to specify an interface.

If the ifNum is not specified, the index values of all interfaces of the type are displayed.

-

interface-number

Displays the index value of an interface with a specified number in a MIB.

ifType specifies the type of an interface, such as an Ethernet interface.

ifNum specifies the interface number, which is used together with ifType to specify an interface.

If the ifNum is not specified, the index values of all interfaces of the type are displayed.

-

interface-name

Specifies the name of an interface.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
interface-mgr read

Usage Guidelines

Usage Scenario

To view the values of interface indexes in a MIB, run the display mib-index interface command. This configuration helps the NMS view the interface indexes mapped to interface names.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display indexes of all interfaces.
<HUAWEI> display mib-index interface
IfName                          IfIndex   PortIndex
---------------------------------------------------
Eth-Trunk1                      774       0    
GigabitEthernet0/1/0            201326849 --
GigabitEthernet0/1/1            201326977 --
NULL0                           402653446 --
Table 1 Description of the display mib-index interface command output
Item Description
IfName

Name of an interface.

IfIndex

Index value of an interface.

PortIndex

Index value of a port.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >