Operating System - HP-UX
1833793 Members
2696 Online
110063 Solutions
New Discussion

Re: how to see the boot string I typed

 
SOLVED
Go to solution
Steve Post
Trusted Contributor

how to see the boot string I typed

I see there is a command mkboot "hpux -lq" /dev/rdsk/c0t1d3 (whatever the disk is called).
But short of rebooting, I can't find a way confirm what I typed.

I'll say it another way. I setup a box 2 years ago. It's working fine. I can't reboot it. It's in use. How can I see the boot string?

(Stuff you'd ask: rp4440, hpux11.23 install March 2006. Two internal boot disks.)
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: how to see the boot string I typed

If you want to see the contents of the auto file:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1212314

If you are trying to see what you entered interactively at last boot, try the 10 point answer from this thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1094592


Pete

Pete
SUDHAKAR_18
Trusted Contributor

Re: how to see the boot string I typed

#setboot -v
#lifcp /dev/rdsk/c*t*d*:AUTO -
#lvlnboot -v
Steve Post
Trusted Contributor

Re: how to see the boot string I typed

Thanks.
I could not find those forums entry via google, or forum search. My luck at searching is poor.

lvlnboot -v
setboot -v
yep. nice, commands.
They don't answer my question. But what the hey. At least I know where the boot disk is....if I forgot about it.

lifcp cxtxdx? No. Not lifcp c*t*d* either.

so the REAL answer is:
# lifcp /dev/rdsk/c2t6d0:AUTO -

Where (and here is the big key) c2t6d0 is the boot disk I want to look at.
(and another key point)
The output of this command goes to the screen.
(and the third thing...I'll assume this for now).
....and nothing crashes when I run this.


Bill Hassell
Honored Contributor

Re: how to see the boot string I typed

> lifcp cxtxdx

This is syadmin shorthand for: replace with the device file name of your boot disk, possibly clearer when written as: c#t#d# or maybe

If you are new to any Unix system, it is always a good idea to run the command:

man lifcp
or
man lvlnboot

to see what it does and what the options are. To answer your questions:

> I can't find a way confirm what I typed.

Not possible. Your keystrokes were sent to the processor firmware, no HP-UX is running, no logs, nothing. The only thing you can look at is the AUTO file contents using lifcp and that will tell you what will be run when the system boots up automatically but not what you typed on the keyboard.


Bill Hassell, sysadmin
Steve Post
Trusted Contributor

Re: how to see the boot string I typed

Ok Bill, I have some short comments back. I'm sorry if sound too terse or grumpy. The website keeps kicking me out.

"> lifcp cxtxdx
This is syadmin shorthand for: replace with the device file name of your boot disk, possibly clearer when written as: c#t#d# or maybe "
ME: More like changing it from opaque to clear.

"If you are new to any Unix system, it is always a good idea to run the command:
man lifcp or man lvlnboot"
ME: I put the question in the forum because I expected people would provide a nice, short, simple answer. A man page won't do that. Honestly I love these forums because people provide better, clearer answers and man pages.

"> I can't find a way confirm what I typed.
Not possible. Your keystrokes were sent to the processor firmware, no HP-UX is running, no logs, nothing. The only thing you can look at is the AUTO file contents using lifcp and that will tell you what will be run when the system boots up automatically but not what you typed on the keyboard."
ME: Close enough. ....well.....

That's an answer. This AUTO thing is a file. It holds the boot string I typed in. I can pull out the contents of that AUTO file using this lifcp command. And I can find out which disks are bootable with the lvlnboot -v command.

Dennis Handly
Acclaimed Contributor

Re: how to see the boot string I typed

Here is another thread with more details on how to find the boot string:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1227219
Bill Hassell
Honored Contributor

Re: how to see the boot string I typed

Sorry if I pushed you to RTFMP...the boot steps are somewhat mysterious and different for the many, many models. There are actually two things that you type in for a manual boot: the disk path (primary, secondary, enumerated path such as: boot 0/1/0/2/...), and the hpux command if the boot was interactive. The boot disk path can be determined from the comments made above, but the hpux command is not stored. The AUTO file is only used for unattended bootup and is created (or changed) with the mkboot -a command. lifcp can also be used to modify the AUTO file but mkboot -a is easier.


Bill Hassell, sysadmin
Sandeep_Chaudhary
Trusted Contributor

Re: how to see the boot string I typed

unix # lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t6d0 (10/0/15/1.6.0) -- Boot Disk
/dev/dsk/c3t5d0 (10/0/15/1.5.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t6d0
/dev/dsk/c3t5d0
Root: lvol3 on: /dev/dsk/c3t6d0
/dev/dsk/c3t5d0
Swap: lvol2 on: /dev/dsk/c3t6d0
/dev/dsk/c3t5d0
Dump: lvol2 on: /dev/dsk/c3t6d0, 0

sandeep as root@suxde900 [/var/adm]
unix # lifcp /dev/rdsk/c3t5d0:AUTO -
hpux