< Home

ip netstream export index-switch

Function

The ip netstream export index-switch command sets the number of digits in the interface index contained in an exported packet carrying IPv4 flow statistics.

By default, the number of digits in interface indexes is 16.

Format

ip netstream export index-switch index-switch

undo ip netstream export index-switch

Parameters

Parameter

Description

Value

index-switch

Specifies the number of digits in the index of a specified interface.

The value is 16 or 32. The default value is 16.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the ip netstream export index-switch command to set the number of digits in the interface index to 16 or 32.

The number of digits in an interface index contained in exported packets must be the same as the number of digits in an interface index that can be parsed by the NMS. For example, if the NMS can parse the 32-digit interface index, set the number of digits in an interface index contained in exported packets to 32.

Precautions

The number of digits in the interface index can be changed to 32 only when the NMS supports 32-digit interface index. If the number of digits in an interface index contained in exported packets is different from the number of digits in an interface index supported by the NMS, the NMS cannot identify NetStream packets sent by the device.

This command is valid for V9. Before changing 16-digit interface indexes to 32-digit interface indexes, ensure that:

  • The version of exported packets of original flows is V9.
  • The version of exported packets carrying aggregation flow statistics is V9.

When the 32-digit interface index is used, the version of exported packets of original flows cannot be changed from V9 to V5, and the version of exported packets carrying aggregation flow statistics cannot be changed from V9 to V8.

Example

# Change the number of digits in the interface index contained in an exported packet carrying IPv4 flow statistics from 16 to 32.

<HUAWEI> system-view
[HUAWEI] ip netstream export version 9
[HUAWEI] ip netstream export index-switch 32
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >