Friday, June 02, 2006

AIX

--------------------------------------------------------------------------------
LICENSES / SOFTWARE INSTALLATION
--------------------------------------------------------------------------------
lslicense Displays number of current user licenses
chlicense -u (number) Changes the number of user licenses
( ftp,rexec and rsh (without -i flag) do not need an AIX user license to be
able to access the system.

oslevel Returns operating system level

4 . 3 . 3 . 0 <--------- Preventive Maintenance Level

| | |

| | +----------------Modification

| +--------------------Release

+------------------------Version

oslevel -l 4.3.3.0 Displays all filesets that are "downlevel"

whence (program) Returns full path of program

whereis (program) Returms full path of program

what (program) Displays identifying info from the executable

like version number, when compiled.

lslpp -L all list all installed software

lslpp -L (program set name) Check if software installed

lslpp -f Lists filesets vs packages

lslpp -ha Lists installation history of filesets

lslpp -w /usr/bin/swapon Lists the fileset that the file belongs to

lppchk -c Checks file checksums against SWVPD

lppchk -l Checks symbolic links against SWVPD

instfix -ik (fix number eg IX66617) Checks id fix is installed

instfix -ik 4330-02_AIX_ML

instfix -i | grep ML Displays all ML's installed

instfix -k IX38794 -d /dev/cd0 Installs a fix from cdrom

/usr/sbin/install_assist Smitty Installation Assistant

/usr/sys/inst.images/sys.bundles Software bundle files

alt_disk_install -c hdisk1 Clones a running rootvg onto hdisk1

alt_disk_install -w Wakes up alt vg

alt_disk_install -s Sends alt vg to sleep !

alt_disk_install -x Removes alt vg from disk

/usr/lpp/bosinst/blvset -d /dev/hdisk0 -p 4.2

Resets the pad string in the BLV to the correct AIX version. Needed if the migration option is missing when installing.

installp -ad (device) (fileset) (level) Install apply and commit fileset

installp -pad (device) (fileset) (level) Preview install

installp -u (fileset) Remove fileset

installp -ld (device) List all software on device

example:-

installp -pad /dev/rmt0 X11.base 4.3.3.0

installp -C Cleans up after a premature cancel or interrupted installation.

Thursday, June 01, 2006

AIX

sampah sampah yang berguna.

compress -c file.txt > file.Z Create a compressed file.
uuencode (infile) (extract-file-name) > (output file)
Converts a binary file to an ASCII file for transfer by modem or email
uudecode (encoded file)
Extracts a binary file from encoded file and calls it the extract-file-name
examples :-
uuencode maymap maymap > maymap.enc
uudecode maymap.enc


od -c /tmp Displays contents of the /tmp directory file
ls -i Lists files with their inode numbers
echo * Lists files, can be used if ls is corrupt/missing

chtz (timezone eg GMT0BST) Changes the timezone in /etc/environment file
chlang (language eg En_GB) Changes the language in /etc/environment file

ar -v -t (archive file) List contents of an archive
ar -v -x (archive file) Extracts the archive
ar -v -t /usr/lib/libC-r.a Lists contents of the libC_r.a library

find /source -print | cpio -pdm /target
Copying directories using cpio, creates /target/source directory.

dump -nTv (binary executable) Displays the contents of an executable file
dump -c Displays string information
dump -o Displays object file headers
dump -l Displays line numbers
dump -s Displays the text section

snap -ao /dev/rmt0 Create a snapshot onto tape
snap -ad (directory) Create a snapshot into a named directory other
than the default (/tmp/ibmsupt)

/usr/dt/bin/dtconfig -d Disables desktop logins
/usr/dt/bin/dtconfig -e Enables desktop logins
/var/dt/Xpid PID of the dtlogin process



Wednesday, May 03, 2006


HPUX

Recovering from a hung system

Use the following procedure to force a crash dump on a hung HP-UX system:

1. From the system console, press Ctrl-B
2. Press Enter twice
3. Enter tc
4. Enter Y
5. A system crash file will appear in /var/adm/crash or the SAVECORE_DIR directory in /etc/rc.config.d/savecore (HP-UX 10.x) or SAVECRASH_DIR in /etc/rc.config.d/savecrash (HP-UX 11.00).

Friday, April 21, 2006


Riezal, your true color is Black!

Your true color is Black!

Your color is black. The color of night. Serene and mysterious, black conjures up images of elegant evening gowns, dashing tuxedos, and gleaming limousines. Traditionally a symbol of success, black also represents power and an uncompromising demand for perfection. Not surprisingly, you tend to set challenging goals for yourself and do whatever it takes to achieve them — your strength of character is second to none. This unfaltering determination, along with your natural elegance, impresses people. But keep in mind that your personality might be intimidating to some. Try to temper your demanding side with a little softness — trust us, it won't kill you. Overall, though, black is the color of professionalism and achievement, which means it's clearly the color for you.