- Table of Contents
-
- 14-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-iNQA commands
- 04-iFIT commands
- 05-SRPM commands
- 06-NTP commands
- 07-PTP commands
- 08-Network synchronization commands
- 09-SNMP commands
- 10-RMON commands
- 11-NETCONF commands
- 12-CWMP commands
- 13-EAA commands
- 14-Process monitoring and maintenance commands
- 15-Sampler commands
- 16-Mirroring commands
- 17-NetStream commands
- 18-IPv6 NetStream commands
- 19-TCP connection trace commands
- 20-Performance management commands
- 21-Flow log commands
- 22-Information center commands
- 23-Packet capture commands
- 24-Flow monitor commands
- Related Documents
-
Title | Size | Download |
---|---|---|
05-SRPM commands | 98.31 KB |
SRPM commands
activate profile
Use activate profile to activate a link-based delay profile.
Use undo activate profile to deactivate a link-based delay profile.
Syntax
activate profile
undo activate profile
Default
A link-based delay profile is not activated.
Views
Link-based delay profile view
Predefined user roles
network-admin
Usage guidelines
After creating or modifying a delay profile, you must activate the profile for the new configuration to take effect.
Reactivating a delay profile clears history measurement statistics on SRPM-enabled interfaces that are associated with this delay profile. The interfaces will use the new configuration to start new measurement sessions.
Before modifying parameters in a delay profile or terminating measurement sessions related to that profile, you must use the undo activate profile command to deactivate that profile.
Examples
# Activate the link-based delay profile named test.
<Sysname> system-view
[Sysname] srpm
[Sysname-srpm] delay-profile link-based test
[Sysname-srpm-delay-profile-link-based-test] activate profile
delay-profile link-based
Use delay-profile link-based to create a link-based delay profile and enter its view, or enter the view of an existing link-based delay profile.
Use undo delay-profile link-based to delete a link-based delay profile.
Syntax
delay-profile link-based profile-name
undo delay-profile link-based profile-name
Default
No link-based delay profiles exist.
Views
SRPM view
Predefined user roles
network-admin
Parameters
profile-name: Specifies a profile name, a case-sensitive string of 1 to 31 characters. The name can contain only letters, digits, and underscores.
Usage guidelines
Deleting a profile stops all measurements related to that profile and deletes all settings in the view of that profile and all settings related to that profile in interface view.
Examples
# Create a link-based delay profile named test and enter its view.
<Sysname> system-view
[Sysname] srpm
[Sysname-srpm] delay-profile link-based test
[Sysname-srpm-delay-profile-link-based-test]
display srpm delay-profile
Use display srpm delay-profile to display information about SRPM delay profiles.
Syntax
display srpm delay-profile { brief | link-based [ profile-name ] }
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
brief: Displays brief information about all delay profiles.
link-based: Displays detailed information about link-based delay profiles.
profile-name: Specifies a delay profile by its name, a case-sensitive string of 1 to 31 characters. The name can contain only letters, digits, and underscores (_). If you do not specify a delay profile, this command displays detailed information about all link-based delay profiles.
Examples
# Display brief information about all delay profiles.
<Sysname> display srpm delay-profile brief
Number of profiles: 2
Name Type Status Sessions
Test1 Link-based Activated 2
Test2 Link-based Inactivated 0
# Display detailed information about all link-based delay profiles.
<Sysname> display srpm delay-profile link-based
Number of profiles: 1
Link-based delay profile: test
Profile configuration:
Status : Activated
Protocol : udp
Destination port : 8000
Source port : 9000
Interval : 30 sec
DSCP : 4
Mode : two-way
Profile application:
Measured links : 2
Measured sessions : 2
Table 1 Command output
Field |
Description |
Name |
Profile name. |
Type |
SRPM measurement type. The value is Link-based. |
Status |
Whether the profile has been activated: · Activated. · Inactivated. |
Sessions |
Number of measurement sessions that use the profile. |
Link-based delay profile |
Name of the link-based delay profile. |
Profile configuration |
Profile configuration information. |
Protocol |
Encapsulation method used by SRPM packets. To configure the encapsulation method, use the protocol command. |
Destination port |
Destination UDP port number in measurement packets. |
Source port |
Source UDP port number in measurement packets. |
Interval |
Measurement packet sending interval, in seconds. |
DSCP |
DSCP value in measurement packets. |
Mode |
Measurement mode. Value two-way represents two-way measurement. |
Profile application |
Profile application statistics. |
Measured links |
Number of links being measured by using the current profile. |
Measured sessions |
Number of sessions being measured by using the current profile. |
display srpm delay-statistics
Use display srpm delay-statistics to display SRPM delay measurement statistics.
Syntax
display srpm delay-statistics [ interface interface-type interface-number ] [ number number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays delay measurement statistics for all interfaces.
number number: Displays the specified number of most recent delay measurement statistics. The value range for the number argument is 1 to 64. The default value is 5.
Examples
# Display the most recent five SRPM delay measurement statistics on all interfaces.
<Sysname> display srpm delay-statistics
Latest two-way delay statistics (us) for Ten-GigabitEthernet3/0/1:
Index Delay Jitter
12 41001 -
13 100001 59000
14 94001 6000
15 95001 1000
16 161001 66000
Average delay: 98201 Average jitter: 33000
Maximum delay: 161001 Maximum jitter: 66000
Minimum delay: 41001 Minimum jitter: 1000
Table 2 Command output
Field |
Description |
Latest two-way delay statistics (us) for Ten-GigabitEthernet3/0/1 |
Latest two-way delay measurement statistics for the links attached to the interface. The unit is microsecond. |
Index |
Index number of statistics. |
Delay |
Two-way delay value measured by SRPM, in microsegment. |
Jitter |
Jitter value, which is the absolute value for the difference between the delay values measured in two consecutive rounds. |
Average delay |
Average delay value measured by SRPM. |
Average jitter |
Average jitter value measured by SRPM. |
Maximum delay |
Maximum delay value measured by SRPM. |
Maximum jitter |
Maximum jitter value measured by SRPM. |
Minimum delay |
Minimum delay value measured by SRPM. |
Minimum jitter |
Minimum jitter value measured by SRPM. |
display srpm interface
Use display srpm interface to display interface-specific SRPM information.
Syntax
display srpm interface interface-type interface-number
display srpm interface [ interface-type interface-number ] brief
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays SRPM information on all interfaces.
brief: Displays brief interface-specific SRPM information. If you do not specify this keyword, the command displays detailed interface-specific SRPM information.
Examples
# Display brief interface-specific SRPM information.
<Sysname> display srpm interface brief
Interface Link-based delay-profile Status
XGE3/0/1 test Response enabled
XGE3/0/2 test2 Query enabled
# Display detailed SRPM information on interface Ten-GigabitEthernet 3/0/1.
<Sysname> display srpm interface ten-gigabitethernet 3/0/1
Link-based delay measurement:
Link-based delay-profile : test
Status : Response enabled
Measurement status : Measuring
Local IP address : 1.1.1.1
Destination IPv4 address : 1.1.1.2
Destination IPv6 address : 1::2
Local MAC address : 0001-0001-0001
Start time : 2020-03-31 11:40:45.31
End time : -
Counters:
Session ID : 1
Packets:
Sent : 855220
Received : 855220
Sent errors : 0
Received errors : 0
Table 3 Command output
Field |
Description |
Link-based delay measurement |
Information about link-based delay measurement. |
Link-based delay-profile |
Name of the link-based delay profile. |
Status |
SRPM status on the interface: · Response enabled—SRPM response is enabled. · Query enabled—SRPM query is enabled. |
Measurement status |
Measurement status of the delay profile: · Measuring. · Not measuring (reason)—For more information about the reason, see Table 4. |
Local IP address |
Local IPv4 or IPv6 address of the interface. |
Destination IPv4 address |
Destination IPv4 address of the interface. |
Destination IPv6 address |
Destination IPv6 address of the interface. |
Local MAC address |
Local MAC address. |
Start time |
Time when the measurement started. |
End time |
Time when the measurement finished. |
Counters |
Counter statistics. |
Session ID |
SRPM session ID. |
Packets |
Packet statistics. |
Sent |
Total number of packets sent by the interface. |
Received |
Total number of packets received by the interface. |
Sent errors |
Total number of error packets sent by the interface. |
Received errors |
Total number of error packets received by the interface. |
Table 4 Reasons for profile deactivation
Reason |
Description |
Profile inactivated |
The profile is not activated. |
This interface is an aggregate member port |
The interface is a member port of an aggregate interface. |
Invalid source IP |
The source IP address is invalid. |
Destination IP unreachable |
The destination IP address is unreachable. |
Line protocol down |
The link layer protocol is in down state on the interface. |
Internet protocol down |
The network layer protocol is in down state on the interface. Typically, this issue is caused because no IP address is configured for the interface. |
Entry is not ready |
SRPM entry is not ready. |
Failed to set the entry |
Failed to set the SRPM entry. |
dscp
Use dscp to specify a DSCP value for SRPM request packets.
Use undo dscp to restore the default.
Syntax
dscp dscp-value
undo dscp
Default
The DSCP value is 0 for SRPM request packets.
Views
Link-based delay profile view
Predefined user roles
network-admin
Parameters
dscp-value: Specifies a DSCP value in the range of 0 to 63.
Usage guidelines
DSCP determines packet transmission priority. The higher the DSCP value, the higher the transmission priority.
Use this command only when the delay profile is deactivated.
Examples
# In delay profile test, set the DSCP value to 3 for SRPM request packets.
<Sysname> system-view
[Sysname] srpm
[Sysname-srpm] delay-profile link-based test
[Sysname-srpm-delay-profile-link-based-test] dscp 3
Related commands
activate profile
interval
Use interval to set the interval for sending SRPM request packets.
Use undo interval to restore the default.
Syntax
interval interval-value
undo interval
Default
SRPM request packets are sent at intervals of 30 seconds.
Views
Link-based delay profile view
Predefined user roles
network-admin
Parameters
interval-value: Sets the interval for sending SRPM request packets, in the range of 1 to 3600 seconds.
Usage guidelines
Use this command only when the delay profile is deactivated.
Examples
# Set the interval to 60 seconds for sending SRPM request packets.
<Sysname> system-view
[Sysname] srpm
[Sysname-srpm] delay-profile link-based test
[Sysname-srpm-delay-profile-link-based-test] interval 60
Related commands
activate profile
protocol
Use protocol to specify an encapsulation method for SRPM packets.
Use undo protocol to restore the default.
Syntax
protocol { mpls | udp | udpv6 }
undo protocol
Default
By default, UDP encapsulation is used for SRPM packets.
Views
Link-based delay profile view
Predefined user roles
network-admin
Parameters
mpls: Specifies MPLS encapsulation.
udp: Specifies UDP encapsulation.
udpv6: Specifies UDPv6 encapsulation.
Usage guidelines
SRPM packets support the following encapsulation methods:
· MPLS encapsulation—MPLS is used to encapsulate SRPM packets.
· UDP encapsulation—UDP is used to encapsulate SRPM packets. The source and destination IP addresses in the IP header are IPv4 addresses.
· UDPv6 encapsulation—UDP is used to encapsulate SRPM packets. The source and destination IP addresses in the IP header are IPv6 addresses.
Use this command only when the delay profile is deactivated.
Examples
# Set the encapsulation method to UDP for SRPM packets.
<Sysname> system-view
[Sysname] srpm
[Sysname-srpm] delay-profile link-based test
[Sysname-srpm-delay-profile-link-based-test] protocol udp
Related commands
activate profile
reset srpm delay-statistics
Use reset srpm delay-statistics to clear statistics about SRPM delay measurement.
Syntax
reset srpm delay-statistics interface interface-type interface-number
Views
User view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Examples
# Clear delay measurement statistics on interface Ten-GigabitEthernet 3/0/1.
<Sysname> reset srpm delay-statistics interface ten-gigabitethernet 3/0/1
Related commands
display srpm delay-statistics
srpm
Use srpm to enable SRPM and enter SRPM view.
Use undo srpm to disable SRPM.
Syntax
srpm
undo srpm
Default
SRPM is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Execution of the undo srpm command stops all SRPM measurements and deletes all SRPM settings including the SRPM settings in SRPM view and interface view.
Examples
# Enable SRPM and enter SRPM view.
<Sysname> system-view
[Sysname] srpm
[Sysname-srpm]
srpm delay-profile link-based query enable
Use srpm delay-profile link-based query enable to enable link-based SRPM delay measurement query on an interface and associate a delay profile with the interface.
Use undo srpm delay-profile link-based query enable to disable link-based SRPM delay measurement query on an interface.
Syntax
srpm delay-profile link-based profile-name query enable
undo srpm delay-profile link-based profile-name query enable
Default
Link-based SRPM delay measurement query is disabled on an interface.
Views
Layer 3 interface view
Predefined user roles
network-admin
Parameters
profile-name: Specifies a link-based SRPM delay profile by its name, a case-sensitive string of 1 to 31 characters. The name can contain only letters, digits, and underscores (_).
Usage guidelines
This command enables an interface to send SRPM delay measurement query packets. Use this command on the local end.
Before you use this command, create the delay profile that will be specified in this command and activate the profile by using the activate profile command. This configuration ensures that the link-based SRPM delay measurement query feature can take effect.
An interface can be associated only with one delay profile. To change the delay profile associated with an interface, you must first use the undo srpm delay-profile link-based query enable command to disable this feature.
Examples
# On interface Ten-GigabitEthernet 3/0/1, enable link-based SRPM delay measurement query and associate delay profile test with the interface.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] srpm delay-profile link-based test query enable
Related commands
activate profile
delay-profile link-based
srpm delay-profile link-based response enable
Use srpm delay-profile link-based response enable to enable link-based SRPM delay measurement response on an interface and associate a delay profile with the interface.
Use undo srpm delay-profile link-based response enable to disable link-based SRPM delay measurement response on an interface.
Syntax
srpm delay-profile link-based profile-name response enable
undo srpm delay-profile link-based profile-name response enable
Default
Link-based SRPM delay measurement response is disabled on an interface.
Views
Layer 3 interface view
Predefined user roles
network-admin
Parameters
profile-name: Specifies a link-based SRPM delay profile by its name, a case-sensitive string of 1 to 31 characters. The name can contain only letters, digits, and underscores (_).
Usage guidelines
This command enables an interface to reply to a peer with SRPM delay measurement response packets. Use this command on the remote end.
Before you use this command, create the delay profile that will be specified in this command and activate the profile by using the activate profile command. This configuration ensures that the link-based SRPM delay measurement response feature can take effect.
An interface can be associated only with one delay profile. To change the delay profile associated with an interface, you must first use the undo srpm delay-profile link-based response enable command to disable this feature.
Examples
# On interface Ten-GigabitEthernet 3/0/1, enable link-based SRPM delay measurement response and associate delay profile test with the interface.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] srpm delay-profile link-based test response enable
Related commands
activate profile
delay-profile link-based
srpm destination
Use srpm destination to specify a destination IP address for SRPM packets.
Use undo srpm destination to restore the default.
Syntax
srpm destination { ipv4 ipv4-address | ipv6 ipv6-address }
undo srpm destination { ipv4 | ipv6 }
Default
No destination IP address is specified for SRPM packets.
Views
Layer 3 interface view
Predefined user roles
network-admin
Parameters
ipv4 ipv4-address: Specifies a destination IPv4 address.
ipv6 ipv6-address: Specifies a destination IPv6 address.
Usage guidelines
Use this command on an interface of the local end to specify the IP address of an interface on the remote end as the destination IP address of SRPM packets.
Examples
# On Ten-GigabitEthernet 3/0/1, specify destination IPv4 address 1.1.1.1 for SRPM packets.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] srpm destination 1.1.1.1
udp destination-port
Use udp destination-port to specify a destination UDP port number for SRPM packets.
Use undo udp destination-port to restore the default.
Syntax
udp destination-port port-number
undo udp destination-port
Default
The destination UDP port number is 5245 for SRPM delay measurement packets.
Views
Link-based delay profile view
Predefined user roles
network-admin
Parameters
port-number: Specifies a UDP port number in the range of 1 to 65535.
Usage guidelines
Use this command to modify the destination port number of SRPM packets to avoid port number conflicts. To obtain usage information about UDP port numbers, use the display udp command.
The destination port number on the local end must be the same as the source port number on the remote end.
The destination port number on the remote end must be the same as the source port number on the local end.
Use the udp destination-port command only when the delay profile is deactivated.
Examples
# Set the destination UDP port number to 8000 for SRPM packets.
<Sysname> system-view
[Sysname] srpm
[Sysname-srpm] delay-profile link-based test
[Sysname-srpm-delay-profile-link-based-test] udp destination-port 8000
Related commands
activate profile
display udp (Layer 3—IP Services Command Reference)
udp source-port
Use udp source-port to specify a source UDP port number for SRPM packets.
Use undo udp source-port to restore the default.
Syntax
udp source-port port-number
undo udp source-port
Default
The source UDP port number is 5245 for SRPM delay measurement packets.
Views
Link-based delay profile view
Predefined user roles
network-admin
Parameters
port-number: Specifies a UDP port number in the range of 1 to 65535.
Usage guidelines
Use this command to modify the source port number of SRPM packets to avoid port number conflicts. To obtain usage information about UDP port numbers, use the display udp command.
The source port number on the local end must be the same as the destination port number on the remote end.
The source port number on the remote end must be the same as the destination port number on the local end.
Use the udp source-port command only when the delay profile is deactivated.
Examples
# Set the source UDP port number to 9000 for SRPM packets.
<Sysname> system-view
[Sysname] srpm
[Sysname-srpm] delay-profile link-based test
[Sysname-srpm-delay-profile-link-based-test] udp source-port 9000
Related commands
activate profile