HP Load Balancing Module System Maintenance Command Reference Part number: 5998-4228 Software version: Feature 3221 Document version: 6PW100-20130326
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
terminal terminal terminal terminal debugging ··············································································································································· 42 logging ···················································································································································· 42 monitor····················································································································································· 4
rmon statistics ························································································································································· 99 File system management commands ····················································································································· 101 cd ·········································································································································································· 101 copy ·
pwd ······································································································································································· 138 quit ········································································································································································ 139 remotehelp ···················································································································································
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.
-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. If the specified value is less than 8 bits, 0s are added in front of the value to extend it to 8 bits.
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.00% packet loss round-trip min/avg/max = 1/41/205 ms The output shows the following: • The destination is reachable. • All ICMP echo requests sent by the source have 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.
1.1.2.1 1.1.2.2 1.1.1.2 1.1.1.1 Reply from 1.1.2.2: bytes=56 Sequence=2 ttl=254 time=1 ms Record Route: 1.1.2.1 1.1.2.2 1.1.1.2 1.1.1.1 Reply from 1.1.2.2: bytes=56 Sequence=3 ttl=254 time=1 ms Record Route: 1.1.2.1 1.1.2.2 1.1.1.2 1.1.1.1 Reply from 1.1.2.2: bytes=56 Sequence=4 ttl=254 time=1 ms Record Route: 1.1.2.1 1.1.2.2 1.1.1.2 1.1.1.1 Reply from 1.1.2.2: bytes=56 Sequence=5 ttl=254 time=1 ms Record Route: 1.1.2.1 1.1.2.2 1.1.1.2 1.1.1.1 --- 1.1.2.
Field Description Received the ICMP reply from the device whose IP address is 1.1.2.2. If no reply is received during the timeout period, "Request time out" is displayed. Reply from 1.1.2.2 : bytes=56 Sequence=1 ttl=255 time=1 ms • bytes—Number of data bytes in the ICMP reply. • Sequence—Packet sequence, used to determine whether a segment is lost, disordered or repeated. • ttl—TTL value in the ICMP reply. • time—Response time. Record Route Routers through which the ICMP echo request passed.
• 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. -s packet-size: Specifies length (in bytes) of an ICMPv6 echo request, which ranges from 20 to 8100 and defaults to 56. -t timeout: Specifies the timeout value (in milliseconds) of an ICMPv6 echo reply, which ranges from 0 to 65535 and defaults to 2000.
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.
-w timeout: Specifies the timeout time of the reply packet of a probe packet, which ranges from 1 to 65535 milliseconds and defaults to 5000 milliseconds. host: IP address or host name (a string of 1 to 255 characters) of the destination. Usage guidelines After having identified network failure with the ping command, use the tracert command to determine the failed nodes. Output from the tracert command includes IP addresses of all the Layer 3 devices the packets traverse from source to destination.
Parameters -f first-ttl: Specifies the first TTL, or, the allowed number of hops for the first packet. It ranges from 1 to 255 and defaults to 1, and must be less than the maximum TTL. -m max-ttl: Specifies the maximum TTL, or, the maximum allowed number of hops for a packet. It ranges from 1 to 255 and defaults to 30, and must be greater than the first TTL. -p port: Specifies the UDP port number of the destination, which ranges from 1 to 65535 and defaults to 33434.
undo debugging { all | module-name [ option ] } Default Debugging functions for all modules are disabled. Views User view Default command level 3: System level Parameters all: All debugging functions. timeout time: Specifies the timeout time for the debugging all command. When all debugging is enabled, the system automatically executes the undo debugging all command after the time. The value ranges from 1 to 1440, in minutes. module-name: Module name, such as arp or device.
Default command level 1: Monitor level Parameters interface interface-type interface-number: Displays the debugging settings of the specified interface, where interface-type interface-number represents the interface type and number. module-name: Module name. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
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.
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. The information source modules are all modules (default).
display info-center Information Center:enabled Log host: 1.1.1.
Table 5 Severity description Severity Value Description Corresponding keyword in commands Emergency 0 The system is unusable. emergencies Alert 1 Action must be taken immediately. alerts Critical 2 Critical condition. critical Error 3 Error condition. errors Warning 4 Warning condition. warnings Notification 5 Normal but significant condition. notifications Informational 6 Informational message. informational Debug 7 Debugging message.
Field Description Dropped messages Number of dropped messages. Overwritten messages Number of overwritten messages (when the buffer size is not big enough to hold all messages, the latest messages overwrite the old ones). Current messages Number of current messages. display logbuffer summary Use display logbuffer summary to display the summary of the log buffer.
Field Description DEBUG Represents debug. See Table 5 for details. display logfile buffer Use display logfile buffer to display the contents of the log file buffer. Syntax display logfile buffer [ | { 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 System Management Configuration Guide.
Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management 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.
Usage guidelines The system buffers security logs into the security log file buffer temporarily. When a saving operation is performed automatically or manually, the system saves the contents of the security log file buffer into the security log file. After that, the system automatically clears the security log file buffer.
Security log file directory: cfa0:/seclog Alarm-threshold: 80% Current usage: 30% Writing frequency: 1 hour 0 min 0 sec Table 9 Command output Field Description Security log file is State of the security log file feature, enabled or disabled. Security log file size quota Maximum storage space reserved for the security log file. Security log file directory Security log file directory. Alarm-threshold Alarm threshold of the security log file usage.
Channel number : 3 , channel name : trapbuffer Dropped messages : 0 Overwritten messages : 0 Current messages : 5 #Aug 7 08:03:27:421 2012 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 2012 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 2012 Sysname IFNET/4/INTERFACE UPDOWN: Trap 1.3.6.1.6.3.1.1.5.
Views Interface view Default command level 2: System level Examples # Disable port GigabitEthernet0/1 from generating link up/down logs. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] undo enable log updown info-center channel name Use info-center channel name to name a channel. Use undo info-center channel to command to restore the default name for a channel.
Default The console output channel is channel 0. 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.
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. Syntax info-center format unicom undo info-center format Default The format for the system information sent to a log host is HP. Views System view Default command level 2: System level Usage guidelines System information sent to a log host has two formats: HP and UNICOM.
buffersize: Specifies the maximum number of log messages that can be stored in the log buffer, in the range of 1 to 1024. Usage guidelines The info-center logbuffer command takes effect only after the information center has been enabled with the info-center enable command. Examples # Output system information to the log buffer through channel 4, and set the log buffer size to 50.
Default command level 2: System level Parameters freq-sec: Specifies a 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. system-view [Sysname] info-center logfile frequency 60000 info-center logfile size-quota Use info-center logfile size-quota to set the maximum storage space reserved for a log file.
Default command level 2: System level Parameters dir-name: Specifies a directory by its name, a string of 1 to 64 characters. Usage guidelines The specified directory must have been created. The configuration made by this configuration cannot survive a system restart. Examples # Create a directory with the name test under the root directory cfa0. mkdir test %Created dir cfa0:/test. # Set the directory to save the log file to cfa0:/test.
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. 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 source command takes effect only when the information center has been enabled with the info-center enable command. The IP address of the specified egress interface must have been configured. Otherwise, although the info-center loghost source command can be configured successfully, the log host cannot receive any log information. Examples When no source IP address is specified for log information, log in to the FTP server by using the username ftp.
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. 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.
info-center security-logfile enable Use info-center security-logfile enable to enable the saving of the security logs into the security log file. Use undo info-center security-logfile enable to restore the default. Syntax info-center security-logfile enable undo info-center security-logfile enable Default The saving of security logs into the security log file is disabled.
system-view [Sysname] info-center security-logfile frequency 600 Related commands info-center security-logfile enable info-center security-logfile size-quota Use info-center security-logfile size-quota to set the maximum storage space reserved for the security log file. Use undo info-center security-logfile size-quota to restore the default.
Parameters dir-name: Specifies a directory by its name, a string of 1 to 64 characters. Usage guidelines The specified directory must have been created. This configuration made by this command cannot survive a system restart. For a device that has been partitioned, the security log file is saved in the seclog directory in the second partition of the storage device.
info-center source Use info-center source to configure an information output rule for a module. Use undo info-center source to remove the specified output rule.
the command is actually equal to the command info-center source snmp channel 5 debug level debugging state off log level informational state on trap level informational state on. If you use the command multiple times, only the most recent output rule takes effect for the specified module. After you set an output rule for a module, you must use the module-name argument to modify or remove the rule. A new output rule configured by using the default keyword does not take effect for the module.
info-center synchronous Use info-center synchronous to enable synchronous information output. Use undo info-center synchronous to disable synchronous information output. Syntax info-center synchronous undo info-center synchronous Default Synchronous information output is disabled.
Enter Y or N to complete your input. info-center syslog channel Use info-center syslog channel to configure the Web output channel. The system uses this channel to output information to the Web interface. Use undo info-center syslog channel to restore the default. Syntax info-center syslog channel { channel-number | channel-name } undo info-center syslog channel Default The Web output channel is channel 6.
Parameters debugging: Sets the timestamp format for debug information. log: Sets the timestamp format for log information. trap: Sets the timestamp format for trap information. boot: Set the timestamp format as xxxxxx.yyyyyy, where xxxxxx is the most significant 32 bits (in milliseconds) and yyyyyy is the least significant 32 bits. For example, 0.21990989 equals Jun 25 14:09:26:881 2012. The boot time shows the time since system startup.
info-center timestamp loghost Use info-center timestamp loghost to configure the timestamp format for system information sent to the log host. Use undo info-center timestamp loghost to restore the default. Syntax info-center timestamp loghost { date | iso | no-year-date | none } undo info-center timestamp loghost Default The timestamp format for system information sent to the log host is date.
Default command level 2: System level Parameters size buffersize: Specifies the maximum number of trap messages allowed in the trap buffer, in the range of 0 to 1024. The default value is 256. 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.
Syntax reset logbuffer Views User view Default command level 3: Manage level Examples # Clear the log buffer. reset logbuffer 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 security-logfile save Use security-logfile save to manually save security logs from the security log file buffer into the security log file.
The system clears the security log file buffer after saving security logs into the security log file automatically or manually. A local user can use this command only after being authorized as the security log administrator by the system administrator through the authorization-attribute user-role security-audit command. For more information about the authorization-attribute command, see Security Command Reference. Examples # Save the logs in the security log file buffer into the security log file.
Default The display of log information is enabled both on the console and the current terminal. Views User view Default command level 1: Monitor level Usage guidelines To view log information, execute the terminal monitor and terminal logging commands, and then enable the information center (enabled by default). 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 default is restored.
terminal trapping Use terminal trapping to enable the display of trap information on the current terminal. Use undo terminal trapping to disable the display of trap information on the current terminal. Syntax terminal trapping undo terminal trapping Default The display of trap information is enabled both on the console and the current terminal.
Log management commands display userlog export Use display userlog export to view the configuration and statistics for user logs exported to the log server. Syntax display userlog export [ | { 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 System Management Configuration Guide.
Field Description No userlog export is enabled User logs are not sent to the log server. It may be because exporting user logs to the log server is not configured, or user logs are sent to the information center. Export Version 1 logs to log server Export user log packets of version 1.0 to the log server. Source address of exported logs Source IP address of the user log packets (this field will not be displayed if the source IP address is not configured).
Views User view Default command level 2: System level Parameters None Usage guidelines User logs are saved into the log buffer before being exported to the information center or log server. Before executing this command, make sure the maximum number of user logs are specified in the userlog flow syslog command. Examples # Clear user logs in the log buffer.
You can specify at most two log servers of the same type or different types for a device. There are three types of log servers, the VPN log server, the IPv4 log server, and the IPv6 log server. If you have already specified two servers, you need to 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.
Examples # Export user logs to port 2000 on the IPv6 log server 1::1. system-view [Sysname] userlog flow export host ipv6 1::1 2000 Related commands userlog flow export host userlog flow export source-ip Use userlog flow export source-ip to configure the source IP address of user logs. Use undo userlog flow export source-ip to restore the default.
Default command level 2: System level Parameters None Usage guidelines Userlogs can be recorded in UTC or localtime: • UTC—Coordinated Universal Time, loosely defined as current date and time of day in Greenwich, England. • Localtime—Coordinated Universal Time (UTC) plus the UTC offset. Examples # Configure the system to record user logs in localtime.
Syntax userlog flow syslog undo userlog flow syslog Default User logs are exported to the log server. Views System view Default command level 2: System level Usage guidelines The two export approaches of user logs are mutually exclusive. If you configure two approaches simultaneously, the system only exports the user logs to the information center. Exporting user logs to the information center occupies device storage space. Use this export approach only if there are a small amount of logs.
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.
Table 13 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 command, the Group name group name is the same as the community name.
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. Usage guidelines If no group is specified, the command displays information about all SNMP groups. Examples # Display information about all SNMP groups.
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 System Management 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.
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. Usage guidelines If you do not specify any parameter, the command displays all MIB views. Examples # Display all MIB views.
Table 15 Command output Field Description View name MIB view name. 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.
16544 MIB objects retrieved successfully 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 16 Command output Field Description Messages delivered to the SNMP entity Num
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.
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 System Management 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.
Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management 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.
username user-name: Displays information about the specified SNMPv3 user. The username is case-sensitive. group group-name: Displays SNMPv3 user information for an SNMP group. The group name is case-sensitive. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
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. Syntax enable snmp trap updown undo enable snmp trap updown Default Link state traps are enabled.
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 execute any command that begins with snmp-agent except for the snmp-agent calculate-password command. Examples # Enable the SNMP agent.
local-engineid: Uses the local engine ID to calculate the encrypted key. For engine ID-related configuration, see the snmp-agent local-engineid command. specified-engineid: Uses a user-defined engine ID to calculate the encrypted key. engineid: Specifies an SNMP engine ID as a hexadecimal string. It must comprise an even number of hexadecimal characters, in the range of 10 to 64. All-zero and all-F strings are invalid.
community-name: Sets a community name. If you specify the cipher keyword, the community name is a string of 1 to 73 characters. If you do not specify the cipher keyword, the community name is a string of 1 to 32 characters. mib-view view-name: Specifies the MIB view available for the community. The view-name argument represents a MIB view name, a string of 1 to 32 characters. A MIB view represents a set of accessible MIB objects.
[Sysname] snmp-agent mib-view included test system [Sysname] snmp-agent community write wr-sys-acc mib-view test Related commands snmp-agent mib-view snmp-agent group Use snmp-agent group to create an SNMP group and specify its access right. Use undo snmp-agent group to delete an SNMP group.
notify-view view-name: Specifies a trap MIB view. The view-name argument represents a MIB view, a string of 1 to 32 characters. The system sends traps to the users in the specified group for the objects included in the MIB view. By default, no notify view is configured, which means the agent does not send traps to the NMS. 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.
If you have configured SNMPv3 users, change the local SNMP engine ID only when necessary. The change can void the SNMPv3 usernames and encrypted keys you have configured. Examples # Configure the local engine ID as 123456789A. system-view [Sysname] snmp-agent local-engineid 123456789A Related commands snmp-agent usm-user snmp-agent log Use snmp-agent log to enable SNMP logging. Use undo snmp-agent log to restore the default.
Use undo snmp-agent mib-view to delete a MIB view. Syntax snmp-agent mib-view { excluded | included } view-name oid-tree [ mask mask-value ] undo snmp-agent mib-view view-name Default The system creates the ViewDefault view when the SNMP agent is enabled. In the default MIB view, all MIB objects in the iso subtree but the snmpUsmMIB, snmpVacmMIB, and snmpModules.18 subtrees are accessible.
Related commands • snmp-agent community • snmp-agent group snmp-agent packet max-size Use snmp-agent packet max-size to set the maximum size (in bytes) of SNMP packets that the SNMP agent can receive or send. Use undo snmp-agent packet max-size to restore the default packet size. Syntax snmp-agent packet max-size byte-count undo snmp-agent packet max-size Default The SNMP agent can receive and send SNMP packets up to 1500 bytes.
• Location—Null • Version—SNMPv3. Views System view Default command level 3: Manage level Parameters contact sys-contact: Specifies the system contact, a string of 1 to 200 characters. location sys-location: Specifies the system location, a string of 1 to 200 characters. version: Specifies SNMP versions. • all: Specifies SNMPv1, SNMPv2c, and SNMPv3. • v1: Specifies SNMPv1. • v2c: Specifies SNMPv2c. • v3: Specifies SNMPv3.
Parameters trap: Specifies a target host for receiving the traps sent by the device. address: Specifies the IP address of the target host. udp-domain: Specifies UDP as the transport protocol. ip-address: Specifies the IPv4 address or name of the target host. The host name is a string of 1 to 255 characters. udp-port port-number: Specifies the UDP port for receiving SNMP traps. The default UDP port is 162.
• snmp-agent trap enable • snmp-agent trap life • 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.
• lsdboverflow: LSDB overflow traps. • maxagelsa: Traps for LSA max age. • nbrstatechange: Traps for neighbor state change. • originatelsa: Traps for local LSA generation. • vifcfgerror: Traps for virtual interface configuration error. • virifauthfail: Traps for virtual interface authentication failure. • virifrxbadpkt: Traps for virtual interface receiving error packets. • virifstatechange: Traps for virtual interface state changes.
[Sysname] snmp-agent trap enable standard authentication Related commands • snmp-agent target-host • enable snmp trap updown snmp-agent trap if-mib link extended Use snmp-agent trap if-mib link extended to configure the SNMP agent to send extended linkUp/linkDown traps. Use undo snmp-agent trap if-mib link extended to restore the default. Syntax snmp-agent trap if-mib link extended undo snmp-agent trap if-mib link extended Default The SNMP agent sends standard linkUp/linkDown traps.
[Sysname] snmp-agent trap if-mib link extended snmp-agent trap life Use snmp-agent trap life to configure the holding time of the traps in the queue. Use undo snmp-agent trap life to restore the default holding time of traps in the queue. Syntax snmp-agent trap life seconds undo snmp-agent trap life Default The holding time of SNMP traps in the queue is 120 seconds.
Default command level 3: Manage level Parameters size: Specifies the number of traps that can be stored in the trap sending queue. The value range is 1 to 1000. Usage guidelines Traps are saved into the trap sending queue when generated. The size of the queue determines the maximum number of the traps that can be stored in the queue. When the size of the trap sending queue reaches the configured value, the newly generated traps are saved into the queue, and the earliest ones are discarded.
Before you can configure the IP address of a particular interface as the source IP address of the trap, make sure the interface already exists and that it has a legal IP address. If the configured interface does not exist, the configuration fails. If the specified IP address is illegal, the configuration becomes invalid. When a legal IP address is configured for the interface, the configuration automatically becomes valid.
{ v1 | v2c } command. To display the SNMPv1 and SNMPv2c communities created in this way, use the display snmp-agent community command. The snmp-agent usm-user { v1 | v2c } command enables managing SNMPv1 and SNMPv2c users in the same way as managing SNMPv3 users. It does not affect the way of configuring SNMPv1 and SNMPv2c communities on the NMS.
cipher: Specifies that auth-password and priv-password are encrypted keys, which can be calculated to a hexadecimal string by using the snmp-agent calculate-password command. If this keyword is not specified, auth-password and priv-password are plaintext keys. authentication-mode: Specifies an authentication algorithm. MD5 is faster but less secure than SHA. • md5: Specifies the MD5 authentication algorithm. • sha: Specifies the SHA-1 authentication algorithm.
You must create an SNMP group before you assign an SNMP user to the group. Otherwise, the user cannot take effect after it is created. An SNMP group can contain multiple users. It defines SNMP objects accessible to the group of users in the MIB view and specifies whether to enable authentication and privacy functions. The authentication and encryption algorithms are defined when a user is created.
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 20 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 alarmOwner. AlarmEntry entry-number owned by owner is status • status—Entry status, corresponding to the MIB node alarmStatus. { VALID—The entry is valid. { UNDERCREATION—The entry is invalid.
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.
Syntax display rmon eventlog [ entry-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters entry-number: Specifies the index of an event entry, in the range of 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Field Description Generates eventLog at Time when the log was created (time passed since the device was booted), corresponding to the MIB node logTime. Description Log description, corresponding to the MIB node logDescription. This example shows that event 1 generated two logs. display rmon history Use display rmon history to display RMON history control entry and history sampling information.
fragments : 0 , jabbers : 0 collisions : 0 , utilization : 0 Sampled values of record 2 : dropevents : 0 , octets : 834 packets : 8 , broadcast packets : 1 multicast packets : 6 , CRC alignment errors : 0 undersize packets : 0 , oversize packets : 0 fragments : 0 , jabbers : 0 collisions : 0 , utilization : 0 Sampled values of record 3 : dropevents : 0 , octets : 1001 packets : 9 , broadcast packets : 1 multicast packets : 7 , CRC alignment errors : 0 undersize packets
Field Description dropevents Dropped packets during the sampling period, corresponding to the MIB node etherHistoryDropEvents. octets Number of octets received during the sampling period, corresponding to the MIB node etherHistoryOctets. packets Number of packets received during the sampling period, corresponding to the MIB node etherHistoryPkts. broadcastpackets Number of broadcasts received during the sampling period, corresponding to the MIB node etherHistoryBroadcastPkts.
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. Examples # Display the configuration of all private alarm entries. display rmon prialarm PrialarmEntry 1 owned by user1 is VALID.
display rmon statistics Use display rmon statistics to display RMON statistics. Syntax display rmon statistics [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Table 25 Command output Field Description EtherStatsEntry Entry of the statistics table, which corresponds to MIB node etherStatsIndex. Entry status: • VALID—The entry is valid. 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. Status value is stored in the MIB node etherStatsStatus.
Field Description Incoming-packet statistics by packet length for the statistical period: • 64—Number of 64-byte packets. The value is stored in the MIB node etherStatsPkts64Octets. • 65-127—Number of 65- to 127-byte packets. The value is stored in the MIB node etherStatsPkts65to127Octets. • 128-255—Number of 128- to 255-byte packets. to the value is stored in the MIB Packets received according to length: node etherStatsPkts128to255Octets. • 256-511—Number of 256- to 511-byte packets.
delta: Sets the sampling type to delta. The system obtains the variation value of the variable during the sampling interval when the sampling time is reached. rising-threshold threshold-value1 event-entry1: Sets the rising threshold, where the threshold-value1 argument represents the rising threshold, in the range of –2,147,483,648 to +2,147,483,647, and the event-entry1 argument represents the index of the event triggered when the rising threshold is reached.
[Sysname] rmon alarm 1 1.3.6.1.2.1.16.1.1.1.4.1 10 absolute rising-threshold 5000 1 falling-threshold 5 2 owner user1 1.3.6.1.2.1.16.1.1.1.4 is the OID of the leaf node etherStatsOctets. It represents the incoming packet statistics in bytes for interfaces. In this example, you can use etherStatsOctets.1 to replace the parameter 1.3.6.1.2.1.16.1.1.1.4.1, where 1 indicates the serial number of the interface statistics entry. If you execute the rmon statistics 5 command, you can use etherStatsOctets.
owner text: Specifies the entry owner, a case-sensitive string of 1 to 127 characters that can contain spaces. Usage guidelines When creating an event entry, you can define the actions that the system takes when the event is triggered by its associated alarm in the alarm table. The system can log the event, send a trap, do both, or do neither at all, depending on your configuration.
record for the latest one. The statistics include total number of received packets on the interface, total number of broadcast packets, and total number of multicast packets in a sampling period. You can successfully create a history control entry, even if the specified bucket size exceeds the history table size supported by the device. However, the effective bucket size will be the actual value supported by the device. To view the configuration result, use the display rmon history command.
obtain the variation value of the variable during the sampling interval when the sampling time is reached. Change ratio sampling is not supported at present. rising-threshold threshold-value1 event-entry1: Sets the rising threshold, where the threshold-value1 argument represents the rising threshold, in the range –2,147,483,648 to +2,147,483,647, and the event-entry1 argument represents the index of the event triggered when the rising threshold is reached.
[Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] rmon statistics 1 [Sysname-GigabitEthernet0/1] quit [Sysname] rmon prialarm 1 (.1.3.6.1.2.1.16.1.1.1.6.1*100/.1.3.6.1.2.1.16.1.1.1.5.1) BroadcastPktsRatioOfGE0/1 10 absolute rising-threshold 80 1 falling-threshold 5 2 entrytype forever owner user1 1.3.6.1.2.1.16.1.1.1.6.1 is the OID of the node etherStatsBroadcastPkts.1, and 1.3.6.1.2.1.16.1.1.1.5.1 is the OID of the node etherStatsPkts.1.
To display the RMON statistics table, use the display rmon statistics command. Examples # Create an entry with an index 20 and the owner user1 in the RMON statistics table for GigabitEthernet 0/1.
File system management commands In the following examples, the current working directory is the root directory of the storage medium on the device. For information about the qualified file name formats, see System Management Configuration Guide. cd Use cd to change the current working directory. Syntax cd { directory | .. | / } Views User view Default command level 3: Manage level Parameters directory: Name of the target directory in the format [drive:/]path.
Views User view Default command level 3: Manage level Parameters fileurl-source: Name of the source file. fileurl-dest: Name of the target file or folder. Usage guidelines If you specify a target folder, the system will copy the file to the specified folder and use the name of the source file as the file name. Examples # Copy file testcfg.cfg in the current folder and save it as testbackup.cfg. copy testcfg.cfg testbackup.cfg Copy cfa0:/test.cfg to cfa0:/testbackup.cfg?[Y/N]:y ....
Examples # Remove file tt.cfg from the current directory. delete tt.cfg Delete cfa0:/tt.cfg? [Y/N]:y . %Delete file cfa0:/tt.cfg...Done. dir Use dir to display files or folders. Syntax dir [ /all ] [ file-url | /all-filesystems ] Views User view Default command level 3: Manage level Parameters /all: Displays all files and folders in the current directory, including hidden files, hidden folders, files moved from the current directory to the recycle bin.
Directory of cfa0:/ 0 -rw- 1520300 Dec 01 2012 11:37:47 cmdtree.txt 1 drw- - Dec 01 2012 11:37:41 logfile 2 drw- - Dec 01 2012 15:07:15 diaglog 3 drw- - Dec 01 2012 15:07:15 seclog 4 drw- - Dec 03 2012 09:48:05 secl 5 -rw- 909 Dec 03 2012 09:48:38 secl.log 6 -rw- 302515 Dec 09 2012 15:18:09 default.diag 1048192 KB total (447 KB free) Table 26 Command output Field Description Directory of Current working directory. d Directory. This field does not exist for a file.
Examples # Execute the batch file test.bat in the root directory. system-view [Sysname] execute test.bat fdisk Use fdisk to partition a storage medium. Syntax fdisk medium-name [ partition-number ] Views User view Default command level 3: Manage level Parameters medium-name: Name of the storage medium to be partitioned. It cannot be the name of a partition. partition-number: Number of partitions, in the range of 1 to 4. Extended partitioning is not supported.
Partition 1 (32MB~224MB, 256MB, CTRL+C to quit, Enter to use all space left): // Press Enter or enter 256. cfa: will be divided into the following partition(s): DeviceName cfa0: Capacity 256MB All data on cfa: will be lost, proceed with fdisk? [Y/N]:y % Now begin to fdisk cfa:, please wait... done. Reset (default) paths for files as needed, such as log file, ftp root directory, etc. # Divide the CF card on the device into three partitions in an interactive way.
Default command level 3: Manage level Parameters alert: Enables the system to warn you about operations that might bring undesirable results such as file corruption or data loss. quiet: Disables the system from warning you about any operation. Usage guidelines When the operation mode is set to quiet, the system does not warn for any file operation. To avoid misoperation, use the alert mode. Examples # Set the file system operation mode to alert.
Default command level 3: Manage level Parameters medium-name: Name of a partition (for example, cfa0 or cfa1). FAT16: Formats a storage medium using the FAT16 format. FAT16 does not support Tab matching and must be entered completely if used. FAT32: Formats a storage medium using the FAT32 format. FAT32 does not support Tab matching and must be entered completely if used. Usage guidelines After a storage medium is formatted, all files on it are erased and cannot be restored.
%Created dir cfa0:/test # Create folder test/subtest in the current directory. mkdir test/subtest .... %Created dir cfa0:/test/subtest more Use more to display the contents of a file. Syntax more file-url Views User view Default command level 3: Manage level Parameters file-url: File name. Usage guidelines It the content is more than will fit on one screen: • Pressing Enter displays the next line. • Pressing Space displays the next screen.
Syntax mount medium-name Default A storage medium is automatically mounted and in mounted state after being connected to the device, and you can use it without mounting it. Views User view Default command level 3: Manage level Parameters medium-name: Name of a storage medium partition, for example, cfa0 or cfa1. Usage guidelines This command applies only when the device is in unmounted state.
fileurl-dest: Name of the target file or folder. Usage guidelines If you specify a target folder, the system moves the source file to the specified folder, without changing the file name. You cannot move files between different partitions of a CF card. Examples # Move file cfa0:/test/sample.txt to cfa0:/, and save it as 1.txt. move test/sample.txt 1.txt Move cfa0:/test/sample.txt to cfa0:/1.txt?[Y/N]:y ... % Moved file cfa0:/test/sample.txt to cfa0:/1.txt # Move file b.
Parameters fileurl-source: Name of the source file or folder. fileurl-dest: Name of the target file or folder. Examples # Rename file sample.txt as sample.bat. rename sample.txt sample.bat Rename cfa0:/sample.txt to cfa0:/sample.bat? [Y/N]:y % Renamed file cfa0:/sample.txt to cfa0:/sample.bat reset recycle-bin Use reset recycle-bin to permanently delete the files in the recycle bin in the current directory.
7 -rw- 2386 May 08 2012 11:14:20 [a.cfg] 8 -rw- 3608 Dec 03 2012 17:29:30 [b.cfg] 1048192 KB total (6730 KB free) //The output shows that the current directory is cfa0:, and there are two files a.cfg and b.cfg in the recycle bin. 2. Delete file b.cfg in the current directory and in the recycle bin. reset recycle-bin Clear cfa0:/~/a.cfg ?[Y/N]:n Clear cfa0:/~/b.cfg ?[Y/N]:y 3. In directory cfa0:, check whether the file b.cfg has been deleted from the recycle bin.
Syntax rmdir directory Views User view Default command level 3: Manage level Parameters directory: Name of the folder. Usage guidelines The folder must be empty. If not, delete all files and subfolders under it by using the delete command. After you execute the rmdir command successfully, the files in the recycle bin in the folder will be automatically deleted. Examples # Remove folder mydir. rmdir mydir Rmdir cfa0:/mydir?[Y/N]:y %Removed directory cfa0:/mydir.
When a storage medium is connected to a lower version system, the system might not be able to recognize the storage medium automatically, and you must use the mount command for the storage medium to function normally. Before removing a mounted storage medium from the system, unmount it to avoid damaging the storage medium. To unmount a storage medium that has been partitioned, you must unmount all the partitions individually, instead of unmounting the medium as a whole. Examples # Unmount a CF card.
Undelete cfa0:/test/b.cfg?[Y/N]:y ..... %Undeleted file cfa0:/test/b.cfg.
FTP configuration commands FTP server commands display ftp-server Use display ftp-server to display the FTP server configuration and status information. Syntax display ftp-server [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 3: Manage level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Field Description Put Method File update method of the FTP server, fast or normal. Related commands • ftp server enable • ftp timeout • ftp update display ftp-user Use display ftp-user to display the detailed information of current FTP users. Syntax display ftp-user [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 3: Manage level Parameters |: Filters command output by specifying a regular expression.
Field Description Idle Duration time of the current FTP connection in minutes. HomeDir Authorized directory for the user. free ftp user Use free ftp user to manually release the FTP connection established by using a specific user account. Syntax free ftp user username Views User view Default command level 3: Manage level Parameters username: Username. You can use the display ftp-user command to view FTP login user information.
Usage guidelines You can use this command to permit FTP requests from specific FTP clients only. This configuration takes effect for FTP connections to be established only, and does not impact existing FTP connections. If you execute the command multiple times, the last specified ACL takes effect. Examples # Use ACL 2001 to allow only the client 1.1.1.1 to access the FTP server. system-view [Sysname] acl number 2001 [Sysname-acl-basic-2001] rule 0 permit source 1.1.1.
Views System view Default command level 3: Manage level Parameters minute: Idle-timeout time, in the range of 1 to 35791 minutes. Usage guidelines If no packet is exchanged on an FTP connection within the idle-timeout time, the FTP connection is broken. Examples # Set the idle-timeout timer to 36 minutes. system-view [Sysname] ftp timeout 36 [Sysname] ftp update Use ftp update to set the file update mode that the FTP server uses while receiving data.
FTP client configuration commands Before executing FTP client configuration commands, make sure you have made proper authority configurations for users on the FTP server. Authorized operations include view the files under the current directory, read/download the specified files, create directory/upload files, and rename/remove files. ascii Use ascii to set the file transfer mode to ASCII. Syntax ascii Default The file transfer mode is ASCII.
Views FTP client view Default command level 3: Manage level Examples # Set the file transfer mode to binary. [ftp] binary 200 Type set to I. [ftp] Related commands ascii bye Use bye to disconnect from the remote FTP server and return to user view. Syntax bye Views FTP client view Default command level 3: Manage level Usage guidelines If no connection is established between the device and the remote FTP server, use this command to return to user view.
Views FTP client view Default command level 3: Manage level Parameters directory: Name of the target directory, in the format [drive:][/]path, where drive represents the storage medium name, typically CF. If the target directory does not exist, the cd command does not change the current working directory. If no drive information is provided, the argument represents a folder or subfolder in the current directory.
Usage guidelines This command does not change the working directory if the current directory is the FTP root directory. Examples # Change the working directory to the upper directory. [ftp] pwd 257 "/ftp/subdir" is current directory. [ftp] cdup 200 CDUP command successful. [ftp] pwd 257 "/ftp" is current directory. [ftp] Related commands • cd • pwd close Use close to terminate the connection to the FTP server, but remain in FTP client view.
Default FTP client debugging is disabled. Views FTP client view Default command level 1: Monitor level Examples # The device serves as the FTP client. Enable FTP client debugging and use the active mode to download file sample.file from the current directory of the FTP server. terminal monitor terminal debugging ftp 192.168.1.46 Trying 192.168.1.46 ... Press CTRL+K to abort Connected to 192.168.1.46. 220 FTP service ready. User(192.168.1.
Table 29 Command output Field Description ---> PORT 192,168,1,44,4,21 FTP command. 192,168,1,44 specifies the destination IP address, and 4,21 is used to calculate the data port number by using the formula 4*256+21. The parsed reply is Received reply code, which is defined in RFC 959. ---> RETR Download the file. FTPC: File transfer started with the signal light turned on. File transfer starts, and the signal light is turned on. FTPC: File transfer completed with the signal light turned off.
Syntax dir [ remotefile [ localfile ] ] Views FTP client view Default command level 3: Manage level Parameters remotefile: Name of the file or directory on the remote FTP server. localfile: Name of the local file used to save the displayed information. Usage guidelines The Is command displays only the names of files and directories. The dir command displays more information about the files and directories, such as the size and the creation date.
Syntax disconnect Views FTP client view Default command level 3: Manage level Usage guidelines This command is equal to the close command. Examples # Disconnect from the remote FTP server but remain in FTP client view. [ftp] disconnect 221 Server closing. [ftp] display ftp client configuration Use display ftp client configuration to display the source IP address configuration of the FTP client.
ftp Use ftp to log in to an FTP server and enter FTP client view. Syntax ftp [ server-address [ service-port ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type interface-number | ip source-ip-address } ] ] Views User view Default command level 3: Manage level Parameters server-address: IP address or host name of the FTP server, a string of 1 to 20 characters. service-port: TCP port number of the FTP server, in the range of 0 to 65535. The default value is 21.
[ftp] ftp client source Use ftp client source to specify a source IP address for outgoing FTP packets. Use undo ftp client source to restore the default. Syntax ftp client source { interface interface-type interface-number | ip source-ip-address } undo ftp client source Default The primary IP address of the output interface is used as the source IP address.
ftp ipv6 Use ftp ipv6 to log in to an IPv6 FTP server and enter FTP client view. Syntax ftp ipv6 [ server-address [ service-port ] [ vpn-instance vpn-instance-name ] [ source ipv6 source-ipv6-address ] [ -i interface-type interface-number ] ] Views User view Default command level 3: Manage level Parameters server-address: IP address or host name of the remote FTP server. service-port: TCP port number of the FTP server, in the range of 0 to 65535. The default value is 21.
Connected to 3000::200. 220 Welcome! User(3000::200:(none)): MY_NAME 331 Please specify the password. Password: 230 Login successful. [ftp] get Use get to download a file from the FTP server and save it. Syntax get remotefile [ localfile ] Views FTP client view Default command level 3: Manage level Parameters remotefile: Name of the file to be downloaded. localfile: Name for the downloaded file. If this argument is not specified, the original name is used. Examples # Download file testcfg.
The output shows that the working directory of the FTP client before execution of the ftp command is cfa0:/clienttemp. ls Use ls to list files and subdirectories in the current directory of the FTP server. Use ls remotefile to list files under a specific subdirectory or verify the existence of a file in the current directory of the FTP server. Use ls remotefile localfile to save the name of a file or the list of files under a specific subdirectory to a local file.
226 Transfer complete. FTP: 20 byte(s) received in 0.075 second(s), 266.00 byte(s)/sec. . # Save the names of all files in subdirectory logfile to file aa.txt. [ftp] ls logfile aa.txt 227 Entering Passive Mode (192,168,1,50,4,3). 125 ASCII mode data connection already open, transfer starting for /logfile/*. ....226 Transfer complete. FTP: 20 byte(s) received in 3.962 second(s), 5.00 byte(s)/sec. # View the content of file aa.txt. [ftp] quit 221 Server closing. more aa.txt logfile.log a.
Views FTP client view Default command level 3: Manage level Parameters server-address: IP address or host name of a remote FTP server. service-port: Port number of the remote FTP server, in the range of 0 to 65535. The default value is 21. Usage guidelines At login, enter the username and password. If your input is correct, the login succeeds. If you have logged in to the IPv4 FTP server, you cannot use the open command to log in to another server.
-i interface-type interface-number: Specifies an output interface by its type and number. This parameter can be used only when the FTP server address is a link local address and the specified output interface has a link local address. For the configuration of link local addresses, see the chapter on IPv6 basics in Network Management Configuration Guide. Usage guidelines At login, enter the username and password for accessing the FTP server. If your input is correct, the login succeeds.
[ftp] passive FTP: passive is on [ftp] put Use put to upload a file on the client to the remote FTP server. Syntax put localfile [ remotefile ] Default If no name is assigned to the file to be saved on the FTP server, the name of the source file is used. Views FTP client view Default command level 3: Manage level Parameters localfile: Name of the local file to be uploaded. remotefile: File name used after a file is uploaded and saved on the FTP server.
[ftp] cd servertemp [ftp] pwd 257 "/servertemp" is current directory. The output shows that the servertemp folder in the FTP root directory is being accessed by the user. quit Use quit to disconnect the FTP client from the remote FTP server and exit to user view. Syntax quit Views FTP client view Default command level 3: Manage level Examples # Disconnect from the remote FTP server and exit to user view. [ftp] quit 221 Server closing.
APPE* ALLO* REST* RNFR* RNTO* ABOR* DELE RMD MKD PWD LIST NLST SITE* SYST STAT* HELP NOOP* XCUP XCWD XMKD XPWD XRMD 214 Direct comments to HP company. # Display the help information for the user command. [ftp] remotehelp user 214 Syntax: USER . [ftp] Table 30 Command output Field Description USER Username. PASS Password. CWD Change the current working directory. CDUP Change to parent directory. SMNT* File structure setting. QUIT Quit.
Field Description SITE* Locate a parameter. SYST Display system parameters. STAT* State. HELP Help. NOOP* No operation. XCUP Extension command, the same meaning as CDUP. XCWD Extension command, the same meaning as CWD. XMKD Extension command, the same meaning as MKD. XPWD Extension command, the same meaning as PWD. XRMD Extension command, the same meaning as RMD. Syntax: USER . Syntax of the user command: user (keyword) + space + username.
Syntax user username [ password ] Views FTP client view Default command level 3: Manage level Parameters username: Login username. password: Login password. You can input this argument a space after the username argument; or you can input this argument when the "Password:" prompt appears after you input the username and then press Enter.
Default command level 3: Manage level Examples # Enable display of detailed prompt information. [ftp] verbose FTP: verbose is on # Disable display of detailed prompt information. and perform a Get operation. [ftp] undo verbose FTP: verbose is off [ftp] get startup.cfg bb.cfg FTP: 3608 byte(s) received in 0.052 second(s), 69.00K byte(s)/sec. [ftp] # Enable display of detailed prompt information. and perform a Get operation. [ftp] verbose FTP: verbose is on [ftp] get startup.cfg aa.
TFTP configuration commands display tftp client configuration Use display tftp client configuration to display source IP address configuration of the TFTP client. Syntax display tftp client configuration [ | { 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 System Management Configuration Guide.
Default No ACL is used to control the device's access to a TFTP server. Views System view Default command level 3: Manage level Parameters ipv6: References an IPv6 ACL. If it is not specified, an IPv4 ACL is referenced. acl-number: Number of a basic ACL, in the range of 2000 to 2999. Usage guidelines You can use an ACL to deny or permit the device's access to a specific TFTP server. For more information about ACL, see Security Configuration Guide.
put: Uploads a file. sget: Downloads a file in secure mode. source-filename: Source file name. destination-filename: Destination file name. If this argument is not specified, the file uses the source file name, and is saved in the directory where the user performed the TFTP operation. vpn-instance vpn-instance-name: Specifies the VPN instance where the TFTP server belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters.
Views System view Default command level 2: System level Parameters interface interface-type interface-number: Specifies a source interface for outgoing TFTP packets. ip source-ip-address: Specifies a source IP address for outgoing TFTP packets. This IP address must be one of the IP addresses configured on the device. Usage guidelines You can use the tftp client source command to specify a source IP address or source interface for the TFTP packets sent by the device.
Parameters tftp-ipv6-server: IPv6 address or host name of a TFTP server, a string of 1 to 46 characters. -i interface-type interface-number: Specifies an output interface by its type and number. This parameter can be used only when the TFTP server address is a link local address and the specified output interface has a link local address. For the configuration of a link local address, see the chapter on IPv6 basics in Network Management Configuration Guide. get: Downloads a file. put: Uploads a file.
IP performance optimization commands display icmp statistics Use display icmp statistics to display ICMP statistics. Syntax display icmp statistics [ | { 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 System Management Configuration Guide.
display ip socket Use display ip socket to display socket information. Syntax display ip socket [ socktype sock-type ] [ task-id socket-id ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters socktype sock-type: Displays the socket information about this type. The sock type is in the range of 1 to 3, corresponding to TCP, UDP, and raw IP respectively. task-id: Displays the socket information about this task.
sb_maxcc = 0, rb_maxcc = 0, socket option = SO_ACCEPTCONN SO_REUSEADDR SO_REUSEPORT SO_SENDVPNID(0), socket state = SS_PRIV SS_ASYNC Task = VTYD(38), socketid = 4, Proto = 6, LA = 192.168.1.40:23, FA = 192.168.1.52:1917, sndbuf = 8192, rcvbuf = 8192, sb_cc = 237, rb_cc = 0, sb_maxcc = 0, rb_maxcc = 0, socket option = SO_KEEPALIVE SO_OOBINLINE SO_REUSEPORT SO_SENDVPNID(0) SO_SETKEEPALIVE, socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC Task = VTYD(38), socketid = 3, Proto = 6, LA = 192.168.1.
LA = 0.0.0.0:1025, FA = 0.0.0.0:0, sndbuf = 9216, rcvbuf = 0, sb_cc = 0, rb_cc = 0, sb_maxcc = 0, rb_maxcc = 0, socket option = SO_UDPCHECKSUM, socket state = SS_PRIV Task = RDSO(56), socketid = 2, Proto = 17, LA = 0.0.0.0:1812, FA = 0.0.0.0:0, sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0, sb_maxcc = 0, rb_maxcc = 0, socket option = SO_UDPCHECKSUM, socket state = SS_PRIV SOCK_RAW: Task = ROUT(69), socketid = 8, Proto = 89, LA = 0.0.0.0, FA = 0.0.0.
Table 31 Command output Field Description SOCK_STREAM TCP socket. SOCK_DGRAM UDP socket. SOCK_RAW Raw IP socket. Task Task number. socketid Socket ID. Proto Protocol number of the socket, indicating the protocol type that IP carries. LA Local address and local port number. FA Remote address and remote port number. sndbuf Sending buffer size (in bytes) of the socket. rcvbuf Receiving buffer size (in bytes) of the socket.
display ip statistics Input: Output: sum 7120 local 112 bad protocol 0 bad format 0 bad checksum 0 bad options 0 forwarding 0 local 27 dropped 0 no route 2 output 0 compress fails 0 Fragment:input 0 dropped 0 fragmented 0 couldn't fragment 0 0 timeouts Reassembling:sum 0 Table 32 Command output Field Input Output Fragment Reassembling Description sum Total number of packets received. local Total number of packets with destination being local.
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 System Management 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.
Table 33 Command output Field Received packets Sent packets Description Total Total number of packets received. packets in sequence Number of packets arriving in sequence. window probe packets Number of window probe packets received. window update packets Number of window update packets received. checksum error Number of checksum error packets received. offset error Number of offset error packets received. short error Number of received packets with length being too small.
Field Description Closed connections Number of connections closed. In brackets are connections closed accidentally (before receiving SYN from the peer) and connections closed initiatively (after receiving SYN from the peer). Packets dropped with MD5 authentication Number of packets dropped by MD5 authentication. Packets permitted with MD5 authentication Number of packets permitted by MD5 authentication.
Table 34 Command output Field Received packets Sent packets Description Total Total number of UDP packets received. checksum error Total number of packets with incorrect checksum. shorter than header Number of packets with data shorter than head. data length larger than packet Number of packets with data longer than packet. unicast(no socket on port) Number of unicast packets with no socket on port.
Syntax ip ttl-expires enable undo ip ttl-expires Default Sending ICMP timeout packets is disabled. Views System view Default command level 2: System level Usage guidelines If the feature is disabled, the device does not send TTL timeout ICMP packets, but still send "reassembly timeout" ICMP packets. Examples # Enable sending ICMP timeout packets.
Views User view Default command level 1: Monitor level Parameters None Examples # Clear statistics of IP packets. reset ip statistics Related commands • display ip statistics (Network Management Command Reference) • display ip interface reset tcp statistics Use reset tcp statistics to clear statistics of TCP traffic. Syntax reset tcp statistics Views User view Default command level 1: Monitor level Examples # Clear statistics of TCP traffic.
tcp mss Use tcp mss to configure the TCP MSS. Use undo tcp mss to restore the default. Syntax tcp mss value undo tcp mss Default The TCP MSS is 1460 bytes. Views Interface view Default command level 2: System level Parameters value: TCP maximum segment size (MSS) in bytes, in the range of 128 to 2048. Usage guidelines TCP MSS = path MTU – IP header length – TCP header length Examples # Set the TCP MSS to 300 bytes on GigabitEthernet 0/1.
Parameters aging minutes: Sets the aging time of the path MTU, in the range of 10 to 30 minutes. The default aging time is 10 minutes. no-aging: Does not age out the path MTU. Examples # Enable TCP path MTU discovery and set the path MTU aging time to 20 minutes. system-view [Sysname] tcp path-mtu-discovery aging 20 tcp timer fin-timeout Use tcp timer fin-timeout to configure the TCP finwait timer. Use undo tcp timer fin-timeout to restore the default.
Syntax tcp timer syn-timeout time-value undo tcp timer syn-timeout Default The TCP synwait timer is 75 seconds. Views System view Default command level 2: System level Parameters time-value: Specifies the TCP synwait timer in seconds, in the range of 2 to 600. Examples # Set the TCP synwait timer to 80 seconds.
Related commands • tcp timer fin-timeout • tcp timer syn-timeout 164
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 a security product, such as a firewall, a UTM, or a load-balancing or security card that is installed in a device.
Index ABCDEFGILMOPQRSTUVW display rmon prialarm,89 A display rmon statistics,91 ascii,122 display security-logfile buffer,18 B display security-logfile summary,19 binary,122 display snmp-agent community,52 bye,123 display snmp-agent group,53 C display snmp-agent local-engineid,54 display snmp-agent mib-view,55 cd,101 display snmp-agent statistics,57 cd,123 display snmp-agent sys-info,59 cdup,124 display snmp-agent trap queue,59 close,125 display snmp-agent trap-list,60 copy,101 display
get,133 P I passive,137 info-center channel name,22 ping,1 ping ipv6,5 info-center console channel,22 put,138 info-center enable,23 pwd,111 info-center format unicom,24 info-center logbuffer,24 pwd,138 info-center logfile enable,25 Q info-center logfile frequency,25 quit,139 info-center logfile size-quota,26 R info-center logfile switch-directory,26 remotehelp,139 info-center loghost,27 rename,111 info-center loghost source,28 reset ip statistics,159 info-center monitor channel,29 r
snmp-agent trap source,78 tracert,7 snmp-agent usm-user { v1 | v2c },79 tracert ipv6,8 snmp-agent usm-user v3,80 U Subscription service,165 umount,114 T undelete,115 tcp mss,161 user,141 tcp path-mtu-discovery,161 userlog flow export host,47 tcp timer fin-timeout,162 userlog flow export host ipv6,48 tcp timer syn-timeout,162 userlog flow export source-ip,49 tcp window,163 userlog flow export timestamps localtime,49 terminal debugging,42 userlog flow export version,50 terminal logging,4