C H A P T E R  5

Configuring a Sun Update Connection Proxy

This chapter describes how to configure a Sun Update Connection Proxy, also referred to as a local patch server, on a Solaris 10 system. This chapter includes the following task-related information:

The Sun Update Connection Proxy supports client systems that use the Sun Update Connection, System Edition 1.0 product and the Sun Patch Manager 2.0 product. A Sun Update Connection client system is not compatible with the older local patch server feature associated with the Sun Patch Manager 2.0 product.



Note - The Sun Update Connection Proxy is an optional feature that you can obtain at no charge if you have a Sun Service Plan. For information about obtaining a Sun Service Plan, go to Solaris Operating System Software Support at http://www.sun.com/service/support/software/solaris/ and select the appropriate level of service.



For instructions on how to install the proxy, see How to Install the Sun Update Connection Proxy Feature Update or How to Install the Sun Update Connection Proxy Software.


Configuring Your Sun Update Connection Proxy (Task Map)

The following table identifies the tasks that you can perform with the patchsvr setup command to configure an update server on your intranet. See the patchsvr(1M) man page.

 

Task

Description

For Instructions

Configure your Sun Update Connection Proxy for the first time.

Before you can use your system as a Sun Update Connection Proxy, you must do the following:

  • Verify that the proxy software is installed on the system.
  • (Optional) Change configuration settings, such as specifying a network proxy, for the system.
  • Enable the system to act as a Sun Update Connection Proxy.
  • Configure client systems to specify your Sun Update Connection Proxy as the source of updates.

How to Initially Configure Your Sun Update Connection Proxy (Command Line)

(Optional) Obtain information about the configuration of your Sun Update Connection Proxy.

This information can help you diagnose problems or view the configuration settings you specified.

How to View Configuration Settings for Your Sun Update Connection Proxy (Command Line)

(Optional) Change the configuration settings of your Sun Update Connection Proxy.

By default, your proxy directly connects to the Internet and obtains updates from the Sun update server.

If your update management environment does not match the default, modify the configuration settings appropriately.

How to Change Configuration Settings for Your Sun Update Connection Proxy (Command Line)



Configuring Your Sun Update Connection Proxy

Client systems are configured to obtain updates from the Sun update server by default. You need a Sun Update Connection Proxy in the following situations:



Note - The Sun Update Connection Proxy is an optional feature that you can obtain at no charge if you have a Sun Service Plan. For information about obtaining a Sun Service Plan, go to Solaris Operating System Software Support at http://www.sun.com/service/support/software/solaris/ and select the appropriate level of service.



For additional information, see Sun Update Connection Proxy.

Configuring Your Update Management Environment to Include a Sun Update Connection Proxy

Configuring your update management environment to include a Sun Update Connection Proxy and configuring your client systems to use the proxy involves completing these tasks:

1. Configure and start your Sun Update Connection Proxy.

See How to Initially Configure Your Sun Update Connection Proxy (Command Line).

2. Configure your client system or systems to obtain updates from your Sun Update Connection Proxy.

See How to Specify a Source of Updates (GUI).

After completing these tasks, you are ready to have your client systems obtain updates from your Sun Update Connection Proxy. See Managing Solaris Updates by Using the Sun Update Manager GUI.

Configuration Requirements

Your Sun Update Connection Proxy needs to obtain updates and update data from one of these sources:

After you set up the Sun Update Connection Proxy, you must configure each of your client systems to communicate with that proxy. Then you are ready to have your client systems obtain updates from that proxy.



Note - If you locally manage a system that is a client of a Sun Update Connection Proxy on your intranet, you do not need to register the client system. You must register the system that acts as the proxy. If, however, your client system is also remotely managed by the Sun Update Connection services, the client system must be registered.



Configuring Your Sun Update Connection Proxy by Using the Command-Line Interface

Use the patchsvr command to configure and enable your Sun Update Connection Proxy. See the patchsvr(1M) man page.


procedure icon  How to Initially Configure Your Sun Update Connection Proxy (Command Line)

Before you can use a system as a Sun Update Connection Proxy, you must ensure that the proxy software is installed, configure and start the proxy, and configure clients to communicate with it.



Note - The Sun Update Connection Proxy supports client systems that use the Sun Update Connection, System Edition 1.0 product and the Sun Patch Manager 2.0 product. A Sun Update Connection client system is not compatible with the older local patch server feature associated with the Sun Patch Manager 2.0 product.



The system that you want to act as a Sun Update Connection Proxy on your intranet must meet these software requirements:



Note - If your Sun Update Connection Proxy uses a network proxy to connect to the Internet, you must specify information about the network proxy. See How to Change Configuration Settings for Your Sun Update Connection Proxy (Command Line).



1. As superuser, log in to the system that you plan to use as your Sun Update Connection Proxy.

2. Determine whether the SUNWpsvru and SUNWpsvrr packages are installed on the system.


# pkginfo | grep SUNWpsvr
system      SUNWpsvrr      Patch Server Deployment (Root)
system      SUNWpsvru      Patch Server Deployment (Usr)

3. If the packages are not installed, you must install them before continuing this task.

4. Register this system with Update Manager.

See Registering Your System With Sun Update Manager (Task Map).

5. If needed, specify the network proxy that your Sun Update Connection Proxy uses to connect to the Internet.

# patchsvr setup -x network-proxy-name:port

If you do not have the network proxy information, contact your network administrator.

6. Specify the update source.

Your Sun Update Connection Proxy can point to a different source of updates. This update source can be used to fulfill update download requests that cannot be fulfilled by your proxy. By default, the source of updates for your Sun Update Connection Proxy is the Sun update server.

# patchsvr setup -p http://server-name:3816/solaris/

# patchsvr setup -p file:///directory-name

The local collection of updates can be in a directory, on a CD, or on a remote file system.

# patchsvr setup -p https://getupdates.sun.com/solaris/

7. Start your Sun Update Connection Proxy.

# patchsvr start

8. (Optional) Enable your Sun Update Connection Proxy so that it is started each time the system boots.

# patchsvr enable

Examples: Initially Configuring Your Sun Update Connection Proxy

Each of these examples verify that the Sun Update Connection Proxy software is installed on the system.

You configure psvr1 to obtain updates from the Sun update server. Also, psvr1 communicates with the Internet by using a network proxy. Before you can make the Sun Update Connection Proxy ready for use, you must specify the host name, networkproxy1, and the port number, 2010, of the network proxy. After you configure psvr1, you must start it. You can also enable it for automatic restart when the system boots.


psvr1 # pkginfo | grep SUNWpsvr
system      SUNWpsvrr      Patch Server Deployment (Root)
system      SUNWpsvru      Patch Server Deployment (Usr)
psvr1 # patchsvr setup -x networkproxy1:2010
psvr1 # patchsvr setup -p https://getupdates.sun.com/solaris/
psvr1 # patchsvr start
Starting Local Patch Server
psvr1 # patchsvr enable

You configure psvr2 to obtain updates from psvr1 by specifying the URL to the server, which is http://psvr1:3816/solaris/. After you configure psvr2, you must start it. You can also enable it for automatic restart when the system boots.


psvr2 # pkginfo | grep SUNWpsvr
system      SUNWpsvrr      Patch Server Deployment (Root)
system      SUNWpsvru      Patch Server Deployment (Usr)
psvr2 # patchsvr setup -p http://psvr1:3816/solaris/
psvr2 # patchsvr start
Starting Local Patch Server
psvr2 # patchsvr enable

Now that both of the update servers are configured and started, configure client systems to use them. See How to Specify a Source of Updates (GUI).

Now that the update server is configured and started, configure client systems to use it. See How to Specify a Source of Updates (GUI).

Now that the update server is configured and started, configure client systems to use it. See How to Specify a Source of Updates (GUI).

Now that the update server is configured and started, configure client systems to use it. See How to Specify a Source of Updates (GUI).


procedure icon  How to View Configuration Settings for Your Sun Update Connection Proxy (Command Line)

You can check the configuration settings of your Sun Update Connection Proxy to help diagnose problems or to understand your server's update-related settings.

The information includes the following:

1. Log in to the Sun Update Connection Proxy as superuser.

2. List the configuration settings for your proxy.


# patchsvr setup -l
Patch source URL: https://getupdates.sun.com/solaris/
Cache location: /var/sadm/spool/patchsvr
Web proxy host name: mars
Web proxy port number: 8080


procedure icon  How to Change Configuration Settings for Your Sun Update Connection Proxy (Command Line)

If you want to change the configuration settings of your Sun Update Connection Proxy, you must first stop the proxy. After you change the settings by using the patchsvr setup command, you must restart the proxy.

For information about the configuration settings that you can change, see the patchsvr(1M) man page.

1. As superuser, log in to the system that you plan to use as your Sun Update Connection Proxy.

2. Stop the proxy.

# patchsvr stop

3. Change one or more configuration settings, one per command line.

For example, specify a network proxy, network-proxy-name, and a port, port.

# patchsvr setup -x network-proxy-name:port

4. Start the proxy.

# patchsvr start

Example: Changing Configuration Settings for Your Sun Update Connection Proxy

This example shows how to change some configuration settings for your Sun Update Connection Proxy. The Sun Update Connection Proxy communicates with the Internet by using a network proxy. First, you stop the Sun Update Connection Proxy, then specify the host name, networkproxy1, and the port number, 2010, of the network proxy.

Then, you specify the next Sun Update Connection Proxy in the chain. You configure two proxies to serve systems in two buildings. The psvr1 server obtains updates from the Sun update server. The second server, psvr2, obtains updates from psvr1. You configure psvr2 to obtain updates from psvr1 by specifying the URL to the server, which is http://psvr1:3816/solaris/.


# patchsvr stop
Shutting down Local Patch Server
# patchsvr setup -x networkproxy1:2010
# patchsvr setup -p http://psvr1:3816/solaris/
# patchsvr start
Starting Local Patch Server