Console

HP console

If the systems hangs do not turn off power but:

<CTRL>B
Enter Console mode
CM> TC
Transfer Control, force a memory dump to swapspace, then the system reboots. If swap-space and filesystem have sufficient room the memorydump is written to /var/adm/crash.
CM> RS
ReSet, don’t do this if you need a memorydump.
CM> HE
Help, show what is possible

BOOT

boot can be interupted with <ESC>

BOOT_ADMIN> secure on/off
Turn the boor interuption possibility on/off, if it is on you can only interup boot bij bootin without any boot device (pull cables from
disks and network).
BOOT_ADMIN> setboot –b on/off
autoboot aan/uit
BOOT_ADMIN> setboot –s on/off
Search on/off
BOOT_ADMIN> boot pri isl
Boot from primary path and stop for ISL
ISL> hpux boot disc(hwpath;0)/stand/vmunix
here you can have the system booted with another (old) kernel
ISL> hpux -is boot
Boot in single user mode
ISL> hpux -lq
Ignore querom, booten using one mirror, durng normal boot the quorum is 51% of all diskspace.
ISL> hpux -lm
Boot in maintenance mode

If booting from CDROM you can leave the recovery-menu and use:

chroot_lvmdisk
root filesystem wordt onder /ROOT gemount.

# cd /ROOT

chroot /ROOT /sbin/sh
Start a shell in which /ROOT is your / filesystem
vgchange oa y /dev/vg00
Activate other fiesystems

Recovery shell

Rebuild LIF and/of put files for boot on systeem, already existing files are saved as *BK

make_recovery
(HP-UX ignite-ux) Make recovery tape, LIF + minimal HP-UX, you can put VG00 on tape if you want to.

SUN Console commando’s

CRTL-A brings you to the EEPROM interface called OpenBoot prom, aka the OK prompt. Here you can use:

OK> printenv
Display settings
OK> setenv [variabele] [value]
Set an EEPROM variable, NOTE: if printenv shows a ‘?’ you should enter it wit setenv as well.
OK> setenv auto-boot? false
Turn off auto-boot
OK> setenv local-mac-address? true
Make ethernet ports have their own MAC-address. Some systems use a single MAC-address for all ports. you need this if you have more ports connected to the same switch. Not having different addresses will confuse arp a lot and may hang the system.
OK> nvalias mydisk /sbus@1f,0/SUNW,fas@e,8800000/sd@2,0:a
Create a device-alias.Device-name are build like:

sbus@1f,0
Bus device, sbus is SUNS propietary bus
SUNW,fas@e,8800000
Controler by name
sd@2,0:a
sd (SCSI DISK) on target 2, LUN 0 and partition a (first partition)
OK> boot
Boot from e.g. boot net, boot disk
OK> boot -srv
Boot in single user mode (-s), reconfig (-r) and be verbose (-a), Device files are created (do this if hardware has changes, see probe-scsi-all).
OK> boot cdrom
Boot from cdrom
OK> show-disks
Show found disks
OK> show-devs
Show all found devices
OK> probe-scsi-all
Find all SCSI devices (do this if SCSI hardware has changed)
OK> reset-all
Reset all connected hardware
OK> set-defaults
Set all NVRAM values to default
OK> test net
Test network connection
OK> test-all
Test all connected hardware
# eeprom
Interface to EEPROM variables from Unix prompt.

NVRAM parameters

diag-switch?
TRUE -> extended diagnostics during system boot
autoboot?
TRUE -> Solaris boots if system is powered on
FALSE -> System waits at OK> prompt after power on
bootdisk
Define which device is boot-disk

SC commands

Sun systems have a System Controller that can be used to manage the domains (servers) defined on this hardware.

SC> poweroff
Poweroff a domain, do this if you want a hard reset
SC> console
Connect to the console (ok-prompt) of a domain

PC’s and MS-Windows

OK, not really Unix but there are a few things I want to remember though.

dd if=/dev/hda of=MBR.bck bs=512 count=1
Copy the MasterBoorRecord. You need this if e.g. an Ubuntu installation fucked it up and you only get a ‘GRUB error 18’ after your installation. It copies the first 512 bytes of disk /dev/hda to MBR.bck, to be restored by exchanging if and of. You have to boot a *nix OS to be able to do this.
bdcedit
Check the Windows Boot Area. A wubi installation will put an extra entry in here.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.