Post on 08-Apr-2018
transcript
8/7/2019 01-Basic Configuration Command
1/128
- I -
Basic Configuration Command
8/7/2019 01-Basic Configuration Command
2/128
content
- I -
Table of Content
Chapter 1 System Management Command......................................................................................................................... 1
1.1 File Management Command................................................................................................................................. 1
1.1.1 copy........................................................................................................................................................... 1
1.1.2 delete......................................................................................................................................................... 2
1.1.3 dir .............................................................................................................................................................. 3
1.1.4 ip address.................................................................................................................................................. 3
1.1.5 ip route...................................................................................................................................................... 4
1.1.6 show configuration.................................................................................................................................... 5
1.1.7 format........................................................................................................................................................ 6
1.1.8 more.......................................................................................................................................................... 6
1.1.9 download................................................................................................................................................... 7
1.1.10 upload...................................................................................................................................................... 8
1.2 Basic System Management Command................................................................................................................. 9
1.2.1 boot flash................................................................................................................................................. 10
1.2.2 cd............................................................................................................................................................. 10
1.2.3 chinese.................................................................................................................................................... 11
1.2.4 chram...................................................................................................................................................... 12
1.2.5 date......................................................................................................................................................... 13
1.2.6 debug job................................................................................................................................................. 13
1.2.7 english..................................................................................................................................................... 14
1.2.8 md........................................................................................................................................................... 151.2.9 pwd.......................................................................................................................................................... 15
1.2.10 rd........................................................................................................................................................... 16
1.2.11 rename.................................................................................................................................................. 17
1.2.12 reboot.................................................................................................................................................... 17
1.2.13 alias....................................................................................................................................................... 18
1.2.14 boot system flash.................................................................................................................................. 19
1.2.15 help........................................................................................................................................................ 19
1.2.16 history.................................................................................................................................................... 20
1.2.17 job.......................................................................................................................................................... 21
1.2.18 jobd........................................................................................................................................................ 23
1.2.19 show alias.............................................................................................................................................. 24
1.2.20 show job................................................................................................................................................ 24
1.2.21 show break............................................................................................................................................ 26
1.2.22 show memory........................................................................................................................................ 26
1.3 HTTP Configuration Command........................................................................................................................... 27
1.3.1 ip http access-class................................................................................................................................. 27
1.3.2 ip http port............................................................................................................................................... 28
1.3.3 ip http server............................................................................................................................................ 29
1.3.4 debug ip http............................................................................................................................................ 30
Chapter 2 Terminal Service Command.............................................................................................................................. 31
8/7/2019 01-Basic Configuration Command
3/128
content
- II -
2.1 Telnet Configuration Command........................................................................................................................... 31
2.1.1 telnet........................................................................................................................................................ 31
2.1.2 ip telnet.................................................................................................................................................... 33
2.1.3 ctrl-shift-6+x............................................................................................................................................. 35
2.1.4 where....................................................................................................................................................... 362.1.5 resume.................................................................................................................................................... 37
2.1.6 disconnect............................................................................................................................................... 38
2.1.7 ctrl-shift-6+x............................................................................................................................................. 39
2.1.8 switchkey................................................................................................................................................. 40
2.1.9 switchmsg................................................................................................................................................ 41
2.1.10 sequence-char....................................................................................................................................... 41
2.1.11 clear telnet............................................................................................................................................. 43
2.1.12 show telnet............................................................................................................................................ 44
2.1.13 debug telnet........................................................................................................................................... 45
2.2 Ternimal Configuration Command....................................................................................................................... 46
2.2.1 attach-port............................................................................................................................................... 47
2.2.2 autocommand.......................................................................................................................................... 48
2.2.3 clear line.................................................................................................................................................. 48
2.2.4 connect.................................................................................................................................................... 49
2.2.5 disconnect............................................................................................................................................... 49
2.2.6 exec-timeout............................................................................................................................................ 50
2.2.7 length....................................................................................................................................................... 50
2.2.8 line........................................................................................................................................................... 51
2.2.9 location.................................................................................................................................................... 51
2.2.10 login authentication............................................................................................................................... 52
2.2.11 monitor................................................................................................................................................... 52
2.2.12 no debug all........................................................................................................................................... 53
2.2.13 password............................................................................................................................................... 53
2.2.14 resume.................................................................................................................................................. 54
2.2.15 printer enable........................................................................................................................................ 54
2.2.16 printer start............................................................................................................................................ 55
2.2.17 printer stop............................................................................................................................................ 56
2.2.18 script activation...................................................................................................................................... 56
2.2.19 script callback........................................................................................................................................ 57
2.2.20 script connection................................................................................................................................... 57
2.2.21 script dialer............................................................................................................................................ 582.2.22 switchkey............................................................................................................................................... 58
2.2.23 script reset............................................................................................................................................. 59
2.2.24 script startup.......................................................................................................................................... 60
2.2.25 sequence-char....................................................................................................................................... 60
2.2.26 show debug........................................................................................................................................... 61
2.2.27 show line............................................................................................................................................... 61
2.2.28 show tty-status...................................................................................................................................... 62
2.2.29 switchmsg.............................................................................................................................................. 62
2.2.30 terminal length....................................................................................................................................... 63
2.2.31 terminal monitor..................................................................................................................................... 64
2.2.32 terminal width........................................................................................................................................ 64
8/7/2019 01-Basic Configuration Command
4/128
content
- III -
2.2.33 terminal-type.......................................................................................................................................... 65
2.2.34 where..................................................................................................................................................... 66
2.2.35 width...................................................................................................................................................... 66
Chapter 3 Network Management Command...................................................................................................................... 68
3.1 SNMP Configuration Command.......................................................................................................................... 68
3.1.1 snmp-server community.......................................................................................................................... 68
3.1.2 snmp-server contact................................................................................................................................ 70
3.1.3 snmp-server host..................................................................................................................................... 70
3.1.4 snmp-server location............................................................................................................................... 72
3.1.5 snmp-server packetsize.......................................................................................................................... 73
3.1.6 snmp-server queue-length...................................................................................................................... 74
3.1.7 snmp-server trap-source......................................................................................................................... 74
3.1.8 snmp-server trap-timeout........................................................................................................................ 75
3.1.9 snmp-server view.................................................................................................................................... 76
3.1.10 snmp-server group................................................................................................................................ 783.1.11 snmp-server user................................................................................................................................... 79
3.1.12 snmp-server engineID........................................................................................................................... 80
3.1.13 show snmp............................................................................................................................................ 81
3.1.14 debug snmp........................................................................................................................................... 83
3.2 RMON Configuration Command.......................................................................................................................... 85
3.2.1 rmon alarm.............................................................................................................................................. 86
3.2.2 rmon event .............................................................................................................................................. 87
3.2.3 rmon collection stat................................................................................................................................. 87
3.2.4 rmon collection history............................................................................................................................. 88
3.2.5 show rmon............................................................................................................................................... 89
3.3 PDP Configuration Command............................................................................................................................. 89
3.3.1 pdp enable............................................................................................................................................... 89
3.3.2 pdp holdtime............................................................................................................................................ 90
3.3.3 pdp version.............................................................................................................................................. 91
3.3.4 pdp run.................................................................................................................................................... 91
3.3.5 pdp timer................................................................................................................................................. 92
3.3.6 show pdp traffic....................................................................................................................................... 93
3.3.7 show pdp neighbor.................................................................................................................................. 93
Chapter 4 Maintenance & Debugging aids Command....................................................................................................... 95
4.1 Network Testting Command................................................................................................................................ 95
4.1.1 Ping......................................................................................................................................................... 95
4.2 Problem Diagnosis Command............................................................................................................................. 97
4.2.1 logging..................................................................................................................................................... 97
4.2.2 logging buffered....................................................................................................................................... 98
4.2.3 logging console..................................................................................................................................... 100
4.2.4 logging facility........................................................................................................................................ 101
4.2.5 logging monitor...................................................................................................................................... 102
4.2.6 logging on.............................................................................................................................................. 103
4.2.7 logging trap............................................................................................................................................ 105
4.2.8 service timestamps................................................................................................................................ 106
4.2.9 clear logging.......................................................................................................................................... 107
8/7/2019 01-Basic Configuration Command
5/128
content
- IV -
4.2.10 show break.......................................................................................................................................... 107
4.2.11 show controller .................................................................................................................................... 109
4.2.12 show debug......................................................................................................................................... 112
4.2.13 show logging....................................................................................................................................... 112
CHAPTER 5 Port Mirror Configuration Command............................................................................................................ 114
5.1 Port Mirror Configuration Command.................................................................................................................. 114
5.1.1 mirror..................................................................................................................................................... 114
5.1.2 show mirror............................................................................................................................................ 115
Chapter 6 ssh authentication configure command........................................................................................................... 116
6.1 ssh authentication command............................................................................................................................. 116
6.1.1 ip sshd enable....................................................................................................................................... 116
6.1.2 ip sshd timeout...................................................................................................................................... 117
6.1.3 ip sshd auth-method.............................................................................................................................. 117
6.1.4 ip sshd access-class............................................................................................................................. 118
6.1.5 ip sshd auth-retries................................................................................................................................ 119
6.1.6 ip sshd clear.......................................................................................................................................... 120
6.1.7 ssh......................................................................................................................................................... 120
6.1.8 show ip sshd.......................................................................................................................................... 121
6.1.9 show ssh............................................................................................................................................... 122
8/7/2019 01-Basic Configuration Command
6/128
01-Basic configuration command
- 1 -
Chapter 1 System Management Command
1.1 File Management Command
File Management Command is following:
copy
delete
dir
ip address
ip route
show configuration
format
more
download
upload
1.1.1 copy
Syntas
copy tftp {flash|rom} [ip_addr]
Parameter
Parameter Description
tftp Means to read the file from tftpserver. filename designates the
corresponding file name, if not designated, after the command copy is
executed, it will prompt the user to input the file name.
flash Means to write file into switch flash. filename designates the
corresponding file name, if not designated, after the execution of
command copy, it will prompt the user to input the file name.
ip_addr The IP address of Tftp server. If not designated, after the execution of
command copy, it will prompt the user to input.
8/7/2019 01-Basic Configuration Command
7/128
01-Basic configuration command
- 2 -
Default
None
Command mode
supervisormode
Explanation
Use command copy can read file to the switch from tftp server. After the user joinsinto supervision mode, uses command boot flash to enable the device.
Example
Copy file in TFTP server switch.binto switch flash.
monitor#copy tftp:switch.bin flash:switch.bin 192.2.2.1
Relavent commands
dir
download c0
1.1.2 delete
Syntas
delete file-name
Parameter
Parameter Description
file-name File name (maximum 20 characters).
Default
If the file name is not input, delete file startup-config by default.
command mode
supervisor mode
8/7/2019 01-Basic Configuration Command
8/128
01-Basic configuration command
- 3 -
Explanation
Use command delete to delete a file.
Relevant commands
none
1.1.3 dir
Syntas
dir file-name
Parameter
Parameter Description
file-name File name (maximum 20 characters).
Default
none
Command mode
supervisor mode
Explanation
Use command dir to display the file and directory name.
Relevant commands
none
1.1.4 ip address
Syntas
ip address ip-addressmask
8/7/2019 01-Basic Configuration Command
9/128
01-Basic configuration command
- 4 -
Parameter
Parameter Description
ip-address IP address.
mask Network mask.
Default
The IP address of Ethernet interface is 192.168.0.1 by default, the mask is255.255.255.0
Command mode
supervisor mode
Explanation
Use this command ip address under supervision mode to designate the IP address ofthe Ethernet interface.
Example
Specify Ethernet IP address 192.168.1.1and mask address 255.255.255.0.
monitor#ip address 192.168.1.1 255.255.255.0
Relevant commands
ip route
ping
1.1.5 ip route
Use this command ip route to designate the default gateway under supervisionmode.
Syntas
ip route defaultgw_ip_addr
Parameter
Parameter Description
gw_ip_addr Default gateway address
8/7/2019 01-Basic Configuration Command
10/128
01-Basic configuration command
- 5 -
Default
none
Command mode
supervisor mode
Explanation
none
Example
Specify default gateway 192.168.1.3
monitor#ip route default 192.168.1.3
Relevant commands
ip address
1.1.6 show configuration
Syntas
show configuration
Parameter
none
Default
none
Command mode
supervisor mode
Explanation
Use command show configuration can display running system configuration.
8/7/2019 01-Basic Configuration Command
11/128
01-Basic configuration command
- 6 -
Relevant commands
none
1.1.7 format
Syntas
format
Parameter
none
Default
none
Command mode
management mode
Explanation
Use command format can format file system. After use formatcommand,all file willbe lose in file system.
Relevant commands
none
1.1.8 more
Use command more to display the file content.
Syntas
more file-name
Parameter
Parameter Description
file-name File name (maximum 20 characters).
8/7/2019 01-Basic Configuration Command
12/128
01-Basic configuration command
- 7 -
Default
none
Command mode
supervisor mode
Explanation
If the file completely consists of displayable characters, and displayed with ASCII codemode, or it will be displayed with binary mode.
Relevant commands
none
1.1.9 download
Use this command download c0 under supervision mode can download the files fromconsole interface.
Syntas
download c0filename
Parameter
Parameter Description
filename Local file name.
Default
none
Command mode
supervisor mode
Explanation
Use this command to download the files by Asynchronous communication protocolZMODEM.
8/7/2019 01-Basic Configuration Command
13/128
01-Basic configuration command
- 8 -
Example
monitor#download c0 switch.bin
//**when you key the command,user will be clewed by the system.
Promptspeed[9600]?115200
//**Then, modify the rate to 115200, after reconnection, select the send file entry in thetransmit menu of super terminal (terminal imitation).
//**After the transmission of the file, it will prompt the following information:
ZMODEM: successfully receive 36 blocks ,18370 bytes
Relevant commands
None
1.1.10 upload
Syntas
upload c0filename
Parameter
Parameter Description
filename The file name in local flash.
Default
none
command mode
supervisor mode
Explanation
This command is used to upload to the host from the system flash by serialcommunication protocolzmodem.
Example
After the user inputs the command, the system will prompt the user to input theinterface rate.
Switch#upload c0 switch.bin
8/7/2019 01-Basic Configuration Command
14/128
01-Basic configuration command
- 9 -
Prompt:speed[9600]?115200
Then, modify the rate to 115200, after reconnection, select the receive file entry in thereceive menu of the super terminal (terminal imitation)
After the transmission of the file, it will prompt the following information:Zmodem send process completed.
Relevant commands
none
1.2 Basic System Management Command
Basic System Management Command is following:
bootflash
cd
chinese
english
chram
date
debub job
md
pwd
rd
rename
reboot
show break
show memory
alias
boot system flash
help
history
job
8/7/2019 01-Basic Configuration Command
15/128
01-Basic configuration command
- 10 -
jobd
show alias
show job
1.2.1 boot flash
Use this command boot flash under supervision mode can manually be enabled fromthe designated file
Syntas
boot flashfilename
Parameter
Parameter Description
filename the designated file name.
Default
none
Command mode
Supervision mode
Explanation
After the user joins into supervision mode, uses command boot flash to enable thedevice.
Example
Start handed from the specified fileswitch.bin.
monitor#boot flash switch.bin
Relevant commands
None
1.2.2 cd
Use command cd can change the current directory under supervision mode.
8/7/2019 01-Basic Configuration Command
16/128
01-Basic configuration command
- 11 -
Syntas
cd [directory|..]
Parameter
Parameter Description
Directory Directory name (maximum 20 characters).
.. Upper directory.
Default
none
Command mode
supervisor mode
Explanation
none
Example
monitor#cd my_dir
Relevant commands
pwd
1.2.3 chinese
Syntas
chinese
Parameter
none
Default
none
8/7/2019 01-Basic Configuration Command
17/128
01-Basic configuration command
- 12 -
Command mode
supervisor mode
Explanation
Use command chinese can enter chinese mode.
Relevant commands
none
1.2.4 chram
Syntas
chrammem_addr value
Use command chram can modify the memory data.
Parameter
Parameter Description
mem_addr Hex memory address, ranged from 0 to 0x01FFFF00.
value Hex memory data.
Default
none
Command mode
supervisor mode
Explanation
Debug command, not recommended.
Relevant commands
none
8/7/2019 01-Basic Configuration Command
18/128
01-Basic configuration command
- 13 -
1.2.5 date
Use command date can modify the system absolute time.
Syntas
date
Parameter
none
Default
none
Command mode
supervisor mode
Explanation
Use command date can modify the system absolute time, even after the electricalpower is off, this clock will be powered by the battery, if the time is not correct, you
need to change the battery.
Example
config#date
The current date is 2000-7-27 21:17:24
Enter the new date(yyyy-mm-dd):2000-7-27
Enter the new time(hh:mm:ss):21:17:00
Relevant commands
none
1.2.6 debug job
Syntas
debug job
8/7/2019 01-Basic Configuration Command
19/128
01-Basic configuration command
- 14 -
Parameter
None
Command mode
Management mode
Explanation
to trackce scheduling execute information.After Open job debug information,output jobdebug,execution information.
Example
config#debug job
JOB: fired
JOB: job , cmd "show ver" is parsing
Relevant command
Job
Jobd
show job
1.2.7 english
Use command english can enter english mode
Syntas
english
Parameter
none
Default
none
Command mode
supervisor mode
8/7/2019 01-Basic Configuration Command
20/128
01-Basic configuration command
- 15 -
Explanation
none
Relevant commands
none
1.2.8 md
Use command md to create a directory.
Syntas
md directory
Parameter
Parameter Description
Directory Directory name (maximum 20 characters).
Default
none
Command mode
supervisor mode
Explanation
none
Relevant commands
none
1.2.9 pwd
Syntas
pwd
8/7/2019 01-Basic Configuration Command
21/128
01-Basic configuration command
- 16 -
Parameter
none
Default
none
Command mode
supervisor mode
Explanation
Use command pwd to display the current directory.
Relevant commands
none
1.2.10 rd
Use command rd to delete a directory.
Syntas
rd directory
Parameter
Parameter Description
directory Directory name (maximum 20 characters).
Default
none
Command mode
supervisor mode
Explanation
If this directory is not empty, it prompts. If this directory does not exist, it also promptsthat this directory does not exist.
8/7/2019 01-Basic Configuration Command
22/128
01-Basic configuration command
- 17 -
Relevant commands
none
1.2.11 rename
Syntas
rename old_file_name new_file_name
Parameter
Parameter Description
old_file_name The original file name.
new_file_name The new file name.
Default
none
Command mode
supervisor mode
Explanation
Use command rename to modify the file name.
Relevant commands
1.2.12 reboot
Syntas
reboot
Parameter
none
Default
none
8/7/2019 01-Basic Configuration Command
23/128
8/7/2019 01-Basic Configuration Command
24/128
01-Basic configuration command
- 19 -
1.2.14 boot system flash
Use command boot system flash can designate the system image file to executewhen the system starts, use command no system flash to delete the former
configuration.
Syntas
[no]boot system flashfilename
Parameter
Parameter Description
filename File name (maximum 20 characters).
Default
None
Command mode
global configuration mode
Explanation
If the user has not configured this command, the system will execute the first systemimage file in the flash file system. If the user configures several commands, the systemwill execute the configured image file in sequence, if this file does not exist or checkerror, execute the next file. If all of them are not successful, the system joins intosupervision mode.
Example
config#boot system flash switch.bin
Relevant commandsNone
1.2.15 help
Syntas
help
8/7/2019 01-Basic Configuration Command
25/128
01-Basic configuration command
- 20 -
Parameter
None
Default
None
Command mode
Management mode
ExplanationDisplay help system of the switch.
Example
switch# help
Help may be requested at any point in a command by entering a question mark '?',If nothingmatches, the help list will be empty and you must backup until entering a '?' shows the availableoptions.
Two styles of help are provided:
1. Full help is available when you are ready to enter a command argument(e.g.'show ?') anddescribes each possible argument.
2. Partial help is provided when an abbreviated argument is entered and you want toknow what arguments match the input (e.g. 'interface e?'.)
Relevant commands
None.
1.2.16 history
Syntas
[no] history[ + |- |clear]
Parameter
Parameter Description
+ Display the historical commands with number count from the top to
the bottom.
- Display the historical commands with number count from the
bottom to the top..
8/7/2019 01-Basic Configuration Command
26/128
01-Basic configuration command
- 21 -
Default
IF the historical commands number is not more than 20, display in full from top tobottom; if it is more than 20, display the 20 most recent historical commands from top
to bottom.
Command mode
Any command mode
Explanation
The switch can keeo 20 history command at most.
Example
Display 5 history commands from colophon to title.
Switch#history - 5
config
int e1/1
no ip addr
ip addr 192.2.2.49 255.255.255.0
exit
Relevant commands
None.
1.2.17 job
Syntas
[no] job {[intervalfireinterval| one-shot] |sleepsleeptime|stopjobname}
Parameter
Parameter Description
exec jobname Executes a job immediately
jobnamedefinaton Definite a job.
restartjobname Reboot a job
schedule jobname Setting job to scheduling
at firsttime Settion the first jobd interval execution after job starts
interval fireinterval Configure the interval between the two execution of the job.
8/7/2019 01-Basic Configuration Command
27/128
01-Basic configuration command
- 22 -
one-shot Setting job to execute only once
sleep sleeptime Setting sleeptime
stop jobname Stop scheduling job
Default
None
Command mode
global configuration mode
Explanation
Job is a segment script , it defines command group ,and can set job when to carry outor interval of execution.
Example
The following example defines to shutdown of all jobs on the port:
job shutall int s1/0;shut;int s1/1;shut;int s1/2;shut;int s1/3;shut
The following example defines not to shutdown all jobs on the port:
job noshutall int s1/0; no shut;int s1/1;no shut;int s01/2;no shut;int s1/3;no shut
The following example defines to periodically execute shutdown and no shutdownoperation on all ports:job schedule shutall at 100 interval 60
job schedule noshutall at 130 interval 60
(Then, after the jobd starts for 100 seconds, shutall this job starts, restarts every 60seconds; after the switch starts for 130 seconds, noshutall shutall this job starts,restarts every 60 seconds.)
If you want to execute the sequence of shutall and noshutall, you can define andschedule as follows:job reshut job exec shutalljob exec noshutall
job schedule reshut at 100 interval 30
If shutall error during execution, execute the next command(pause by default)job shutall on-error next
If executes noshutall:(no recursion of the job)job shutall on-error exec noshutall
The following example, pause a jobjob stop shutall
The following example, restart a paused job:
8/7/2019 01-Basic Configuration Command
28/128
01-Basic configuration command
- 23 -
job restart shutall
Relevant commandshow job
debug job
1.2.18 jobd
Syntas
[no] jobd
Parameter
None
Default
None
Command mode
Global configuration mode
Explanation
You can reboot jobs watch process execution by use this command.it will cancelfunction by theno command.
Jobs execution needs jobd to scheduling,jobs execution time is base on jobds reboottime.input q,Q or Ctrl+shift+6 to end jobd.
Example
Display how to reboot jobd.
switch_config#jobd
Job daemon started. No commands can be entered. End with q, Q, or Ctrl+Shift+6.
Relevant command
debug job
job
show job
8/7/2019 01-Basic Configuration Command
29/128
01-Basic configuration command
- 24 -
1.2.19 show alias
Syntas
show alias []
Parameter
Parameter Description
alias name Command alias name.
Default
Display all alias name in term of format:alias name=command line.
Command mode
Management mode
Explanation
Display all alias name or specify alias name.
Example
Display all alias name in currently system.
switch_config#show alias
hualab=date
switch=snmp
Relevant Command
alias
1.2.20 show job
Syntas
show job {parameter| status}
Parameter
Parameter Description
8/7/2019 01-Basic Configuration Command
30/128
01-Basic configuration command
- 25 -
parameter Display jobs configuration parameter
status Display jobs scheduling execution.
Default
None
Command mode
Management mode
Explanation
You can look over defined job parameter or jobs dynamic execution,and this commanddisplays jobs configuration parameter and execution.
Example
Display jobs parameterinformation.
switch_config#show job parameter
fires interval, first at 5, re-fires per 5 secs, on error stop
will do "show ver"
display jobs dynamic execution.
]Jobd disabled at 245218 seconds
Name: job's name
Type: none - Not scheduled, interval - Fire interval, one-shot - Fire once
Status: null - Not scheduled, idle - To fire first
started - Fired ever, to fire again, stopped - Can't fire
First: first time to fire
Last: last time of firing or restarting
Next-due: next time to fire(after now)
Times: times fired ever
Cause: auto - Automatic, error - Error meeting, command - By command
Job's status and statistics
===========================
Name Type State First Last Next-due Times Cause
------------------------------------------------------------------------------
showver interval idle 5 * * 2 auto
------------------------------------------------------------------------------
Total 1 jobs, 0 null, 1 idle, 0 started, 0 stopped
Relevant commanddebug job
job
8/7/2019 01-Basic Configuration Command
31/128
01-Basic configuration command
- 26 -
jobd
1.2.21 show break
Syntas
show break
Parameter
None
Default
None
Command mode
supervisor mode
Explanation
Display system exception information.it will keep the exception information in the last
electrify time.you can use this command to display all the information which includeexception times,stack content and function transfer relation in the exception time.
Relevant command
None
1.2.22 show memory
Syntas
show memorymem_addrParameter
Parameter Description
mem_addr Hex EMS address,range: 0-0x01FFFF00.
8/7/2019 01-Basic Configuration Command
32/128
01-Basic configuration command
- 27 -
Default
None
Command mode
supervisor mode
Explanation
None
Relevant command
None
1.3 HTTP Configuration Command
HTTP Configuration Command list:
ip http access-class
ip http port
ip http server
debug ip http
1.3.1 ip http access-class
Syntas
ip http access-class string
no ip http access-class
To ensure specified HTTP request is applied, use command ip http access-class.
Parameter
Parameter Description
string Specified standard access list name.
Default
no ip http access-class
8/7/2019 01-Basic Configuration Command
33/128
01-Basic configuration command
- 28 -
Command mode
global configuration mode
Explanation
Before using this command, configure Specified standard access list.
Use no format of this command to cancel the access list to limit HTTP servicerequest.
Example
switch_config# ip access-list standard http-acl
switch_config_std_nacl# permit 192.2.2.37 255.255.255.0
switch_config_std_nacl# exit
switch_config# ip http access-class http-acl
Relevant command
ip http server
ip http port
1.3.2 ip http port
User command ip http port to specify the Service port of http service. Syntas
ip http port number
Parameter
Parameter Description
number Service port of http service.range: 1-65535.
Default
Browser default HTTP service port nuber is 80.
Command mode
global configuration mode
8/7/2019 01-Basic Configuration Command
34/128
01-Basic configuration command
- 29 -
Explanation
After executing http port command, if http service is enabled, close source detectionport first,and then use specified port (if not in used) to receive http service request. If
http service is disabled, this command does not make any difference (temporarily).
Example
The following example changes http service port from default number 80 to 90.
switch_config# ip http server
switch_config# ip http port 90
Relevant command:
ip http access-class
ip http server
1.3.3 ip http server
To enable HTTP service, use ip http server command.
Syntas
ip http server
no ip http server
Parameter
none
Command mode
global configuration mode
Explanation
Use this command to make switch receive HTTP service request in specified port. Itwill process the request and return the result to browser.
Example
switch_config# ip http server
8/7/2019 01-Basic Configuration Command
35/128
01-Basic configuration command
- 30 -
Relevant commandip http access-classip http port
1.3.4 debug ip http
Syntas
debug ip http
Parameter
None
Default
no debug ip http
Explanation
Output debug information in http service function.no command recover default value.
Command mode
Global configuration mode
Example
Open http debug output.
switch# debug ip http
switch#
8/7/2019 01-Basic Configuration Command
36/128
01-Basic configuration command
- 31 -
Chapter 2 Terminal Service Command
2.1 Telnet Configuration Command
This chapter will introduce telnet and its configurations and management commands.telnet is used to setup telnet session with a remote server. telnet is usually used totelnet Unix system.
It needs negotiation about optional items. telnet can not provide authorization to itself .So , it is mostly different from Rlogin in which it can not provide password verificationto itself.
Telnet configuration command is following:
telnet
ip telnet
where
disconnect
resume
switchkey
switchmsg
sequence-char
clear Telnet
show Telnet
debug Telnet
2.1.1 telnet
Syntas
telnetserver-ip-addr/server-host-name[/portport][/source-interfaceinterface] [/locallocal-ip-addr] [/debug][echo/noecho] [/scriptscriptname]
Parameter
Parameter Description
server-ip-addr Remote servers IP address is expressed by decimal system.
8/7/2019 01-Basic Configuration Command
37/128
01-Basic configuration command
- 32 -
server-host-name:The host name of the remote server, it need use command ip host to
configure.
port The port providing telnet service of the remote server.
interface: Local interface to launch telnet connection
local-ip-addr Local IP address to launch telnet connection.
debug Open debug switch of client , print negotiation course when connection.
echo/noecho Open/turnoff local echo, default is noecho.
scriptname The script name used to automatically login.
Default
port default is 23, interface does not have default.
Command mode
supervisor mode
Explanation
User can use one of following commands to telnet
telnet server-ip-addr/server-host-name
In this condition, application program will transmit telnet request to 23 interface of the
remote server, the used IP address is the nearnest IP address according to route table.
telnet server-ip-addr/server-host-name /port port
At this time, application program transmit telnet request to the peer port.
telnet server-ip-addr/server-host-name /source-interface interface
At this time, application use interfaces IP address as local address.
telnet server-ip-addr/server-host-name /debug
At this time, application program opens debug switch of client, and will output linknegotiation course.
telnet server-ip-addr/server-host-name echo/noecho
At this time , application program opens/closes local echo. Usually, Local echo isclosed ,echo is finished by the server. Only when the server is not responsible for echo,local echo switch will open.
telnet server-ip-addr/server-host-name /script scriptname
Before execute automatically login command of this script , use command ip telnetscript to configure.
8/7/2019 01-Basic Configuration Command
38/128
01-Basic configuration command
- 33 -
Above command parameters can be used united.
When in the course of session with the remote server ,user can use q key to quit .Ifdo not exit by hand, it will exit after 10 seconds waiting.
Example
1.If user want to telnet to the server 192.168.20.124, and the server has two telnetports: 23 and 2323, and local has two ports: e1/1(192.168.20.240) ands1/0(202.96.124.240).User can use following commands to telnet.
telnet 192.168.20.124 /port 2323
2.In such a condition , telnet will connect to peer 2323 port .The local IP address seenby the peer is 192.168.20.240.
telnet 192.168.20.124 /source-interface s1/0
3.In such a condition, telnet will connect to peer 23 port .The local IP address seen bythe peer is 202.96.124.240.
telnet 192.168.20.124 /local 192.168.20.240
4.In such a condition , telnet will connect to peer 23 port .The local IP address seen bythe peer is 192.168.20.240.
telnet 192.168.20.124 /debug
5.In such a condition, telnet will print negotiation course to setup telnet connection topeer 23 port.
telnet 192.168.20.124 /echo
6.In such a condition, telnet will open local echo switch. At his time, if the sever runsecho also, all input will be echoed for two times.
telnet 192.168.20.124 /script s1
7.Use login script named s1 to automatically login.
2.1.2 ip telnet
Syntas
ip telnet source-interface vlanvalue
ip telnet access-class accesslist
ip telnet listen-portstart-port [end-port]
ip telnet scriptscriptname user_prompt user_answer pwd_prompt pwd_answer
Parameter
Parameter Description
value The local interface launching telnet.
8/7/2019 01-Basic Configuration Command
39/128
01-Basic configuration command
- 34 -
accesslistWhen local is receiving connection, accessing list name to limit source
address.
start-port User appoint the start-port number of interception field.end-port User appoint the end-port number of interception field.
scriptname Login script name.
user_prompt User name prompt information sent back by the telnet server.user_answer User answer information submitted by client.pwd_prompt User password prompt information sent back by the telnet server.pwd_answer Password answer information submitted by client.
Default
None
Command mode
global configuration mode
Explanation
User can use following commands to configure local source interface to launchtelnet.
ip telnet source-interface interface
In such a condition, all subsequent telnet use this interface. This configurationcommand is similar to telnet source-interface interface, but it does not need toadd parameter when using command telnet. If not only configure ainterface ,but also add interface parameter in command telnet, it should bedetermined by the latter.
User can use following commands to configure access list names limited bylocal telnet connection.
ip telnet access-class accesslist
In such a condition, after that, when the server accepts all telnet connections, itneeds to check access list.
User can use following commands to configure other interfaces except default(23) to receive telnet connection.
ip telnet listen-portstart-port [end-port]
Explanation: if not appoint end-port number, it will intercept on a special port.The numbers of appointed interception ports can not be more than 16,and portscan be limited between 3001 and 3999.
User can use the following commands to configure telnet login script.
ip telnet script s1 login: switch Password: test
Explanation: when configuring script , user name prompt, answer, passwordprompt ,answer must fully match. And user must pay attention to prompt
information, it differs whether capitalization or not, and prompt information must
8/7/2019 01-Basic Configuration Command
40/128
01-Basic configuration command
- 35 -
add (). If any item is not configured properly, it can not automatically loginsuccessfully .
Note :
Above four commands can add prefix no to cancel setting.
Example
1.In such a condition, all coming launching telnet connections use s1/0 interface.
ip telnet source-interface s1/0
2.In such a condition, all coming accepting telnet connections will be checked byaccess-list abc.
ip telnet access-class abc
3.Besides 23,user can use all port between 3001 and 3010 to accept telnetconnections.
ip telnet listen-port 3001 3010
4.configure a login script named s1,user name prompt is login:, answer is switch,password prompt is Password:, answer is test.
ip telnet script s1 login: switch Password: test
2.1.3 ctrl-shift-6+x
Suspend telnet connection on client.
Syntas
ctrl-shift-6+x
Parameter
none
Default
none
Command mode
any time on current telnet session
Explanation
User can use this short key to suspend current telnet connection from client.
8/7/2019 01-Basic Configuration Command
41/128
01-Basic configuration command
- 36 -
Example
switchA>telnet 192.168.20.1
switchB>ena
switchB#(key ctrl-shift-6+x)switchA>
If user press ctrl-shift-6+xon current telnet session connection to SwitchB , it will suspend
connection to SwitchB, and go back to SwitchAs current state
2.1.4 where
Check current suspend telnet session on client.
Syntas
where
Parameter
none
Default
None
Command mode
Global configration mode
Explanation
User can use this command to check current suspend out telnet connection onclient .Displayed information include number, peer address, peer port ,local address,local port.
Notes:
Command where is different from command show telnet. The former is used on client to show outtelnet connection, while the latter is used on server client to show in telnet connection.
Example
switchA>telnet 192.168.20.1
switchB>ena
switchB#(key ctrl-shift-6+x)
switchA> telnet 192.168.20.2
switchC>ena
8/7/2019 01-Basic Configuration Command
42/128
01-Basic configuration command
- 37 -
switchC#(key ctrl-shift-6+x)
switchA>where
NO. Remote Addr Remote Port Local Addr Local Port
1 192.168.20.1 23 192.168.20.180 20034
2 192.168.20.2 23 192.168.20.180 20035User input command whereon SwitchA to show out and suspend information on SwitchA.
2.1.5 resume
Resume current out and suspend telnet session on client.
Syntas
resumeno
Parameter
Parameter Description
no Current suspend telnet session number seen through command where.
Default
none
Command mode
Global configuration mode
Explanation
User can use this command to resume current out and suspend telnet connection onclient.
Example
switchA>telnet 192.168.20.1
Welcome to Multi-Protocol xxxx Series Switch
switchB>ena
switchB#( ctrl-shift-6+x)
switchA> telnet 192.168.20.2
Welcome to Multi-Protocol 1700 Series Switch
switchC>ena
switchC#( ctrl-shift-6+x)
switchA>where
NO. Remote Addr Remote Port Local Addr Local Port
1 192.168.20.1 23 192.168.20.180 20034
8/7/2019 01-Basic Configuration Command
43/128
8/7/2019 01-Basic Configuration Command
44/128
01-Basic configuration command
- 39 -
switchA>where
NO. Remote Addr Remote Port Local Addr Local Port
1 192.168.20.1 23 192.168.20.180 20034
2 192.168.20.2 23 192.168.20.180 20035
switchA>disconnect 1 y
Connection closed by remote host.
switchA>
User inputs command whereon SwitchA, after displaying out and suspendinformation on SwitchA, input disconnect 1,displayed information will prompt user whether close connection to SwitchB, after enterY, connection closes.
2.1.7 ctrl-shift-6+x
Suspension currently telnet connection in the client.
ctrl-shift-6+xParameter
None
Default
None
Command mode
Any mode
Explanation
You can use the ctrl-shift-6+x to Suspension currently telnet connection in the client.
ExampleswitchA>telnet 192.168.20.1
Welcome to Multi-Protocol 2000 Series switch.
switchB>ena
switchB#(key ctrl-shift-6+x)
switchA>
User can use the ctrl-shift-6+x in the currently telnet dialog to Suspension switchB connectionin the client,return to switchA currently state.
8/7/2019 01-Basic Configuration Command
45/128
01-Basic configuration command
- 40 -
2.1.8 switchkey
the commands to configure terminal switch keys on line are following:
Syntas
switchkey key cmdalias server-name
Parameter
key You can use ctrl-a-ctrl-z, do not use ctrl-h.cmdalias alias of command connect.server-name the remote servers name, it will appear in switch prompt information and
switch menu.
Default
None
Command mode
Line configuration mode
Explanation
User can configure terminal switch keys and their correspond alias and remote hostname through using this command.
Note:
1) Cmdalias parameter must appoint to a correct connectcommand .
2) key parameter can not be ctrl-h.
3) server-name parameter will appear in switch prompt information and switch menu.
4) Do not configure autocommand on this line ,or terminal switch function will not work .
Example
switchA>switchkey ctrl-a cona ServerA
configure switch-key ctrl-a, use command alias cona, switch to the serverServerA.
8/7/2019 01-Basic Configuration Command
46/128
01-Basic configuration command
- 41 -
2.1.9 switchmsg
The command determining whether to output terminal switch prompt information online are following:
Syntas
switchmsg [enable|disable]
Parameter
Parameter Description
enable Output terminal switch prompt information.
disable Forbid to output terminal switch prompt information.
Default
Disable e
Command mode
line configuration mode
Explanation
User can use this command to configure on line whether to output switch promptinformation when terminal switch.
Example
switchA>switchmsg enable
output switch prompt information when terminal switch
2.1.10 sequence-char
The commands to configure switch keys on line are following:
Syntas
sequence-char key char1 char2 char3
Parameter
Parameter Description
8/7/2019 01-Basic Configuration Command
47/128
8/7/2019 01-Basic Configuration Command
48/128
01-Basic configuration command
- 43 -
sequence-char CTRL-V 0x1b 0x21 0x39 0x51
switchkey CTRL-W conc ServerC
sequence-char CTRL-W 0x1b 0x21 0x31 0x30 0x51
switchmsg enable
...
alias cona connect 192.168.20.1
alias conb connect 192.168.20.2
alias conc connect 192.168.20.3
After finish all configurations and connection, open terminal, switch menu will automaticallyappear in the screen. The system will switch to ServerA automatically after enteringCTRL-U(and output prompt information of current host ServerA).
The system will switch to ServerB automatically after entering CTRL-V(and outputprompt information of current host ServerB).
The system will switch to ServerC automatically after entering CTRL-W(and outputprompt information of current host ServerC).
At any time, after enteringCTRL-\,switch menu will appear in current screen, and add*behind current server.
The following is display content after input CTRL-\:
Terminal Switch Menu
1) CTRL-U ServerA *
2) CTRL-V ServerB
3) CTRL-W ServerC
Note:
1) In the operation of several connections, if exiting from one of the connections(not switch), system will take the first connection as current connection, screenwill restore to the first hosts interface, if the first connection is exiting , systemwill take the second connection as current connection, screen will restore to thesecond hosts interface.
2) After finish all tasks, the suggested way to exit the system is to close terminal directly regardlesshow many connections are open curremtly.
3) Do not exit the first connection before exiting other connections
4) User had better not exit some connection in the operation, and only switch. To close the terminalafter finish all operations.
5) In the operation of terminal switch, the functions of connections suspending and restoring throughctrl-shift-6+x will be forbidden.
2.1.11 clear telnet
The command format to clear telnet session on the server is following:
8/7/2019 01-Basic Configuration Command
49/128
01-Basic configuration command
- 44 -
Syntas
clear telnetno
Parameter
Parameter Description
no The telnet session number displayed by show telnet.
Default
None
Command mode
Supervisor mode
Explanation
User can use this command to clear telnet session on the server.
Example
clear telnet 1.
clear telnet 1 seesion (192.168.20.220:1097) on the server
2.1.12 show telnet
The command format to show telnet session of the server is following:
Syntas
show telnet
Parameter
None
Default
None
Command mode
other modes except user mode
8/7/2019 01-Basic Configuration Command
50/128
01-Basic configuration command
- 45 -
Explanation
User can use this command to show telnet session of the server. The displayedinformation include number, peer address, peer port, local address, local port.
Example
show telnet.
Display connect-in telnet session information of the server.
Perform results are following:
NO. Remote Addr Remote Port Local Addr Local Port
1 192.168.20.220 1097 192.168.20.240 23
2 192.168.20.180 14034 192.168.20.240 23
2.1.13 debug telnet
Commanddebugs format of telnet session is following:
Syntas
debug telnet
Parameter
None
Default
None
Command mode
Supervisor mode
Explanation
User can use this command to open telnets debug switch.
Now, all connect-in telnet sessions negotiation course print in debug output windows.
This command is different from telnet command with debug parameter in: the former isoutput connect-in telnet sessions debug information of the server, the latter is outputlaunching telnet sessions debug information of the client.
Example
User open connect-in telnet sessions debug of the server.
8/7/2019 01-Basic Configuration Command
51/128
8/7/2019 01-Basic Configuration Command
52/128
01-Basic configuration command
- 47 -
show debug
show line
show tty-status
switchkey
switchmsg
terminal-type
terminal monitor
terminal width
terminal length
where
width
2.2.1 attach-port
Binding telnet interception ports and line vty number, make telnet connection ,whichlogon a special port ,produce vty according to appointed numbers.
Syntas
[no] attach-portport
Parameter
Parameter Description
port Telnet servers interception port number (3001-3999).
Default
None
Command modeLine configuration mode
ExampleBind 3001 interception port to line vty 2 3.
switch _config# line vty 2 3
8/7/2019 01-Basic Configuration Command
53/128
01-Basic configuration command
- 48 -
2.2.2 autocommand
Set auto-commands when user logon to the terminal, the connection will cut afterperforming this command.
Syntas
autocommandline
no autocommandParameter
Parameter Description
line Performing commands.
Command mode
Line configuration mode
Example
switch_conf#line vty 1
switch_conf_line#autocommand pad 123456
After successfully login, it will automatically PAD to the host whose X.121 address is123456.
2.2.3 clear line
Clear specify line.
Syntas
clear line [aux | tty | vty] [number]
Parameter
Referrence the linecommand.
Command
Supervise mode
8/7/2019 01-Basic Configuration Command
54/128
01-Basic configuration command
- 49 -
Example
switch#clear line vty 0
2.2.4 connect
Connect a telnet server.
Syntas
connect [server-ip-addr|server-host-name]{[port port|source-interface interface][/locallocal-ip-addr]}
Parameter
Parameter Description
server-ip-addr/serv
er-host-name
IP address or host name of the server
port port number
interface launching connections interface name
local-ip-addr launching connections local IP address.
Command mode
all configuration mode
Example
Switch#telnet 192.168.20.1
2.2.5 disconnect
Delete suspended telnet session.
Syntas
disconnectnumber
Parameter
Parameter Description
number Suspended telnet session number
Command mode
all configuration mode
8/7/2019 01-Basic Configuration Command
55/128
01-Basic configuration command
- 50 -
Example
Switch#disconnect 1
2.2.6 exec-timeout
Set the maximum vacancy time of the teminal.
Syntas
[no] exec-timeout time
Parameter
Parameter Description
time Vacancy time counted by second.
Default
0 ( without time-out limit)
Command modeline configuration mode
ExampleSet lines vacancy time to 1 hour
switch_config_line#exec-timeout 3600
2.2.7 length
Set one screens lines of the line terminal.
Syntas
[no] lengthvalue
Parameter
Parameter Description
value Values from 0-512, 0 shows no pause.
8/7/2019 01-Basic Configuration Command
56/128
01-Basic configuration command
- 51 -
Default
24
Command mode
line configuration mode
2.2.8 line
Enter into line configuration mode.
Syntas
line [aux | console | tty | vty] [number]
Parameter
Aux, console ,tty and vty are all line types. Aux is corresponding to auxiliary lines,console is corresponding to monitor lines, tty is corresponding to asynchronous line,vty is corresponding to Telnet,PAD,Rlogin etc. virtual lines.
Number is the number of the line type. There is only a number 0 to Console andAux.
Command mode
global configuration mode
Example
entering VTY configurations mode from 0 to 10.
switch _config#line vty 0 10
2.2.9 location
Record descriptions of current lines
Syntas
locationline
no location
8/7/2019 01-Basic Configuration Command
57/128
01-Basic configuration command
- 52 -
Parameter
Parameter Description
line Descriptions text of Current lines.
Command mode
line configuration mode
2.2.10 login authentication
Set line login authentication parameter
Syntas
[no] line login authentication [default | word]
Parameter
Parameter Description
default Set to default authentication.
word The name of authentication list.
Command mode
line configuration mode
Example
Switch_conf_line#login authentication test
Set the lines authentication list to test
2.2.11 monitor
Make log and debug information output to this line.
Syntas
[no] monitor
Parameter
None
8/7/2019 01-Basic Configuration Command
58/128
01-Basic configuration command
- 53 -
Command mode
Line configuration mode
Example
Switch_config_line#monitor
2.2.12 no debug all
Close all debug output of current VTY.
Syntas
no debug allParameter
None
Command mode
Supervisor mode
Example
switch #no debug all
2.2.13 password
Set terminals password
Syntas
password {password| encryption-type encrypted-password}
no password
Parameter
Parameter Description
password Configured password for this line, type in plaintext, the maximumpassword length is 30 digits.
encryption-type
encrypted-password
encryption-type means the types of encryption, now, the switch only
supports two types: 0 and 7.
0 means no encryption, the latter encrypted-password will be covered
8/7/2019 01-Basic Configuration Command
59/128
01-Basic configuration command
- 54 -
by passwords plaintext, this has the same effect as typing password
directly without adding encryption-type;
7 means that encryption with switchs own arithmetic, the latter
encrypted-password will be covered by encryption password
cryptograph, this cryptograph can be copied from other switchs
configurations files.
More details about password encryption ,please refer to servicepassword-encryptioncommand and enable passwordcommand.
Command mode
Line configuration mode
Example
Set password of VTY 1 to test.
switch _conf#line vty 1
switch _conf_line#password test
2.2.14 resume
Resume suspended telnet session.
Syntas
resumenumber
Parameter
Parameter Description
number Number of suspended telnet session.
Command mode
All configurations mode
Example
switch #resume 1
2.2.15 printer enable
Open/close the function of connecting to printer.
8/7/2019 01-Basic Configuration Command
60/128
01-Basic configuration command
- 55 -
Syntas
printer [enable|disable]
Parameter
Parameter Description
enable Open the function of connecting printer on line.
disable Close the function of connecting printer on line.
Default
Disable
Command modeLine configuration mode
ExampleOpen the function of connecting printer on line tty 1.
switch _config# line vty 1
switch _config_line#printer enable
2.2.16 printer start
Configure character sequence to begin printing.
Syntas
[no] printer start char1 char2 char3
Parameter
Parameter Description
char1 char2
char3
Character sequence to begin printing, must be 16 scale digit, begins with
Ox, separation with space among characters.
no Restore character sequence to begin printing to default: 0x1b 0x5b 0x35
0x69.
Default
0x1b 0x5b 0x35 0x69
8/7/2019 01-Basic Configuration Command
61/128
01-Basic configuration command
- 56 -
Command modeLine configuration mode
ExampleConfigure character sequence to begin printing on line tty1
switch _config# line vty 1
switch _config_line#printer start 0x1b 0x5b 0x30 0x69
2.2.17 printer stop
Configure character sequence to stop printing
Syntas
[no] printer stopchar1 char2 char3
Parameter
Parameter Description
char1 char2
char3
Character sequence to stop printing, must be 16 scale digit, begins with
Ox, separation with space among characters.
no Restore character sequence to begin printing to default: 0x1b 0x5b 0x35
0x69.
Default
0x1b 0x5b 0x34 0x69
Command modeLine configuration mode
ExampleConfigure character sequence to stop printing on line tty1
switch _config# line vty 1
switch _config_line#printer stop 0x1b 0x5b 0x31 0x69
2.2.18 script activation
Configure the script of line activation
8/7/2019 01-Basic Configuration Command
62/128
01-Basic configuration command
- 57 -
Syntas
script activation word
Parameter
Parameter Description
word Script name.
Command modeLine configuration mode
Example
Configure script name of line activation to script1.
switch _config_line#script activation script1
2.2.19 script callback
Configure callback script.
Syntas
script callbackword
Parameter
Parameter Description
word script name.
Command nameLine configuration mode
Example
Configure system callbacks script name to script1
switch _config_line#script callback script1
2.2.20 script connection
Configure script of creating connectiom.
8/7/2019 01-Basic Configuration Command
63/128
01-Basic configuration command
- 58 -
Syntas
script connectionword
Parameter
Parameter Description
word script name.
Command modeLine configuration mode
Example
Configure script name of creating connection to script1.
switch _config_line#script connection script1
2.2.21 script dialer
Configure dialer script.
Syntas
script dialer word
Parameter
Parameter Description
word Script name.
Command modeline configuration mode
Example
Configure dialer script to script1.
switch _config_line#script dialer script1
2.2.22 switchkey
Configure terminal switchkey .
8/7/2019 01-Basic Configuration Command
64/128
01-Basic configuration command
- 59 -
Syntas
switchkey key cmdaliasserver-name
Parameter
Parameter Description
key Terminal switch keyCTRL-ACTRL-Z except CTRL-H
cmdalias Command alias when performing terminal switch
server-name The corresponding server name to each terminal screen
Command mode
Line configuration mode
Example
Configure connect to sco1 server through con-sco command when switching byctrl-a.
switch _config_line#switchkey ctrl-a con_sco sco1
2.2.23 script reset
Configure script when interface reset.
Syntas
script resetword
Parameter
Parameter Description
word Script name.
Command modeLine configuration mode
Example
Configure script to script1 when interface reset.
switch _config_line#script reset script1
8/7/2019 01-Basic Configuration Command
65/128
01-Basic configuration command
- 60 -
2.2.24 script startup
Configure script when system startup.
Syntas
script startupword
Parameter
Parameter Description
word Script name
Command modeLine configuration mode
Example
Configure scripts name to script1 when system startup.
switch _config_line#script startup script1
2.2.25 sequence-char
Configure character sequence writing back to terminal when terminal switch.
Syntas
sequence-char key char1 char2 char3
Parameter
Parameter Description
key terminal switch key.
char1 char2
char3
character sequence writing back.
Command modeLine configuration mode
Example
Configure character sequence writing back to terminal to 0x1b 0x21 0x38 0x51 when
switching by ctrl-a
8/7/2019 01-Basic Configuration Command
66/128
01-Basic configuration command
- 61 -
switch _config_line#sequence-char ctrl-a 0x1b 0x21 0x38 0x51
2.2.26 show debug
Show all current debug information opened by VTY.
Syntas
show debug
Parameter
None
Command mode
Supervisor mode or global configuration mode
Example
switch #show debug
Generic IP:
IP packet debugging is on
Frame Relay:
Lmi debugging is on
2.2.27 show line
Show current effective line state.
Syntas
show line {[console | aux | tty | vty] number}
Parameter
If without parameters , it will show all current effective lines state.
Other parameters defines are correspond to line
Command mode
no-user state
8/7/2019 01-Basic Configuration Command
67/128
01-Basic configuration command
- 62 -
2.2.28 show tty-status
Show interface settings status corresponding to tty .
Syntas
show tty-status number
Parameter
Parameter Description
number Number of line tty.
Default
None
Command modeOther configurations modes except user configurations mode
Exampleshow interface settings status corresponding to tty 1.
switch _config# show tty-status 1
2.2.29 switchmsg
Configure whether to show prompt information when terminal is switching.
Syntas
switchmsg [enable |disable]
Parameter
Parameter Description
enable Show prompt information when terminal switching.
disable Forbid showing prompt information when terminal switching.
Default
disable
8/7/2019 01-Basic Configuration Command
68/128
01-Basic configuration command
- 63 -
Command modeline configuration mode
Example
configure to show prompt information when terminal switching
switch _config_line#switchmsg enable
2.2.30 terminal length
Syntas
terminal length length
no terminal length
Parameter
Parameter Description
length Displayed lines per screen.
Defaultpause after display 24 lines per screen
Command modeglobal configuration mode
ExplanationThis command is only effective to current terminal, after finishing session, terminal
attribute will lose. Use command terminal length to change displayed lines perscreen of current terminal, this parameter can be obtained by the remote host.
rlogin protocol uses this parameter to note the remote UNIX host. While use noformat of this command to restore its default.
Exampleswitch#terminal length 40
Relevant commandsLine
8/7/2019 01-Basic Configuration Command
69/128
01-Basic configuration command
- 64 -
2.2.31 terminal monitor
Use command terminal monitor to show debug output and system error informationon current terminal , while using no format of this command will close monitor.
Syntas
terminal monitorno terminal monitor
Parameternone
Defaultthe dafault of System console is open, the default of other terminals are closed.
Command modeglobal configuration mode
ExplanationThis command is only effective to current terminal, after finishing session, terminalattribute will lose.
Exampleswitch#terminal monitor
Relevant commandslinedebug
2.2.32 terminal width
When default, the switchs output is 80 characters per line. If it can not meet yourterminal request, you can configure again. This parameter can be obtained by theremote host. Using command terminal width can set characters per line. Using noformat of this command can restore its default.
8/7/2019 01-Basic Configuration Command
70/128
01-Basic configuration command
- 65 -
Syntas
terminal width number
no terminal width
Parameter
Parameter Description
number characters number per line
Defaultdisplay 80 characters per line
Command modeglobal configuration mode
ExplanationThis command is only effective to current terminal, after finishing session, terminalattribute will lose.
Exampleswitch #terminal width 40
Relevant commandsline
2.2.33 terminal-type
Syntas
[no] terminal-type name
Parameter
Parameter Description
name Terminals name. terminal types supported include: VT100ANSIVT100J
currently.
8/7/2019 01-Basic Configuration Command
71/128
01-Basic configuration command
- 66 -
Default
ANSI
Command mode
line configuration mode
Explanationset terminal type.
2.2.34 where
Syntas
where
Parameter
none
Command mode
all configuration mode
ExplanationCheck current suspended connection-out telnet sessions on the client.
Example
switch #where
2.2.35 width
Syntas
[no] width value
Parameter
Parameter Description
value Values from 0512, 0 means no enter.
8/7/2019 01-Basic Configuration Command
72/128
8/7/2019 01-Basic Configuration Command
73/128
01-Basic configuration command
- 68 -
Chapter 3 Network Management Command
3.1 SNMP Configuration Command
SNMP Configuration Command is folloeing:
snmp-server community
snmp-server contact
snmp-server host
snmp-server location
snmp-server packetsize
snmp-server queue-length
snmp-server trap-source
snmp-server trap-timeout
snmp-server view
snmp-server group
snmp-server user
snmp-server engineID
show snmp
debug snmp
Tasks and examples related to system management configurations, please refer to thechapterconfigure SNMP
3.1.1 snmp-server community
Use command snmp-server community to set community strings permitted to visiton SNMP protocol. While use no snmp-server community to delete appointedcommunity string.
Syntas
snmp-server community string[view view-name][ro | rw] [word]no snmp-server community string
8/7/2019 01-Basic Configuration Command
74/128
01-Basic configuration command
- 69 -
Parameter
Parameter Description
string community strings ,which are similar to password, permitted to visit on
SNMP protocol
view view-name (optional) view name defined before. This view defines effective MIB
objects to community.
ro (optional) appoint read-only authority. The authorization administer
workstation can only read MIB objects.
rw (optional) appoint read/write authority. The authorization administer
workstation can read and modify MIB objects.
word (optional), appoint visiting list name permitted to visit on SNMP agents IP
address through community string..
Default
If default, SNMP community string permit all objects read-only.
Command mode
Global configuration mode
Explanation
If without any parameter, it will list configuration information of all community strings.
Example
The following example will introduce how to allocate string commences to SNMP,which permits read-only accessing and appoint allowed-IP acc