Remove entries from the lpp class
=================================
ODMDIR=/usr/lib/objrepos
odmget -q “name=bos.net.nfs.client” lpp

ODMDIR=/usr/lib/objrepos
odmdelete -o lpp -q “name=bos.net.nfs.client”

ODMDIR=/usr/lib/objrepos
odmget -q “name=bos.net.nfs.client” lpp
Remove entries from the product class
=====================================
ODMDIR=/usr/lib/objrepos
odmget -q “lpp_name=bos.net.nfs.client” product

ODMDIR=/usr/lib/objrepos
odmdelete -o product -q “lpp_name=bos.net.nfs.client”

ODMDIR=/usr/lib/objrepos
odmget -q “lpp_name=bos.net.nfs.client” product
Remove entries from the vendor class
====================================
ODMDIR=/usr/lib/objrepos
odmget -q “GUID=bos.net.nfs.client” vendor

ODMDIR=/usr/lib/objrepos
odmdelete -o vendor -q “GUID=bos.net.nfs.client”

ODMDIR=/usr/lib/objrepos
odmget -q “GUID=bos.net.nfs.client” vendor
Remove entries from the history class
=====================================

ODMDIR=/usr/lib/objrepos
odmget -q “lpp_id = ID ” history

ODMDIR=/usr/lib/objrepos
odmdelete -o history -q “lpp_id = ID ”

ODMDIR=/usr/lib/objrepos
odmget -q “lpp_id = ID ” history
Remove entries from the inventory class
=======================================
ODMDIR=/usr/lib/objrepos
odmget -q “lpp_id = ID ” inventory

ODMDIR=/usr/lib/objrepos
odmdelete -o inventory -q “lpp_id = ID ”

ODMDIR=/usr/lib/objrepos
odmget -q “lpp_id = ID ” inventory

FIXING FILESETS: (GENERAL)
=========================

Step 1: save ODM
tar -cvf /tmp/odm.tar /etc/objrepos /usr/lib/objrepos

Step 2: check lpp_id
odmget -q name=bos.net.nfs.client lpp

Step 3: delete from /etc/objrepos (lpp,product, history, inventory) (check odmdir: echo $ODMDIR)
export ODMDIR=/etc/objrepos
odmdelete -q name=bos.net.nfs.client -o lpp
odmdelete -q lpp_name=bos.net.nfs.client -o product
odmdelete -q lpp_id=”200″ -o history
odmdelete -q lpp_id=”200″ -o inventory

Step 4: delete from /usr/lib/objrepos (lpp,product, history, inventory) (check odmdir: echo $ODMDIR)
export ODMDIR=/usr/lib/objrepos
odmdelete -q name=bos.net.nfs.client -o lpp
odmdelete -q lpp_name=bos.net.nfs.client -o product
odmdelete -q lpp_id=”200″ -o history
odmdelete -q lpp_id=”200″ -o inventory

export ODMDIR=/etc/objrepos (sets back ODMDIR to its original value)
check lppchk -v if it is OK now

Step 5: (if needed) reinstall base fileset with force flag (then update)
installp -aF -d /home/bb/bb1 all
or
update to the required level

FIXING FILESETS: (SPECIFIC:bos.rte.printers)
============================================
A fileset is in Broken state and no Base install fileset has been found (so we could not do a force install)
(We had a good base fileset, and a failed updated fileset.)

Plan: Clean up from ODM the failed updated fileset, then update again.)
1. lppchk -v shows:
bos.rte.printers 5.3.10.1 (BROKEN)

2. checking where is it broken:
lslpp -lc | grep bos.rte.printers
/usr/lib/objrepos:bos.rte.printers:5.3.10.1::BROKEN:F:Front End Printer Support:
/etc/objrepos:bos.rte.printers:5.3.8.0::COMMITTED:I:Front End Printer Support:

3. backing up ODM:
tar -cvf /tmp/odm.etc.tar /etc/objrepos
tar -cvf /tmp/odm.usr.lib.tar /usr/lib/objrepos

4. checking fileset in the ODM (ODMDIR is set here /etc first):
odmget -q lpp_name=bos.rte.printers product odmget -q lpp_name=bos.rte.printers lpp

5. export ODMDIR=/usr/lib/objrepos

6. now checking the ODM in /usr/lib/objrepos:
odmget -q lpp_name=bos.rte.printers product

7. final check to identify the corect entry what we need to delete (mod=10)
odmget -q “lpp_name=bos.rte.printers and mod=10” product <–mod=10 is the updated version
odmget -q “lpp_name=bos.rte.printers and mod=8” product <–mod=8 is the base version

8. deleting from ODM:
odmdelete -o product -q “lpp_name=bos.rte.printers and mod=10”

9. after that update was OK:
smitty update_all

10. setting back ODMDIR (no problem if omitted):
export ODMDIR=/etc/objrepos

Advertisements