ports command
This command sets and displays the network port configuration settings for the CMM and I/O modules.
- Changes to the -ftpe, -snmp1ae, -snmp3ae, -snmpte, -sshe, -ftpp, -ftpdp, -httpp, -httpsp, -snmpap, -snmptp, -sshp, -tcme, -telnete, -telnetp, -telnett, or -tftpp settings become active immediately. Changes to the remaining settings become active after the next reset of the CMM.
- The CMM HTTP and HTTPS ports are open at all times. Port behavior is determined by the CMM HTTPS port setting, which can be affected by the CMM chassis security policy setting:
- When the CMM HTTPS port is enabled, the HTTP port (port 80) remains open and redirects to the HTTPS port (port 443). When the chassis security policy is set to secure, the CMM HTTPS port is automatically enabled and its setting cannot be changed.
- When the CMM HTTPS port is disabled, the HTTPS port (port 443) remains open and redirects to the HTTP port (port 80).
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or ports command errors for a list of error messages that are specific to the ports command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Display network port settings | Displays the network port settings for the CMM. Returned values are:
Note
| ports | Primary CMM:
|
Display open CMM ports | Displays the CMM ports that are currently open. Note The following will not be available if the
| ports -open | Primary CMM:
|
Reset network port settings | Resets all network port settings for the CMM to the default values. Default values are:
Note The following will not be available if the
| ports -reset This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set FTP port number | Sets the port number for the CMM FTP port. Note
| 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:
| Primary CMM:
|
Set FTP data port number | Sets the port number for the CMM FTP data port. Note
| 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:
| Primary CMM:
|
Set HTTP port number | Sets the port number for the CMM HTTP port. Note
| 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:
| Primary CMM:
|
Set HTTPS port number | Sets the port number for the CMM HTTPS port. Note
| 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:
| Primary CMM:
|
Set CIM port number over HTTPS | Sets the port number for using the CMM common information model (CIM) over HTTPS. Note
| ports -cimp cim_prt_num where cim_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:
| Primary CMM:
|
Set SLP port number | Sets the SLP port number. Note
| 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:
| Primary CMM:
|
Set SNMP agent port number | Sets the port number for the CMM SNMP agent port. Note
| 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:
| Primary CMM:
|
Set SNMP traps port number | Sets the port number for the CMM SNMP traps port. Note
| 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:
| Primary CMM:
|
Set command mode port number | Sets the TCP command mode port number. Important The optional Note
| 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:
| Primary CMM:
|
Set secure command mode port number | Sets the secure TCP command mode port number. Note
| 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:
| Primary CMM:
|
Set SSH port number | Sets the port number for the CMM SSH port. Note
| 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:
| Primary CMM:
|
Set Telnet port number | Sets the port number for the CMM Telnet port. Note
| 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:
| Primary CMM:
|
Set TFTP port number | Sets the port number for the CMM TFTP port. Note
| 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:
| Primary CMM:
|
Enable / disable FTP | Enables or disables FTP for the CMM. Note The FTP port can not be enabled if the | 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:
| Primary CMM:
|
Enable / disable SFTP | Enables or disables secure FTP for the CMM. | ports -sftpe 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:
| Primary CMM:
|
Enable / disable HTTPS port | Enables or disables the CMM HTTPS port. Note Disabling the HTTPS port automatically enables HTTP. | 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:
| Primary CMM:
|
Enable / disable CIM over HTTPS | Enables or disables CIM over HTTPS for the CMM. | ports -cime 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:
| Primary CMM:
|
Enable / disable NTP | Enables or disables NTP for the CMM. | 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:
| Primary CMM:
|
Enable / disables SLP | Enables or disables SLP for the CMM. | 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:
| Primary CMM:
|
Enable / disable SNMPv1 agent | Enables or disables the SNMPv1 agent for the CMM. Note The SNMPv1 agent can not be enabled if the | 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:
| Primary CMM:
|
Enable / disable SNMPv3 agent | Enables or disables the SNMPv3 agent for the CMM. | 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:
| Primary CMM:
|
Enable / disable SNMP traps | Enables or disables the SNMP traps for the CMM. | 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:
| Primary CMM:
|
Enable / disable SSH port | Enables or disables the CMM 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:
| Primary CMM:
|
Enable / disable TCP command mode and set number of connections | Turns the TCP command mode on or off, or sets the maximum number of connections explicitly. Note
| 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:
| Primary CMM:
|
Enable / disable secure TCP command mode and set number of connections | Turns the secure TCP command mode on or off, or sets the maximum number of connections. Note
| 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:
| Primary CMM:
|
Enable / disable Telnet port | Enables or disables the CMM Telnet port. Note Telnet can not be enabled if the | 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:
| Primary CMM:
|
Enable / disable TFTP | Enables or disables TFTP for the CMM. Note TFTP can not be enabled if the | 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:
| Primary CMM:
|
Set FTP timeout | Sets the FTP timeout value for the CMM. | ports -ftpt timeout where timeout is from 0 seconds (no timeout) to 4294967295 seconds, inclusive. This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set TCP command-mode timeout | Sets the TCP command-mode timeout value for the CMM. | ports -tcmt timeout where timeout is from 0 seconds (no timeout) to 4294967295 seconds, inclusive. This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set Telnet port timeout | Sets the Telnet port timeout value for the CMM. | ports -telnett timeout where timeout is from 0 seconds (no timeout) to 4294967295 seconds, inclusive. This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Display network port settings for I/O module | Displays the network port settings for the I/O module. These settings can include:
Note Other device specific values might be returned. | ports | I/O module:
|
Enable or disable port for I/O module | Enables or disables specified port on specified I/O module. | ports -port_index -state state where
This command can only be run by users who have one or more of the following command authorities:
| I/O module:
|
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
This command can only be run by users who have one or more of the following command authorities:
| I/O module:
|
Example:
ports -T mm[p]
ports -ftpe off -T mm[p]
The following example shows the information that is returned from these commands:
<span className="ph">system> ports -T mm[p]</span>
-cimp 5989
-ftpp 21
-ftpdp 20
-httpp 80
-httpsp 443
-slpp 427
-snmpap 161
-snmptp 162
-sshp 22
-stcmp 6091
-tcmp 6090
-telnetp 23
-tftpp 69
-cime on
-ftpe off
-httpse on
-ntpe off
-sftpe on
-slpe on
-snmp1ae on
-snmp3ae on
-snmpte on
-sshe on
-stcme off
-tcme on
-telnete off
-tftpe off
-tcmt 300
-telnett 300
-ftpt 300
system> ports -ftpe off -T mm[p]
Changes to -sshe, -sshp, -telnetp, -telnete,
-telnett, -snmpte, -tcme, -tcmp, -tcmt, -stcme, -stcmp,
-httpp,-httpse, -httpsp, -ftpe or -tftpe will become active immediately.
OK
system>