HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)

h
hpux(1M) hpux(1M)
(PA-RISC Systems Only)
(Additional Kernel Startup Messages Omitted)
Displaying The Autoexecute File
In this example, show autofile is used to print the contents of the
autoexecute file residing in the
boot LIF, on the device from which
hpux was booted. Optionally, a devicefile can be specified in order to
read the
autoexecute file from the boot LIF of another boot device.
ISL> hpux show autofile
Show autofile
: AUTO file contains (hpux)
Changing The Autoexecute File
This example shows how to change the contents of the
autoexecute file. Once done, the system can be
reset, and the new command will be used during any unattended boot.
ISL> hpux set autofile "hpux /stand/myconfig/vmunix"
Set autofile
: disk(0/5/2/0/1.3.0.0.0.0.0;0)
: AUTO file now contains "(hpux /stand/myconfig/vmunix)"
Listing Directory Contents
The contents of the directory (/stand) on the root disk are listed. The format shows the file protections,
number of links, user id, group id, and size in bytes for each file in the directory. There are three available
kernel configurations to boot: the default configuration (vmunix), the automatic backup configuration
(backup), and one other saved configuration (good). Listing the files over the LAN is not supported.
ISL> hpux ll /stand
Total 100570
dr-xr-xr-x 9 root bin 1024 Apr 24 18:24 ./
dr-xr-xr-x 14 bin bin 1024 Apr 24 18:24 ../
drwxr-xr-x 5 root sys 1024 Feb 16 01:03 backup/
-rw-r--r-- 1 root sys 19 Jan 12 08:45 bootconf
drwxr-xr-x 3 root sys 1024 Apr 24 18:24 bootfs@ -> current/bootfs
drwxr-xr-x 5 root sys 1024 Feb 16 01:04 current/
drwxr-xr-x 5 root sys 1024 Jan 04 09:42 good/
-rw-r--r-- 1 root sys 4376 Feb 24 13:42 ioconfig
-r--r--r-- 1 root sys 82 Jan 12 19:17 kernrel
drwxr-xr-x 2 root sys 1024 Apr 24 18:24 krs/
drwxr-xr-x 2 root root 65536 Jan 12 07:32 lost+found/
drwxr-xr-x 5 root sys 1024 Apr 24 18:24 nextboot@ -> current
-rw------- 1 root root 12 Jan 12 08:13 rootconf
-rw-r--r-- 1 root sys 1892 Feb 15 15:21 system
-rwxr-xr-x 4 root sys 17163704 Feb 16 01:03 vmunix*
Getting The Version
The -v option is used to get the version numbers of hpux.
ISL> hpux -v
HP-UX PA bootloader Revision 2.018 built Nov 23 2005 15:46:52
SEE ALSO
ls(1), nslookup(1), boot(1M), fsck(1M), hpux.efi(1M), init(1M), ioscan(1M), isl(1M), pdc(1M), errno(2),
a.out(4), inittab(4), magic(4), ignite(5), intro(7).
HP-UX 11i Version 3: February 2007 8 Hewlett-Packard Company 317