Вы находитесь на странице: 1из 3

You can use the following monitor commands at the monitor prompt for booting and basic troubleshooting.

However, most vPars operations should be performed using the vPars shell commands. Note the following for the monitor commands: Unless specifically stated, all operations occur only on the boot disk from whic h the monitor was booted. Usually, this is the boot disk of the primary path ent ry in system-wide stable storage. Further, the monitor can traverse only HFS file systems. Usually, the only HFS f ile system is /stand. Except for the vparload command, an alternate disk device cannot be specified us ing the monitor commands. The following monitor commands are disabled when one or more virtual partitions are up: o getauto, lifls, and readdb. The following monitor commands are disabled when the partition that owns the dis k from which the monitor was booted, usually the primary path, is up: o ls and cat. Booting readdb filename reads an alternate partition database filename for partition configuration infor mation filename must be an absolute path and reside on a HFS file system. Example: o If you have a backup copy of the partition database in the file /stand/v pdb.backup, you can read the database configuration information using: MON> readdb /stand/vpdb.backup Note: o This command can only be used when the monitor /stand/vpmon is booted an d the default partition database (/stand/vpdb) does not exist, the alternate par tition database as specified in the -p option of /stand/vpmon does not exist, or the database file read is corrupt. For information on when the monitor is boote d, see Boot Sequence. For more information on the -p option, see Booting the vPars Monitor. vparload -all vparload -auto vparload -ppartition_name [-bkernelpath][-oboot_options][-Bhardware_path] boots the virtual partition partition_name; this command is similar to the vPars Unix shell command vparboot. -all boots all virtual partitions, regardless of the autoboot attribute. For more information on the autoboot attribute, see the vparcreate(1M) or vparmodify (1M) manpages. -auto boots all virtual partitions that have their autoboot attribute flag set to AUTO. -bkernelpath boots the virtual partition using the kernel kernelpath, such as /stand/vmunix.prev, instead of the default kernel /stand/vmunix. -oboot_options boots the virtual partition using the options boot_options, such as -is for single-user mode or -lm for LVM maintenance mode. -B hardware_path boots the virtual partition using the disk device at the hardware_path Examples: o To boot the partition winona2 into single-user mode: MON> vparload -p winona2 -o "-is" o To boot the partition winona2 using the kernel /stand/vmunix.other: MON> vparload -p winona2 -b /stand/vmunix.prev o To boot the partition winona2 using the disk device at 0/8/0/0.2.0: MON> vparload -p winona2 -B 0/8/0/0.2.0 Note:

o -bkernelpath allows you to change the target kernel for only the next bo ot of partition_name. If you wish to make a permanent change to the partition da tabase, use the vparmodify command. For example, to change the partition database information so that winona2 always boots using /stand/vmunix.other: # vparmodify -p winona2 -b /stand/vmunix.other See the vparmodify(1M) manpage for more information on modifying the partition d atabase. reboot reboots the entire computer. cat filename [openonly] displays the contents of filename. When openonly is specified, this command only prints "open succeeded" if the monitor was able to open the filename. This comm and is similar to the Unix cat command. filename must be a text file on an HFS file system. /stand is the default directory Example: o To display the file /stand/notes.txt MON> cat notes.txt 10/13/2001: built new kernel today. if problems arise, revert to saved kernel vm unix.original cbuf partition_name displays the contents of the console buffer of partition_name help help or ? lists all monitor commands lifls lists the files in the LIF area getauto displays the contents of the AUTO file in the LIF area Example: o MON> getauto hpux /stand/vpmon log displays the contents, including warning and error messages, of the monitor log. The monitor log holds up to 16KB of information in a circular log buffer. The i nformation is displayed in chronological order. ls [-alniFH][directory] lists the contents of directory. This command is similar to the Unix ls command. directory must be on a HFS file system. /stand is the default directory The ls command-line options are the same as the Unix shell lsoptions. For detail ed explanations, see the ls(1M) manpage. In brief: -a all entries -l long listing -n numerical UIDs and GIDs -i inode -F appends a character after the entry, depending on the file type, such as a / (slash) for a directory For example, to view the listing of files in winona2's /stand directory: MON> ls /stand lost+found system.d kernrel vmunix.backup vpdb.backup scan

ioconfig vmunix rootconf system.prev vpmon

bootconf system dlkm.vmunix.prevbuild vpdb vpmon.dmp vmunix.prev dlkm

lists all hardware discovered by the monitor and indicates which partition owns each device. toddriftreset resets the drifts of the real-time clock. Use this command if you reset the real -time clock of the computer at the BCH prompt. For brief information, see ???. vparinfo [partition_name] when no partition_name is given, vparinfo displays all unassigned resources and the names of all existing partitions; when partition_name is given, vparinfo dis plays the resources assigned to partition_name. You can specify any of the monitor commands either at the monitor prompt (MON>) or at the ISL prompt (ISL>). If you are at the ISL prompt, use the desired comma nd as the argument for the monitor /stand/vpmon. For example, to run the command vparload -p winona1 from the monitor prompt, use MON> vparload -p winona1 To run the same command at the ISL prompt, use ISL> hpux /stand/vpmon vparload -p winona1 where the command (vparload -p winona) is the argument for the monitor (/stand/v pmon).