instfix
Listar una APAR
#instfix -ivq NombreAPAR
e.g:
#instfix -ivqk IZ83307
Instalar una APAR
# instfix -k IX38794 -d /mydir/
emgr
Nota:
epkg Command
Purpose
Creates interim fix packages that can be installed by the interim fix manager, emgr.
Install epkg.Z file:
# emgr -X -e APAR.epkg.Z
e.g:
# emgr -X -e IV09580.epkg.Z
Para listar un eFix:
# emgr -l
ID STATE LABEL INSTALL TIME UPDATED BY ABSTRACT
=== ===== ========== ================= ========== ======================================
1 S IV09580s01 01/18/12 12:24:48 Ifix for IV09580@6.1TL7SP1
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
Para remover a eFix:
# emgr -r -L IV09580s01
+-----------------------------------------------------------------------------+
Efix Manager Initialization
+-----------------------------------------------------------------------------+
Initializing log /var/adm/ras/emgr.log ...
Accessing efix metadata ...
Processing efix label "IV09580s01" ...
+-----------------------------------------------------------------------------+
Efix Attributes
+-----------------------------------------------------------------------------+
LABEL: IV09580s01
INSTALL DATE: 01/20/12 16:15:35
STATE: STABLE
ABSTRACT: Ifix for IV09580@6.1TL7SP1
PACKAGER VERSION: 7
VUID: 00CCCC5B4C00111413115411
REBOOT REQUIRED: no
BUILD BOOT IMAGE: no
PRE-REQUISITES: yes
SUPERSEDE: no
PACKAGE LOCKS: no
E2E PREREQS: no
FIX TESTED: no
ALTERNATE PATH: None
EFIX FILES: 2
Install Scripts:
PRE_INSTALL: no
POST_INSTALL: no
PRE_REMOVE: no
POST_REMOVE: no
File Number: 1
LOCATION: /usr/ccs/bin/bind
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 936
ACL: DEFAULT
CKSUM: 35176
PACKAGE: bos.rte.bind_cmds
MOUNT INST: no
File Number: 2
LOCATION: /usr/ccs/bin/bind64
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 960
ACL: DEFAULT
CKSUM: 48026
PACKAGE: bos.rte.bind_cmds
MOUNT INST: no
+-----------------------------------------------------------------------------+
Efix Description
+-----------------------------------------------------------------------------+
IV09580 - file.ation overflow reported in error while linking large
+-----------------------------------------------------------------------------+
Space Requirements
+-----------------------------------------------------------------------------+
Checking space requirements ...
Space statistics (in 512 byte-blocks):
File system: /usr, Free: 2006528, Required: 1247, Deficit: 0.
+-----------------------------------------------------------------------------+
Efix State
+-----------------------------------------------------------------------------+
Setting efix state to: REMOVING
+-----------------------------------------------------------------------------+
Package Locking
+-----------------------------------------------------------------------------+
Processing package unlocking for all files.
File 2: unlocking installp fileset bos.rte.bind_cmds.
File 1: installp fileset bos.rte.bind_cmds is already unlocked.
All package locks processed successfully.
+-----------------------------------------------------------------------------+
Efix File Removal
+-----------------------------------------------------------------------------+
Setting up for removal of efix files ...
Removing all efix files (in reverse order of installation):
Removing efix file #2 (File: /usr/ccs/bin/bind64) ...
Removing efix file #1 (File: /usr/ccs/bin/bind) ...
Total number of efix files removed is 2.
+-----------------------------------------------------------------------------+
Reboot Processing
+-----------------------------------------------------------------------------+
Reboot is not required by this efix package.
+-----------------------------------------------------------------------------+
Operation Summary
+-----------------------------------------------------------------------------+
Log file is /var/adm/ras/emgr.log
EFIX NUMBER LABEL OPERATION RESULT
=========== ============== ================= ==============
1 IV09580s01 REMOVE SUCCESS
Return Status = SUCCESS
Solución a un problema de consumos de la herramenta topasrec:
Instalación eFix en nodos de sap: sapserverx1 & sapserverx2 (Problemas con procesos topasrec)
1. Download the fix
https://testcase.boulder.ibm.com:
/fromibm/aix/HighCPU616.120430.epkg.Z (2572041 bytes)
userid: anonymous
passwd: <your email ID>
2. Apply the fix:
# emgr -e HighCPU616.120430.epkg.Z
Salida inicial con errores:
# emgr -e HighCPU616.120430.epkg.Z
+-----------------------------------------------------------------------------+
Efix Manager Initialization
+-----------------------------------------------------------------------------+
Initializing log /var/adm/ras/emgr.log ...
Efix package file is: /home/xediaz/HighCPU616.120430.epkg.Z
MD5 generating command is /usr/bin/csum
MD5 checksum is a61fa546a139727bcfa0acae32f95804
Accessing efix metadata ...
Processing efix label "HighCPU616" ...
Verifying efix control file ...
+-----------------------------------------------------------------------------+
Installp Prerequisite Verification
+-----------------------------------------------------------------------------+
Verifying prerequisite file ...
Checking prerequisites ...
Prerequisite Number: 1
Fileset: perfagent.server
Minimal Level: 6.1.6.0
Maximum Level: 6.1.6.30
Actual Level: Not Installed
Type: PREREQ
Requisite Met: no
emgr: 0645-050 Prerequisite number 1 did not pass all checks. Please see
details above.
emgr: 0645-033 Error installing efix package.
+-----------------------------------------------------------------------------+
Operation Summary
+-----------------------------------------------------------------------------+
Log file is /var/adm/ras/emgr.log
EPKG NUMBER LABEL OPERATION RESULT
=========== ============== ================= ==============
1 HighCPU616 INSTALL FAILURE
Control sobre la instalacion de fileset
# lslpp -l |grep perfagent.server
#
Instalamos lo requerido vía NIM:
perfagent.server ALL ¦
¦ + 6.1.6.0 Performance Agent Daemons & Utilities ¦
¦ + 6.1.4.0 Performance Agent Daemons & Utilities ¦
Resultado:
Name Level Part Event Result
-------------------------------------------------------------------------------
perfagent.server 6.1.4.0 USR APPLY SUCCESS
perfagent.server 6.1.4.0 ROOT APPLY SUCCESS
perfagent.server 6.1.6.0 USR APPLY SUCCESS
perfagent.server 6.1.6.0 ROOT APPLY SUCCESS
perfagent.server 6.1.6.0 USR COMMIT SUCCESS
perfagent.server 6.1.6.0 ROOT COMMIT SUCCESS
Control sobre la instalacion de fileset
# lslpp -l |grep perfagent.server
perfagent.server 6.1.6.0 COMMITTED Performance Agent Daemons &
perfagent.server 6.1.6.0 COMMITTED Performance Agent Daemons &
#
Se intenta nuevamente instalar el eFix y nuevamente tiene salida 1
Se identifica que el problema, el cual es, tiene efix instalado que hacen referencia a los mismos
recueros que HighCPU616.120430.epkg.Z.
Se listan todos los eFix instalados
# emgr -l
Identificar los eFixLABEL y luego desinstalar
# emgr -r -L eFixLABEL
3. Reboot the machine. Though restart is the preferred method,
to clean up the shared memory used by the libSpmi you can do
the following steps as an alternative:
a) comment xmquery entry from /etc/inetd.conf
b) run "refresh -s inetd"
# refresh -s inetd
0513-095 The request for subsystem refresh was completed successfully.
Opcional al refresh
# stopsrc -s inetd & satartsrc -s inetd
c) make and run this script
#!/usr/bin/ksh
genld -l | grep -p Spmi | grep Proc | awk '{ print $2 }' | xargs kill ;
slibclean
for id in `ipcs -a | grep 0x78 | awk '{ print \$2 }' `
do
ipcrm -m $id
done
d) uncomment xmquery entry from /etc/inetd.conf
# vim /etc/inetd.conf
/xmquery
i
#xmquery
:wq!
e) run "refresh -s inetd"
# refresh -s inetd
0513-095 The request for subsystem refresh was completed successfully.