19-Telemetry Command Reference

HomeSupportReference GuidesCommand ReferencesH3C S9820-8M[S6880] Command References-R1330Pxx-6W10019-Telemetry Command Reference
03-MOD commands
Title Size Download
03-MOD commands 69.54 KB

MOD commands

collector

Use collector to configure the encapsulation information for packets sent to the collector by MOD.

Use undo collector to restore the default.

Syntax

collector source-ip source-address destination-ip destination-address source-port source-port destination-port destination-port [ vlan vlan-id ]

undo collector

Defaults

The encapsulation information for packets sent to the collector by MOD is not configured.

Views

MOD view

Predefined user roles

network-admin

Parameters

source-ip source-address: Specifies the source IP address for packets sent to the collector by MOD.

destination-ip destination-address: Specifies the destination IP address for packets sent to the collector by MOD.

source-port source-port: Specifies the source port number for packets sent to the collector by MOD.

destination-port destination-port: Specifies the destination port number for packets sent to the collector by MOD.

vlan vlan-id: Specifies the VLAN for packets sent to the collector by MOD.

Usage guidelines

The packets are encapsulated with the information specified by using this command and then routed to the remote collector.

Examples

# Encapsulate the packets sent to the collector by MOD with the following information: source IP address 10.10.10.10, destination IP address 20.20.20.20, source port number 10, and destination port number 20.

<Sysname> system-view

[Sysname] telemetry mod

[Sysname-telemetry-mod] collector source-ip 10.10.10.10 destination-ip 20.20.20.20 source-port 10 destination-port 20

Related commands

telemetry mod

device-id

Use device-id to configure the device ID for MOD.

Use undo device-id to restore the default.

Syntax

device-id address

undo device-id

Defaults

No device ID is configured for MOD.

Views

MOD view

Predefined user roles

network-admin

Parameters

address: Specifies the device ID for MOD. This argument can be any IPv4 address except 0.0.0.0. The device ID will be padded in the packets sent to the collector, so that the collector can identify the source of packets.

Examples

# Configure the device ID for MOD as 10.10.10.10.

<Sysname> system-view

[Sysname] telemetry mod

[Sysname-telemetry-mod] device-id 10.10.10.10

Related commands

telemetry mod

display telemetry mod

Use display telemetry mod to display MOD configuration information.

Syntax

display telemetry mod [ slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays entries on the master device.

Examples

# Display MOD configuration information.

<Sysname> system-view

[Sysname] display telemetry mod

Status             : Successful

Drop reason list   :

  congestion

Device ID          : 192.168.56.2

Transport protocol : UDP

Collector

  Source IP        : 1.1.1.1

  Destination IP   : 1.1.1.2

  Source port      : 80

  Destination port : 90

  VLAN ID          : 20

Table 1 Command output

Field

Description

Status

MOD configuration deployment state:

·     Successful.

·     Failed.

·     Inactive—The reason-list command is not executed.

Drop reason list

Packet drop reasons (see Table 2).

None indicates that no packet drop reason is configured.

Transport protocol

Transport protocol that MOD uses to send packets to the collector.

Collector

Encapsulation information for packets sent to the collector by MOD.

·     Source IP.

·     Destination IP.

·     Source port.

·     Destination port.

·     VLAN ID.

reason-list

Use reason-list to configure a list of packet drop reasons monitored by MOD.

Use undo reason-list to remove a list of packet drop reasons monitored by MOD.

Syntax

reason-list { reason-list | all }

undo reason-list { reason-list | all }

Defaults

No packet drop reasons monitored by MOD are configured. The device does not monitor packet drops.

Views

MOD view

Predefined user roles

network-admin

Parameters

reason-list: Specifies a list of packet drop reasons. Table 2 shows the possible packet drop reasons.

Table 2 Packet drop reasons

Value

Description

congestion

Network congestion.

all: Specifies all packet drop reasons.

Examples

# Configure MOD to monitor all packet drop reasons.

<Sysname> system-view

[Sysname] telemetry mod

[Sysname-telemetry-mod] reason-list all

Related commands

telemetry mod

telemetry mod

Use telemetry mod to enter MOD view.

Syntax

telemetry mod

Views

System view

Predefined user roles

network-admin

Examples

# Enter MOD view.

<Sysname> system-view

[Sysname] telemetry mod

[Sysname-telemetry-mod]

telemetry mod reason-group-map

Use telemetry mod reason-group-map to enter drop reason mapping view.

Syntax

telemetry mod reason-group-map

Views

System view

Predefined user roles

network-admin

Examples

# Enter drop reason mapping view.

<Sysname> system-view

[Sysname] telemetry mod reason-group-map

[Sysname-telemetry-reason-group-map]

transport-protocol

Use transport-protocol to specify a protocol that MOD uses to send packets to the collector.

Use undo transport-protocol to restore the default.

Syntax

transport-protocol { grpc | udp }

undo transport-protocol

Default

MOD uses UDP to send packets to the collector.

Views

MOD view

Predefined user roles

network-admin

Parameters

grpc: Uses gRPC to send packets to the collector.

udp: Uses UDP to send packets to the collector.

Usage guidelines

If you use UDP to send packets to the collector, you must configure the encapsulation information by using the collector command.

Examples

# Specify UDP for MOD to use to send packets to the collector.

<Sysname> system-view

[Sysname] telemetry mod

[Sysname-telemetry-mod] transport-protocol udp

Related commands

collector

telemetry mod

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网