DTGH-D-043-MG3000-T4-串口控制台使用手册
第二部分 控制台命令操作
1 各级目录通用命令
MG3000-T4中继媒体网关控制台命令包括八级命令,在这八级命令中,有五条命令在各级中均可使用。
1.1 HELP命令
HELP命令显示当前所在目录的全部命令帮助信息。例如:ROOT目录下的帮助信息: MG3000-T4:\\> h
Commands( use 'help
h -- help dispaly help information c -- cd change current directory
! -- ! execute one piece of history command . -- history display the last 20 history commands d -- date set or display system date and time save -- savecfg save the configuration to flash This is the top level set of commands and directories. Subdirectories: b -- billing h -- h323 m -- media n -- number o -- office oam -- oam p -- pstn s -- statistic t -- trace u -- user Commands:
l -- logout exit console
ch -- commandhierarchy display the command tree structure csc -- cfgsysclock configure the system clock dsc -- displaysysclock display the system clock status csn -- cfgsysname configure the system name dsn -- displaysysname display the system name csna -- cfgsysnetattrib configure the system net attrib dsna -- displaysysnetattrib display the system net attrib
ver -- version display software version cwp -- cfgwebconsoleport configure web console port dwp -- displaywebconsoleport display web console port
The command has been completed successfully!
GoHigh http://www.gohigh.com.cn 5
DTGH-D-043-MG3000-T4-串口控制台使用手册
MG3000-T4:\\>
1.2 改变当前目录命令
改变当前目录命令的具体操作为“cd + 下一级目录名”并回车。回上一级目录的具体操作为“cd ..”并回车。回根目录的操作为“cd”并回车。
1.3 重复执行命令
改命令与HISTORY现实历史命令结合使用。当用户查看历史命令时,系统显示最近20条历史命令并在每条命令前编号,用户若想重复执行编号为*的某条命令,在系统提示符下输入“!+需要重复执行的命令的编号*并回车,系统将重复执行改命令。例如: MG3000-T4:\\Card> .
Index Command Level 1 h MG3000-T4:\\> 2 h MG3000-T4:\\> 3 c card MG3000-T4:\\> 4 h MG3000-T4:\\Card> The command has been completed successfully! MG3000-T4:\\Card> !3 MG3000-T4:\\> c card
The command has been completed successfully!
1.4 显示历史命令
“.”用于显示最近使用过的若干个(最多20个)命令,且每个命令前面均有编号,作为重复执行命令时使用的索引值。例如: MG3000-T4:\\Node> .
Index Command Level 1 h MG3000-T4:\\> 2 h MG3000-T4:\\> 3 h date MG3000-T4:\\> 4 c n MG3000-T4:\\> The command has been completed successfully!
1.5 DATE命令显示和设置系统日期和时间
显示系统时间的方法如下: MG3000-T4:\\> date
Nov 30 17:08:50 A.D 2003
The command has been completed successfully! 设置系统时间的方法如下: MG3000-T4:\\> d 2003 12 26 15 03 00 The command has been completed successfully!
GoHigh http://www.gohigh.com.cn 6
DTGH-D-043-MG3000-T4-串口控制台使用手册
1.6 保存配置信息命令
MG3000-T4:\\> save
The command has been completed successfully!
GoHigh http://www.gohigh.com.cn 7
DTGH-D-043-MG3000-T4-串口控制台使用手册
2 一般性命令
ROOT目录命令是MG3000-T4中继媒体网关控制台的根目录命令集,包括:显示全部目录的树形结构命令、远程更新系统命令、远程复位命令、退出控制台登录命令等。
2.1 退出用户登录
执行命令退出用户登录,执行该命令后,拥护将结束与系统的对话,退出控制台操作系统。 例如: MG3000-T4:\\> l Good Bye!
=================================================================== =================================================================== ========= ========= ========= MG3000-T4 Trunk Gateway User Console ======= ========= GoHigh Telecommunication Co. ========= ========= All Right Reserved ========= ========= ========= =================================================================== Login:
2.2 显示全部命令的树形结构
在系统提示符下输入ch后回车,系统即显示全部命令的树形结构,方便用户查找,例如: MG3000-T4:\\> ch
The following commands can be used in every levels: help cd !x history date savecfg
The following commands can be used in root directory logout
commandhierarchy cfgsysclock displaysysclock cfgsysname displaysysname cfgsysnetattrib displaysysnetattrib version
User>
GoHigh http://www.gohigh.com.cn 8
DTGH-D-043-MG3000-T4-串口控制台使用手册
whoami adduser deleteuser displayusers cfgpassword displaytelnetclient Trace> resettrace settrace gettrace cleartrace PSTN>
displaye1portcfg cfge1portinfo enablee1 disablee1 cfgoverlap cfgnumberattr displaynumberattr cfgcallernumsendoptn displaycallernumsendoptn cfge1tspolicy cfge1tsselector blockts unblockts H323>
displayrasparam cfgrasparam cfggeneralparam displaygeneralparam delh323id delgkid cfgq931param displayq931param cfg245flag addregisteprefix removeregisteprefix displayregisteprefix fastdisconnect
Media>
GoHigh http://www.gohigh.com.cn 9