history command
In your .profile put in the following. YOu can have your HISTSIZE as large as you want. It will be put in your HISTFILE /.sh_history # Set command history HISTFILE=/.sh_history export HISTFILE HISTSIZE=2000 export HISTSIZE
device busy
for the filesystem you want to unmount, do fuser -cu /mount_pount this will list the users currently using the mount point. If you cannot logout those users, do fuser -ck /mount_point Sometimes processes do not show under ‘fuser /filesystem Try using ‘fuser /dev/vgXX/lvolX’ Best thing is to use the logical volume name instead of the […]
which boot disk
to see which boot disk you booted from: echo ‘boot_string/s’ | adb /stand/vmunix /dev/mem setboot
unlock id
to fix the problem you can run /usr/lbin/modprpw -k -l root, but follow the above suggestions to find out why the account was disabled /usr/lbin/modprpw -k -l userid
memory
1) Log-on as manager.sys 2) :cstm 3) cstm>map (looks toward th end) Dev Last Last Op Num Path Product Active Tool Status === ===================== 1 system system () …() 31 8 MEMORY (9b) 32 160 CPU (5d6) 4) cstm>sel dev 31 5) cstm>info 6) cstm>infolog Or echo “selclass qualifier memory;info;wait;infolog” | /usr/sbin/cstm echo “selclass qualifier […]
Mem Hog
UNIX95= ps -e -o “user,vsz,pid,ppid,args” | sort -rnk2 | head ———– #!/bin/sh # memtop – show top memory users and pid # VSZ is in KB # echo “VSZ(KB) PID RUSER COMMAND” UNIX95= ps -e -o ‘vsz pid ruser args’ |sort -nr|head -30 Then this one for a process: # cat processmem #!/bin/sh # processmem […]
Help My Filesystem Is Full
KBAN00000217 Help! My Filesystem is Full (10.xx) Document Information Table Help! My Filesystem is Full (10.xx) DocId: KBAN00000217 Updated: 20000824 DOCUMENT +—————————————————+ | 10.X Filesystem Full Information | +—————————————————+ filesystem is full filesystem is full filesystem is full filesystem is full … Oh, oh! It seems there are only two type of HP-UX system administrators: […]
Lvm notes
################################################################ ################################################################ ################################################################ pvcreate – create physical volume for use in LVM volume group vgcreate – create LVM volume group # pvcreate /dev/rdsk/c5t10d0 # mkdir /dev/vg01 # mknod /dev/vg01/group c 64 0x010000 # check with ll /dev/*/group # vgcreate /dev/vg01 /dev/dsk/cxtydz # with options. or more the one disk vgcreate /dev/vg01 /dev/dsk/cxtydz /dev/dsk/cxtydx lvcreate – […]
cpu info
#echo “selclass qualifier cpu;info;wait;infolog” | cstm ; /tmp/cpuinfo
which ignite build
/var/opt/ignite/local/install.log look for: * Loading_software: Begin * Installing boot area on disk. * Formatting HP Service Partition. * Enabling swap areas. * Backing up LVM configuration for “vg00”. * Processing the archive source (HP-UX Core Operating System Archives). * Thu Jun 29 12:04:03 EDT 2006: Starting archive load of the source (PBSG Enterprise Build for […]