mtrace-service port

Use mtrace-service port to specify the UDP port number used by mtrace.

Use undo mtrace-service port to restore the default.

Syntax

mtrace-service port number

undo mtrace-service port

Default

Mtrace uses UDP port number 10240.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

number: Specifies a UDP port number to be used by mtrace, in the range of 1024 to 49151.

Usage guidelines

Execute this command only when mtrace2 is used.

For successful mtrace, do not specify a UDP port number used by other modules.

You must specify the same UDP port number on all devices on the traced path. Additionally, the specified UDP port number must be the same as that specified in the mtrace v2 command.

Examples

# Specify 12345 as the UDP port number used by mtrace.

<Sysname> system-interview
[sysname] mtrace-service port 12345

Related commands

mtrace v2