Sun Management Center 3.5 Installation and Configuration Guide

Reconfiguring Sun Management Center Ports

To reconfigure Sun Management Center ports, use the es-config command. The syntax for the es-config command is:

es-config [ -Admh ] [ -p component-name ] [ -c component:channel ] [ -P MinPort:MaxPort ]

The following table describes the es-config parameters.

Table 9–4 es-config Options

Option 

Description 

  

Display all ports used by the Sun Management Center 3.5 base product 

-A

 

Configure all ports 

-P

MinPort:MaxPort

Configure the probe mechanism port range where MinPort is the starting port number and MaxPort is the ending port number. The range of ports must be at least 100, for example, 1024:1124. The ports are used by the probe mechanism to execute ad hoc commands for communication between the Sun Management Center server and agent. Valid port numbers are 1024-64500.


Note –

You must configure the port range to support communication between the Sun Management Center server and agent through a firewall.


-d

 

Restore all ports to the 3.5 default value. See Table 9–3.

-c

component:channel

Enable or disable the component channels being logged. Valid Sun Management Center components for which channels can be controlled are topology, cfgserver, event, cstservice, trap, metadata, agent, platform, and platform_instances. Valid channels are debug, info, error, status, and history.

-h

 

List the es-config options.

-m

 

Configure module configuration propagation by adding a list of user names to the es-mcp-users configuration file.

-n

 

Enable Network Address Translation support. 

-p

component-name

Configures port to be used by the Sun Management Center component component-name. Valid components are topology, cfgserver, event, cstservice, trap, metadata, rmi, agent, grouping, HTTP, HTTPS, platform, and platform_instances.

The following procedures provide examples of how to use the es-config command to reconfigure Sun Management Center port assignments.

To Reconfigure the Agent SNMP Port
  1. Log in as root on the Sun Management Center server-layer machine.

  2. Locate an unused port.

    See To Determine Whether a Port Is Used.

  3. Type /opt/SUNWsymon/sbin/es-config -p agent.

    es-config stops all Sun Management Center processes. The port numbers currently assigned to the Sun Management Center components are then displayed. The port number assigned to the agent is displayed next, and you are prompted to enter the port number.


    # ./es-config -p agent
    Following ports are occupied by Sun Management Center:
    161,162,163,164,165,167,168,166,5600,2099,8080,8443.
    
    Sun Management center agent component is presently using port:161
    Hit RETURN key to continue with present configuration.
    Enter the port number you would like to use for agent component
        [ 1100 to 65535 ]: 
  4. Type the port number that you want to assign, or press Return to use the default 161 port assignment.

    You are asked whether you want to start the Sun Management Center components.

  5. Type y to start the Sun Management Center components, or type n if you do not want to start the components.

To Reconfigure the Server RMI Port Address
  1. Log in as root on the Sun Management Center server-layer machine.

  2. Locate an unused port.

    See To Determine Whether a Port Is Used.

  3. Type /opt/SUNWsymon/sbin/es-config -p rmi.

    es-config stops all Sun Management Center processes. The port numbers currently assigned to the Sun Management Center components are then displayed. The port number assigned to the server is displayed next, and you are prompted to enter the port number. For example:


    # ./es-config -p rmi
    Following ports are occupied by Sun Management Center:
    161,162,163,164,165,167,168,166,5600,2099,8080,8443.
    
    Sun Management center agent component is presently using port:2099
    Hit RETURN key to continue with present configuration.
    Enter the port number you would like to use for rmi component 
       [ 1100 to 65535 ]: 
  4. Type the port number that you want to assign, or press Return to use the default port assignment.

    You are asked whether you want to start the Sun Management Center components.

  5. Type y to start the Sun Management Center components, or type n if you do not want to start the components.