Home
Up

adb adb /hp-ux
$>params.txt
$e
<ctrl> d
Puts params.txt into current directory Current kernel paramaters in hp-ux HP-UX
boot HP-UX ISL > hpux -is boot disc3(52.6.0;0)/hp-ux Boot into single user HP-UX
boot HP-UX ISL>hpux -lm especially if rootdg is corrupt Boot into maintenance mode HP-UX
chdev (AIX) chdev -L 'rmt0' -a block_size=1024 Make BOS boot tapes at 512 Change block size of a tape drive AIX
core HP-UX strings -n2 core | head
tail -c +145 core | head -1
What program core dumped under HP-UX HP-UX
dd dd if=/dev/rdsk/<old-disk> of=/dev/rdsk/<new-disk> bs=64k
fsck /dev/rdsk/<new-disk>
Copy HP-UX system disk HP-UX
dd remsh source_machine -l root -n /bin/dd if=/dev/rmt/0m bs=32k > /dev/rmt/0m Not tried this copy DATs across network using HPUX HP-UX
Format /usr/kvm/sys/scsi/targets/sddef.h
#define SD_FMT_TIME 180*60
Sets format time to be upto 3 hours.Modify file and reboot on rebuilt kernel How to format 9GB drive under SunOS SunOS
get_kgenfile /system/TOOL/get_kgenfile /hp-ux > /tmp/S800.new Recreate kernel file from running system HP-UX
hpterm echo "\033&f0k9DNew Title" example for Korn Shell
9 is number of characters in title
Change title bar dynamically HP-UX
HP-UX #include </usr/include/sys/pstat.h>
main()
{ struct pst_static buf;
pstat(PSTAT_STATIC, &buf, sizeof(buf), 0, 0);
printf("%1dMB\n", buf.physical_memory/256);
}
compile with cc hp-ux_memory.c -o hp-ux_memory C code to tell how much RAM installed in HP-UX machine HP-UX
rpm rpm -q -a   List installed packages on a Redhat Linux system RedHat
rpm rpm -e package-name   Remove a Redhat Linux package RedHat
 

© Andrew Marshallsay 2008