HP 6125G HP 6125G & 6125G/XG Blade Switches Network Management and Mon - Page 64

Switching the NM-specific interface index format, Configuration guidelines, Configuration procedure

Page 64 highlights

Switching the NM-specific interface index format A network management (NM)-specific ifindex identifies an interface and is provided by the SNMP managed device to the NMS. A network management-specific ifindex takes one of the following two formats: • 16-bit NM-specific ifindex-The system dynamically assigns 16-bit NM-specific ifindex values to uniquely identify its interfaces. The 16-bit NM-specific ifindex value starts from 1 and increments by 1. • 32-bit NM-specific ifindex-A 32-bit NM-specific ifindex value comprises an Offset, Interface Type, Slot ID, and Chassis ID, as shown in Figure 23. Figure 23 32-bit NM-specific ifindex 0 15 22 27 31 Offset Interface Type Slot ID Chassis ID { Offset-This field is 16 bits long and distinguishes different interfaces of the same type on the same interface card. { Interface type-This field is 7 bits long and contains the enumerated value specific to the interface type. It supports up to 128 different interface types and supports more than 80 interface types at present. { Slot ID-This field is 5 bits long and contains the number of the physical slot that holds the interface. { Chassis ID-This field is 4 bits long. For a distributed device in IRF mode, this field indicates the IRF member ID of the device that provides the interface. For other types of device, this field has no meanings and the value is 0. Configuration guidelines • Use the 32-bit NM-specific ifindex format if the NMS requires the format to get information such as the slot that contains a specific interface. If the network protocol operating on the NMS does not support 32-bit NM-specific ifindex values, make sure NM-specific ifindex values on the device are 16-bit. By default, the device adopts the 16-bit NM-specific ifindex format. • An NM-specific ifindex format change invalidates the NM-specific ifindex dependent settings, and these settings cannot become valid until you switch the format back. To use these settings in the new format, you must re-configure them. For example, if an RMON alarm group or private alarm group has alarm variables in the format OID/variable-name.NM-specific-ifindex, you must reconfigure these variables after an NM-specific ifindex format change. Configuration procedure To switch the NM-specific ifindex format: Step 1. Enter system view. 2. Switch the format of an NM-specific ifindex from 16-bit to 32-bit. Command system-view snmp-agent ifmib long-ifindex enable Remarks N/A Optional. By default, an NM-specific ifindex is in 16-bit format. 57

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157

57
Switching the NM-specific interface index format
A network management (NM)-specific ifindex identifies an interface and is provided by the SNMP
managed device to the NMS. A network management-specific ifindex takes one of the following two
formats:
16-bit NM-specific ifindex
—The system dynamically assigns 16-bit NM-specific ifindex values to
uniquely identify its interfaces. The 16-bit NM-specific ifindex value starts from 1 and increments by
1.
32-bit NM-specific ifindex
—A 32-bit NM-specific ifindex value comprises an Offset, Interface Type,
Slot ID, and Chassis ID, as shown in
Figure 23
.
Figure 23
32-bit NM-specific ifindex
{
Offset
—This field is 16 bits long and distinguishes different interfaces of the same type on the
same interface card.
{
Interface type
—This field is 7 bits long and contains the enumerated value specific to the
interface type. It supports up to 128 different interface types and supports more than 80
interface types at present.
{
Slot ID
—This field is 5 bits long and contains the number of the physical slot that holds the
interface.
{
Chassis ID
—This field is 4 bits long. For a distributed device in IRF mode, this field indicates the
IRF member ID of the device that provides the interface. For other types of device, this field has
no meanings and the value is 0.
Configuration guidelines
Use the 32-bit NM-specific ifindex format if the NMS requires the format to get information such as
the slot that contains a specific interface. If the network protocol operating on the NMS does not
support 32-bit NM-specific ifindex values, make sure NM-specific ifindex values on the device are
16-bit. By default, the device adopts the 16-bit NM-specific ifindex format.
An NM-specific ifindex format change invalidates the NM-specific ifindex dependent settings, and
these settings cannot become valid until you switch the format back. To use these settings in the new
format, you must re-configure them. For example, if an RMON alarm group or private alarm group
has alarm variables in the format
OID/variable-name.NM-specific-ifindex
, you must reconfigure
these variables after an NM-specific ifindex format change.
Configuration procedure
To switch the NM-specific ifindex format:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Switch the format of an
NM-specific ifindex from
16-bit to 32-bit.
snmp-agent ifmib long-ifindex
enable
Optional.
By default, an NM-specific ifindex
is in 16-bit format.
Slot ID
Interface Type
0
22
15
Offset
Chassis ID
27
31