HP 6600/HSR6600 Routers Network Management and Monitoring Command Reference Part number: 5998-1510 Software version: A6602-CMW520-R3103 A6600-CMW520-R3102-RPE A6600-CMW520-R3102-RSE HSR6602_MCP-CMW520-R3102 Document version: 6PW103-20130628
Legal and notice information © Copyright 2013 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents Ping, tracert, and system debugging commands······································································································· 1 Ping and tracert commands ············································································································································· 1 ping ············································································································································································ 1 pin
reaction checked-element probe-duration ··········································································································· 50 reaction checked-element probe-fail (for trap)···································································································· 52 reaction checked-element probe-fail (for trigger) ······························································································· 53 reaction checked-element rtt ·································
SNMP commands ······················································································································································ 97 display snmp-agent community ···························································································································· 97 display snmp-agent group ···································································································································· 98 display snmp-agent local-e
Traffic mirroring configuration commands ············································································································ 160 mirror-to ································································································································································ 160 NetStream configuration commands ····················································································································· 161 display ip netstream cache·
info-center logfile enable ···································································································································· 213 info-center logfile frequency ······························································································································· 213 info-center logfile overwrite-protection ·············································································································· 214 info-center logfile size-quota
Websites······························································································································································· 251 Conventions ·································································································································································· 252 Index ··························································································································································
Ping, tracert, and system debugging commands Ping and tracert commands ping Use ping to verify whether the destination in an IP network is reachable, and to display the related statistics.
• If no response from the destination is received within the timeout time, the interval to send the next echo request equals the timeout value plus the value of interval. -n: Disables domain name resolution for the host argument. When this keyword is not provided, if the host argument represents the host name of the destination, the device translates host into an address. -p pad: Specifies the value of the pad field in an ICMP echo request, in hexadecimal format, 1 to 8 bits, in the range 0 to ffffffff.
ping 1.1.2.2 PING 1.1.2.2: 56 data bytes, press CTRL_C to break Reply from 1.1.2.2: bytes=56 Sequence=1 ttl=254 time=205 ms Reply from 1.1.2.2: bytes=56 Sequence=2 ttl=254 time=1 ms Reply from 1.1.2.2: bytes=56 Sequence=3 ttl=254 time=1 ms Reply from 1.1.2.2: bytes=56 Sequence=4 ttl=254 time=1 ms Reply from 1.1.2.2: bytes=56 Sequence=5 ttl=254 time=1 ms --- 1.1.2.2 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.
--- 1.1.2.2 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/41/205 ms The output shows the following: • The destination in topology voice was reachable. • All ICMP echo requests sent by the source got responses. • The minimum time, average time, and maximum time for the packet’s roundtrip time are 1 ms, 41 ms, and 205 ms respectively. # Test whether the device with an IP address of 1.1.2.2 is reachable. Only the check results are displayed.
Record Route: 1.1.2.1 1.1.2.2 1.1.1.2 1.1.1.1 --- 1.1.2.2 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/11/53 ms The output shows the following: • The destination was reachable. • The route is 1.1.1.1 <-> {1.1.1.2; 1.1.2.1} <-> 1.1.2.2. Table 1 Command output Field Description PING 1.1.2.2 Test whether the device with IP address 1.1.2.2 is reachable. 56 data bytes Number of data bytes in each ICMP echo request.
Syntax ping ipv6 [ -a source-ipv6 | -c count | -m interval | -s packet-size | -t timeout | -vpn-instance vpn-instance-name ] * host [ -i interface-type interface-number ] Views Any view Default command level 0: Visit level Parameters -a source-ipv6: Specifies the source IPv6 address of an ICMP echo request. It must be a legal IPv6 address configured on the device.
Reply from 2001::1 bytes=56 Sequence=1 hop limit=64 time = 62 ms Reply from 2001::1 bytes=56 Sequence=2 hop limit=64 time = 26 ms Reply from 2001::1 bytes=56 Sequence=3 hop limit=64 time = 20 ms Reply from 2001::1 bytes=56 Sequence=4 hop limit=64 time = 4 ms Reply from 2001::1 bytes=56 Sequence=5 hop limit=64 time = 16 ms --- 2001::2 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.
Views Any view Default command level 0: Visit level Parameters -a source-ip: Specifies the source IP address of a tracert packet. It must be a legal IP address configured on the device. If this parameter is not provided, the source IP address of an ICMP echo request is the primary IP address of the outbound interface of the tracert packet. -f first-ttl: Specifies the first TTL (the allowed number of hops for the first packet). The value range is 1 to 255, and the default is 1.
2 192.0.2.9 (192.0.2.9) 0.861 ms 0.718 ms 0.679 ms MPLS Label=100048 Exp=0 TTL=1 S=1 3 192.0.2.5 (192.0.2.5) 0.822 ms 0.731 ms 0.708 ms MPLS Label=100016 Exp=0 TTL=1 S=1 4 192.0.2.1 (192.0.2.1) 0.961 ms 8.676 ms 0.875 ms Table 2 Command output Field Description traceroute to 1.1.2.2(1.1.2.2) Display the route that the IP packets traverse from the current device to the device whose IP address is 1.1.2.2.
-p port: Specifies the UDP port number of the destination. The value range is 1 to 65535, and the default is 33434. You do not need to modify this parameter. -q packet-number: Specifies the number of probe packets sent each time. The value range is 1 to 65535, and the default is 3. -vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the destination belongs, where vpn-instance-name is a case-sensitive string of 1 to 31 characters.
Default command level 3: System level Parameters all: All debugging functions. timeout time: Specifies the timeout time in minutes for the debugging all command. When all debugging is enabled, the system automatically executes the undo debugging all command after the time. The value range is 1 to 1440. module-name: Module name, such as arp or device. To display the current module name, use the debugging ? command. option: The debugging option for a specific module.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
NQA configuration commands NQA client configuration commands advantage-factor Use advantage-factor to configure the advantage factor that is used to count Mean Opinion Scores (MOS) and Calculated Planning Impairment Factor (ICPIF) values. Use undo advantage-factor to restore the default. Syntax advantage-factor factor undo advantage-factor Default The advantage factor is 0.
Syntax codec-type { g711a | g711u | g729a } undo codec-type Default The codec type for the voice operation is G.711 A-law. Views Voice operation view Default command level 2: System level Parameters g711a: Specifies G.711 A-law codec type. g711u: Specifies G.711 μ-law codec type g729a: Specifies G.729 A-law codec type. Examples # Configure the codec type for the voice operation as g729a.
If the payload length is greater than the string length, the system fills the payload with the string cyclically until the payload is full. For example, if you configure the string as abcd and the payload size as 6 bytes, abcdab is filled. • How the string is filled varies with operation types: • For the ICMP echo operation, the string fills the whole payload of ICMP echo requests.
Test type Codec type Default value (in bytes) Voice G.711 A-law 172 Voice G.711 μ-law 172 Voice G.729 A-law 32 Configure the size of the payload in each probe packet correctly. If the traffic amount is large in the network, configure a smaller payload size to reduce network burden. If runt packets are required to be transmitted in the network, configure a bigger payload size to avoid packet loss. Examples # Configure the size of the payload in each ICMP echo request as 80 bytes.
Syntax destination ip ip-address undo destination ip Default No destination IP address is configured for the operation. Views DLSw operation view, FTP operation view, DNS operation view, HTTP operation view, ICMP echo operation view, SNMP operation view, TCP operation view, UDP echo operation view, UDP jitter operation view, voice operation view Default command level 2: System level Parameters ip-address: Specifies the destination IP address of the operation.
Examples # Configure the destination port number of the UDP echo operation as 9000. system-view [Sysname] nqa entry admin test [Sysname-nqa-admin-test] type udp-echo [Sysname-nqa-admin-test-udp-echo] destination port 9000 display nqa history Use display nqa history to display the history records of the specified or all NQA operations.
5 328 Succeeded 2007-04-29 20:54:24.8 4 328 Succeeded 2007-04-29 20:54:24.5 3 328 Succeeded 2007-04-29 20:54:24.1 2 328 Succeeded 2007-04-29 20:54:23.8 1 328 Succeeded 2007-04-29 20:54:23.4 Table 4 Command output Field Description Index History record number. Response Round-trip time if the operation succeeds, timeout time upon timeout, or 0 if the operation cannot be completed (in milliseconds). Status value of test results: Status Time • • • • Succeeded. Unknown error.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If the threshold type is average value, or the monitored performance metric is ICPIF or MOS in the voice operation, the monitoring results are invalid. The monitoring results are accumulated after the NQA operation starts and are not cleared after the operation completes.
Monitored performance metric RTT jitter-DS/jitter-SD Threshold type Collect data in Checked Num Over-threshold Num accumulate Packets sent after the operation starts Number of packets sent after the operation starts Number of packets of which the round-trip time exceeds the threshold after the operation starts average N/A N/A N/A accumulate Packets sent after the operation starts Number of packets sent after the operation starts Number of packets of which the one-way jitter exceeds the thr
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the result of the UDP jitter operation. display nqa result admin test NQA entry (admin admin, tag test) test results: Destination IP address: 192.168.1.42 Send operation times: 10 Receive response times: 10 Min/Max/Average round trip time: 15/46/26 Square-Sum of round trip time: 8103 Last succeeded probe time: 2008-05-29 10:56:38.
Square-Sum of round trip time: 0 Last succeeded probe time: 0-00-00 00:00:00.
Field Description Min positive SD Minimum positive jitter from source to destination. Min positive DS Minimum positive jitter from destination to source. Max positive SD Maximum positive jitter from source to destination. Max positive DS Maximum positive jitter from destination to source. Positive SD number Number of positive jitters from source to destination. Positive DS number Number of positive jitters from destination to source.
Field Description Sum of DS delay Sum of delays from destination to source. Square sum of SD delay Square sum of delays from source to destination. Square sum of DS delay Square sum of delays from destination to source. SD lost packet(s) Number of lost packets from the source to the destination. DS lost packet(s) Number of lost packets from the destination to the source. Lost packet(s) for unknown reason Number of lost packets for unknown reasons.
Examples # Display the statistics of the UDP jitter operation. display nqa statistics admin test NQA entry (admin admin, tag test) test statistics: NO. : 1 Destination IP address: 1.1.1.2 Start time: 2007-01-01 09:33:22.
5 packet-loss accumulate 0 0 6 RTT accumulate 100 52 # Display the statistics of the voice operation. display nqa statistics admin test NQA entry (admin admin, tag test) test statistics: NO. : 1 Destination IP address: 1.1.1.2 Start time: 2007-01-01 09:33:45.
1 ICPIF - - - 2 MOS - - - Table 8 Command output Field Description No. Statistics group number. Destination IP address IP address of the destination. Start time Time when the operation started. Life time Operation duration in seconds. Send operation times Number of probe packets sent. Receive response times Number of response packets received. Min/Max/Average round trip time Minimum/maximum/average round-trip time in milliseconds.
Field Description Min negative DS Minimum absolute value among negative jitters from destination to source. Max negative SD Maximum absolute value among negative jitters from source to destination. Max negative DS Maximum absolute value among negative jitters from destination to source. Negative SD number Number of negative jitters from source to destination. Negative DS number Number of negative jitters from destination to source.
Field Description Checked Element Monitored element. Threshold Type Threshold type. Checked Num Number of targets that have been monitored for data collection. Over-threshold Num Number of threshold violations.
filename Use filename to specify a file to be transferred between the FTP server and the FTP client. Use undo filename to restore the default. Syntax filename filename undo filename Default No file is specified. Views FTP operation view Default command level 2: System level Parameters filename: Specifies the name of a file, a case-sensitive string of 1 to 200 characters. Examples # Specify the file to be transferred between the FTP server and the FTP client as config.txt.
Parameters interval: Specifies the interval in milliseconds between two consecutive operations, in the range of 0 to 604800000. An interval of 0 sets the operation to be performed only once, and to not collect any statistics. Examples # Configure the ICMP echo operation to repeat at an interval of 1000 milliseconds.
Syntax history-record keep-time keep-time undo history-record keep-time Default The history records in an NQA operation are kept for 120 minutes. Views Any NQA operation view Default command level 2: System level Parameters keep-time: Specifies how long the history records can be saved. The time is in the range of 1 to 1440 minutes. Usage guidelines When an NQA operation completes, the timer starts. All records are removed when the lifetime is reached.
Usage guidelines If the number of history records in an NQA operation exceeds the maximum number, the earliest history record is removed. Examples # Configure the maximum number of history records that can be saved in an NQA operation as 10. system-view [Sysname] nqa entry admin test [Sysname-nqa-admin-test] type icmp-echo [Sysname-nqa-admin-test-icmp-echo] history-record number 10 http-version Use http-version to specify the HTTP version used in the HTTP operation.
Default The data transmission mode use by the FTP operation is active. Views FTP operation view Default command level 2: System level Parameters active: Sets the data transmission mode to active for the FTP operation. In this mode, the FTP server initiates a connection request. passive: Sets the data transmission mode to passive for the FTP operation. In this mode, the FTP client initiates a connection request. Examples # Set the data transmission mode to passive for the FTP operation.
[Sysname-nqa-admin-test] type icmp-echo [Sysname-nqa-admin-test-icmp-echo] next-hop 10.1.1.1 nqa Use nqa to create an NQA operation and enter NQA operation view. Use undo nqa to remove the operation. Syntax nqa entry admin-name operation-tag undo nqa { all | entry admin-name operation-tag } Default No NQA operation is created.
Default The NQA client is enabled. Views System view Default command level 2: System level Examples # Enable the NQA client. system-view [Sysname] nqa agent enable Related commands nqa server enable nqa agent max-concurrent Use nqa agent max-concurrent to configure the maximum number of operations that the NQA client can simultaneously perform. Use undo nqa agent max-concurrent to restore the default.
Syntax nqa schedule admin-name operation-tag start-time { hh:mm:ss [ yyyy/mm/dd ] | now } lifetime { lifetime | forever } undo nqa schedule admin-name operation-tag Views System view Default command level 2: System level Parameters admin-name: Specifies the administrator name, a case-insensitive string of 1 to 32 characters. operation-tag: Specifies the operation tag, a case-insensitive string of 1 to 32 characters. start-time: Specifies the start time and date of the NQA operation.
Default The operation type is get. Views FTP operation view Default command level 2: System level Parameters get: Gets a file from the FTP server. put: Transfers a file to the FTP server. Examples # Specify the operation type for the FTP operation as put. system-view [Sysname] nqa entry admin test [Sysname-nqa-admin-test] type ftp [Sysname-nqa-admin-test-ftp] operation put operation (HTTP operation view) Use operation to specify the operation type for the FTP operation.
operation interface Use operation interface to specify the interface to perform the DHCP operation. The specified interface must be up. Otherwise, no probe packets can be sent out. Use undo operation interface to restore the default. Syntax operation interface interface-type interface-number undo operation interface Default No interface is specified to perform the DHCP operation.
Default command level 2: System level Parameters cipher: Sets a ciphertext password. simple: Sets a plaintext password. password: Specifies the password used to log in to the FTP server. This argument is case sensitive. If simple is specified, it must be a plaintext string of 1 to 32 characters. If cipher is specified, it must be a ciphertext string of 1 to 73 characters. If neither cipher nor simple is specified, you set a plaintext password.
• A TCP or DLSw operation sets up a connection. • A UDP jitter or a voice operation sends a specific number of probe packets. The number of probe packets is configurable with the probe packet-number command. • An FTP, HTTP, DHCP, or DNS operation uploads or downloads a file, gets a web page, gets an IP address through DHCP, or translates a domain name to an IP address. • An ICMP echo or UDP echo operation sends an ICMP echo request or a UDP packet.
probe packet-number Use probe packet-number to configure the number of packets to be sent in one UDP jitter or voice probe. Use undo probe packet-number to restore the default. Syntax probe packet-number packet-number undo probe packet-number Default An UDP jitter probe sends 10 packets, and a voice probe sends 1000 packets. Views UDP jitter operation view, voice operation view Default command level 2: System level Parameters packet-number: Specifies the number of packets to be sent per probe.
Parameters packet-timeout: Specifies the timeout time in milliseconds for waiting for a response in the UDP jitter or voice operation. The value is in the range of 10 to 3600000. Examples # Configure the timeout time for waiting for a response in the UDP jitter operation as 100 milliseconds.
reaction checked-element icpif Use reaction checked-element icpif to configure a reaction entry for monitoring the ICPIF value in the voice operation. You cannot edit a reaction entry. To change the attributes in a reaction entry, use undo reaction to delete the entry first. Use undo reaction to delete the specified reaction entry.
reaction checked-element { jitter-ds | jitter-sd } Use reaction checked-element { jitter-ds | jitter-sd } to configure a reaction entry for monitoring one-way jitter in the NQA operation. You cannot edit a reaction entry. To change the attributes in a reaction entry, use undo reaction to delete the entry first and then configure a new one. Use undo reaction to delete the specified reaction entry.
Examples # Create reaction entry 1 for monitoring the average destination-to-source jitter of UDP jitter packets. Set the upper threshold to 50 milliseconds, and the lower threshold to 5 milliseconds. Before the NQA operation starts, the initial state of the reaction entry is invalid. After the operation, the average destination-to-source jitter is checked. If it exceeds the upper threshold, the state of the reaction entry is set to over-threshold.
upper-threshold: Specifies the upper threshold in the range of 1 to 500. lower-threshold: Specifies the lower threshold in the range of 1 to 500. It must not be greater than the upper threshold. action-type: Specifies what action to be triggered. The default action is none. none: Specifies the action of only displaying results on the terminal display. trap-only: Specifies the action of displaying results on the terminal display and meanwhile sending SNMP trap messages to the NMS.
owd-sd: Specifies the source-to-destination delay of each probe packet as the monitored element. threshold-value: Specifies threshold values in milliseconds. upper-threshold: Specifies the upper threshold in the range of 0 to 3600000. lower-threshold: Specifies the lower threshold in the range of 0 to 3600000. It must not be greater than the upper threshold. Usage guidelines Only successful probe packets are monitored. Failed probe packets are not counted.
accumulate accumulate-occurrences: Specifies the maximum number of lost packets in the operation. The value is in the range of 1 to 15000 for the UDP jitter operation and 1 to 60000 for the voice operation. action-type: Specifies what action to be triggered. The default action is none. none: Specifies the action of only displaying results on the terminal display. trap-only: Specifies the action of displaying results on the terminal display and meanwhile sending SNMP trap messages to the NMS.
consecutive consecutive-occurrences: Specifies the number of consecutive threshold violations after the NQA operation starts. The value is in the range of 1 to 16. threshold-value: Specifies threshold values in milliseconds. upper-threshold: Specifies the upper threshold in the range of 0 to 3600000. lower-threshold: Specifies the lower threshold in the range of 0 to 3600000. It must not be greater than the upper threshold. action-type: Specifies what action to be triggered. The default action is none.
reaction checked-element probe-fail (for trap) Use reaction checked-element probe-fail to configure a reaction entry for monitoring the probe results of the operation. If the number of consecutive probe failures reaches the threshold, collaboration with other modules is triggered. You cannot edit a reaction entry. To change the attributes in a reaction entry, use undo reaction to delete the entry first and then configure a new one. Use undo reaction to delete the specified reaction entry.
exceeds 10, the state of the entry is set to over-threshold. If it is below the lower threshold, the state of the entry is set to below-threshold. Once the state of the reaction entry changes, a trap message is generated and sent to the NMS.
[Sysname-nqa-admin-test-tcp] reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only Related commands track (High Availability Command Reference) reaction checked-element rtt Use reaction checked-element rtt to configure a reaction entry for monitoring packet round-trip time. You cannot edit a reaction entry. To change the attributes in a reaction entry, use undo reaction to delete the entry first and then configure a new one.
Examples # Create reaction entry 1 for monitoring the average round-trip time of UDP jitter probe packets. Set the upper threshold to 50 milliseconds and lower threshold to 5 milliseconds. Before the NQA operation starts, the initial state of the reaction entry is invalid. After the operation, the average packet round-rip time is checked. If it exceeds the upper threshold, the state is set to over-threshold. If it is below the lower threshold, the state is set to below-threshold.
test-failure cumulate-probe-failures: Sends a trap if the total number of probe failures in an operation is greater than or equal to cumulate-probe-failures. The value for cumulate-probe-failures is in the range of 1 to 15. The system counts the total probe failures after the last operation completes, so one trap at most is sent. Usage guidelines Only the reaction trap test-complete command is supported for the voice operation.
Use undo route-option bypass-route to disable the routing table bypass function. Syntax route-option bypass-route undo route-option bypass-route Default The routing table bypass function is disabled.
Usage guidelines If you configure both the source interface command and the source ip command, the source ip command takes effect. Examples # Specify the primary IP address of interface GigabitEthernet 2/0/1 as the source IP address of ICMP echo request packets.
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 of probe packets. Use undo source port to remove the configured port number. Syntax source port port-number undo source port Default No source port number is configured.
Views DLSw operation view, DNS operation view, FTP operation view, HTTP operation view, ICMP echo operation view, SNMP operation view, TCP operation view, UDP echo operation view, UDP jitter operation view, voice operation view Default command level 2: System level Parameters hold-time: Specifies the hold time of statistics groups in minutes, in the range of 1 to 1440. Usage guidelines This command is not available for the DHCP operation.
Examples # Configure the NQA to save up to 5 statistics groups for the ICMP operation. system-view [Sysname] nqa entry admin test [Sysname-nqa-admin-test] type icmp-echo [Sysname-nqa-admin-test-icmp-echo] statistics max-group 5 statistics interval Use statistics interval to configure the interval for collecting result statistics for an NQA operation. Use undo statistics interval to restore the default.
Syntax tos value undo tos Default The ToS value in the IP packet header of probe packets is 0. Views DLSw operation view, DNS operation view, FTP operation view, HTTP operation view, ICMP echo operation view, SNMP operation view, TCP operation view, UDP echo operation view, UDP jitter operation view, voice operation view Default command level 2: System level Parameters value: Specifies the ToS value in the IP packet header of probe packets, in the range of 0 to 255.
Examples # Configure the TTL for probe packets as 16. system-view [Sysname] nqa entry admin test [Sysname-nqa-admin-test] type icmp-echo [Sysname-nqa-admin-test-icmp-echo] ttl 16 type Use type to specify the operation type of the NQA operation and enter operation view. Syntax type { dhcp | dlsw | dns | ftp | http | icmp-echo | snmp | tcp | udp-echo | udp-jitter | voice } Default No test type is specified.
Use undo url to remove the specified website URL. Syntax url url undo url Views HTTP operation view Default command level 2: System level Parameters url: Specifies the website URL for the operation to visit, a case-sensitive string of 1 to 185 characters. Usage guidelines The character string of the configured URL cannot contain spaces. Examples # Configure the website URL that the HTTP operation visits as /index.htm.
[Sysname-nqa-admin-test] type ftp [Sysname-nqa-admin-test-ftp] username administrator Related commands • password • operation vpn-instance (ICMP echo operation view) Use vpn-instance to apply the ICMP echo operation to the specified VPN. Use undo vpn-instance to restore the default. Syntax vpn-instance vpn-instance-name undo vpn-instance Default The ICMP echo operation applies to the public network.
Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Default The NQA server is disabled. Views System view Default command level 2: System level Examples # Enable the NQA server. system-view [Sysname] nqa server enable Related commands • nqa server tcp-connect • nqa server udp-echo • display nqa server status nqa server tcp-connect Use nqa server tcp-connect to configure a listening service to enable the NQA server to listen and respond on the specified IP address and port.
[Sysname] nqa server tcp-connect 169.254.10.2 9000 Related commands • nqa server enable • display nqa server status nqa server udp-echo Use nqa server udp-echo to configure a UDP echo listening service to enable the NQA server to listen and respond on the specified IP address and port. Use undo nqa server udp-echo to remove the UDP listening service created.
NTP configuration commands display ntp-service sessions Use display ntp-service sessions to display information about all NTP sessions. Syntax display ntp-service sessions [ verbose ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters verbose: Displays detailed information about all NTP sessions. If you do not specify this keyword, the command displays only brief information about all NTP sessions.
Field Description Reference clock ID of the clock source. • If the reference clock is the local clock, the value of this field is related to the value of the stra field: { reference { When the value of the stra field is 0 or 1, this field will be LOCL. When the stra field has another value, this field will be the IP address of the local clock. • If the reference clock is the clock of another device on the network, the value of this field will be the IP address of that device.
rcvtime: 10:56:22.442 UTC Aug 7 2009(CE2686D6.7149E881) xmttime: 10:56:22.442 UTC Aug 7 2009(CE2686D6.71464DC2) filter delay : 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 filter offset: 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 filter disper: 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 reference clock status: working abnormally timecode: Total associations : 1 Table 12 Command output Field Description clock source IP address of the clock source.
Field Description Operation mode of the local device: local mode local poll • • • • • • • • unspec—The mode is unspecified. active—Active mode. passive—Passive mode. client—Client mode. server—Server mode. bdcast—Broadcast server mode. control—Control query mode. private—Private message mode. Poll interval of the local device, in seconds. The value displayed is a power of 2. For example, if the displayed value is 6, the poll interval of the local device is 26, or 64 seconds.
Field peer interface Description Source interface. If the source interface is not specified, this field is wildcard. reftime Reference timestamp in the NTP message. orgtime Originate timestamp in the NTP message. rcvtime Receive timestamp in the NTP message. xmttime Transmit timestamp in the NTP message. filter delay Delay information. filter offset Offset information. filter disper Dispersion information. Status of the reference clock: reference clock status • working normally.
display ntp-service status Clock status: unsynchronized Clock stratum: 16 Reference clock ID: none Nominal frequency: 100.0000 Hz Actual frequency: 100.0000 Hz Clock precision: 2^17 Clock offset: 0.0000 ms Root delay: 0.00 ms Root dispersion: 0.00 ms Peer dispersion: 0.00 ms Reference time: 00:00:00.000 UTC Jan 1 1900(00000000.00000000) Table 13 Command output Field Description Status of the system clock: Clock status • Synchronized—The system clock has been synchronized.
Syntax display ntp-service trace [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
ntp-service access Use ntp-service access to configure the access-control right for the peer devices to access the NTP services of the local device. Use undo ntp-service access to remove the configured NTP service access-control right to the local device.
[Sysname-acl-basic-2001] rule permit source 10.10.0.0 0.0.255.255 [Sysname-acl-basic-2001] quit [Sysname] ntp-service access peer 2001 ntp-service authentication enable Use ntp-service authentication enable to enable NTP authentication. Use undo ntp-service authentication enable to disable NTP authentication. Syntax ntp-service authentication enable undo ntp-service authentication enable Default NTP authentication is disabled.
Parameters keyid: Specifies an authentication key ID in the range of 1 to 4294967295. cipher: Sets a ciphertext key. simple: Sets a plaintext key. This key will be saved in cipher text for security purposes. value: Specifies the MD5 authentication key string. This argument is case sensitive. If simple is specified, it is a string of 1 to 32 characters. If cipher is specified, it is a string of 1 to 73 characters. If neither cipher nor simple is specified, you set a plaintext key string.
Default command level 3: Manage level Examples # Configure the device to operate in broadcast client mode and receive NTP broadcast messages on GigabitEthernet 2/0/1. system-view [Sysname] interface gigabitethernet 2/0/1 [Sysname-GigabitEthernet2/0/1] ntp-service broadcast-client ntp-service broadcast-server Use ntp-service broadcast-server to configure the device to operate in NTP broadcast server mode and use the current interface to send NTP broadcast packets.
Syntax ntp-service in-interface disable undo ntp-service in-interface disable Default All interfaces are enabled to receive NTP messages. Views Interface view Default command level 3: Manage level Examples # Disable interface GigabitEthernet 2/0/1 from receiving NTP messages.
static associations are created at the symmetric-active peer side, and dynamic associations are created at the symmetric-passive peer side. In broadcast or multicast mode, static associations are created at the server side, and dynamic associations are created at the client side. Examples # Set the maximum number of dynamic NTP sessions allowed to be established to 50.
Default The device does not operate in any NTP operation mode. Views Interface view Default command level 3: Manage level Parameters ip-address: Specifies a multicast IP address in the range of 224.0.1.0 to 239.255.255.255. The default is 224.0.1.1. authentication-keyid keyid: Specifies the key ID to be used for sending multicast messages to multicast clients, where keyid is in the range of 1 to 4294967295. This parameter is not meaningful if authentication is not required.
Usage guidelines The stratum level of a clock defines the clock precision. The value is in the range of 1 to 16. The clock precision decreases from stratum 1 to stratum 16. A stratum 1 clock has the highest precision, and a stratum 16 clock is not synchronized. Examples # Specify the local clock as the reference source, with the stratum level 3.
undo ntp-service source-interface Default No source interface is specified for NTP messages, and the system uses the IP address of the interface determined by the matched route as the source IP address of NTP messages. Views System view Default command level 3: Manage level Parameters interface-type interface-number: Specifies an interface by its type and number.
peer-name: Host name of the symmetric-passive peer, a string of 1 to 20 characters. authentication-keyid keyid: Specifies the key ID to be used for sending NTP messages to the peer, where keyid is in the range of 1 to 4294967295. priority: Specifies the peer designated by ip-address or peer-name as the first choice under the same condition. source-interface interface-type interface-number: Specifies the source interface for NTP messages.
Parameters vpn-instance vpn-instance-name: Specifies the MPLS L3VPN to which the NTP server belongs, where vpn-instance-name is a case-sensitive string of 1 to 31 characters. If the NTP server is on the public network, do not specify this option. ip-address: IP address of the NTP server. It must be a unicast address, rather than a broadcast address, a multicast address or the IP address of the local clock. server-name: Host name of the NTP server, a string of 1 to 20 characters.
IPC configuration commands The display commands in this document display only information about active nodes. For the 6602 and HSR6602 routers, "local node" refers to the current device. For the 6604, 6608, and 6616, "local node" refers to the current device or the active MPU. display ipc channel Use display ipc channel to display channel information for a node.
94 IPC test channel 149 Prehistorical channel, NO.1 Table 15 Command output Field Description ChannelID Channel number, which has been predefined and assigned by the system. One channel number corresponds to one module. The display ipc channel command displays the numbers of the current active modules. Description Description information, which is generated by the internal software of the device, is used to describe the functions of a channel.
Dst-NodeID LinkStatus ------------------------------------------1 DOWN 2 DOWN The output shows that the connections of the local node to peer node 1 and peer node 2 are down. Table 16 Command output Field Description Dst-NodeID Number of the peer node. Link status: • UP—The connection has been established. • DOWN—The connection has been terminated. LinkStatus display ipc multicast-group Use display ipc multicast-group to display multicast group information for a node.
display ipc multicast-group node 6 GroupID Status ChannelID ---------------------------------8 INUSE 12 Table 17 Command output Field Description GroupID Multicast group ID. Link status: Status • INUSE—The multicast group is in use. • DELETE—The multicast group is to be deleted. ChannelID Channel number. display ipc node Use display ipc node to display node information.
display ipc packet Use display ipc packet to display the packet statistics for the specified node. Syntax display ipc packet { node node-id | self-node } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters node node-id: Displays the packet statistics for the node specified by the node-id argument.
Field Description Sent-fragments Number of fragments sent. Number of packets sent. Whether a packet is fragmented depends on the interface MTU and the packet size in bytes. If the packet size is larger than the MTU, the packet is fragmented. If the packet size is smaller than or equal to the MTU, the packet is sent. Sent-packets Received-fragments Number of fragments successfully received. Number of packets successfully received.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If IPC performance statistics is enabled, the command displays the current IPC performance statistics. If IPC performance statistics is disabled, the command displays the IPC performance statistics collected before IPC performance statistics was disabled. Examples # Display the IPC performance statistics for node 6.
Syntax display ipc queue { node node-id | self-node } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters node node-id: Specifies a node by its number. The following matrix shows the value ranges for the node-id argument: 6602 0 to 1 HSR6602 6604/6608/6616 0 to 2 • 0 to 3 for 6604 • 0 to 5 for 6608 • 0 to 9 for 6616 self-node: Specifies the local node. |: Filters command output by specifying a regular expression.
Table 21 Command output Field Description Queue type: • UNICAST—Unicast queue. • MULTICAST—Multicast (including broadcast) queue. • MIXCAST—Mixcast queue, which can accommodate unicast, multicast, QueueType and broadcast traffic. QueueID Queue number. Dst-NodeID Peer node number. If no peer node exists, two hyphens (--) are displayed. Length Queue length (number of packets that can be buffered). FullTimes Times that the queue is full. Packet Total number of packets in the queue.
Usage guidelines When IPC performance statistics is disabled, the statistics data does not change. The display ipc performance command displays the statistics collected before IPC performance statistics was disabled. Examples # Enable IPC performance statistics for channel 18 on node 6. ipc performance enable node 6 channel 18 reset ipc performance Use reset ipc performance to clear IPC performance statistics.
SNMP commands display snmp-agent community Use display snmp-agent community to display SNMPv1 and SNMPv2c community information. Syntax display snmp-agent community [ read | write ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters read: Displays information about SNMP read-only communities. write: Displays information about SNMP read and write communities. |: Filters command output by specifying a regular expression.
Storage-type: nonVolatile Table 22 Command output Field Description Community name Displays the community name created by using the snmp-agent community command or the username created by using the snmp-agent usm-user { v1 | v2c } command. SNMP group name: • If the community is created by using the snmp-agent community Group name command, the group name is the same as the community name.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
display snmp-agent local-engineid Use display snmp-agent local-engineid to display the local SNMP engine ID. Syntax display snmp-agent local-engineid [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Field Description MIB Subtree MIB subtree covered by the MIB view. Subtree mask MIB subtree mask. Storage-type Type of the medium where the subtree view is stored. Access privilege for the MIB subtree in the MIB view: View Type • Included—All objects in the MIB subtree are accessible in the MIB view. • Excluded—None of the objects in the MIB subtree is accessible in the MIB view. View status Status of the MIB view.
2 MIB objects altered successfully 7 GetRequest-PDU accepted and processed 7 GetNextRequest-PDU accepted and processed 1653 GetBulkRequest-PDU accepted and processed 1669 GetResponse-PDU accepted and processed 2 SetRequest-PDU accepted and processed 0 Trap PDUs accepted and processed 0 Alternate Response Class PDUs dropped silently 0 Forwarded Confirmed Class PDUs dropped silently Table 25 Command output Field Description Messages delivered to the SNMP entity Number of messages that the SNMP agent has r
Field Description Alternate Response Class PDUs dropped silently Number of dropped response packets. Forwarded Confirmed Class PDUs dropped silently Number of forwarded packets that have been dropped. display snmp-agent sys-info Use display snmp-agent sys-info to display the current SNMP system information.
display snmp-agent trap queue Use display snmp-agent trap queue to display basic information about the trap queue, including the trap queue name, queue length, and number of traps in the queue. Syntax display snmp-agent trap queue [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Default command level 1: Monitor level Parameters engineid engineid: Displays SNMPv3 user information for the SNMP engine ID identified by engineid. When an SNMPv3 user is created, the system records the local SNMP entity engine ID. The user becomes invalid when the engine ID changes and becomes valid again when the recorded engine ID is restored. username user-name: Displays information about the specified SNMPv3 user. The username is case-sensitive.
Field Description Storage type: Storage-type • • • • • volatile. nonvolatile. permanent. readOnly. other. For more information about these storage types, see Table 22. UserStatus SNMP user status. Related commands snmp-agent usm-user v3 enable snmp trap updown Use enable snmp trap updown to enable link state traps on an interface. Use undo enable snmp trap updown to disable link state traps on an interface.
snmp-agent Use snmp-agent to enable the SNMP agent. Use undo snmp-agent to disable the SNMP agent. Syntax snmp-agent undo snmp-agent Default The SNMP agent is disabled. Views System view Default command level 3: Manage level Usage guidelines The snmp-agent command is optional for an SNMP configuration task. The SNMP agent is automatically enabled when you perform any command that begins with snmp-agent except for the snmp-agent calculate-password command. Examples # Enable the SNMP agent.
mode: Specifies authentication and privacy algorithms. Select a mode option, depending on the authentication and privacy algorithm you are configuring with the snmp-agent usm-user v3 command. The three privacy algorithms Advanced Encryption Standard (AES), Triple Data Encryption Standard (3DES), and Data Encryption Standard (DES) are in descending order of security strength. Higher security means more complex implementation mechanism and lower speed. DES is enough to meet general requirements.
Syntax snmp-agent community { read | write } [ cipher ] community-name [ mib-view view-name ] [ acl acl-number | acl ipv6 ipv6-acl-number ] * undo snmp-agent community { read | write } [ cipher ] community-name Views System view Default command level 3: Manage level Parameters read: Assigns the specified community the read only access to MIB objects. A read-only community can only inquire MIB information. write: Assigns the specified community the read and write access to MIB objects.
Examples # Create the read-only community readaccess so an NMS can use the protocol SNMPv1 or SNMPv2c and community name readaccess to read the MIB objects in the default view ViewDefault. system-view [Sysname] snmp-agent sys-info version v1 v2c [Sysname] snmp-agent community read readaccess # Create the read and write community writeaccess so only the host at 1.1.1.1 can use the protocol SNMPv2c and community name writeaccess to read and set the MIB objects in the default view ViewDefault.
Views System view Default command level 3: Manage level Parameters v1: Specifies SNMPv1. v2c: Specifies SNMPv2c. v3: Specifies SNMPv3. group-name: Group name, a string of 1 to 32 characters. authentication: Specifies the security model of the SNMPv3 group to be authentication only (without privacy). privacy: Specifies the security model of the SNMPv3 group to be authentication and privacy. read-view view-name: Specifies a read-only MIB view.
snmp-agent local-engineid Use snmp-agent local-engineid to configure the SNMP engine ID of the local SNMP agent. Use undo snmp-agent local-engineid to restore the default local SNMP engine ID. Syntax snmp-agent local-engineid engineid undo snmp-agent local-engineid Default The local engine ID is the combination of the company ID and the device ID. Device ID varies by product and might be an IP address, a MAC address, or a user-defined hexadecimal string.
Views System view Default command level 3: Manage level Parameters all: Enables logging SNMP GET and SET operations. get-operation: Enables logging SNMP GET operations. set-operation: Enables logging SNMP SET operations. Usage guidelines Use SNMP logging to record the SNMP operations performed on the SNMP agent for auditing NMS behaviors. The SNMP agent sends log data to the information center. You can configure the information center to output the data to a specific destination as needed.
oid-tree: Specifies a MIB subtree by its root node’s OID (for example 1.4.5.3.1) or object name (for example, system). An OID is a dotted numeric string that uniquely identifies an object in the MIB tree. mask mask-value: Sets a MIB subtree mask, a hexadecimal string. Its length must be an even number in the range of 2 to 32. For example, you can specify 0a, aa, but not 0aa. If no subtree mask is specified, the MIB subtree mask is an all-F hexadecimal string.
Default command level 3: Manage level Parameters byte-count: Specifies the maximum size (in bytes) of SNMP packets that the SNMP agent can receive or send. The value range is 484 to 17940, and the default is 1500. Usage guidelines If any device on the path to the NMS does not support packet fragmentation, limit the SNMP packet size to prevent large-sized packets from being discarded. For most networks, the default value is sufficient. Examples # Set the maximum SNMP packet size to 1024 bytes.
• v1: Specifies SNMPv1. • v2c: Specifies SNMPv2c. • v3: Specifies SNMPv3. Usage guidelines Configure the SNMP agent with the same SNMP version as the NMS for successful communications between them. In FIPS mode, only SNMPv3 is supported. Examples # Configure the system contact as Dial System Operator at beeper # 27345.
ip-address: Specifies the IPv4 address or name of the target host. The host name is a string of 1 to 255 characters. ipv6 ipv6-address: Specifies the IPv6 address of the target host. udp-port port-number: Specifies the UDP port for receiving SNMP traps. The default UDP port is 162. vpn-instance vpn-instance-name: Specifies the MPLS L3VPN to which the target host belongs, where vpn-instance-name is a case-sensitive string of 1 to 31 characters.
snmp-agent trap source • snmp-agent trap enable Use snmp-agent trap enable to enable traps globally. Use undo snmp-agent trap enable to disable traps globally.
default-route: Enables default route traps, which are sent when default routes are deleted. flash: Enables Flash-related SNMP traps. fr: Enables SNMP traps for Frame Relay virtual link change events. mpls: Enables SNMP traps for the MPLS module. ospf: Enables SNMP traps for the OSPF module. • process-id: OSPF process ID in the range 1 to 65535. • ifauthfail: Interface authentication failure traps. • ifcfgerror: Interface configuration error traps. • ifrxbadpkt: Traps for receiving incorrect packets.
• authfailure: VRRP authentication failure traps. • newmaster: VRRP newmaster traps, which are sent when the device becomes the master. Usage guidelines After you globally enable a trap function for a module, whether the module generates traps also depends on the configuration of the module. For more information, see the sections for each module.
• An extended linkUp trap is in the following format: #Apr 24 11:43:09:896 2008 Sysname IFNET/4/INTERFACE UPDOWN: Trap 1.3.6.1.6.3.1.1.5.4: Interface 983555 is Up, ifAdminStatus is 1, ifOperStatus is 1, ifDescr is GigabitEthernet2/0/1, ifType is 6 • A standard linkDown trap is in the following format: #Apr 24 11:47:35:224 2008 Sysname IFNET/4/INTERFACE UPDOWN: Trap 1.3.6.1.6.3.1.1.5.
• snmp-agent target-host snmp-agent trap queue-size Use snmp-agent trap queue-size to set the size of the trap sending queue. Use undo snmp-agent trap queue-size to restore the default queue size. Syntax snmp-agent trap queue-size size undo snmp-agent trap queue-size Default Up to 100 traps can be stored in the trap sending queue. Views System view Default command level 3: Manage level Parameters size: Specifies the number of traps that can be stored in the trap sending queue.
Default SNMP chooses the IP address of an interface to be the source IP address of the trap. Views System view Default command level 3: Manage level Parameters interface-type { interface-number | interface-number.subnumber }: Specifies the interface type and interface number. The interface-number argument represents the main interface number. The subnumber argument represents the subinterface number in the range of 1 to 4094.
Parameters v1: Specifies SNMPv1. v2c: Specifies SNMPv2c. user-name: User name, a case-sensitive string of 1 to 32 characters. group-name: Group name, a case-sensitive string of 1 to 32 characters. acl acl-number: Specifies a basic ACL to filter NMSs by source IPv4 address. The acl-number argument represents a basic ACL number in the range of 2000 to 2999. Only the NMSs with the IPv4 addresses permitted in the ACL can use the specified username (community name) to access the SNMP agent.
snmp-agent usm-user v3 Use snmp-agent usm-user v3 to add an SNMPv3 user to an SNMP group. Use undo snmp-agent usm-user v3 to delete an SNMPv3 user from an SNMP group.
priv-password: Specifies a case-sensitive plaintext or encrypted privacy key. A plaintext key is a string of 1 to 64 characters. If the cipher keyword is specified, the encrypted privacy key length requirements differ by authentication algorithm and key string format, as shown in Table 28.
Examples # Add the user testUser to the SNMPv3 group testGroup. Configure the security model as authentication without privacy, the authentication algorithm as MD5, the plaintext key as authkey.
RMON configuration commands display rmon alarm Use display rmon alarm to display RMON alarm entries. Syntax display rmon alarm [ entry-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters entry-number: Specifies the index of an RMON alarm entry, in the range of 1 to 65535. If no entry is specified, the command displays all alarm entries. |: Filters command output by specifying a regular expression.
Table 29 Command output Field Description Status of the alarm entry entry-number created by the owner is status. • entry-number—Alarm entry, corresponding to the MIB node alarmIndex. • owner—Entry owner, corresponding to the MIB node AlarmEntry entry-number owned by owner is status alarmOwner. • status—Entry status, corresponding to the MIB node alarmStatus. { VALID—The entry is valid. { UNDERCREATION—The entry is invalid.
Default command level 1: Monitor level Parameters entry-number: Specifies the index of an RMON event entry, in the range of 1 to 65535. If no entry is specified, the command displays the configuration of all event entries. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Field Description last triggered at Time when the last event was triggered, corresponding to the MIB node eventLastTimeSent. Related commands rmon event display rmon eventlog Use display rmon eventlog to display log information for the specified or all event entries.
Table 31 Command output Field Description LogEntry Event entry, corresponding to the MIB node logIndex. owned by Event entry owner, corresponding to the MIB node eventOwner. Entry status: • VALID—The entry is valid. • UNDERCREATION—The entry is invalid. VALID The display rmon command can display invalid entries, but the display current-configuration and display this commands do not display their settings. Status value is stored in the MIB node eventStatus.
Examples # Display RMON history control entry and history sampling information for GigabitEthernet 2/0/1. display rmon history gigabitethernet 2/0/1 HistoryControlEntry 1 owned by null is VALID Samples interface : GigabitEthernet2/0/1
Field Description Entry status: • VALID—The entry is valid. • UNDERCREATION—The entry is invalid. VALID The display rmon command can display invalid entries, but the display current-configuration and display this commands do not display their settings. Status value is stored in the MIB node historyControlStatus. Samples Interface The sampled interface. Sampling interval Sampling period, in seconds, which corresponds to MIB node historyControlInterval.
Field Description collisions Number of colliding packets received during the sampling period, corresponding to the MIB node etherHistoryCollisions. utilization Bandwidth utilization during the sampling period, corresponding to the MIB node etherHistoryUtilization. Related commands rmon history display rmon prialarm Use display rmon prialarm to display the configuration of the specified or all private alarm entries.
Table 33 Command output Field Description PrialarmEntry Private alarm table entry. owned by Owner of the entry, user1 in this example. Entry status: VALID • VALID—The entry is valid. • UNDERCREATION—The entry is invalid. The display rmon command can display invalid entries, but the display current-configuration and display this commands do not display their settings. Samples type Sampling type, whose value can be absolute or delta. Description Description of the private alarm entry.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Field Description etherStatsMulticastPkts Number of multicast packets received by the interface during the statistical period, corresponding to the MIB node etherStatsMulticastPkts. etherStatsUndersizePkts Number of undersize packets received by the interface during the statistical period, corresponding to the MIB node etherStatsUndersizePkts.
Syntax rmon alarm entry-number alarm-variable sampling-interval { absolute | delta } rising-threshold threshold-value1 event-entry1 falling-threshold threshold-value2 event-entry2 [ owner text ] undo rmon alarm entry-number Views System view Default command level 2: System level Parameters entry-number: Specifies an alarm entry index in the range of 1 to 65535. alarm-variable: Alarm variable, a string of 1 to 256 characters. It can be in dotted object identifier (OID) format (in the format of entry.
• Make sure the alarm entry has different alarm variable (alarm-variable), sampling interval (sampling-interval), sampling type (absolute or delta), rising threshold (threshold-value1) and falling threshold (threshold-value2) than any existing alarm entry in the system. When the alarm condition in an alarm entry occurs, its associated event is triggered to handle the alarm.
undo rmon event entry-number Views System view Default command level 2: System level Parameters entry-number: Specifies an event entry index in the range of 1 to 65535. description string: Configures an event description, a string of 1 to 127 characters. log: Logs the event when it occurs. log-trap log-trapcommunity: Log and trap events. The system performs both logging and trap sending when the event occurs.
Syntax rmon history entry-number buckets number interval sampling-interval [ owner text ] undo rmon history entry-number Views Ethernet interface view Default command level 2: System level Parameters entry-number: Specifies a history control entry index in the range of 1 to 65535. buckets number: Specifies the history table size for the entry, in the range of 1 to 65535. The device supports up to 10 records of each entry.
Syntax rmon prialarm entry-number prialarm-formula prialarm-des sampling-interval { absolute | changeratio | delta } rising-threshold threshold-value1 event-entry1 falling-threshold threshold-value2 event-entry2 entrytype { forever | cycle cycle-period } [ owner text ] undo rmon prialarm entry-number Views System view Default command level 2: System level Parameters entry-number: Specifies the index of a private alarm entry, in the range of 1 to 65535.
You can create up to 50 private alarm entries. The system handles private alarm entries as follows: 1. Samples the private alarm variables in the private alarm formula at the specified sampling interval. 2. Performs calculation on the sampled values with the formula. 3. Compares the calculation result with the predefined thresholds and does the following: { { If the result is equal to or greater than the rising threshold, triggers the event specified by the event-entry1 argument.
rmon statistics Use rmon statistics to create an entry in the RMON statistics table. Use undo rmon statistics to remove an entry from the RMON statistics table. Syntax rmon statistics entry-number [ owner text ] undo rmon statistics entry-number Views Ethernet interface view Default command level 2: System level Parameters entry-number: Specifies the index of statistics entry, in the range of 1 to 65535.
Sampler configuration commands display sampler Use display sampler to view configuration and running information about a sampler. Syntax display sampler [ sampler-name ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters sampler-name: Specifies the sampler name, a case-insensitive string of 1 to 32 characters. slot slot-number: Displays the sampler configuration and running information of a specific card.
Field Description Index Index number identifying a sampler. Mode Sampling mode, including fixed mode and random mode. Packet-interval Sampling rate. Packet counter Counts the number of packets that have been received for one sampling. • In fixed mode, it is the first packet that is selected in each sampling. The Random number value for this field is always 1. • In random mode, it is the nth packet to be selected out of the sequential packets in one sampling, where the nth varies per sampling.
Views System view Default command level 2: System level Parameters sampler-name: Assigns the name to the sampler, a case-insensitive string of 1 to 32 characters. fixed: Specifies the fixed sampling mode, in which the first packet is selected per sampling. random: Specifies the random sampling mode, in which a packet is randomly selected out of a group of packets, and which packet is selected for each sampling varies. packet-interval rate: Specifies the sampling rate.
Port mirroring configuration commands The following matrix shows the commands and router compatibility: Commands 6602 HSR6602 6604/6608/6616 Local mirroring commands Yes Yes (only on fixed interfaces) Yes (only when SAP modules are operating in bridge mode) Remote mirroring commands No No Yes (only when SAP modules are operating in bridge mode) display mirroring-group Use display mirroring-group to display mirroring group information, such as the types, status, and content of a mirroring group.
display mirroring-group all mirroring-group 3: type: local status: active mirroring port: GigabitEthernet2/0/1 inbound GigabitEthernet2/0/2 both mirroring-group 6: type: remote-source status: inactive mirroring port: GigabitEthernet2/0/4 both mirroring VLAN: mirroring CPU: monitor egress port: remote-probe vlan: 1900 mirroring-group 9: type: remote-destination status: active monitor port: GigabitEthernet2/0/6 remote-probe vlan: 1901 Table 36 Command output Field Description mirroring-grou
Parameters group-id: Specifies the number of the mirroring group, in the range of 1 to 4. all: Removes all mirroring groups by using the undo command. local: Creates a local mirroring group or removes all local mirroring groups with the undo command. remote-destination: Creates a remote destination group or removes all remote destination groups with the undo command. remote-source: Creates a remote source group or removes all remote source groups with the undo command.
Usage guidelines You cannot configure source ports for a remote destination group. When removing a source port from a mirroring group, make sure the traffic direction you specified in the undo mirroring-group mirroring-port command matches the actual monitored direction specified earlier in the mirroring-group mirroring-port command.
monitor-egress-port: Port to be configured as the egress port. It takes the form of interface-type interface-number, where interface-type specifies the port type and interface-number specifies the port number. Usage guidelines You can configure an egress port for a remote source group only, not for other types of mirroring groups. Examples # Create remote source group 1 and configure port GigabitEthernet 2/0/1 as its egress port in system view.
Usage guidelines You cannot configure a monitor port for a remote source group. You cannot assign a source port in an existing mirroring group to another mirroring group as the monitor port. You can configure an aggregate interface as a monitor port. Examples # Create local mirroring group 1 and configure port GigabitEthernet 2/0/1 as its monitor port.
Only a static VLAN that already exists can be configured as a remote probe VLAN. A VLAN can serve as the remote probe VLAN for only one mirroring group. To delete a VLAN that is configured as a remote probe VLAN, remove the remote probe VLAN configuration first. Examples # Create remote source group 1 and configure VLAN 10 as its remote probe VLAN.
When removing a source port from a mirroring group, make sure the traffic direction you specified in the undo mirroring-group command matches the actual monitored direction of the port specified earlier in the mirroring-port command. Examples # Create local mirroring group 1, configure GigabitEthernet 2/0/1 as a source port of the mirroring group, and specify that the mirroring group monitor the bidirectional traffic of the port.
[Sysname-GigabitEthernet2/0/1] monitor-port # Create remote destination group 2 and configure GigabitEthernet 2/0/2 as its monitor port.
Traffic mirroring configuration commands mirror-to Use mirror-to to configure traffic mirroring for a traffic behavior. Use undo mirror-to to remove traffic mirroring configuration. Syntax mirror-to { cpu | interface interface-type interface-number } undo mirror-to { cpu | interface interface-type interface-number } Default Traffic mirroring is not configured for a traffic behavior.
NetStream configuration commands display ip netstream cache Use display ip netstream cache to display NetStream entry information in the cache. Syntax display ip netstream cache [ verbose ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters verbose: Displays detailed information about the NetStream entries in the cache. slot slot-number Displays the NetStream entry information in the cache of a card.
Last statistics reset time : Never IP packet size distribution (63 total packets): 1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480 .000 .857 .142 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 512 544 576 1024 1536 2048 2560 3072 3584 4096 4608 >4608 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .
OutVRF: 0 InVRF: 0 SamplerMode: 0 SamplerInt: 0 Bytes/Pkt: 64 Active: IP 280 5.5.5.2(1172) 5.5.5.1(179) TcpFlag: 16 DstMask: 32 24 DstAS: 0 SrcAS: 0 OutVRF: 0 InVRF: 0 0 SamplerInt: 0 90 Bytes/Pkt: 40 SamplerMode: Active: IP SrcMask: 6 5.5.5.2(1172) 5.5.5.1(179) TcpFlag: 26 DstMask: 32 SrcMask: 24 0 SrcAS: 0 OutVRF: 0 InVRF: 0 SamplerMode: 0 SamplerInt: 0 Bytes/Pkt: 55 Active: 108 GE2/0/1(I) Nexthop: 0.0.0.0 192 GE2/0/1(I) Nexthop: 6 127.0.0.
Field Description Statistics of the active flows in the current cache including flow type, destination IP address (destination port), source IP address (source port), protocol number, ToS, interface type and name (direction), and the number of packets. Type DstIP(Port) SrcIP(Port) Pro ToS If(Direct) Pkts DstMAC(VLAN) SrcMAC(VLAN) Flows are classified into the following types: IP flows, L2 flows, IP&L2 flows, MPLS flows with no IP options, and MPLS flows with IP options.
Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Field Description Version 5 exported UDP datagram number (failed) Number of UDP packets that are sent in version 5 format (number of packets not successfully sent). Version 9 exported stream number Number of flows that are exported in version 9 format. Version 9 exported UDP datagram number (failed) Number of UDP packets that are sent in version 9 format (number of packets not successfully sent). MPLS export information Statistics about MPLS-aware NetStream data export in version 9..
Examples # The NetStream aggregation mode of AS is enabled. Display information about the NetStream flow record template.
PAD 1 Sampling interval 4 Table 39 Command output Field Description Stream template refresh-rate packet Refresh frequency with which the template is sent. Stream template refresh-rate time(in minute) Refresh interval in minutes at which the template is sent. Active stream templates Number of active NetStream templates. Added stream templates Number of templates that have been created.. The output varies depending on the aggregation mode.
Default No NetStream aggregation is enabled. Views NetStream aggregation view Default command level 3: Manage level Examples # Enable NetStream AS aggregation. system-view [Sysname] ip netstream aggregation as [Sysname-ns-aggregation-as] enable Related commands ip netstream aggregation ip netstream Use ip netstream to enable NetStream on the specified interface. Use undo ip netstream to disable NetStream on the specified interface.
Syntax ip netstream aggregation { as | destination-prefix | prefix | prefix-port | protocol-port | source-prefix | tos-as | tos-bgp-nexthop | tos-destination-prefix | tos-prefix | tos-protocol-port | tos-source-prefix } Views System view Default command level 3: Manage level Parameters as: Specifies the AS aggregation by source AS number, destination AS number, inbound interface index, and outbound interface index.
Examples # Set the NetStream aggregation mode as AS, and enter the NetStream AS aggregation view. system-view [Sysname] ip netstream aggregation as [Sysname-ns-aggregation-as] Related commands • enable • ip netstream export host • ip netstream export source ip netstream export host Use ip netstream export host to set the destination address and destination UDP port number for NetStream data export.
different UDP ports, the last configuration takes effect. If you configure different VPN instance names, you can configure destination addresses with the same IP address and UDP port. NetStream traditional data are exported to all destination addresses configured in system view, and NetStream aggregation data are exported to all destination addresses configured in the related aggregation view.
Syntax ip netstream export source interface interface-type interface-number undo ip netstream export source Default The interface where the NetStream data is sent out (the interface connects to the NetStream server) is used as the source interface. Views System view, NetStream aggregation view Default command level 3: Manage level Parameters interface-type interface-number: Specifies a source interface by its type and number for NetStream data export.
Default command level 3: Manage level Parameters packets: Specifies the number of packets that are sent before version 9 templates are sent to the NetStream server for an update. The value is in the range of 1 to 600. Usage guidelines Version 9 is template-based and supports user-defined formats, so the NetStream-enabled device needs to send the new template to the NetStream server for an update.
NetStream-enabled device and not updated on the NetStream server, the server is unable to associate the received statistics with its proper fields. To avoid such situation, configure the refresh interval for version 9 templates so that the NetStream server can refresh them on time. The refresh frequency and interval can be both configured, and the template is resent when either of the condition is reached.
Usage guidelines A NetStream entry for a flow records the source IP address and destination IP address, and two AS numbers for each IP address. You can choose to configure which AS numbers to be exported as the source AS and destination AS. Examples # Configure the device to export NetStream data in version 5 format and to specify the NetStream data to include the source AS and destination AS.
[Sysname-GigabitEthernet2/0/0] ip netstream filter acl 2003 outbound ip netstream max-entry Use ip netstream max-entry to configure the maximum number of NetStream entries that the cache can accommodate, and configure whether to age out the entries or disable creation of a new entry when the number of entries in the cache reaches the upper limit. Use undo ip netstream max-entry to restore the default.
ip netstream mpls Use ip netstream mpls to collect and export statistics on MPLS packets. If you do not provide any arguments, the top label and IP fields are also counted. If the no-ip-fields keyword is provided, the command exports data about MPLS packet only. Use undo ip netstream mpls to disable counting and exporting of MPLS packets.
Views Interface view Default command level 3: Manage level Parameters sampler sampler-name: Specifies a sampler name, a string of up to 32 characters. inbound: Enables NetStream sampling in the inbound direction. outbound: Enables NetStream sampling in the outbound direction. Examples # Enable NetStream sampling in the inbound direction of GigabitEthernet 2/0/0 by referencing sampler abc.
Related commands ip netstream timeout inactive ip netstream timeout inactive Use ip netstream timeout inactive to set the aging timer for inactive flows. This timer applies to NetStream traditional data flows. Use undo ip netstream timeout inactive to restore the default. Syntax ip netstream timeout inactive seconds undo ip netstream timeout inactive Default The aging timer is 30 seconds for inactive flows.
Usage guidelines When you execute the command, messages appear telling you that the process of clearing the cache takes several minutes and the system does not perform NetStream data collection during this process. Examples # Age out and export all NetStream data and clear the cache. reset ip netstream statistics This process may take a few minutes. Netstream statistic function is disabled during this process.
IPv6 NetStream configuration commands display ipv6 netstream cache Use display ipv6 netstream cache to display IPv6 NetStream entry information in the cache. Syntax display ipv6 netstream cache [ verbose ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters verbose: Displays detailed information about the IPv6 NetStream entries in the cache.
Last statistics reset time : Never IPv6 packet size distribution (814306 total packets): 1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 512 544 576 1024 1536 2048 2560 3072 3584 4096 4608 >4608 .000 .000 .000 .000 1.00 .000 .000 .000 .000 .000 .000 .
Stream inactive timeout (in seconds): 60 Stream max entry number : 630000 IPv6 active stream entry number : 0 MPLS active stream entry number : 1000 IPv6 stream entry been counted : 0 MPLS stream entry been counted : 77000 Last statistics reset time : Never IPv6 packet size distribution (363441954 total packets): 1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .
IP& SamplerMode: 0 SamplerInt: Active: 3 Bytes/Pkt: 30::2(1025) 0 1490 20::130(1000) 6 0 0x0 RAGG1.1(O) 283 MPLS UNKNOWN(0.0.0.0/0) 1:1028-0-1 TcpFlag: 16 DstMask: 64 DstAS: 0 Nexthop: SrcMask: 64 SrcAS: 0 ::D01:102 BgpNexthop: ::FFFF:303:303 OutVRF: 0 InVRF: 0 SamplerMode: 0 SamplerInt: Active: 3 Bytes/Pkt: 0 1490 Table 40 Command output Field Description IPv6 netstream cache information Information about IPv6 NetStream entries in the cache.
Field Description Statistics of the active flows in the NetStream cache including flow type, destination IPv6 address (destination port), source IPv6 address (source port), protocol number, traffic class, flow label, interface type and name (direction), and the number of packets.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
display ipv6 netstream template [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters slot slot-number: Displays IPv6 NetStream template information about a card. The slot-number argument specifies a card by its slot number. The following matrix shows the option and router compatibility: Option 6602 HSR6602 6604/6608/6616 slot slot-number No Yes Yes |: Filters command output by specifying a regular expression.
Sampling algorithm 1 PAD 1 Sampling interval 4 as inbound template: Template ID : 3292 Packets : 0 Last template export time : Never Field count : 14 Field type Field length (byte) --------------------------------------------------------------------------Flows 4 In packets 8 In bytes 8 First switched 4 Last switched 4 Source AS 4 Destination AS 4 Input SNMP 4 Output SNMP 4 IP protocol version 1 Direction 1 Sampling algorithm 1 PAD 1 Sampling interval 4 IPv6 outbou
Protocol 1 Source ToS 1 IPv6 source mask 1 IPv6 destination mask 1 Direction 1 Forwarding offset 1 Out VPN ID 2 Sampling algorithm 1 PAD 1 Sampling interval 4 Table 42 Command output Field Description Stream template refresh-rate packet Refresh frequency with which the template is sent. Stream template refresh-rate time(in minute) Refresh interval in minutes at which the template is sent. Active stream templates Number of active stream templates at present.
system-view [Sysname] ipv6 netstream aggregation as [Sysname-ns6-aggregation-as] enable Related commands ipv6 netstream aggregation ipv6 netstream Use ipv6 netstream to enable IPv6 NetStream on the specified interface. Use undo ipv6 netstream to disable IPv6 NetStream on the specified interface. Syntax ipv6 netstream { inbound | outbound } undo ipv6 netstream { inbound | outbound } Default IPv6 NetStream is disabled on an interface.
Parameters as: Specifies the AS aggregation by source AS number, destination AS number, inbound interface index, and outbound interface index. bgp-nexthop: Specifies the BGP nexthop aggregation by BGP next hop IPv6 address, and outbound interface index. destination-prefix: Specifies the destination-prefix aggregation by destination AS number, destination address mask length, destination prefix, and outbound interface index.
Views System view, NetStream aggregation view Default command level 3: Manage level Parameters ip-address: Specifies the destination IP address for IPv6 NetStream data export. Only IPv4 addresses are supported. udp-port: Specifies the destination UDP port number for IPv6 NetStream data export, in the range of 0 to 65535. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN that the IPv6 NetStream data export destination belongs to.
Use undo ipv6 netstream export rate to remove the IPv6 NetStream data export limit. Syntax ipv6 netstream export rate rate undo ipv6 netstream export rate Default The export rate of IPv6 NetStream data is not limited. Views System view Default command level 3: Manage level Parameters rate: Specifies the maximum rate for exporting IPv6 NetStream data, in the unit of the maximum number of packets per second, in the range of 1 to 1000. Usage guidelines The export rate limit applies to each card.
Usage guidelines Different source interfaces can be configured in different aggregation views. If no source interface is configured in NetStream aggregation view, the source interface configured in system view is used. HP recommends that you connect the network management interface to the NSC and configure it as the source interface. Examples # Configure the source interface for IPv6 NetStream data export as GigabitEthernet 2/0/0.
Examples # Configure the device to wait until 100 packets are sent before sending NetStream version 9 templates again to the NetStream server.
ipv6 netstream export version 9 Use ipv6 netstream export version 9 to export IPv6 NetStream data in version 9 format, and choose whether to record data about AS and BGP next hop information. Use undo ipv6 netstream export version to restore the default.
Default The cache can accommodate a maximum of 620000 NetStream entries, and the device ages out the entries when the upper limit is reached. Views System view Default command level 3: Manage level Parameters max-entries: Specifies the maximum number of entries that the cache can save. The value range is 1000 to 620000. aging: Ages out the entries in the cache when the maximum number is reached. disable-caching: Disables creation of a new entry when the maximum number is reached.
Views System view Default command level 3: Manage level Parameters minutes: Sets the aging timer in minutes for active flows, in the range of 1 to 60. Usage Guidelines You can configure both the aging timer for active flows and the aging timer for inactive flows. When either timer for a flow expires, the flow is aged out. The time precision is 10 seconds. Examples # Set the aging timer to 60 minutes for active flows.
Related commands ipv6 netstream timeout active reset ipv6 netstream statistics Use reset ipv6 netstream statistics to age out and export all IPv6 NetStream data and clear the cache. Syntax reset ipv6 netstream statistics Views User view Default command level 2: System level Usage guidelines When you execute the command, messages appear telling you that the process of clearing the cache takes several minutes and the system does not perform NetStream during this process.
Information center configuration commands display channel Use display channel to display channel information. Syntax display channel [ channel-number | channel-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters channel-number: Specifies a channel by its number in the range of 0 to 9. channel-name: Specifies a channel by its name, a default name or a self-defined name.
Examples # Display information about channel 0. display channel 0 channel number:0, channel name:console MODU_ID NAME ffff0000 default ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL Y Y Y informational debugging debugging The output shows that the system is allowed to output log information with a severity from 0 to 4, trap information with a severity from 0 to 7, and debug information with a severity from 0 to 7 to the console.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display information center configuration information. display info-center Information Center:enabled Log host: 1.1.1.
Parameters reverse: Displays log entries chronologically, with the most recent entry at the top. Without this keyword, the command displays log entries chronologically, with the oldest entry at the top. level severity: Displays log information of the specified level in the range of 0 to 7. Table 45 Severity description Severity Value Description Corresponding keyword in commands Emergency 0 The system is unusable. emergencies Alert 1 Action must be taken immediately.
Overwritten messages : 718 Current messages : 512 %Jun 17 15:57:09:578 2006 Sysname IC/7/SYS_RESTART: System restarted – … Table 46 Command output Field Description Logging buffer configuration and contents State of the log buffer, enabled or disabled. Allowed max buffer size Maximum number of messages that can be stored in the log buffer. Actual buffer size Actual buffer size. Channel number Channel number of the log buffer. The default channel number is 4.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines The following matrix shows the option and router compatibility: Option 6602 HSR6602 6604/6608/6616 slot slot-number No Yes Yes Examples On the 6602 router: # Display the summary of the log buffer. display logbuffer summary EMERG ALERT 0 0 CRIT ERROR 0 0 WARN NOTIF 22 INFO DEBUG 0 1 0 On the HSR6602/6604/6608/6616 router: # Display the summary of the log buffer.
Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Channel number : 9 Log file size quota : 10 MB Log file directory : flash:/logfile Writing frequency : 24 hour 0 min 10 sec Table 48 Command output Field Description Log file is State of the log file feature, enabled or disabled. Channel number Log file channel number, which defaults to 9. Log file size quota Maximum storage space of a log file. Log file directory Log file directory. Writing frequency Log file writing frequency.
Dropped messages : 0 Overwritten messages : 0 Current messages : 9 #Aug 7 08:03:27:421 2009 Sysname IFNET/4/INTERFACE UPDOWN: Trap 1.3.6.1.6.3.1.1.5.4: Interface 983041 is Up, ifAdminStatus is 1, ifOperStatus is 1 #Aug 7 08:03:27:439 2009 Sysname IFNET/4/INTERFACE UPDOWN: Trap 1.3.6.1.6.3.1.1.5.4: Interface 983048 is Up, ifAdminStatus is 1, ifOperStatus is 1 #Aug 7 08:03:27:439 2009 Sysname IFNET/4/INTERFACE UPDOWN: Trap 1.3.6.1.6.3.1.1.5.
Syntax enable log updown undo enable log updown Default All the ports are allowed to generate port link up/down logs when the port state changes. Views Interface view Default command level 2: System level Examples # Disable port GigabitEthernet2/0/1 from generating link up/down logs. system-view [Sysname] interface gigabitethernet2/0/1 [Sysname-GigabitEthernet2/0/1] undo enable log updown info-center channel name Use info-center channel name to name a channel.
info-center console channel Use info-center console channel to specify the console output channel. The system uses this channel to output information to the console. Use undo info-center console channel to restore the default console output channel. Syntax info-center console channel { channel-number | channel-name } undo info-center console channel Default The console output channel is channel 0.
Usage guidelines The device can output system information only after the information center is enabled. Examples # Enable the information center. system-view [Sysname] info-center enable Info: Information center is enabled. info-center format unicom Use info-center format unicom to set the UNICOM format for system information sent to a log host. Use undo info-center format to restore the default.
Views System view Default command level 2: System level Parameters channel-number: Specifies a channel by its number in the range of 0 to 9. channel-name: Specifies a channel by its name, a default name or a self-defined name. For information about configuring a channel name, see info-center channel name. buffersize: Specifies the maximum number of log messages that can be stored in the log buffer. The value range is 0 to 1024, and the default is 512.
Syntax info-center logfile frequency freq-sec undo info-center logfile frequency Default The default saving interval is 60 seconds. Views System view Default command level 2: System level Parameters freq-sec: Specifies the saving interval in the range of 1 to 86400 seconds. Examples # Configure the interval for saving system information to the log file as 60000 seconds.
Examples # Enable log file overwrite-protection. system-view [Sysname] info-center logfile overwrite-protection info-center logfile size-quota Use info-center logfile size-quota to set the maximum storage space reserved for a log file. Use undo info-center logfile size-quota to restore the default maximum storage space reserved for a log file. Syntax info-center logfile size-quota size undo info-center logfile size-quota Default The default storage space reserved for a log file is 2 MB.
Usage guidelines The specified directory must have been created. The configuration made by this command cannot survive a system restart or an active/standby switchover. Examples # Create a directory with the name test under root directory cfa0. mkdir test %Created dir cfa0:/test. # Set the directory to save the log file to cfa0:/test.
facility local-number: Specifies a logging facility from local0 to local7 for the log host. The default value is local7. Logging facilities are used to mark different logging sources, and query and filer logs. Usage guidelines If you configure this command without specifying a channel, the system specifies channel 2 (loghost) by default. The info-center loghost command takes effect only after the information center has been enabled with the info-center enable command. Enter a correct log host IP address.
Usage guidelines The system uses the primary IP address of the specified egress interface as the source IP address of log information no matter which physical interface is used to output the log information. If you want to display the source IP address in the log information, you can configure it by using this command. The info-center loghost source command takes effect only when the information center has been enabled with the info-center enable command.
channel-name: Specifies a channel by its name, a default name or a self-defined name. For information about configuring a channel name, see info-center channel name. Usage guidelines The info-center monitor channel command takes effect only after the information center enabled with the info-center enable command. Examples # Output system information to the monitor through channel 0.
Syntax info-center source { module-name | default } channel { channel-number | channel-name } [ debug { level severity | state state } * | log { level severity | state state } * | trap { level severity | state state } * ] * undo info-center source { module-name | default } channel { channel-number | channel-name } Default The default output rules are listed in Table 50. Views System view Default command level 2: System level Parameters module-name: Specifies a module.
The trap buffer only receives trap information and discards log and debug information. The log buffer only receives log and debug information and discards trap information. The SNMP module only receives trap information and discards log and debug information.
Default Synchronous information output is disabled. Views System view Default command level 2: System level Usage guidelines If system information is output before you input information at a command line prompt, the system does not display the command line prompt after the system information output. If system information is output when you are inputting some interactive information (non Y/N confirmation information), the system displays your input in a new line after the system information output.
Syntax info-center syslog channel { channel-number | channel-name } undo info-center syslog channel Default The default Web output channel is channel 6. Views System view Default command level 2: System level Parameters channel-number: Specifies a channel by its number in the range of 0 to 9. channel-name: Specifies a channel by its name, a default name or a self-defined name. For information about configuring a channel name, see info-center channel name.
date: Sets the timestamp format as "Mmm dd hh:mm:ss:sss yyyy", such as Dec 8 10:12:21:708 2007. The date time shows the current system time. • Mmm: Abbreviations of the months in English, which could be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec. • dd: Date, starting with a space if it is less than 10, for example " 7". • hh:mm:ss:sss: Local time, with hh ranging from 00 to 23, mm and ss ranging from 00 to 59, and sss ranging from 0 to 999. • yyyy: Year.
Default The timestamp format for system information sent to the log host is date. Views System view Default command level 2: System level Parameters date: Sets the timestamp format as "Mmm dd hh:mm:ss:ms yyyy", such as Dec 8 10:12:21:708 2007. The actual format depends on the log host. iso: Sets the ISO 8601 timestamp format. For example, 2009-09-21T15:32:55. no-year-date: Sets the timestamp format as the current system date and time without year.
Usage guidelines The info-center trapbuffer command takes effect only after the information center has been enabled with the info-center enable command. Examples # Output system information to the trap buffer through the default channel, and set the trap buffer size to 30. system-view [Sysname] info-center trapbuffer size 30 logfile save Use logfile save to manually save logs in the log file buffer into the log file.
reset trapbuffer Use reset trapbuffer to clear the trap buffer. Syntax reset trapbuffer Views User view Default command level 3: Manage level Examples # Clear the trap buffer. reset trapbuffer terminal debugging Use terminal debugging to enable the display of debug information on the current terminal. Use undo terminal debugging to disable the display of debug information on the current terminal.
terminal logging Use terminal logging to enable the display of log information on the current terminal. Use undo terminal logging to disable the display of log information on the current terminal. Syntax terminal logging undo terminal logging Default The display of log information on the current terminal is disabled.
The undo terminal monitor command automatically disables the monitoring of log, trap, and debug information. The configuration of this command is only valid for the current connection between the terminal and the device. If a new connection is established, the monitoring of system information on the terminal restores the default. Examples # Enable the monitoring of system information on the current terminal. terminal monitor Info: Current terminal monitor is on.
Flow logging configuration commands display userlog export Use display userlog export to view the configuration and statistics for flow logs exported to the log server. Syntax display userlog export slot slot-number [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters slot slot-number: Specifies a card by its slot number. |: Filters command output by specifying a regular expression.
Total logs/UDP packets exported : 0/0 Logs in buffer : 0 Table 51 Command output Field Description flow Configuration and statistics about flow logs. No userlog export is enabled Flow logs are not sent to the log server. It may be because exporting flow logs to the log server is not configured, or flow logs are sent to the information center. Export Version 1 logs to log server Export flow log packets of version 1.0 to the log server.
Option 6602 HSR6602 6604/6608/6616 slot slot-number No Yes Yes Examples On the 6602 router: # Clear flow logging statistics. reset userlog flow export On the HSR6602/6604/6608/6616 router: # Clear the flow logging statistics for the card in slot 2. reset userlog flow export slot 2 Related commands display userlog export reset userlog flow logbuffer Use reset userlog flow logbuffer to clear flow logs in the cache.
# Clear flow logs in cache of the card in slot 2. reset userlog flow logbuffer slot 2 # Clear flow logs in the cache of all cards. reset userlog flow logbuffer userlog flow export host Use the userlog flow export host command to configure the IPv4 address and UDP port number of the log server. Use undo userlog flow export host to remove the configuration.
servers for an interface card, you must delete one to specify a new one. If you specify a new server that has the same IP address as but has other information different from the current server, the new configuration overwrites the previous one. The following matrix shows the option and router compatibility: Option 6602 HSR6602 6604/6608/6616 slot slot-number No Yes Yes Examples On the 6602 router: # Export flow logs to port 2000 on the IPv4 log server 1.2.3.6.
slot slot-number: Specifies a card by its slot number. Usage guidelines To output flow logs in UDP packets, you must specify a flow logging server. Otherwise the flow logs cannot be exported. To avoid collision with general UDP port numbers, use UDP port numbers in the range of 1025 to 65535. The specified VPN instance must have been created. Otherwise packets delivery fails. On the 6602 router: You can specify at most two log servers of the same type or different types for a device.
Syntax userlog flow export source-ip ip-address undo userlog flow export source-ip Default The source IP address of flow logging packets is the IP address of the egress interface. Views System view Default command level 2: System level Parameters ip-address: Specifies the source IP address of flow logging packets. Examples # Configure the source IP address of flow logging packets as 1.2.1.2. system-view [Sysname] userlog flow export source-ip 1.2.1.
Related commands userlog flow syslog userlog flow export version Use userlog flow export version to configure the flow logging version. Use undo userlog flow export version to restore the default. Syntax userlog flow export version version-number undo userlog flow export version Default Flow logging version is 1.0. Views System view Default command level 2: System level Parameters version-number: Specifies the flow logging version number: 1 or 3.
Usage guidelines The two export approaches of flow logs are mutually exclusive. If you configure two approaches at the same time, the system automatically exports the flow logs to the information center. Exporting flow logs to the information center occupies device storage space. Use this export approach only if there are a small amount of logs. Examples # Export flow logs to the information center.
sFlow configuration commands The sFlow configuration commands are available on only SAP interface modules that are operating in bridge mode. display sflow Use display sflow to display the sFlow configuration and operation information. Syntax display sflow [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 2: System level Parameters slot slot-number: Specifies a card by its slot number.
10 6343 0 1400 sFlow Port Information: Interface CID Interval(s) FID MaxHLen Rate Mode Status GE4/0/1 1 100 1 128 1000 Random Active GE4/0/2 2 100 2 128 1000 Random Active Table 52 Command output Field Description sFlow has the following versions: sFlow Version • 4—sFlow version 4. • 5—sFlow version 5. sFlow Global Information Global sFlow information. IP address of the sFlow agent: Agent • CLI—Manually configured IP address. • Auto—Automatically configured IP address.
Use undo sflow agent to remove the configured IP address. Syntax sflow agent { ip ip-address | ipv6 ipv6-address } undo sflow agent { ip | ipv6 } Default No IP address is configured for the sFlow agent. The device periodically checks whether the sFlow agent has an IP address. If the sFlow agent has no IP address configured, the device automatically selects an IP address for the sFlow agent but does not save the IP address in the configuration file.
Parameters collector-id: Specifies an ID for the sFlow collector, in the range of 1 to 10. ip ip-address: Specifies an IPv4 address for the sFlow collector. ipv6 ipv6-address: Specifies an IPv6 address for the sFlow collector. description text: Configures a description for the sFlow collector. The default description is "CLI Collector." datagram-size size: Specifies the maximum length of the sFlow data portion in an sFlow packet.
sflow counter collector Use sflow counter collector to specify an sFlow collector for counter sampling. Use undo sflow counter collector to remove the sFlow collector for counter sampling. Syntax sflow counter collector collector-id undo sflow counter collector Default No sFlow collector is specified for counter sampling. Views Interface view Default command level 2: System level Parameters collector-id: Specifies an sFlow collector.
system-view [Sysname] interface gigabitethernet 4/0/1 [Sysname-GigabitEthernet4/0/1] sflow flow collector 2 sflow flow max-header Use sflow flow max-header to set the maximum number of bytes of a packet (starting from the packet header) that flow sampling can copy. Use undo sflow flow max-header to restore the default. Syntax sflow flow max-header length undo sflow flow max-header Default Flow sampling can copy up to 128 bytes of a packet. HP recommends using the default value.
Parameters determine: Specifies the fixed sampling mode. For example, if the flow sampling rate is set to 4000 (by using the sflow sampling-rate command), the device randomly samples a packet, like the tenth packet, from the first 4000 packets. The next time the device samples the 4010th packet, and so on. random: Specifies the random sampling mode.
system-view [Sysname] interface gigabitethernet 4/0/1 [Sysname-GigabitEthernet4/0/1] sflow sampling-rate 4000 Related commands sflow sampling-mode sflow source Use sflow source to specify the source IP address of sFlow packets. Use undo sflow source to remove the specified source IP address. Syntax sflow source { ip ip-address | ipv6 ipv6-address } * undo sflow source { ip | ipv6 } * Default No source IP address is specified for sFlow packets.
Gateway mode configuration commands display gateway-mode forwarding-cache Use display gateway-mode forwarding-cache to display gateway-mode forwarding entries.
Examples # Display all gateway-mode forwarding entries. display gateway-mode forwarding-cache Gateway-mode Forwarding-cache: Total found: 2 items ================================================================================ Source IP/Port Dest IP/Port Pro In_If Out_If Byts 60.0.0.2/1024 50.0.0.2/1024 UDP XGE0/0/1 XGE0/0/0 3732 60.0.0.2/1024 UDP XGE0/0/0 XGE0/0/1 3732 270048 50.0.0.
Field Description Pro Protocol type. In_If Inbound interface. Out_If Outbound interface. Byts/Bytes Statistics of bytes forwarded. Total found Total number of forwarding entries. gateway-mode Use gateway-mode to enable the gateway mode for the router. Use undo gateway-mode to restore the default. Syntax gateway-mode undo gateway-mode Default The router operates in normal mode.
0 HSR6602-XG Normal Master 0 1 FIP-10 Normal N/A 4 reset gateway-mode forwarding-cache statistics Use reset gateway-mode forwarding-cache statistics to clear the packet statistics of gateway-mode forwarding entries. Syntax reset gateway-mode forwarding-cache statistics slot slot-number Views User view Default command level 2: System level Parameters slot slot-number: Clears the packet statistics of gateway-mode forwarding entries on the card specified by its slot number.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. [] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ACDEFGHILMNOPRSTUVW display nqa statistics,25 A display ntp-service sessions,69 advantage-factor,13 display ntp-service status,73 C display ntp-service trace,74 codec-type,13 display rmon alarm,130 D display rmon event,131 display rmon eventlog,133 data-fill,14 display rmon history,134 data-size,15 display rmon prialarm,137 debugging,10 display rmon statistics,138 description (any NQA operation view),16 display sampler,148 destination ip,16 display sflow,239 destination port,17 d
history-record keep-time,32 ipv6 netstream export source,194 history-record number,33 ipv6 netstream export v9-template refresh-rate packet,195 http-version,34 ipv6 netstream export v9-template refresh-rate time,196 I info-center channel name,210 ipv6 netstream export version 9,197 info-center console channel,211 ipv6 netstream max-entry,197 info-center enable,211 ipv6 netstream timeout active,198 info-center format unicom,212 ipv6 netstream timeout inactive,199 info-center logbuffer,212 L i
ntp-service unicast-server,85 sflow agent,240 O sflow collector,241 sflow counter collector,243 operation (FTP operation view),38 sflow counter interval,242 operation (HTTP operation view),39 sflow flow collector,243 operation interface,40 sflow flow max-header,244 P sflow sampling-mode,244 password (FTP operation view),40 sflow sampling-rate,245 ping,1 sflow source,246 ping ipv6,5 snmp-agent,109 probe count,41 snmp-agent calculate-password,109 probe packet-interval,42 snmp-agent commun
url,63 username (FTP operation view),64 userlog flow export host,233 V userlog flow export host ipv6,234 vpn-instance (ICMP echo operation view),65 userlog flow export source-ip,235 userlog flow export timestamps localtime,236 W userlog flow export version,237 Websites,251 userlog flow syslog,237 257