|
Task |
Description |
For Instructions |
|---|---|---|
|
1. Perform signed patches preparation tasks |
Perform all of the signed patches preparation tasks:
|
Preparation for Managing Signed Patches with smpatch Command (Task Map) |
|
2. Download and add a signed patch or patches |
Download and add a signed patch with the smpatch command. | |
|
3. (Optional) Remove a signed patch |
If necessary, remove an unsigned patch from your system. |
Make sure you have completed the preparation tasks before downloading and adding a signed patch to your system. For more information, see Preparation for Managing Signed Patches with smpatch Command (Task Map).
Become superuser.
Solaris 9 system only – Notify the Solaris Management Console server that the PatchPro packages were added to the system.
# /etc/init.d/init.wbem stop # /etc/init.d/init.wbem start |
Download a signed patch or patches from the SunSolve web site.
# smpatch download -i patch-ID
Requested patches:
patch-ID
Downloading the requested patches
/var/sadm/spool/patch-ID.jar has been validated.
For downloaded patch(es) see /var/sadm/spool
|
Add the signed patch.
# smpatch add -i patch-ID |
The following example shows how to download and add a signed patch with the smpatch command on a Solaris 9 system.
# /usr/sadm/bin/smpatch download -i 111711-01
Authenticating as user: root
Type /? for help, pressing <enter> accepts the default denoted by [ ]
Please enter a string value for: password :: xxx
Loading Tool: com.sun.admin.patchmgr.cli.PatchMgrCli from starbug
Login to starbug as user root was successful.
Download of com.sun.admin.patchmgr.cli.PatchMgrCli from starbug was
successful.
Requested patches:
111711-01
Downloading the requested patches ...
For downloaded patch(es) see /var/sadm/spool.
# smpatch add -i 111711-01
Authenticating as user: root
Type /? for help, pressing <enter> accepts the default denoted by [ ]
Please enter a string value for: password :: xxx
Loading Tool: com.sun.admin.patchmgr.cli.PatchMgrCli from starbug
Login to starbug as user root was successful.
Download of com.sun.admin.patchmgr.cli.PatchMgrCli from starbug was
successful.
On machine starbug ...
Installing patch 111711-01
#
|
The following example shows how to download and add patch 105081–45 with the smpatch command on a Solaris 2.6 system.
# smpatch download -i 105407-01
Requested patches:
105407-01
Downloading the requested patches
/var/sadm/spool/105407-01.jar has been validated.
For downloaded patch(es) see /var/sadm/spool
# smpatch add -i 105407-01
On machine "earth/172.20.27.27" ...
Installing patch 105407-01 ...
Purging /var/sadm/spool/105407-01
/var/sadm/spool/README.txt has been moved to
/var/sadm/spool/patchproSequester
|
The following example shows how to download and add patch 107081–45 with the smpatch command on a Solaris 7 system. This patch has two patch dependencies, which are automatically downloaded and verified.
# smpatch download -i 107081-45
Requested patches:
107081-45
Downloading the requested patches
The following patches were added due to patch dependencies:
108376-37
107656-09
/var/sadm/spool/108376-37.jar has been validated.
/var/sadm/spool/107656-09.jar has been validated.
/var/sadm/spool/107081-45.jar has been validated.
For downloaded patch(es) see /var/sadm/spool
# smpatch add -i 108376-37 -i 107656-09 -i 107081-45
On machine "venus/172.20.27.26" ...
Installing patch 108376-37 ...
Installing patch 107656-09 ...
Installing patch 107081-45 ...
Purging /var/sadm/spool/108376-37
Purging /var/sadm/spool/107656-09
Purging /var/sadm/spool/107081-45
|
The following example shows how to use the ftp command to get a signed Solaris 8 patch from the SunSolve Online web site and then use the smpatch add command to add the signed patch to the system.
# ftp sunsolve.sun.com Connected to sunsolve.sun.com. 220- 220-Welcome to the SunSolve Online FTP server. 220- 220-Public users may log in as anonymous. . . . Name (sunsolve.sun.com:root): anonymous 331 Guest login ok, send your complete e-mail address as password. Password: xxx 230- 230-SUN MICROSYSTEMS, INC. . . .230 Guest login ok, access restrictions apply. ftp> cd signed_patches 250 CWD command successful. ftp> get 112846-01.jar /var/sadm/spool/112846-01.jar 200 PORT command successful. 150 Opening ASCII mode data connection for 112846-01.jar (22524 bytes). 226 Transfer complete. local: /var/sadm/spool/112846-01 remote: 112846-01.jar 22613 bytes received in 0.065 seconds (341.70 Kbytes/s) ftp> quit # smpatch add -i 112846-01 On machine "earth/172.20.27.27" ... Installing patch 112846-01 ... Purging /var/sadm/spool/112846-01 |
Become superuser.
Remove the signed patch.
# smpatch remove -i patch-ID |
You cannot remove multiple patches in the same command.
The following example shows how to remove a signed patch on a system running the Solaris 9 release.
# /usr/sadm/bin/smpatch remove -- -i 111711-01
Authenticating as user: root
Type /? for help, pressing <enter> accepts the default denoted by [ ]
Please enter a string value for: password ::
Loading Tool: com.sun.admin.patchmgr.cli.PatchMgrCli from starbug
Login to starbug as user root was successful.
Download of com.sun.admin.patchmgr.cli.PatchMgrCli from starbug was
successful.
On machine starbug ...
Removing patch 111711-01
|
The following example shows how to remove a signed patch on a system running the Solaris 2.6 release.
# smpatch remove -i 105407-01 On machine "earth/172.20.27.27" ... Removing patch 105407-01 Checking installed patches... Backing out patch 105407-01... Patch 105407-01 has been backed out. |