Use the patchsvr command to configure and enable your local patch server. See the patchsvr(1M) man page.
Before you can use a system as a local patch server, you must ensure that the Sun Patch Manager 2.0 software is installed, configure and start the local patch server, and configure clients to communicate with the local patch server.
A Solaris 9 system with at least the Developer Solaris Software Group (SUNWCdev) installed is suitable to be a patch server on your intranet. You must install Sun Patch Manager 2.0 for Solaris 9.
You can obtain this software from the Sun Download Center at http://wwws.sun.com/software/download.
If your local patch server uses a web proxy to connect to the Internet, you must specify information about the web proxy. See How to Change Configuration Settings for Your Local Patch Server (Command Line).
As superuser, log in to the system that you plan to use as your local patch server.
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) |
If the packages are not installed, you must install them before continuing this task.
If needed, specify the web proxy that your local patch server uses to connect to the Internet.
# patchsvr setup -x web-proxy-name:port |
If you do not have the web proxy information, contact your network administrator.
Your local patch server can point to a different source of patches. This patch source can be used to fulfill patch download requests that cannot be fulfilled by your local patch server. By default, the source of patches for your local patch server is the Sun patch server.
To specify the next patch server in the chain of local patch servers, type:
# patchsvr setup -p http://server-name:3816/solaris/ |
To specify a collection of patches on the local patch server, type:
# patchsvr setup -p file:/directory-name |
To specify the Sun patch server, which is the default, type:
# patchsvr setup -p https://updateserver.sun.com/solaris/ |
The local collection of patches can be in a directory, on a CD, or on a remote file system.
Start your local patch server.
# patchsvr start |
(Optional) Enable your local patch server so that it is started each time the system boots.
# patchsvr enable |
Each of these examples verify that the Sun Patch Manager 2.0 software is installed on the system.
The following example shows how to configure a local patch server to point to another local patch server in a chain. You configure two local patch servers to serve systems in two buildings.
You configure psvr1 to obtain patches from the Sun patch server. Also, psvr1 communicates with the Internet by using a web proxy. Before you can make the local patch server ready for use, you must specify the host name, webproxy1, and the port number, 2010, of the web 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 webproxy1:2010 psvr1 # patchsvr setup -p https://updateserver.sun.com/solaris/ psvr1 # patchsvr start Starting Local Patch Server psvr1 # patchsvr enable |
You configure psvr2 to obtain patches 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 patch servers are configured and started, configure client systems to use them. See How to Specify the Source of Patches (Command Line) or How to Specify the Source of Patches (Web Browser).
The following example shows how to configure a local patch server to obtain patches from a local collection of patches in the /export/patches directory. The URL that points to this directory is file:/export/patches. After configuring the local patch server, 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/patches # patchsvr start Starting Local Patch Server # patchsvr enable |
Now that the patch server is configured and started, configure client systems to use it. See How to Specify the Source of Patches (Command Line) or How to Specify the Source of Patches (Web Browser).
The following example shows how to configure a local patch server to obtain patches from a local collection of patches on a CD mounted from the first CD-ROM drive. The URL that points to this CD is file:/cdrom/cdrom0. After configuring the local patch server, 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 patch server is configured and started, configure client systems to use it. See How to Specify the Source of Patches (Command Line) or How to Specify the Source of Patches (Web Browser).
The following example shows how to configure a local patch server to obtain patches from a collection of patches that is mounted on a remote system. The URL that points to this directory is /net/mars/export/patches. After configuring the local patch server, 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/patches # patchsvr start Starting Local Patch Server # patchsvr enable |
Now that the patch server is configured and started, configure client systems to use it. See How to Specify the Source of Patches (Command Line) or How to Specify the Source of Patches (Web Browser).
You can check the configuration settings of your local patch server to help diagnose problems or to understand your server's patch-related settings.
The information includes the following:
Location of the patch collection – Source of patches to be checked when the requested patch is not available on the local server.
Web proxy information – Host name and port of a web proxy that is used to communicate with the Internet.
Location of the patch cache – Directory where patches are cached.
Log in to the local patch server as superuser.
List the configuration settings for your local patch server.
# patchsvr setup -l Patch source URL: https://updateserver.sun.com/solaris/ 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 local patch server, you must first stop it. After you change the settings by using the patchsvr setup command, you must restart the local patch server.
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 local patch server.
Stop the local patch server.
# patchsvr stop |
Change one or more configuration settings, one per command line.
For example, specify a web proxy, web-proxy-name, and a port, port.
# patchsvr setup -x web-proxy-name:port |
Start the local patch server.
# patchsvr start |
This example shows how to change some configuration settings for your local patch server. The local patch server communicates with the Internet by using a web proxy. First, you stop the local patch server, then specify the host name, webproxy1, and the port number, 2010, of the web proxy.
Next, you specify the next local patch server in the chain. You configure two local patch servers to serve systems in two buildings. The psvr1 server obtains patches from the Sun patch server. The second server, psvr2, obtains patches from psvr1. You configure psvr2 to obtain patches 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 webproxy1:2010 # patchsvr setup -p http://psvr1:3816/solaris/ # patchsvr start Starting Local Patch Server |