ZyXEL P-871H User Guide - Page 61

Command Conventions, Command Syntax Conventions, Getting Help

Page 61 highlights

P-871H Series User's Guide 10.2.1 Command Conventions The system uses a one-level command structure. You must type the full command every time, as follows. 192.168.1.1> For instance, the following example displays current VLAN status. 192.168.1.1> sys sw vlan status The conventions for typing in most CI commands are shown next. command subcommand [parameter] command subcommand [parameter] 10.2.2 Command Syntax Conventions • Command keywords are in courier new font. • The | symbol means "or". • Required fields in a command are enclosed in angle brackets . Use the following command to turn the system monitor on or off. sys monitor enable • Optional fields in a command are enclosed in square brackets [], for example, year, month and day are optional in the following command. This command just displays the date if you don't specify the year, month and day parameters. sys date [year month day] • Commands can be abbreviated to the smallest unique string that differentiates the command. For example the "system date" command could be abbreviated to "s d". Note: Type all commands as displayed on the screen. 10.2.3 Getting Help Type "help" or "?" to display a list of valid commands or type a command followed by "help" or "?" to display a list of associated subcommands. The following figure shows a sample help information. Figure 32 CLI Help: Sample Output ras> ? Valid commands are: sys exit ras> vdsl ? port ptmf ras> config ip version vdsl 60 Chapter 10 Introduction to CLI

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101

P-871H Series User’s Guide
60
Chapter 10 Introduction to CLI
10.2.1
Command Conventions
The system uses a one-level command structure. You must type the full command every time,
as follows.
192.168.1.1> <command>
For instance, the following example displays current VLAN status.
192.168.1.1> sys sw vlan status
The conventions for typing in most CI commands are shown next.
command <interface|device> subcommand [parameter]
command subcommand [parameter]
10.2.2
Command Syntax Conventions
Command keywords are in
courier new
font.
• The
|
symbol means “or”.
Required fields in a command are enclosed in angle brackets
<>
. Use the following
command to turn the system monitor on or off.
sys monitor enable <on/off>
Optional fields in a command are enclosed in square brackets
[]
, for example, year,
month and day are optional in the following command. This command just displays the
date if you don’t specify the year, month and day parameters.
sys date [year month day]
Commands can be abbreviated to the smallest unique string that differentiates the
command. For example the “system date” command could be abbreviated to “s d”.
Note:
Type all commands as displayed on the screen.
10.2.3
Getting Help
Type “
help
” or “
?
” to display a list of valid commands or type a command followed by
help
” or “
?
” to display a list of associated subcommands.
The following figure shows a sample help information.
Figure 32
CLI Help: Sample Output
ras>
?
Valid commands are:
sys
exit
config
ip
vdsl
ras> vdsl ?
port
ptmf
version
ras>