How to remove all emergency fixes from IBM AIX server in one go ?

Today in this article, we will see how to remove all emergency fixes from an IBM AIX server using a single command.

Lets see this step by step.

1. Check out all available emergency fixes on an IBM AIX server.

ngeaix001--> emgr -l


ID  STATE LABEL      INSTALL TIME      UPDATED BY ABSTRACT
=== ===== ========== ================= ========== ======================================
1    S    IJ10132s3a 08/03/20 18:49:06            CVE-2017-3623
2    S    IJ09621s3a 08/03/20 19:20:17            IJ09621 7.1.5.3
3    S    IJ11544s0a 08/03/20 19:30:46            Xorg Security Vulnerability fix
4    S    IJ12980m3a 08/03/20 19:40:58            Fix vulnerabilites in tcpdump
5    S    IJ17062m4a 08/03/20 19:51:09            IJ17062 for AIX 7.1 TL05
6    S    IJ09174s3a 08/03/20 20:01:23            for APAR IJ09174
7    S    IJ10295m3a 08/03/20 20:11:43            Multi ifix for APAR IJ10295
8    S    IJ25924s3b 11/25/20 10:06:40            Ifix for APAR IJ25924


STATE codes:
 S = STABLE
 M = MOUNTED
 U = UNMOUNTED
 Q = REBOOT REQUIRED
 B = BROKEN
 I = INSTALLING
 R = REMOVING
 T = TESTED
 P = PATCHED
 N = NOT PATCHED
 SP = STABLE + PATCHED
 SN = STABLE + NOT PATCHED
 QP = BOOT IMAGE MODIFIED + PATCHED
 QN = BOOT IMAGE MODIFIED + NOT PATCHED
 RQ = REMOVING + REBOOT REQUIRED
ngeaix001 -->

 

2. Removing an emergency fix.

# emgr -r -L IJ10132s3a 

 

3. Removing all emergency fixes in one go.

# emgr -l |grep IJ|awk '{​​​​​​​print $3}​​​​​​​'|xargs -I {​​​​​​​}​​​​​​​ emgr -r -L {​​​​​​​}​​​​​​​

Leave a Reply

Your email address will not be published.