Each of these examples verify that the Sun Update Connection Proxy software is installed on the system.
The following example shows how to configure a Sun Update Connection Proxy to point to another proxy in a chain. You configure two proxies to serve systems in two buildings.
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://getupdates1.sun.com/ 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).
The following example shows how to configure a Sun Update Connection Proxy to obtain updates from a local collection of updates in the /export/updates directory. The URL that points to this directory is file:///export/updates. After configuring the proxy, you must start it. You can also enable it for automatic restart when the system boots.
# pkginfo | grep SUNWpsvr system SUNWpsvrr Patch Server Deployment (Root) system SUNWpsvru Patch Server Deployment (Usr) # patchsvr setup -p file:///export/updates # patchsvr start Starting Local Patch Server # patchsvr enable |
Now that the update server is configured and started, configure client systems to use it. See How to Specify a Source of Updates (GUI).
The following example shows how to configure a Sun Update Connection Proxy to obtain updates from a local collection of updates on a CD mounted from the first CD-ROM drive. The URL that points to this CD is file:///cdrom/cdrom0. After configuring the proxy, you must start it. You can also enable it for automatic restart when the system boots.
# pkginfo | grep SUNWpsvr system SUNWpsvrr Patch Server Deployment (Root) system SUNWpsvru Patch Server Deployment (Usr) # patchsvr setup -p file:///cdrom/cdrom0 # patchsvr start Starting Local Patch Server # patchsvr enable |
Now that the update server is configured and started, configure client systems to use it. See How to Specify a Source of Updates (GUI).
The following example shows how to configure a Sun Update Connection Proxy to obtain updates from a collection of updates that is mounted on a remote system. The URL that points to this directory is /net/mars/export/updates. After configuring the proxy, you must start it. You can also enable it for automatic restart when the system boots.
# pkginfo | grep SUNWpsvr system SUNWpsvrr Patch Server Deployment (Root) system SUNWpsvru Patch Server Deployment (Usr) # patchsvr setup -p file:///net/mars/export/updates # patchsvr start Starting Local Patch Server # patchsvr enable |
Now that the update server is configured and started, configure client systems to use it. See How to Specify a Source of Updates (GUI).
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:
Location of the update collection. Source of updates to be checked when the requested update is not available on the local server.
Network proxy information. Host name and port of a network proxy that is used to communicate with the Internet.
Location of the update cache. Directory where updates are cached.
Log in to the Sun Update Connection Proxy as superuser.
List the configuration settings for your proxy.
# patchsvr setup -l Patch source URL: https://getupdates1.sun.com Cache location: /var/sadm/spool/patchsvr Web proxy host name: mars Web proxy port number: 8080 |
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.
As superuser, log in to the system that you plan to use as your Sun Update Connection Proxy .
Stop the proxy.
# patchsvr stop |
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 |
Start the proxy.
# patchsvr start |