The interface access features in the switch operate properly by default. However, you can modify or disable access features to suit your particular needs. Similarly, you can choose to leave the system information parameters at their default settings. However, modifying these parameters can help you to more easily distinguish one device from another in your network.
Feature | Default | |
---|---|---|
Idle-Timeout | 10 Minutes (disabled) | |
Inbound Telnet Access | Enabled | |
Outbound Telnet Access | N/A | |
WebAgent Access | Enabled | |
Terminal type | VT-100 | |
Event Log event types to list (Displayed Events) | All | |
Baud Rate | Speed Sense | |
Flow Control | XON/XOFF |
In most cases, the default configuration is acceptable for standard operation.
For console/serial link and inbound telnet sessions, the switch output:
HP recommends that you do not set your terminal width (terminal width <y>
) above 150 columns. (Windows telnet displays up to 156 characters on 1280 pixel wide display, so 150 is comfortably within this).
This command lists the current interface access parameter settings.
Syntax
This example shows the default console/serial configuration.
Listing of show console command
HP Switch (config)# show console Console/Serial Link Inbound Telnet Enabled [Yes] : Yes Web Agent Enabled [Yes] : Yes Terminal Type [VT100] : VT100 Screen Refresh Interval (sec) [3] : 3 Displayed Events [All] : All Baud Rate [speed-sense] : speed-sense Flow Control [XON/XOFF] : XON/XOFF Global Session Idle Timeout (sec) [0] : 0 Serial/USB Console Idle Timeout (sec) [not set] : not set Current Session Idle Timeout (sec) : 0
In the default configuration, inbound Telnet access is enabled.
Syntax
Enables or disables inbound Telnet access on a switch.
Use the no version of the command to disable inbound Telnet access.
The listen parameter is available only on switches that have a separate out-of-band management port. Values for this parameter are:
oobm— inbound Telnet access is enabled only on the out-of-band management port. (This port is available on selected switch models.)
data— inbound Telnet access is enabled only on the data ports.
both— inbound Telnet access is enabled on both the out-of-band management port and on the data ports. This is the default value.
See Appendix I, "Network Out-of-Band Management" in this guide for more information on out-of-band management.
The listen parameter is not available on switches that do not have a separate out-of-band management port.
To disable inbound Telnet access:
HP Switch(config)# no telnet-server
To re-enable inbound Telnet access:
HP Switch(config)# telnet-server
This feature operates independently of the telnet-server status and enables you to Telnet to another device that has an IP address.
Syntax
Initiates an outbound telnet session to another network device. The destination can be specified as:
For switches that have a separate out-of-band management port, the oobm parameter specifies that the Telnet traffic will go out from the out-of-band management interface. If this parameter is not specified, the Telnet traffic goes out from the data interface. The oobm parameter is not available on switches that do not have a separate out-of-band management port. See Appendix I, "Network Out-of-Band Management" in this guide for more information on out-of-band management.
Note: If the
console idle-timeout
expires, any outbound Telnet or SSH sessions that are open on the switch are terminated. (For information onconsole idle-timeout
, See Reconfigure the console/serial link settings.)
For example, if the host "Labswitch" is in the domain abc.com, you can enter the following command and the destination is resolved to "Labswitch.abc.com".
HP Switch(config)# telnet Labswitch
You can also enter the full domain name in the command:
HP Switch(config)# telnet Labswitch.abc.com
You can use the show telnet command to display the resolved IP address.
The show telnet command displaying resolved IP addresses
HP Switch(config)# show telnet Telnet Activity ------------------------------------------------------- Session : ** 1 Privilege: Manager From : Console To : ------------------------------------------------------- Session : ** 2 Privilege: Manager From : 12.13.14.10 To : 15.33.66.20 ------------------------------------------------------- Session : ** 3 Privilege: Operator From : 2001:db7:5:0:203:4ff:fe0a:251 To : 2001:db7:5:0:203:4ff1:fddd:12
When a telnet connection is established with a switch, the switch always uses the default values of 80 columns by 24 lines for the window dimensions. The window can be resized by either dragging the corner of the window, or by executing the terminal length <x> width <y>
CLI command and then configuring the telnet client with those dimensions. The new window dimensions are lost after that telnet session ends.
When the telnet connection is established with an HP switch, either the switch or the telnet client needs to initiate the inquiry about the availability of NAWS. If NAWS is available, you can resize the window by dragging the corner of the window to the desired size. The telnet software uses NAWS to tell the switch what the new window dimensions are. If the switch supports the requested window dimensions, it uses them for all future interactions. If the switch does not support those window dimensions, it refuses them and the telnet client requests an alternate set of window dimensions. The negotiation continues until the telnet client and the switch agree on the window dimensions.
The switch currently responds to a request from the remote telnet client to negotiate window size. However, some telnet clients do not request to negotiate window size unless the switch’s telnet server suggests that NAWS is available.
This feature allows window size negotiation to occur with telnet clients that support NAWS but do not try to use it unless it is suggested by the switch’s telnet server. The switch’s telnet server will suggest to the telnet client that NAWS is available.
Allows an administrator to set the idle timeout for the WebUI management interface and provides a session timeout page to the user when the WebUI management session ends.
Configure the device web server.
Syntax
Parameters
WebUI idle timeout
HP-5406zl(config)# web-management ....idle-timeout Set the idle timeout for web management sessions. ....management-url Specify URL for web interface [?] button. ....plaintext Enable or disable the http server (insecure). ....ssl Enable or disable the https server (secure). ....support-url Specify URL for web interface support page. HP-5406zl(config)# web-management idle-timeout ....<300-7200> Enter an integer number.
In the default configuration, web browser access is enabled.
Syntax
Use the no version of the command to disable inbound HTTP access.
The listen parameter is available only on switches that have a separate out-of-band management port. Values for this parameter are:
See Appendix I, "Network Out-of-Band Management" in this guide for more information on out-of-band management.
The listen parameter is not available on switches that do not have a separate out-of-band management port.
HP Switch(config)# no web-management
HP Switch(config)# web-management
Syntax
console [terminal <vt100|ansi|none>] [screen-refresh <1|3|5|10|20|30|45|60] [baud-rate <speed-sense|1200|2400|4800|9600|19200|38400|57600|1155200>] [flow-control <xon/xoff|none>] [idle-timeout <0-7200>] [events [<none]|all|not-info|critical|debug>] [local-terminal <vt100|none|ansi>]
|
|
NOTE: If the console idle-timeout expires, any outbound Telnet or SSH sessions open on the switch are terminated. If you change the Baud Rate or Flow Control settings, you should make the corresponding changes in your console access device. Otherwise, you may lose connectivity between the switch and your terminal emulator due to differences between terminal and switch settings for these two parameters. All console parameter changes except events and inactivity-timer require that you save the configuration with write memory and then execute boot before the new console configuration will take effect. |
|
|
The example below shows how to configure the switch with the following:
Executing a series of console commands
HP Switch(config)# console terminal vt100 This command will take effect after saving the configuration and rebooting the system. HP Switch(config)# console baud-rate 19200 This command will take effect after saving the configuration and rebooting the system. HP Switch(config)# console flow-control none This command will take effect after saving the configuration and rebooting the system. HP Switch(config)# console idle-timeout 600 HP Switch(config)# console events critical HP Switch(config)# write memory HP Switch(config)# reload
|
|
NOTE: Switch models supporting redundant management, console settings, such as mode, flow-control and baud-rate, are the same on both management modules. There cannot be individual settings for each management module. |
|
|
|
|
NOTE: In software release versions K.15.12 and greater, the console inactivity-timer <minutes> command has been deprecated and replaced by the console idle-timeout <seconds> command. As an example: HP Switch(config)#console inactivity-timer 2 HP Switch(config)#console idle-timeout 120 In addition, the serial or USB console idle timeout can be controlled separately if needed. The console idle-timeout serial-usb seconds command allows for this behavior. As an example: HP Switch(config)#console idle-timeout 120 HP Switch(config)#console idle-timeout serial-usb 15 This sequence of commands will set the Telnet/SSH idle timeout to 120 seconds and the serial-usb idle timeout to 15 seconds. Another example: HP Switch(config)#console idle-timeout 120 HP Switch(config)#console idle-timeout serial-usb 0 This sequence of commands will set the Telnet/SSH idle timeout to 120 seconds and the serial-usb idle timeout to 0, or, in other words, to never timeout. The console inactivity-timer minutes command will continue to be accepted in version, but it will be converted to the new command format in the running configuration. This command conversion will also happen on a software update to version if the console inactivity-timer minutes command was part of the previous configuration. |
|
|