Monday, August 13, 2007





HPUX


mau check how many bits? mode mana working on 32-bit or 64-bit

getconf KERNEL_BITS


locale info main nyorok2 dalam?

/usr/lib/nls/README.nls.10.0

To Copy sw depots from a remote system

swcopy -s @ localsystem:/

eg:

swcopy -s dumpy.abc.com:/swdist/IPF/mentibang-laut-source @ kaldai.abc.com:/kaldai


install software from a remote machine

swinstall -s

Example:

swinstall -s cipan.abc.com:/home/cipan/add_to_be/11.00/aCC.3.37.01.depot

nak list entries : swlist -s

nak preview installing software : swinstall -p -s

bedal install the software : swinstall -s


Enable/disable file system mounting for swinstall

swinstall, like HP-UX, assumes that every mounted disk is crucially

important to the running of the system. If it isn't important, it

should not be mounted. You've probably already seen the hangs with bdf

and logins when an NFS servicer fails. You can override the requirement

that everything in /etc/fstab must be mounted with the swinstall option:

-x mount_all_filesystems=false


nak create shared library in HPUX

cc -b +z test.c -o libtest.sl

+z - Generate Position Independent Code (PIC)

-b - Generate shared library

8. To find out machine information

Use the command:

/opt/ignite/bin/print_manifest on IA or PA

Only on IA

machinfo


nak check physical memory

a) grep Physical /var/adm/syslog/syslog.log

Works for any user

b) /usr/sbin/dmesg | grep Physical

untuk root


To tune kernel paramaters

Use /usr/sbin/kmtune OR

/usr/sbin/kctune


Tuning network paramaters

------------------------

- tcp_time_wait_interval

Set the value to 1 second:

# ndd -set /dev/tcp tcp_time_wait_interval 1000

- tcp_fin_wait_2_timeout

Set the value to 10 minutes:

# ndd -set /dev/tcp tcp_fin_wait_2_timeout 6000000

These settings need to be defined whenever the system is re-booted.

To do this update /etc/rc.config.d/nddconf with the required

parameter as shown in the following example:

TRANSPORT_NAME[0]=tcp

NDD_NAME[0]=tcp_time_wait_interval

NDD_VALUE[0]=1000

TRANSPORT_NAME[1]=tcp

NDD_NAME[1]=tcp_fin_wait_2_timeout

NDD_VALUE[1]=600000



Why do I get a malloc error during swremove?

* Session selections have been saved in the file

"/.sw/sessions/swremove.last".

ERROR: "hpomt1:/": Could not allocate memory on this remote host

during task initialization, analysis or execution -- malloc()

failed.

* The analysis phase failed for "hpomt1:/".

* Analysis had errors.

While removing softwares, the following two rules must not be broken:

1. no patch left on the system without its base

2. under a no-rollback situation, a patch cannot be removed without also removing its base.

this generally happens if a path removal is tried after removing Base product


To remove a particular revision when multiple revisions are present

To remove a particular revision of software, when multiple revisions are present:

swremove ,r="revision"

eg: swremove keldai,r="4.51.000"


How can I change the timezone?

The timezone is dtermined by reading the 'TZ' environment variable.

This variable is set when you execute 'set_parms timezone'. Set_parms

edits the file '/etc/TIMEZONE,' which exports the 'TZ' environment

variable. When you reboot after executing set_parms, the file

/etc/TIMEZONE will be read and your TZ variable set to the value you

specified. The value is in the format:

[:]STDoffset[DST[offset][,rule]]

For example: PST8PDT for the U.S. Pacific Time Zone

See the environ(5) manpage for a detailed description of the format.

Note, the offset for daylight savings time is supplied by the

'/usr/lib/tztab' configuration file.

libc functions like ctime use the 'TZ' variable to determine the


To Fix the compiler crash with error

Error (internal problem) 7108: Exact position unknown; near ["../../test.cpp", line 1033]. # The value 0x22ec did not fit into a signed 14 bit field at offset 0x99dc (op code - MOVB) (7108)

Apply patch: PHSS_29483

16. Downgrading a software

swinstall -x allow_downdate=true -s $PWD/ \*




Sunday, August 12, 2007



Hmm.. currently im at the office.. can't sleep since just now i have already bantai sleeping di siang hari.looks like husaini is on call for tonite.. check on my team member too for unix .. nik and hisham is working tonite

Nothing much that i do today.. as usual, i was on-call for last night and worked until morning at 8.30.Then went back to my apartment at Damansara drop by near food stall bought some food and cigarettes.kinda sleepy.. so after eat, had a smoke.. while waiting for the food to be digest :) then daaabossh.. i slept until 5 and woke up.. took a bath.. straight went to jusco to to buy some ingredients to cook for tonight.. end up buying some pregio spagetthi and a bottle of pregio spagethi Garlic and onion sauce.So cooked and eat.. while watching some sort of new show on TV3 called bang bang boom and then called up Ieda.. chit chat a while.. then.. here i am.. at the office again :). no idea .. what to blog.. oh yaa.. tommorow gonna try the self service laundry shop at my place.. that was recommended by syg.. .. gonna check it out..

ok.. gonna chow.. cyaaa..
I'M STILL ALIVE!

salam to my blog that i have left for such a long time... just want you to know that youre not being abandoned.It just that i have stop blogging for a while in a search for a happiness in my work , my life.During the process i have started back blogging ... not at blogspot.. but 360.So perhaps i will start continuing blogging back at the first blog that ive started blogging.This is going to be my new chapter of my life.Alhamdulillah i thanked you Allah for still letting me live up until now to pursue my dream and happiness.I thanked you for that.. Allah hu a'kbar.

Monday, July 02, 2007

AIX

--------------------------------------------------------------------------------

PAGING SPACE (PS's)

--------------------------------------------------------------------------------

lsps -a Lists out all paging space

lsps -s Displays total paging and total useage

lsps (ps)

swappon /dev/ps Activates a paging device eg /dev/paging00

swappoff /dev/ps Deactivates a paging device ( AIX 5.x only

mkps -s(No of PP's) -n -a (vg)

mkps -s(No of PP's) -n -a (vg) (pv)

-n = don't activate/swapon now -a = activate/swapon at reboot

mklv -b n -t paging -y hd6 (vg) (No of PP's) (pv)

Creates paging space using the mklv command.

chps -a n (ps) Turns off paging space.

chps -s(No of PP's) (ps) Increases paging space.

chps -d(No of PP's) (ps) Decreases paging space ( AIX 5.x only

chlv -n (new name) (old name) Change paging space name

rmps (ps) Remove paging space. PS must have been turned off

and then the system rebooted before it can be removed.

Note : Need to change the swapon entry in /sbin/rc.boot script if you are

changing the default paging space from /dev/hd6. You also need to

do a "bosboot -a -d /dev/hdiskx" before the reboot.

/etc/swapspaces File that lists all paging space devices that are

activated/swapon during reboot.

--------------------------------------------------------------------------------

SCHEDULING

--------------------------------------------------------------------------------

crontab -l List out crontab entrys

crontab -e Edit crontab entrys

crontab -l > (filename) Output crontab entrys to a file

crontab (filename) Enter a crontab from a file

crontab -r Removes all crontab entrys

crontab -v Displays crontab submission time.

/var/adm/cron/cron.allow File containing users allowed crontab use.

/var/adm/cron/cron.deny File containing users denied crontab use.

/var/adm/cron/crontab Directory containing users crontab entries.

/var/adm/cron/log Cron log file.

at (now + 2 minutes, 13:05, etc) {return} Schedule a job using at

Command or schell script {return}

{CTRL D}

echo "shutdown -Fr" | at now + 1 minute

at -l

atq Lists out jobs scheduled to run via at command

at -r (at job No)

atrm (at job No) Removes an at job scheduled to run.

/var/adm/cron/at.allow File containing users allowed at use.

/var/adm/cron/at.deny File containing users denied at use.

/var/adm/cron/atjobs Directory containing users at entries.

--------------------------------------------------------------------------------

SECURITY

--------------------------------------------------------------------------------

nulladm /var/adm/wtmp To recreate/clear down the wtmp file.

groups Lists out the groups that the user is a member of