• No results found

APPENDIX A: COMMANDS

In document ExaLINK user guide (Page 36-43)

Commands can be sent to the ExaLINK using either the web interface or the command line interface. Both are described below.

Web interface

1. On the ExaLINK main menu, click Advanced. Figure 17 shows the window that will appear.

2. A list of available commands based on the current privilege level can be displayed by clicking help. Type in the desired command into the Command text box and click Execute. The command will be executed and the output will be displayed in the top of the page.

The commands available through Advanced operate in the same manner as those available through the command-line interface (see next section).

Head Ofce:

The table below lists the commands that can be used in the command-line interface. We use the following conventions:

• Angled brackets (e.g.<line>) indicates a parameter that must be entered.

• Square brackets (e.g. [prompt]) indicates an optional parameter.

Many commands enable you to specify parameters without waiting to be prompted in a subsequent step.

Multiple commands can be given on a single command line separated by a semi-colon, for example:

enable; set port redirect 26 27; set port redirect 27 26;

disable

Clears the terminal window.

Clears all statistics.

Clears the start clear startup-cong up-cong (see the

copy” command below). The ExaLINK resets to the factory default conguration..

Copies the contents of the running-cong le to the startup-cong le.

You can view the contents of these les using “show running-cong” or “show startup-cong”.

Activates privileged mode. Privileged mode must be enabled to be able to make changes to software conguration of the ExaLINK.

Example:

enable” then follow prompts

Exits privileged mode. Privileged mode must be enabled to make changes to software conguration of the ExaLINK.

Caution: this will immediately change the conguration of the ExaLINK.

Copies the contents of the startup-cong le to the running-cong le.

You can view the contents of these les using “show running-cong” or “show startup-cong”.

Command Description

Head Ofce:

Closes an active console port or telnet session.

Lists the user les that are saved on the ExaLINK.

Restarts the ExaLINK.

Deletes user les saved on the ExaLINK. Specify a list of les to be deleted, separated by spaces.

Example:

les delete in.png binary.bin

Sends ICMP echo request packets to another node on the network. Specify the web address to ping.

Example:

ping 10.10.10.2

Changes the management port IP address of the ExaLINK to a DHCP-allocated IP address

Changes the management port IP address to a static IP address. The IP address must be specied. To specify the optional gateway address a netmask must also be specied.

Examples:

set management address static 192.168.0.100

set management address static 192.168.0.100 255.255.255.240 192.168.0.5

Sets the privileged password.

Example:

set enablepass” then follow prompts.

Set the hostname Example:

set hostname MYEXALINK

Lists the top-level commands available in the current mode.

Sets the login password.

Example:

set password” then follow prompts.

Renew DHCP lease for the local management IP address

Head Ofce:

set port speed <port range> <port speed>

set telnet enable set port redirect

<input port> <output port range>

Disables a port or set of ports. Specify the port(s), num-bered 1 to 50.

Example:

set port disable 10-20,24”, to disable ports 10 to 20 and port 24.

Sets a description for a port.

For example:

set port description port 2 ‘Connection to backup server eth0’

Sets an alias for a port, which can then (optionally) be used to reference the port instead of its number. Max 12 characters.

For example:

set port alias 25 md_input

show port md_input

Enables a port or set of ports.

Examples:

set port enable 22,10-20,3-5,1”, to enable ports 1, 3 to 5, 10 to 20 and 22.

set port enable *”, to enable all ports.

Assigns one or more ports to a group. This group name can then be used for other commands. For example:

set port group md_listeners 5,6,7,8

set port redirect 1 md_listeners

Sets the refresh interval for system statistics, in seconds.

Example:

set stat 20

Disables remote telnet communications to the ExaLINK.

Sets the speed of a range of ports, where speed is either 1000 or 10000.

Example:

Enables remote telnet communications to the ExaLINK.

Assigns a connection between ports.

Examples:

set port redirect 2 7,12-49”, to replicate data coming into port 2 and output that replicated data on ports 7 and 12-49.

set port redirect 18 31; set port redirect 31 18”, to create a bi-directional connection between port 18 and port 31.

set port redirect - 35” to clear the redirection to port 35.

Command Description

Head Ofce:

set time ntp disable

show management address show log

show mac show net stat

Shows a snapshot of the operating state of the ExaLINK.

Displays the current hostname.

Disables the NTP daemon

Displays the current IP address of the ExaLINK.

Displays the system error log.

Shows the MAC address of the ExaLINK.

Shows network statistics.

set time <time>

set time ntp <server>

Sets the system time. For example:

set time ‘2013-09-03 09:21:00’

Enables the NTP daemon to keep system time in sync with a NTP server. For example:

set time ntp pool.ntp.org

show port <ports>

show port details

<ports>

show port group

Shows ports alias, description, and whether ports are enabled or disabled. Specify the ports.

For example:

show port 5-7

Shows detailed information about the ports. Specify the ports.

For example: “show port details 5-7 Shows details about one or more port groups.

For example:

show port group md_listeners

show port group *”

show running-cong

show serial

Shows the system conguration that can be edited at present.

Shows the unique serial number for the ExaLINK.

show startup-cong Shows the startup conguration le stored for the ExaLINK.

show time show version

Shows the current system time.

Shows version information.

Head Ofce: supply number or *>

<number of readings>

stat fans <fan

number or *> <number of readings>

Shows statistics over time for fans, power supplies and temperature of the ExaLINK. Specify the number of readings.

Example:

stat 15” displays the last 15 readings for all components (fans, power supplies etc).

Shows statistics for power supplies over time. Either specify the power supply number (1 or 2), or * for both power supplies. Specify the number of readings.

Examples:

stat power 1 10” displays the last ten readings for  power supply 1.

stat power * 10” displays the last ten readings for both power supplies.

Shows statistics for fans over time. Either specify the fan number (numbered 1, 2, 3, 4), or * for all four fans. Specify the number of readings.

Example:

stat fans 1 10” displays the last ten readings for fan 1.

Command Description

stat power detail

<power supply number or *>

stat temperature

<sensor number or *>

<number of readings>

tftp put <remote le name>

<local le name>

<TFTP server IP address>

Copies a le onto a remote TFTP server.

tftp get <remote le name>

<local le name>

<TFTP server IP address>

Shows power supply details for power supplies. Either specify the power supply number (numbered 1, 2), or * for both power supplies.

Example:

stat power detail 1” displays power supply details for power supply 1.

Shows statistics for the temperature sensors over time. Either specify the sensor number (numbered 1 to 6), or * for all.

Example:

stat temperature 1 10” displays statistics for temperature sensor 1 over the last 10 readings.

Example:

tftp put /public/download.zip local_copy.zip 10.10.10.176”, copies a le called local_copy.zip

onto a TFTP server with IP address 10.10.10.176 and saves it there as /public/download.zip.

Copies a le from a remote TFTP server.

Example:

tftp get /public/download.zip local_copy.zip 10.10.10.176”, copies a le called

/public/download.zip from a TFTP server with IP address 10.10.10.176 and saves it locally as local_copy.zip.

Head Ofce:

EXABLAZE PTY LTD

Level 5, 443

Little Collins Street

update <type> [tftp server IP] <lename>

Updates ExaLINK rmware from a le on a USB ash drive, or from a le located on a TFTP server. The update le can be downloaded from exablaze.com/support. Ensure you are loading on the correct le for your hardware revision, eg r4450 or r5000.

Examples:

update usb ExaLINK_r5000_0.4.0.tar” attempts to update from a USB ash drive.

update tftp 10.10.10.9 ExaLINK_r5000_0.4.0.tar

“ attempts to update from a le on the TFTP server 10.10.10.9.

Command Description

Head Ofce:

EXABLAZE PTY LTD

Level 5, 443

Little Collins Street Melbourne VIC 3000, Australia

+61 3 9111 1773 [email protected]

In document ExaLINK user guide (Page 36-43)

Related documents