beautypg.com

Switching the nm-specific interface index format – H3C Technologies H3C SecPath F1000-E User Manual

Page 148

background image

137

Step Command

Remarks

6.

Configure SNMP access

right.

(Approach 1) Create an SNMP
community:

snmp-agent community { read |

write } community-name [ acl
acl-number | mib-view view-name ]*

(Approach 2) Create an SNMP

group, and add a user to the SNMP
group:

a.

snmp-agent group { v1 | v2c }
group-name [ read-view

read-view ] [ write-view

write-view ] [ notify-view

notify-view ] [ acl acl-number ]

b.

snmp-agent usm-user { v1 |

v2c } user-name group-name

[ acl acl-number ]

Use either approach.
To be compatible with SNMPv3,
use the snmp-agent group

command.
Make sure the username is the
same as the community name

configured on the NMS.

7.

Configure the maximum

size (in bytes) of SNMP

packets for the SNMP
agent.

snmp-agent packet max-size byte-count

Optional.

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 62

.

Figure 62 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
member ID of the device that provides the interface. For other types of devices, including

SecPath devices, this field has no meanings and the value is 0.

Slot ID

Interface Type

0

22

15

Offset

Chassis ID

27

31