13 hostname, 14 ip host – PLANET XGS3-24040 User Manual

Page 48

Advertising
background image

XGS3 Command Guide

1-48

including complete help and partial help. The user can type in ? any time to get online help.

Example:

switch(config)#help

PLANETOS CLI provides advanced help feature. When you need help,

anytime at the command line please press '?'.

If nothing matches, the help list will be empty and you must backup

until entering a '?' shows the available options.

Two styles of help are provided:

1. Full help is available when you are ready to enter acommand argument (e.g. 'show ?')

and describes each possible

argument.

2. Partial help is provided when an abbreviated argument is entered

and you want to know what arguments match the input

(e.g. 'show ve?'.)

1.1.13 hostname

Command:

hostname <hostname>

no hostname

Function:

Set the prompt in the switch command line interface. The no operation cancels the configuration.

Parameter:

<hostname> is the string for the prompt, up to 30 characters are allowed.

Command mode:

Global Mode

Default:

The default prompt is relatived with the switch.

Usage Guide:

With this command, the user can set the CLI prompt of the switch according to their own requirements.

Example:

Set the prompt to “Test”.

Switch(config)#hostname Test

Test(config)#

1.1.14 ip host

Command:

ip host <hostname> <ip_addr>

no ip host {<hostname>|all}

Function:

Set the mapping relationship between the host and IP address; the “no ip host” parameter of this command will

Advertising