The text of a manual · part 54 of 81
WS5000 Series Switch System Reference Guide: CH 8 CLI Command Reference, pages 493 to 502
Pages 493 to 502 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 493
CLI Command Reference
8-261
Example WWS5000.(Cfg).SNMP> set snmptrap enable Setting SNMP Trap status.... Status: Success. SNMP details: ------------SNMP (deamon) Status : Enabled SNMP Traps : Enabled
WS5000.(Cfg).SNMP>set snmptrap disable Setting SNMP Trap status.... Status: Success. SNMP details: ------------SNMP (deamon) Status : Enabled SNMP Traps : Disabled
8.49.4.3 set traphost
Context Configures a destination IP to which the switch will send the SNMP traps. Syntax set traphost <ip_address> <community_name> [<port> <version>] set traphost <ip_address> <community_name> [port] Parameters ip_address
SNMP manager host IP address community_name
SNMP community name for the trap host port
Port number to which the traps would be sent version
SNMP trap version (v1 or v2)
Example
To configure the SNMP v1 trap host at 192.168.204.4, with community name as Symbol, and use port 162, enter: WS5100.(Cfg).SNMP> set traphost 192.168.204.4 Symbol 162 v1
Note SNMP v1/v2 trap message format in WS5000 has been implemented such that the Variable Bindings in the SNMP TRAP PDU, has minimum of two bindings: name = snmpTrapOID, value = OID of the trap being raised name = OID of ccTargetTrapString, value = Display String
For v2 traps, the variable binding in the SNMP TRAP PDU also has: name = OID of sysUpTime, value = current time
Page 494
8-262
WS 5000 Series System Reference
8.49.5 show
Context Displays the various details of the SNMP in the switch. Syntax show configaccess show snmpclients show snmpstatus show traphosts show v3users Parameters configaccess
Displays configured system access restrictions snmpclients
Displays the configured SNMP clients snmpstatus
Displays the current SNMP status traphosts
Displays the configured trap destinations v3users
Displays the configured SNMP v3 user profile details
Example WS5000.(Cfg).SNMP> show configaccess Configuration Access restriction details: Telnet access (CLI) : Disable. System access via SNMP : Enable. KDC configuration over remote console : Enable. KDC configuration through SNMP : Enable. WS5000.(Cfg).SNMP> show snmpclients State ----1. Read/Write
Port ---161
IP Address ---------123.123.123.123
Community Name -------------testing
WS5000.(Cfg).SNMP> show snmpstatus SNMP details: ------------SNMP (deamon) Status : Enabled SNMP Traps : Enabled WS5000.(Cfg).SNMP> show traphosts CommunityName Port Version ---------------- ------1. domain1 162 v1 WS5000.(Cfg).SNMP> show v3users SNMPv3 users information:
1. 2.
SNMP v3 User Auth. Priv. ------------------------------snmpv3AllRW MD5 DES snmpv3AllRO MD5 DES
IP Address ---------172.34.35.68
Page 495
CLI Command Reference
8-263
8.49.6 v2
Context Use v2 to configure SNMP v2 access parameters. You need to enter the v2 Context to set the SNMP v2 parameters Syntax v2 Parameters
None Example WS5000.(Cfg).SNMP> v2 State ----1. Read/Write
Port ---161
IP Address ---------157.235.208.44
Community Name -------------symbol
8.49.7 v3
Context Use v3 to configure SNMP v3 access parameters. You need to enter the v3 Context to configure the SNMP v3 parameters. Syntax v3 Parameters
None Example WS5000.(Cfg).SNMP> v3 SNMPv3 users information:
1. 2.
SNMP v3 User Auth. Priv. ------------------------------snmpv3AllRW MD5 DES snmpv3AllRO MD5 DES
Page 496
8-264
WS 5000 Series System Reference
8.50 v2 Context Context The v2 context provides commands that configure the SNMP v2 access parameters. Table 8.55 summarizes the commands within this context. Common commands between multiple contexts are described in further detail in the Common Commands section. Table 8.55 SNMP v2 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 remove
Remove an SNMP client/community or SNMP trap.
page 8-264 set
Set SNMP attributes.
page 8-265 show
Display context specific attributes.
page 8-265
8.50.1 remove
Context Use remove to remove SNMP v2 client. Syntax remove <access-perm> <client_ip> <community_name> [port_no] Parameters access-perm
The access permission of the SNMP client. Can be one of: • ro, readonly • rw, readwrite client_ip
IP address of the SNMP client.
community_name
Name of the community the client is a member of.
port_no
Optional port number. The default is 161.
Example WS5000.(Cfg).SNMP.v2> remove rw 172.34.35.68 symbol Removing SNMP Client... Status : Success.
Page 497
CLI Command Reference
8-265
8.50.2 set
Context Sets SNMP attributes
8.50.2.1 set client
Context Use set client command to add SNMP clients, to which the swtich will respond. If no SNMP client is configured in the switch, the switch will respond to get requests, from clients with community as ‘public’; the switch will respond to get/set requests, from clients with community as ‘private’. Syntax set client <rw/ro> <client_ip> <community_name> [port_no] Parameters rw
Client will have read-write access permissions.
ro
Client will have read-only acess permissions.
client_ip
IP address of the snmp client.
community_name
Name of the SNMP community.
port_no
SNMP port (0 - 65535), default is 161
Example WS5000.(Cfg).SNMP.v2> set client rw 172.34.35.68 symbol Configuring SNMP client... Status : Success. State ----1. Read/Write
Port ---161
IP Address ---------172.34.35.68
Community Name -------------symbol
8.50.3 show
Context Shows SNMP details Syntax show show snmpclients Parameters snmpclients
Display the SNMP Client/community details
Page 498
8-266
WS 5000 Series System Reference
Example WS5000.(Cfg).SNMP.v2> show State Port -------1. Read/Write 161
IP Address ---------172.34.35.68
Community Name -------------symbol
WS5000.(Cfg).SNMP.v2> show snmpclients State Port IP Address ----------------1. Read/Write 161 172.34.35.68
Community Name -------------symbol
Page 499
8-267
CLI Command Reference
8.51 v3 Context Context The v3 context provides commands that configure the SNMP v3 access parameters. Table 8.55 summarizes the commands within this context. Common commands between multiple contexts are described in further detail in the Common Commands section. Table 8.56 SNMP v3 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 set
Set SNMP attributes page 8-269 show
Shows SNMP details.
page 8-265
8.51.1 set
Context Set SNMP attributes
8.51.1.1 set profile
Context Use set profile to configure SNMP v3 user profile. Syntax set profile <user> <algorithm> <auth_pass> [ priv_pass ] Parameters user
User profile name, can be one of : snmpv3AllRW, snmpv3AllRO algorithm
Algorithm to be used, can be one of : MD5, SHA auth_pass
Authentication pass-phrase priv_pass
Privacy pass-phrase, default is same as <auth_pass>
Example
To set the profile of snmpv3AllRO with algorithm as SHA and with pass phrase as test1234 WS5100.(Cfg).SNMP.v3> set profile snmpv3AllRO SHA test1234 Configuring SNMP client... Status : Success. SNMPv3 users information:
Page 500
8-268
1. 2.
WS 5000 Series System Reference
SNMP v3 User Auth. Priv. ------------------------------snmpv3AllRW MD5 DES snmpv3AllRO SHA DES
8.51.2 show
Context Displays the details of the SNMP v3 in the switch Syntax show show v3users Parameters v3users
Display the SNMP v3 user profile details
Example WS5000.(Cfg).SNMP.v3> show SNMPv3 users information:
1. 2.
SNMP v3 User Auth. Priv. ------------------------------snmpv3AllRW MD5 DES snmpv3AllRO SHA DES
WS5000.(Cfg).SNMP.v3> show v3users SNMPv3 users information:
1. 2.
SNMP v3 User Auth. Priv. ------------------------------snmpv3AllRW MD5 DES snmpv3AllRO SHA DES
Page 501
CLI Command Reference
8-269
8.52 SSH (Secure Shell) Context The SSH context lets you configure the WS5000’s Secure Shell daemon. Note Do not change the SSH port number because this can create conflicts with other applications running in the WS5000 Series Switch.
Table 8.57 summarizes the commands within this context. Common commands between multiple contexts are described in further detail in the Common Commands section. Table 8.57 SSH 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 set
Configures the SSH daemon.
page 8-269 show
Display connection configuration and session information.
page 8-270
8.52.1 set
(Secure Shell) Context Configures the SSH daemon. Syntax set <attribute> <value> Parameters attribute value
Description ssh enable | disable
Enables or disables the SSH daemon.
version
V1/V2 | V2
Configures the daemon to accept SSH V1 and SSH V2 client connections (V1/V2), or to only accept SSH V2 (V2). SSH V2 is more secure than SSH V1.
port
22 | 1025 - 65535
Sets the port through which SSH connections are accepted. By default, the SSH port is set to 22.
Page 502
8-270
WS 5000 Series System Reference
8.52.2 show
(Secure Shell) Context Display connection configuration and session information. Syntax show <attribute> <value> Parameters
(none)
Display SSH configuration and session information.
telnet
Display telnet configuration and session information. See 8.58 Telnet Context on page 291 ssh
Display SSH configuration and session information.
Example WS5000.(Cfg).SSH> show WS5000.(Cfg).SSH> show telnet WS5000.(Cfg).SSH> show ssh