ports command

This command sets and displays the network port configuration settings for the advanced management module.

Note: Changes to the -ftpdp, -ftpe, -ftpp, -httpp, -httpsp, -rpp, -smashse, -smashsp, -smashte, -smashtp, -snmp1ae, -snmp3ae, -snmpap, -snmpte, -snmptp, -sshe, -sshp, -tcme, -telnete, -telnetp, -telnett, or -tftpp settings become active immediately. Changes to the remaining settings become active after the next reset of the advanced management module.
Table 1. ports command
Function What it does Command Valid targets
Display network port settings Displays the network port settings for the management module. Returned values are:
  • -ftpp FTP_prt_num
  • -ftpdp FTP_data_prt_num
  • -httpp HTTP_prt_num
  • -httpsp HTTPS_prt_num
  • -rpp rpp_prt_num
  • -slpp SLP_prt_num
  • -smashsp secSMASH_SSH_prt_num
  • -smashtp SMASH_telnet_prt_num
  • -snmpap SNMP_agent_prt_num
  • -snmptp SNMP_traps_prt_num
  • -sshp SSH_prt_num
  • -stcmp secure_tcmp
  • -tcmp TCP_cmd_md_port
  • -telnetp _Telnet_prt_num
  • -tftpp TFTP_prt_num
  • -ftpe FTP_state
  • -httpse HTTPS_prt_state
  • -kvme KVM_state
  • -ntpe NTP_state
  • -rde rd_state
  • -rdoce rdoc_state
  • -slpe SLP_state.
  • -smashse sec_SMASH_SSH_state
  • -smashte SMASH_telnet_state
  • -snmp1ae SNMPv1_agent_state
  • -snmp3ae SNMPv3_agent_state
  • -snmpte SNMP_traps_state
  • -sshe SSH_prt_state
  • -stcme secure_TCP_cmd_mode
  • -tcme TCP_cmd_mode_state
  • -telnete Telnet_prt_state-
  • -tftpe TFTP_state
  • -ftpt FTP_timeout
  • -tcmt TCP_cmd_mode_timeout
  • -telnett Telnet_prt_timeout
ports
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Display open management module ports Displays the management module ports that are currently open. ports -open
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Reset network port settings Resets all network port settings for the management module to the default values. Default values are:
  • -ftpp: 21
  • -ftpdp: 20
  • -httpp: 80
  • -httpsp: 443
  • -rpp: 3900
  • -slpp: 427
  • -tcmp: 6090
  • -smashtp: 50023
  • -smashsp: 50022
  • -snmpap: 161
  • -snmptp: 162
  • -sshp: 22
  • -stcmp: 6091
  • -telnetp: 23
  • -tftpp: 69
ports -reset
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set FTP port number Sets the port number for the management module FTP port. ports -ftpp FTP_prt_num

where FTP_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set FTP data port number Sets the port number for the management module FTP data port. ports -ftpdp FTP_data_prt_num

where FTP_data_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set HTTP port number Sets the port number for the management module HTTP port. ports -httpp HTTP_prt_num

where HTTP_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set HTTPS port number Sets the port number for the management module HTTPS port. ports -httpsp HTTPS_prt_num

where HTTPS_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set Remote Presence port number Sets the remote presence port number for the management module remote presence port. ports -rpp rpp_prt_num

where rpp_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set SLP port number Sets the SLP port number. ports -slpp SLP_prt_num

where SLP_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set SMASH Telnet port number Sets the port number for the management module SMASH command-line processor over Telnet port. ports -smashtp SMASH_telnet_prt_num

where SMASH_telnet_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set SNMP agent port number Sets the port number for the management module SNMP agent port. ports -snmpap SNMP_agent_prt_num

where SNMP_agent_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set SNMP traps port number Sets the port number for the management module SNMP traps port. ports -snmptp SNMP_traps_prt_num

where SNMP_traps_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set command mode port number Sets the TCP command mode port number. ports -tcmp TCP_cmd_md_prt_num

where TCP_cmd_md_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set secure command mode port number Sets the secure TCP command mode port number. ports -stcmp secure_tcmp

where secure_tcmp is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set SSH port number Sets the port number for the management module SSH port. ports -sshp SSH_prt_num

where SSH_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set Telnet port number Sets the port number for the management module Telnet port. ports -telnetp Telnet_prt_num

where Telnet_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set TFTP port number Sets the port number for the management module TFTP port. ports -tftpp TFTP_prt_num

where TFTP_prt_num is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable FTP Enables or disables FTP for the management module. ports -ftpe state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable HTTPS port Enables or disables the management module HTTPS port. ports -httpse state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set KVM port state Sets the KVM port state to on or off. ports -kvme state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable NTP Enables or disables NTP for the management module. ports -ntpe state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable RDE Enables or disables remote disk for the management module. ports -rde state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable RDOCE Enables or disables remote disk on card for the management module. ports -rdoce state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disables SLP Enables or disables SLP for the management module. ports -slpe state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable secure SMASH over SSH Enables or disables the secure SMASH command-line processor over SSH for the management module. ports -smashse state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable SMASH over Telnet Enables or disables SMASH command-line processor over Telnet for the management module. ports -smashte state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable SNMPv1 agent Enables or disables the SNMPv1 agent for the management module. ports -snmp1ae state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable SNMPv3 agent Enables or disables the SNMPv3 agent for the management module. ports -snmp3ae state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable SNMP traps Enables or disables the SNMP traps for the management module. ports -snmpte state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable SSH port Enables or disables the management module SSH port. ports -sshe state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable TCP command mode Enables or disables the TCP command mode for the management module. ports -tcme state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set number of TCP command mode connections Turns the TCP command mode on or off, or sets the maximum number of connections explicitly.
Note: Any number of connections (1 through 20) displays a status of on. Zero connections displays a status of off.
ports -tcme port_mode

where port_mode is on (1 connection), off (no connections), or a number between 0 and 20, inclusive, that indicates the maximum number of TCP session connections.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable secure TCP command mode Enables or disables the secure TCP command mode for the management module. ports -stcme state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set number of secure TCP command mode connections Turns the secure TCP command mode on or off, or sets the maximum number of connections.
Notes:
  • On a write operation, the maximum number of connections can be set explicitly (0-20), or it can be turned on (1 connection) or off (0 connections).
  • On a read operation, off means 0 connections, and on means 1 or more connections.
  • The total session count of TCM and STCM is limited to 20.
ports -stcme port_mode

where port_mode is on (1 connection), off (no connections), or a number between 0 and 20, inclusive, that indicates the maximum number of TCP session connections.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable Telnet port Enables or disables the management module Telnet port. ports -telnete state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable TFTP Enables or disables TFTP for the management module. ports -tftpe state

where state is on or off.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set FTP timeout Sets the FTP timeout value for the management module. ports -ftpt timeout

where timeout is from 0 seconds (no timeout) to 4294295967 seconds, inclusive.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set TCP command-mode timeout Sets the TCP command-mode timeout value for the management module. ports -tcmt timeout

where timeout is from 0 seconds (no timeout) to 4294295967 seconds, inclusive.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set Telnet port timeout Sets the Telnet port timeout value for the management module. ports -telnett timeout

where timeout is from 0 seconds (no timeout) to 4294295967 seconds, inclusive.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Display network port settings for I/O module Displays the network port settings for the I/O module. These settings can include:
  • cable compatibility
  • cable length
  • cable type
  • data rate
  • label
  • port index
  • port media
  • port width
  • protocol
  • speed
  • speed setting
  • available speeds
  • state
  • state setting
  • type
  • vendor
Note: Other device specific values might be returned.
ports
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Enable or disable port for I/O module Enables or disables specified port on specified I/O module. ports - port_index -state state
where
  • port_index is from 1 to 65535, inclusive.
  • state is on or off.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O module bay number.

Sets speed of port for I/O module Sets speed of specified port on I/O modules that support this feature. ports - port_index -speed speed_setting

where

  • port_index is from 1 to 65535, inclusive.
  • speed_setting specifies the port speed, in terms of:
    • multiplier
    • units, m or g for megabits or gigabits
    • duplex mode, h or f for half or full
    For example, 100mh sets the port speed to 100 Mbps half-duplex.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Example:

To display the management module network port settings, while management module 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
                  ports
               
To disable FTP for the management module, while management module 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
                  ports -ftpe off
               

The following example shows the information that is returned from these two commands:

               system:mm[1]> ports
-ftpp 21
-ftpdp 20
-httpp 80
-httpsp 443
-rpp 3900
-slpp 427
-smashsp 50022
-smashtp 50023
-snmpap 161
-snmptp 162
-sshp 22
-stcmp 6091
-tcmp 6090
-telnetp 23
-tftpp 69
-ftpe on
-httpse off
-kvme on
-ntpe off
-rde off
-rdoce on
-slpe on
-smashse on
-smashte on
-snmp1ae on
-snmp3ae on
-snmpte on
-sshe off
-stcme off
-tcme off
-telnete on
-tftpe off
-tcmt 0
-telnett 10000
-ftpt 300
system:mm[1]> ports -ftpe off
Changes to -sshe, -sshp, -smashse, -smashte, -smashsp, -telnete, -telnetp,
-telnett, -smashtp, -snmpte, -tcme, -tcmp, -tcmt, -stcme, -stcmp, -rpp,
-httpp,-httpse, -httpsp, -ftpe or -tftpe will become active immediately.
OK
system>