1834884 Members
2420 Online
110071 Solutions
New Discussion

Re: Help me...

 
SOLVED
Go to solution
Thomas Spence_1
New Member

Help me...

I have to update on HP 9000/877 10.20 from

http://www2.itrc.hp.com/service/cki/docDisplay.do?admit=-1335382922+1050077314807+28353475&docId=HPSBUX0303-252

But one line that I wasn't sure what it means?

'Go to init state 2'

Thank you for your help me.
8 REPLIES 8
John Poff
Honored Contributor
Solution

Re: Help me...

Hi,

They probably mean to login as root and do:

init 2

which will take you to run level 2. I'd make sure all your applications are stopped before doing this, and also make sure you have a good Ignite backup before you do it.

JP
John Dvorchak
Honored Contributor

Re: Help me...

I just read your attached url and it means to go to run level 2. You do this by:

> init 2

Make sure all of your user's are logged off and your applications and databases are shutdown first.

Good luck
If it has wheels or a skirt, you can't afford it.
Kelli Ward
Trusted Contributor

Re: Help me...

Hi,
For future use-
Another method to go to run level 2 is to boot up to it.
stop the boot sequence to get to main menu
type: bo or bo pri and y (yes) at the Interact with IPL?> line.
When the system boots to ISL>
type: hpux -i2 /stand/vmunix
(you can boot to almost any run-level this by simply exchanging the 2 for whatever level you want (it is the cleanest way to go to maintenance mode, as booting up to a higher run-level and then using init to drop down to a lower level won't always stop all of the higher level processes, by booting up to them, they never start in the first place.)
Good luck,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Thomas Spence_1
New Member

Re: Help me...

Great, Also can I use telnet or must console before I type 'init 2'?

Tom
Pete Randall
Outstanding Contributor

Re: Help me...

Since run level 2 should have networking started up, you could probably manage via telnet, but I would prefer to be at the console.


Pete

Pete
Yogeeraj_1
Honored Contributor

Re: Help me...

hi,

if you do it from a telnet session, this command will disconnect you!

You need to be on the server console or if your have LAN console...

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Jon Mattatall
Esteemed Contributor

Re: Help me...

Check with

# find /sbin/ | grep inetd

You should see...

/sbin/init.d/inetd
/sbin/rc1.d/K500inetd
/sbin/rc2.d/S500inetd

If so, then you can use telnet or the console.
The above "/sbin/rc1.d/K500inetd" indicates that if you were to "init 1", or go to run-level 1, the inetd, and hence, telnet, would not run. You would lose your session. The start script S500inetd is in run-level 2, so if you "init 2", telnet should be available.

Console is the better choice in case something unfortunate happens.
A little knowledge is dangerous - none is absolutely terrifying!!!
Tim Sanko
Trusted Contributor

Re: Help me...

Here is a very short simplistic primer on run level.

Init 2 refers to the run level 2

level 0 is a shutdown state.

level s or 1 is single user maintenance mode

level two has the basic subsystems, filesystems and daemons active, called multi-user level. Has tcpip active.

level three exports filesystems for NFS etc.

level four starts the CDE and X windows system

level 5-6 are user defined.

This is a synopsis, not a treatise try "man init " on your box.

TJS