Home
|
UNIX
|
Practical
Some notes and tips on maintaining AIX systems
Shutdown
To restart the machine,
shutdown -Fr
SMS utilities console
To access the SMS utilities console, press 1 or F1 when the keyboard is being recognized.
Note press Shift+1 on azerty keyboards (french one here).
Checks
Make sure the postinstall wizard is deactivated. It may still be in /etc/inittab,
vi /etc/inittab
Check maintenance/technology level,
oslevel -s
instfix -i | grep ML
Check packages' consistency,
lppchk -v
Note if you get errors, do some digging e.g., THAT's JUST HINTS & EXAMPLES,
lslpp -L all | grep cpio
lslpp -lc
lslpp -l "*cpio*"
lslpp -hc | grep cpio
lppchk -vm3
installp -pv dvices.common.cpio.rte
It may be an ODM inconsistency which may be fixed e.g., THAT's JUST HINTS & EXAMPLES,
echo $ODMDIR
(cd /etc/obm/)
(cd /usr/lab/objx/)
(cd /etc/objrepos/)
obmget product
obmget lpp
odmget -q lpp-name="devices.common" product
odmdelete -o product -q lpp-name="nom entrée"
(obmdelete -o product -q lppname "nom entrée")
obmdelete -o product -q "nom entrée"
Proceed with some updates doing,
smit update_all
If new packages are working fine, validate them (and prevent going backwards) using smit.
Check for Hardware errors
errpt lft0
errpt > errpt.txt
errpt -a > errpta.txt
Note the dates, latest is at top, if I remember correctly.
hd5
Sometimes if the bootlv is outside the first 4gb of disk this can happen. It's worth a try to do the following. Boot into maintenance mode, mount the filesystems and type the following,
rmlv hd5
mklv -t boot -y hd5 -a e rootvg 1 hdisk0
bosboot -ad /dev/hdisk0
Then reboot.
Refs.
Update
lppchk -v
errpt -a
smitty update_all
#shutdown -Fr
Security
Try this command,
aixpert
and check into security/aixpert,
ls -l /etc/security/aixpert