RHCE Exam - How to prepare??

WWN number for FC card in HP UX ?

Issue the command # ioscan -fnC FC

Get the device path for the desire FC.

e.g. /dev/fcd0

Issue the command

# fcmsutil /dev/fcd0

Look for the line below.

N_Port Port WWN:

That will be your WWN for that FC card


Root password reset in Linux

   1. Select the kernel
   2. Press the "e" key to edit the entry
   3. Select second line (the line starting with the word kernel)
   4. Press the "e" key to edit kernel entry so that you can append single user mode
   5. Append the letter "S" (or word Single) to the end of the (kernel) line
   6. Press ENTER key
   7. Now press the b key to boot the Linux kernel into single user mode
   8. At prompt type passwd command to reset password:

You need to mount at least / and other partitions:
# mount -t proc proc /proc
# mount -o remount,rw /

Change the root password,

# passwd

thenreboot system:

# sync
# reboot


Reset root password in HP UX

1.Boot the server into single user mode

 Interrrupt while booting the server

 HPUX> boot -is

2.mount /usr

3. If it is trusted system

 #/usr/lbin/tsconvert -r

4.Then reset the root password

#passwd root


# vi /etc/passwd
null the passwd field for root user.

5. If root user is locked then unlock using below command

#/usr/lbin/modprpw -k root

6. Once server is up in runlevel 3 again u need to convert as trusted systems




kernal bit in HPUX :How to check ?

How to check the kernal bit in HPUX ?

# getconf KERNEL_BITS


# file /stand/vmunix

O/P:- /stand/vmunix:  ELF-64 executable object file - PA-RISC 2.0 (LP64)


# getconf HW_CPU_SUPP_BITS

OS PID Trace: How to ?

In HP UX :

# tusc -afpo <output file> <PID> <executable>


# strace ,ktrace/kdump, ltrace

# strace -fo <output file> <executable>

In Aix:


#truss -aefo <output file> <executable>



Blogger Tips and TricksLatest Tips And TricksBlogger Tricks