R21xx-HP FlexFabric 11900 Network Management and Monitoring Command Reference

127
Usage guidelines
If you configure both the source interface command and the source ip command, the source ip command
takes effect.
If you configure the source interface command but not the source ip command for the ICMP echo
operation, the IP address of the source interface serves as the source IP address of the probe packet.
The specified source IP address must be the IP address of a local interface. The local interface must be up.
Otherwise, no probe packets can be sent out.
Examples
# Configure the source IP address for ICMP echo requests as 10.1.1.1.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo
[Sysname-nqa-admin-test-icmp-echo] source ip 10.1.1.1
Related commands
source interface
source port
Use source port to configure the source port for probe packets.
Use undo source port to remove the configured source port number.
Syntax
source port port-number
undo source port
Default
No source port number is configured for probe packets.
Views
UDP echo operation view
Predefined user roles
network-admin
Parameters
port-number: Specifies the source port number, in the range of 1 to 50000.
Examples
# Configure port 8000 as the source port for probe packets in the UDP echo operation.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type udp-echo
[Sysname-nqa-admin-test-udp-echo] source port 8000
statistics hold-time
Use statistics hold-time to configure the hold time of statistics groups for an NQA operation.