HP LD_LIBRARY_PATH is SHLIB_PATH for HP-UX #get serial number and lots of other system info (cpus, memory) /usr/contrib/bin/machinfo -v set network and system stuff /etc/rc.config.d model hostid == /var/lum/i4target ioscan [-funC [lan,disk] /usr/sbin/diskinfo -v /dev/rdsk/c3t0d0 ls -l /dev/lan* /sbin/bcheckrc swapinfo -mat crashconf showmount swlist -l product | grep "HP-UX OS" # oslevel/release bdf ps -elP ps -o args export UNIX95="" ps -ef -o pid,args netstat -I lan0 rsh == remsh (rsh is "restricted shell") sysdef lsdev mksf /etc/rc.config.d lssf lvlnboot -v -d /dev/vg00/lvol2 lanscan, lanadmin ifconfig errors: lanadmin lan display lanscan -i lanadmin -x $INSTANCE_NUMBER # lists ethernet settings snapshownet singlueser maint: key to wrench, ^b dmesg Virtual interface lanscan netstat -win | awk '/:/ {print $1}' | sed -e 's/*//' ifconfig $LAN ifconfig lan5 /sbin/ifconfig lan5:1 netmask 255.255.255.0 10.1.1.30 /sbin/ifconfig lan5:1 down SIZE/SPEED /usr/contrib/bin/machinfo -v CPU: echo itick_per_usec/D | /usr/bin/adb -k /stand/vmunix /dev/kmem Proc: echo runningprocs/D | /usr/bin/adb -k /stand/vmunix /dev/kmem Mem (in MB): echo phys_mem_pages/D | /usr/bin/adb -k /stand/vmunix /dev/kmem /usr/sbin/dmesg | grep -i Physical physical page size = 4096 bytes, logical page size = 4096 bytes Physical: 65536 Kbytes, lockable: 45424 Kbytes, available: 55384 Kbytes This system has 65536/1024 = 64 megabytes of memory. RAM/memory: dmesg | grep Physical Paging: swapinfo -mat disks: ioscan -C disk, /usr/sbin/diskinfo -v /dev/rdsk/c3t0d0 vg: vgdisplay -v catvg | grep Size | awk '{sum += $4} END {print sum}' #get veritas to see new disks ioscan -fnC disk insf -C disk vxdctl enable lvdisplay pvdisplay vgdisplay vgdisplay -v vg00 lvlnboot -v [/dev/vg00] lifls -Clv /dev/dsk/c0t0d0 /sbin/set_parms [netwrk|addl_netwrk] system_prep -s system mk_kernel -s system swinstall, swcopy, swremove, swconfig, swverify, swreg, swlist swinstall -s ignitep1:/var/opt/ignite/Software swinstall -s /tmp VRTSvcse swlist -l product NAME swlist -l product | grep "HP-UX OS" swlist -l bundle HPUX11i-* swlist | grep "Gold Base" swlist -l product FC-TACHYON-TL swlist -l product | grep "Fibre Channel Driver" swlist -l product EMCpower Get serial number cstm >map >sel dev 1 >info >il q >usal >q ================================================================================ Lost Root password reboot machine  ---------------------------------------------------- MP MAIN MENU: CO: Console VFP: Virtual Front Panel CM: Command Menu CL: Console Log SL: Show Event Logs CSP: Connect to Service Processor SE: Enter OS Session HE: Main Help Menu X: Exit Connection ---------------------------------------------------- cm rs exit co watch screen Processor is booting from the first available device. To discontinue, press any key within 10 seconds. after self test you have about a 10 sec window to stop boot process Stop it You then come to a prompt, type in "bo" for boot Question will pop up with Interact with IPL, answer "Yes" You will come to a prompt, "hpux -is" You will come to a prompt where you will be able to change the password. ================================================================================ As noted previously, you can halt the server autoboot process and redirect the boot process to boot from the desired media device. To do so, press any key during the autoboot process to display a Main Menu similar to the following: Newer Server Boot Menu Figure 3-5. Title not available (Booting HP 9000 Servers) ----------------------- Main Menu ------------------------------------ Command Description -------- BOot [PRI|ALT|] Boot from specified path PAth [PRI|ALT] [] Display or modify a path SEArch [DIsplay|IPL] [] Search for boot devices COnfiguration menu Displays or sets boot values INformation menu Displays hardware information SERvice menu Displays service commands DIsplay Redisplay the current menu HElp [|] Display help for menu or command RESET Restart the system --------- Main Menu: Enter command or menu > The capital letters in each command represent the minimum characters (mnemonics) you need to type in order to launch that command. 1. You will need to determine the boot device that contains the CORE tape or CD-ROM. It is common that the Alternate Boot Device is set to a boot device. If this is the case, you can simply use the following command: bo alt 2. If you want to search for available boot devices, type: search (or the appropriate abbreviated command, as shown). A typical output might look like the following Newer Server Search Results Figure 3-6. Title not available (Booting HP 9000 Servers) ----------------------------------------------------------------- Searching for potential boot device. This may take several minutes. To discontinue, press any key. Path Number Device Path Device Type - - - P0 56/52.0 (dec) Seq. record access media P1 56/52.3 (dec) Seq. record access media P2 56/52.4 (dec) Random access media P3 56/52.6 (dec) Random access media Main Menu: Enter command or menu > ----------------------------------------------------------------- For example, type "bo pn" where "pn" is the path number for the install device shown in the search output. You can also specify the device by the hardware path, such as "56/52.0", in place of the path number. ================================================================================ #MULTIPLE REBOOTS mkdir /tmp/EMC cd /tmp/EMC cp /tmp_mnt/EMC/PowerPath/PowerPath4.3/hpux/EMCPower.HP.4.3.0.tar.Z . uncompress EMCPower.HP.4.3.0.tar.Z swinstall -x autoreboot=true -x mount_all_filesystems=false \ -s /tmp/EMC/EMCPower.HP.4.3.0.tar EMCpower #*** REBOOT - automatically occurs *** mount nimserver:/depot/Software/UNIX /tmp_mnt mkdir /tmp/EMC cd /tmp/EMC cp /tmp_mnt/EMC/PowerPath/PowerPath4.3/hpux/EMCPower.HP.4.3.1.Patch.b040.tar.Z uncompress EMCPower.HP.4.3.1.Patch.b040.tar.Z swinstall -x autoreboot=true -x mount_all_filesystems=false \ -s /tmp/EMC/EMCPower.HP.4.3.1.Patch.b040.tar \ EMCpower_patch431 #*** REBOOT - automatically occurs *** #Single reboot mkdir /tmp/EMC cd /tmp/EMC cp /tmp_mnt/EMC/PowerPath/PowerPath4.3/hpux/EMCPower.HP.4.3.0.tar.Z . cp /tmp_mnt/EMC/PowerPath/PowerPath4.3/hpux/EMCPower.HP.4.3.1.Patch.b040.tar.Z uncompress EMCPower.HP.4.3.0.tar.Z uncompress EMCPower.HP.4.3.1.Patch.b040.tar.Z swcopy -s /tmp/EMC/EMCPower.HP.4.3.0.tar EMCpower @/tmp/PPdepot swmodify -alayout_version=1.0 @ /tmp/PPdepot swcopy -s /tmp/EMC/EMCPower.HP.4.3.1.Patch.b040.tar \ EMCpower_patch431 @/tmp/PPdepot swinstall -x autoreboot=true -x mount_all_filesystems=false \ -s /tmp/PPdepot EMCpower EMCpower_patch431 #*** REBOOT - automatically occurs *** ================================================================================