ipv4-address port(Destination group view)

Function

The ipv4-address port command configures the IPv4 address and port number of a destination collector, and the protocol and encryption mode for data sending.

The undo ipv4-address port command deletes the IPv4 address and port number of a destination collector, and the protocol and encryption mode of data sending.

By default, no IP address or port number is configured for a destination collector, and no protocol or encryption mode is configured for data sending.

Format

ipv4-address ip-address-ipv4 port port-value [ vpn-instance vpn-name ] [ protocol { grpc [ no-tls ] | udp } ]

undo ipv4-address ip-address-ipv4 port port-value [ vpn-instance vpn-name ] [ protocol { grpc [ no-tls ] | udp } ]

Parameters

Parameter Description Value
ip-address-ipv4

Specifies an IPv4 address for the destination collector.

The value is in dotted decimal notation.

port-value

Specifies a port number for the destination collector.

The value is an integer ranging from 1 to 65535.

vpn-instance vpn-name

Specifies a VPN instance name for the destination collector.

The value is a string of 1 to 31 characters. The VPN instance name specified must exist on the device.

protocol

Indicates the data sending protocol.

-

grpc

Indicates that the data sending protocol is gRPC.

-

no-tls

Parameter indicating whether to use TLS encryption.

  • If this parameter is set, TLS encryption is not used.
  • If this parameter is not set, TLS encryption can be used.

-

udp

Indicates that the data sending protocol is UDP.

-

Views

Destination group view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
telemetry write

Usage Guidelines

Usage Scenario

To set the IP address, port number, protocol, and encryption mode after a destination group is created, run the ipv4-address port command.

Precautions

This command can be run for no more than five times for each destination group.

Both this command and the protocol command in the Subscription view can be run to configure a protocol and encryption mode for the target collector. If the target collector is associated with the subscription, command configurations take effect based on the following rules:

  • If the protocol command has been run in the Subscription view, the protocol and encryption mode configured in the Subscription view take effect.
  • If the protocol command is not run in the Subscription view, the protocol and encryption mode configured in the Destination-group view take effect.

Example

# Set the IPv4 address and port number of the IPv4 destination collector to 10.1.1.1 and 10001 and set the data sending protocol to gRPC without TLS encryption.
<HUAWEI> system-view
[~HUAWEI] telemetry
[~HUAWEI-telemetry] destination-group test
[*HUAWEI-telemetry-destination-group-test] ipv4-address 10.1.1.1 port 10001 protocol grpc no-tls
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >