Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 47 of 81

WS5000 Series Switch System Reference Guide: CH 8 CLI Command Reference, pages 423 to 432

Pages 423 to 432 of 728, from WS5000 Series Switch System Reference Guide

The original document is the PDF (12 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol WS-5000

Page 423

CLI Command Reference

8-191

Syntax logdir logdir <username> Parameters username

A user of the switch as configured in cfg>user context.

Example WS5000.(Cfg).Event.Syslog> logdir File Name Bytes Date & time ======================================================== SymbolLocal.syslog 34 Thu Feb 23 03:14:13 2006 WS5000.(Cfg).Event.Syslog>

8.32.4 logsubsys

Context Selects the subsystem logs (used for debugging) to be sent to the remote syslog server. These logs are different from Event logs. Syntax logsubsys [<subsys>] enable | disable

The following subsys are available for logsusbys: logsubsys general logsubsys threads logsubsys packets logsubsys corba logsubsys sharedmem logsubsys rfimage logsubsys rfport logsubsys mu logsubsys ess logsubsys xmlcfg logsubsys policy logsubsys vlan logsubsys ether logsubsys QoS logsubsys stats logsubsys database logsubsys snmp logsubsys security logsubsys DebugEvents

Page 424

8-192

WS 5000 Series System Reference logsubsys driver Parameters subsys

Use any of the above mentioned subsys.

enable/disable enable or disable the selected subsys.

Example WS5000.(Cfg).Event.Syslog> logsubsys driver enable Success!! Subsystems Enabled: Subsystems saved: driver driver enable

WS5000.(Cfg).Event.Syslog>

8.32.5 ping

Context Ping is used to send ICMP ECHO_REQUEST packets to network hosts. Syntax ping <host/ip_address>

Options: ping [-Rdfnqrv] [-c count] [-i wait] [-l preload] [-p pattern] [-s packetsize] host Parameters host

Name of the host you want to ping to.

ip_address

IP address of the host you want to ping to.

Example WS5000.(Cfg)> ping 157.235.208.70 PING 157.235.208.70 (157.235.208.70) from 157.235.208.137 : 56(84) bytes of dat. 64 bytes from 157.235.208.70: icmp_seq=1 ttl=128 time=0.637 ms 64 bytes from 157.235.208.70: icmp_seq=2 ttl=128 time=0.318 ms 64 bytes from 157.235.208.70: icmp_seq=3 ttl=128 time=0.303 ms 64 bytes from 157.235.208.70: icmp_seq=4 ttl=128 time=0.296 ms --- 157.235.208.70 ping statistics --4 packets transmitted, 4 received, 0% loss, time 2997ms rtt min/avg/max/mdev = 0.296/0.388/0.637/0.145 ms WS5000.(Cfg)> ping

8.32.6 purgelocal

Context This command is used to clears the local syslog memory.

Page 425

CLI Command Reference

8-193

Syntax purgelocal Parameters

None Example WS5000.(Cfg).Event.Syslog> purgelocal Clearing local syslog memory...done. WS5000.(Cfg).Event.Syslog>

8.32.7 remlocal

Context This command is used to delete the specified local syslog file. Use 'logdir' to view list of previously saved local syslog files. Syntax remlocal <file_name> Parameters file_name

The log file that you want to delete.

Example WS5000.(Cfg).Event.Syslog> remlocal SymbolLocal Removing local syslog file SymbolLocal.... done. WS5000.(Cfg).Event.Syslog>

8.32.8 remove

Context Remove a syslog host. Syntax remove <name> Parameters name

The name of the syslog host, as assigned in the add command.

Example WS5000.(Cfg).Host> show Host Name --------SFhost WS5000.(Cfg).Host>

IP Address ---------111.222.111.32

Domain -----domain1

Page 426

8-194

WS 5000 Series System Reference

8.32.9 save local

Context This is used to save local syslog in specified file. Syntax save local <file_name> Parameters file_name the naame of the local log file without the .syslog extension.

Example WS5000.(Cfg).Event.Syslog> save local SymbolLocal Saving local syslog...done WS5000.(Cfg).Event.Syslog>

8.32.10 set

Context Set the types of messages that are sent to the syslog. Syntax set <host> <severity> <send_flag> Parameters host

The name of the syslog host.

severity

Specifies a type of message tracked to be sent to the syslog. Possible values are: • emerg – emergency messages • alert • crit – critical messages • err – error messages • info – information only messages • notice • warning • all – all messages of all types send_flag

Indicates whether messages are sent to the syslog or not. Possible values are: • enable – messages of the specified type are sent to the syslog • disable – messages are not sent to the syslog

Example WS5000.(Cfg).Event.Syslog> set Enter the host_name set: Set syslog host severity level values. Syntax: set <host_name> <severity_level> <enable/disable> [CR] severity_level:

Page 427

CLI Command Reference emerg alert crit err warning notice info debug all

8-195

Enable or disable Severity level Emergency. Enable or disable Severity level Alert. Enable or disable Severity level Critical. Enable or disable Severity level Error. Enable or disable Severity level Warning. Enable or disable Severity level Notice. Enable or disable Severity level Info. Enable or disable Severity level Debug. Enable or disable all the Severity levels.

Incomplete command... use '?' for help.... exiting... WS5000.(Cfg).Event.Syslog> WS5000.(Cfg).Event.Syslog> set SFhost alert enable Changing severity level... Status: Success. Syslog Status:

Enable (Syslog Deamon is Running).

Host ---SFhost emerg ----- alert ----x crit ---- err --- warning notice ------- ------ info ---- debug ----- info ---- debug ----- info ---- debug ----- info ---- debug -----

WS5000.(Cfg).Event.Syslog> set SFhost warning enable Changing severity level... Status: Success. Syslog Status:

Enable (Syslog Deamon is Running).

Host ---SFhost emerg ----- alert ----x crit ---- err --- warning notice ------- -----x

WS5000.(Cfg).Event.Syslog> set SFhost crit enable Changing severity level... Status: Success. Syslog Status:

Enable (Syslog Deamon is Running).

Host ---SFhost emerg ----- alert ----x crit ---x err --- warning notice ------- -----x

WS5000.(Cfg).Event.Syslog> set SFhost err enable Changing severity level... Status: Success. Syslog Status:

Enable (Syslog Deamon is Running).

Host ---SFhost emerg ----- alert ----x

WS5000.(Cfg).Event.Syslog> crit ---x err --x warning notice ------- -----x

Page 428

8-196

WS 5000 Series System Reference

8.32.11 show

Context Display information about the syslog service. Syntax show Parameters

None. Example WS5000.(Cfg).Event.Syslog> show Syslog Status:

Enable (Syslog Deamon is Running).

Host ---SFhost emerg ----- alert ----x crit ---x err --x warning notice ------- -----x info ---- debug ----- info ---- debug ----- info ---- debug ----- info debug

WS5000.(Cfg).Event.Syslog> WS5000.(Cfg).Event.Syslog> set SFhost all disable Success. Syslog Status:

Enable (Syslog Deamon is Running).

Host emerg alert crit err ----------------No Syslog hosts are defined in the switch.

warning notice ------- ------

WS5000.(Cfg).Event.Syslog> show Syslog Status:

Enable (Syslog Deamon is Running).

Host emerg alert crit err ----------------No Syslog hosts are defined in the switch.

warning notice ------- ------

WS5000.(Cfg).Event.Syslog>

8.32.12 start

Context Starts the syslog service. Syntax syslog Parameters

None. Example WS5000.(Cfg).Event.Syslog> start Status: Success. Syslog Status:

Enable (Syslog Deamon is Running).

Host emerg alert crit err warning notice

Page 429

CLI Command Reference

---SFhost

----x

----x

---x

--x

------- -----x x

8-197

---x

----x info ---x debug ----x

WS5000.(Cfg).Event.Syslog>

8.32.13 stop

Context Stops the syslog service. Syntax stop Parameters

None. Example WS5000.(Cfg).Event.Syslog> stop Status: Success. Syslog Status:

Disable (Syslog Deamon is not running).

Host ---SFhost emerg ----x alert ----x

WS5000.(Cfg).Event.Syslog> crit ---x err --x warning notice ------- -----x x

Page 430

8-198

WS 5000 Series System Reference

8.33 FTP Context Table 8.38 summarizes the commands within this context. Common commands between multiple contexts are described in further detail in the Common Commands section. Table 8.38 FTP Context Command Summary Command

Description

Ref.

.. or end

Terminate a current session and moves up a context, hierarchically.

page 8-7 exit

Terminate a current session and returns to the “root” prompt.

page 8-7

? or help

Get the command information.

page 8-7 logout or bye

Close this session.

page 8-8 clear

Clear the screen.

page 8-8 emergencymode

Enable or disable Emergency mode.

page 8-8 enable

Enable FTP.

page 8-198 disable

Disable FTP.

page 8-198 show

Display available classifier instance details.

page 8-199

8.33.1 enable

Context Enables the FTP server. Syntax enable Parameters

None. Example WS5000.(Cfg).FTP> enable Enabling... Status : Success. FTP Status:

Active.

WS5000.(Cfg).FTP>

8.33.2 disable

Context Disables the FTP server. Syntax disable Parameters

Page 431

CLI Command Reference

None. Example WS5000.(Cfg).FTP> disable Disabling... Status : Success. FTP Status:

Disabled.

WS5000.(Cfg).FTP>

8.33.3 show

Context Display the state of the FTP server. Syntax show Parameters

None. Example WS5000.(Cfg).FTP> show FTP Status:

Active.

WS5000.(Cfg).FTP>

8-199

Page 432

8-200

WS 5000 Series System Reference

8.34 FW (Firewall) Context Firewall is used to configure a LAN for traffic filtering.You need to first enable the VPN support to enter the firewall context. You need to first create a NP and then add it to an exisitng LAN in the firewall context. Table 8.39 summarizes the commands within this context. Common commands between multiple contexts are described in further detail in the Common Commands section. Table 8.39 Firewall Context Command Summary Command

Description

Ref.

.. or end

Terminate a current session and moves up a context, hierarchically.

page 8-7 exit

Terminate a current session and returns to the “root” prompt.

page 8-7

? or help

Get the command information.

page 8-7 logout or bye

Close this session.

page 8-8 add

Add a new LAN to the system.

page 8-200 addnat

Add a new NAT entry to a LAN.

page 8-201 addnp

Add a new NP entry to a LAN.

page 8-202 addpf

Add a new Pf to a LAN.

page 8-203 clear

Clear the screen.

page 8-8 lan

Select a LAN to configure.

page 8-204 remove

Remove a LAN from the system.

page 8-204 show

Display context specific attributes.

page 8-205

8.34.1 add

(Firewall) Context This command is used to add a new LAN to the system. Syntax add <lan_name> Parameters lan_name

Name of the LAN that you wish too add to the system.

Example WS5000.(Cfg).Fw> add testLAN Adding LAN... Status: Success. LAN information: Available LANs: 1. LAN1