Plan629
Test-Run 2750
===================================
1. Add patch
run 'patchadd $PATCH_ID' command to add new patches, as root,
2. reboot. Check /var/sadm/patch folder. There should be a folder named as the patch ID.
3. After testing the patches should be remove successfully, run 'patchrm $PATCH_ID' command as root. reboot. The patch folder under /var/sadm/patch should be removed.
Notes:1.How to confirm the IPS is the latest build?
1)Take snv_142 for example:After rebooting, "mcs -p /usr/lib/libX11.so" should show "nv_142" in theversion line for the library itself:@(#)libX11 1.3.2 (72bac57e9c4b nv_142)
2)Or you can confirm it by "pkg info X-incorporation",if you install build 144 then you can see a line such as "Branch 0.144" .
===============
$ bash
bash-3.2$ su root
Password:
# bash
# cd /var/sadm/patch
# pwd
/var/sadm/patch
# ls -al
total 10
drwxr-xr-x 5 root root 512 Mar 20 12:33 .
drwxr-xr-x 14 root sys 512 Mar 20 12:33 ..
-rw-r--r-- 1 root root 0 Mar 2 15:10 .mu_applied
drwxr-xr-x 2 root root 512 Mar 20 12:33 119278-44
drwxr-xr-x 2 root root 512 Mar 20 12:29 146662-01
drwxr-xr-x 2 root root 512 Mar 20 12:25 148912-01
# patchadd 148912-01
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
The following requested patches do not update any packages installed on the system
No Packages from patch 148912-01 are installed on the system.
No patches to dependency check.
# reboot
==================
$ bash
bash-3.2$ su root
Password:
# bash
# cd /var/sadm/patch
# pwd
/var/sadm/patch
# ls -al
total 10
drwxr-xr-x 5 root root 512 Mar 20 12:33 .
drwxr-xr-x 14 root sys 512 Mar 20 12:33 ..
-rw-r--r-- 1 root root 0 Mar 2 15:10 .mu_applied
drwxr-xr-x 2 root root 512 Mar 20 12:33 119278-44
drwxr-xr-x 2 root root 512 Mar 20 12:29 146662-01
drwxr-xr-x 2 root root 512 Mar 20 12:25 148912-01
# patchrm 148912-01
Validating patches...
Loading patches installed on the system...
Done!
Checking patches that you specified for removal.
Done!
Approved patches will be removed in this order:
148912-01
Checking installed patches...
Executing prebackout script...
Backing out patch 148912-01...
Executing postbackout script...
Patch 148912-01 has been backed out.
#reboot
=======================
$ bash
bash-3.2$ su root
Password:
# bash
# cd /var/sadm/patch
# pwd
/var/sadm/patch
# ls -al
total 8
drwxr-xr-x 4 root root 512 Mar 20 18:46 .
drwxr-xr-x 14 root sys 512 Mar 20 12:33 ..
-rw-r--r-- 1 root root 0 Mar 2 15:10 .mu_applied
drwxr-xr-x 2 root root 512 Mar 20 12:33 119278-44
drwxr-xr-x 2 root root 512 Mar 20 12:29 146662-01
Test-Run 2750
testcase 50569
===================================
1. Add patch
run 'patchadd $PATCH_ID' command to add new patches, as root,
2. reboot. Check /var/sadm/patch folder. There should be a folder named as the patch ID.
3. After testing the patches should be remove successfully, run 'patchrm $PATCH_ID' command as root. reboot. The patch folder under /var/sadm/patch should be removed.
Notes:1.How to confirm the IPS is the latest build?
1)Take snv_142 for example:After rebooting, "mcs -p /usr/lib/libX11.so" should show "nv_142" in theversion line for the library itself:@(#)libX11 1.3.2 (72bac57e9c4b nv_142)
2)Or you can confirm it by "pkg info X-incorporation",if you install build 144 then you can see a line such as "Branch 0.144" .
===============
$ bash
bash-3.2$ su root
Password:
# bash
# cd /var/sadm/patch
# pwd
/var/sadm/patch
# ls -al
total 10
drwxr-xr-x 5 root root 512 Mar 20 12:33 .
drwxr-xr-x 14 root sys 512 Mar 20 12:33 ..
-rw-r--r-- 1 root root 0 Mar 2 15:10 .mu_applied
drwxr-xr-x 2 root root 512 Mar 20 12:33 119278-44
drwxr-xr-x 2 root root 512 Mar 20 12:29 146662-01
drwxr-xr-x 2 root root 512 Mar 20 12:25 148912-01
# patchadd 148912-01
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
The following requested patches do not update any packages installed on the system
No Packages from patch 148912-01 are installed on the system.
No patches to dependency check.
# reboot
==================
$ bash
bash-3.2$ su root
Password:
# bash
# cd /var/sadm/patch
# pwd
/var/sadm/patch
# ls -al
total 10
drwxr-xr-x 5 root root 512 Mar 20 12:33 .
drwxr-xr-x 14 root sys 512 Mar 20 12:33 ..
-rw-r--r-- 1 root root 0 Mar 2 15:10 .mu_applied
drwxr-xr-x 2 root root 512 Mar 20 12:33 119278-44
drwxr-xr-x 2 root root 512 Mar 20 12:29 146662-01
drwxr-xr-x 2 root root 512 Mar 20 12:25 148912-01
# patchrm 148912-01
Validating patches...
Loading patches installed on the system...
Done!
Checking patches that you specified for removal.
Done!
Approved patches will be removed in this order:
148912-01
Checking installed patches...
Executing prebackout script...
Backing out patch 148912-01...
Executing postbackout script...
Patch 148912-01 has been backed out.
#reboot
=======================
$ bash
bash-3.2$ su root
Password:
# bash
# cd /var/sadm/patch
# pwd
/var/sadm/patch
# ls -al
total 8
drwxr-xr-x 4 root root 512 Mar 20 18:46 .
drwxr-xr-x 14 root sys 512 Mar 20 12:33 ..
-rw-r--r-- 1 root root 0 Mar 2 15:10 .mu_applied
drwxr-xr-x 2 root root 512 Mar 20 12:33 119278-44
drwxr-xr-x 2 root root 512 Mar 20 12:29 146662-01
#