La commande 'emgr' permet de gérer les correctifs pour un système AIX.
Il est possible de lister les correctifs existant, de les ajouter ou encore de les retirer.
Exemple : 'emgr -P' liste les correctifs actuellement installés sur le système.
PACKAGE INSTALLER LABEL
======================================================== =========== ==========
devices.pciex.b3154a63.rte installp IV82095s1a
gpfs.base installp g411p4e14
gpfs.ext installp g411p4e14
bos.net.tcp.client installp IV84947m1a
bos.rte.control installp IV80586s1a
devices.pciex.e4145616e4140518.rte installp IV81459s1b
bos.net.tcp.client installp IV87420m0a
devices.pci.df1000f7.com installp IV85098s1a
Pour effacer un Efixe, souvent nécessaire avant une mise à jour AIX, il faut utiliser la commande 'emgr -r -L Label du Efixe' #
Exemple : 'emgr -r -L IV87420m0a'
Version officielle de la documentation IBM :
emgr Command
Purpose
Starts the interim fix (interim fix) manager, which installs, removes, lists, and checks system interim fixes.
Syntax
To list interim fix; data:
emgr -l [ -L Label | -n interim fixNumber | -u VUID ] [-v{1|2|3} ] [ -X ] [-a path]
To install an interim fix package:
emgr -e interim fixPackage | -f ListFile [-w Directory ] [ -b | -k | -I ] [ -p ] [ -q ] [ -m ] [ -o ] [ -X ] [-a path]
To remove an installed interim fix:
emgr -r -L Label | -n interim fixNumber | -u VUID | -f ListFile [-w Directory ] [-a path] [-b | -k | -I ] [ -p ] [ -q ] [ -X ]
To check an installed interim fix:
emgr -c [ -L Label | -n interim fixNumber | -u VUID | -f ListFile ] [ -w Directory ] [-a path] [-v{1|2|3} ] [ -X ]
To mount or unmount an installed interim fix:
emgr -M | -U [ -L Label | -n interim fixNumber | -u VUID | -f ListFile ] [ -w Directory ] [-a path] [ -X ]
To force removal of an installed interim fix:
emgr -R interim fixLabel [ -w Directory ] [-a path] [ -X ]
To view packages locked by interim fix manager:
emgr -P [ Package ] [-a path] [ -X ]
To display the contents and topology of an interim fix package:
emgr -d -e interim fixPackage | -f ListFile [-w Directory ] [-v{1|2|3} ]
Description
The emgr (interim fix manager) command can be used to install and manage system interim fixes. The interim fix manager installs packages created with the epkgcommand and maintains a database containing interim fix information. The emgr command performs the following operations:
- interim fix package installation
- interim fix removal
- interim fix listing
- interim fix checking
- interim fix mounting
- interim fix unmounting
- Display package locks
- Force removal of an installed interim fix
- If an attempt is made to update a fileset (using the installp, install_all_updates, or smit update_all command) that has been locked by the interim fix manager, a notice will be displayed indicating which filesets are locked. In some cases, there is no notice to indicate why a fileset was prevented from being installed. The lslpp command shows that any locked filesets are in the EFIXLOCKED state.
- Any library or executable program updated by an interim fix or service update which is in use by an active process will not be reflected in that process unless it is restarted. For example, an update that changes the ksh will not have the changes reflected in any ksh processes that are already running. Likewise, an update to the libc.a library will not be reflected in any process that is already running. In addition, any process that is using a library and does a dlopen operation of the same library after the library has been updated could experience inconsistencies if it is not restarted.
Referencing an Efix
The ways to reference an interim fix are as follows:
- Reference by Label
- Each interim fix that is installed on a given system will have a unique interim fix label. This is the unique key that binds all of the different database objects. To reference an interim fix by label, pass the label as a parameter to the -L flag. For example, to run a check operation on an interim fix with label ABC123, type:
emgr -cL ABC123
- Reference by Efix ID
- Each interim fix that is installed on a given system has an interim fix ID. The interim fix ID is simply the order number in which the interim fix is listed in the interim fix database. Using this option may be convenient if you are performing operations on interim fixes based on interim fix listings. The emgr command will convert the interim fix ID into an interim fix label before performing the given operation. To reference an interim fix by ID, pass the ID as an parameter to the -n flag.
Note:Efix IDs can change as interim fixes are removed and added. Always verify the current interim fix ID number by using the -l flag to list the specific interim fix or all interim fixes.For example, to run a check operation on the first interim fix with ID equal to 1, type:
emgr -cn1
- Reference by VUID
- Because interim fix packages are not formally tracked by any entity, it is possible that the same interim fix label could be used for more than one interim fix package. However, the emgr command does not accept the installation of more than one interim fix with the same interim fix label at the same time. The VUID (Virtually Unique ID) can be used to differentiate packages with the same interim fix label. The emgr command converts the VUID into an interim fix label before performing the given operation. For example, to list an installed interim fix with VUID equal to 000775364C00020316020703, type:
emgr -l -u 000775364C00020316020703
Note:The VUID is displayed in the preview phase of interim fix installation and removal. The VUID is also displayed when listing with verbosity level set to 2 or higher with the -v flag.
Efix Logging
The following operations are logged to the emgr command log file, /var/adm/ras/emgr.log:
- Installation
- Removal
- Checking
- Mounting
- Unmounting
- Forced Removal
Enabling Automatic Interim Fix Removal by installp
An interim fix can be packaged by the epkg command to contain an APAR reference file containing APAR reference numbers. An APAR reference number will allow installpto map an interim fix back to the APARs for all the Technology Levels where the fix was shipped. If installp determines that the interim fix is contained in the Technology Level, Service Pack, or PTF being applied, installp will automatically remove the interim fix prior to applying the updates.
If an interim fix is enabled for automatic removal, the emgr command will display the following message during the installation of the interim fix:
ATTENTION: Interim fix is enabled for automatic removal by installp.
Concurrent Updates
The emgr command supports the installation of a new kind of interim fix called a concurrent update. This form of interim fix contains a modification to the AIX kernel, or one of its kernel extensions, that can be applied directly to the system memory and does not require the system to be rebooted. This direct patching to the system memory allows you to safely evaluate and test a kernel modification without modifying the file containing the system's current kernel on the disk. Any concurrent update applied to the system memory will not persist after a system reboot unless you choose to commit the changes introduced by the concurrent update to the disk using the -C flag. You can apply a concurrent update directly over another patch for the same module. You do not need to remove the previous patch. However, there must be only one version of the module loaded. Also, you cannot run any concurrent update operations (in-memory or on disk) for interim fixes in the REBOOT_REQUIRED state until the system is rebooted.
Flags
Exit Status
- 0
- All of the emgr command operations completed successfully.
- >0
- An error occurred.
Security
Only the root user can run the emgr command. Efix data, saved files, and temporary files are accessible only by the root user.
The emgr command looks for a supported MD5 generating command on the system. If one is located, the emgr command displays the MD5 checksum to the user. The user can then cross check this MD5 sum with a secured source. If an MD5 generating command is not located, the emgr command takes no further action.
The user can force set the path to an MD5 command by exporting the EMGR_MD5_CMD shell variable. This variable should contain the absolute path to the MD5 generating command.
Examples
- To preview the installation of an interim fix package called games.020303.epkg.Z, type:
emgr -p -e games.020303.epkg.Z
- To install the interim fix package called games.020303.epkg.Z and automatically expand file systems if additional space is needed, type:
emgr -X -e games.020303.epkg.Z
- To list all interim fixes on the system, type:
emgr -l
- To do a level 3 listing of interim fix label games, type:
emgr -lv3 -L games
- To remove the interim fix with label games, type:
emgr -r -L games
- To preview the removal of the interim fix labels in file /tmp/myfixes, type:
emgr -rp -f /tmp/myfixes
- To check all interim fixes with verification level 2, type:
emgr -cv2
- To check interim fix ID number 3 with verification level 1 (the default verification level), type:
emgr -c -n3
- To check interim fix with VUID of 000775364C00020316020703 and verification level 3, type:
emgr -u 000775364C00020316020703 -c -v3
- To list all locked packages and their interim fix labels, type:
emgr -P
- To list all interim fix labels that have locked the installp package bos.rte.lvm, type:
emgr -P bos.rte.lvm
- To mount-install the interim fix package called games.020303.epkg.Z and suppress AIX bosboot, type:
emgr -e games.020303.epkg.Z -mb
- To mount all interim fix files that have been mount-installed on the system by using the -m option, type:
emgr -M
- To unmount all interim fix files associated with interim fix label games, type:
emgr -U -L games
- To display level 3 verbosity output on interim fix package test.102403.epkg.Z, type:
emgr -v3 -d test.102403.epkg.Z
Exemples :
- 'emgr -l ' : Liste l'ensemble des correctifs installés.
-