1753716 Members
4675 Online
108799 Solutions
New Discussion юеВ

run level on hpux 11.23

 
SOLVED
Go to solution
Shivkumar
Super Advisor

run level on hpux 11.23

Hi,

What are the different run level on hpux 11.23 ? Is NFS available on run level 4 ?

Thanks,
Shiv
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: run level on hpux 11.23

Generally yes but that depends upon whether or not it has been configured. You really should examine the box itself since that is the only way to know for sure since you never know who has been on the box.

cd /sbin/rc4.d # look for what starts at run-level 4
ls -l S*
and see what links (or files are there) and
then
cd /sbin/rc3.d # ditto for run-level 3
ls -l S*

You also need to check /etc/rc.config.d to see if NFS has been enabled and finally even if it has been configured (ie the daemons are running) that still doesn't mean NFS is available because you may or may not be exporting and/or mounting any NFS filesystems.

If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: run level on hpux 11.23

Shalom Shiv,

I genearlly introduced new products and services on run level 4.

My reasoning was that I needed many times, especially with Oracle to develop my own startup scripts and I may need to test many, many times the functionality of said scripts.

I could on a development or sandbox flip the box back and forth between run level 3 and 4 without disrupting the infrastructure that people expected.

init 4
# test the oracle oas server comes up just like startup
init 3
# see if it shuts down properly.

HP-UX adapts to your needs Sir.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Devesh Pant_1
Esteemed Contributor

Re: run level on hpux 11.23

Shiv,
all the run levels remain the same in 11.23 and nfs server starts at runlevel 3 and by default will be available in runlevel 4 as well.

thanks
DP
Raj D.
Honored Contributor

Re: run level on hpux 11.23

Hi Shiv ,

Run levels are same in 11.23 as well,
i.e [ 0|1|2|3|4|5|6|S|s|Q|q|a|b|c ]


* 0-6 Place the system in one of the run levels 0 through 6.

[ * * Networking starts at run level 3 , and hence if your NFS configured properly it will get started here ]


* a|b|c Process the inittab entries that have the special "run
level" a, b, or c, without changing the numeric run
level.

* Q|q Re-examine the inittab entries without changing the run
level.

* s|S Singel User mode.
-----------------------

So you can check /etc/rc.config.d/nfsconf if nfs server and client configured , entry must be NFS_CLIENT="1"
NFS_SERVER=1 , if it is working as a nfs server as well as nfs client.


Cheers,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: run level on hpux 11.23

Shiv ,

You can alos check this :

http://docs.hp.com/en/B9106-90008/init.1M.html


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
inventsekar_1
Respected Contributor

Re: run level on hpux 11.23

HI shivkumar,

the above link is for 11iv1.5

the same for 11iv2 is

http://docs.hp.com/en/B2355-90841docs/B2355-90841docs.pdf

u can find that there is no change with 11iv2
Be Tomorrow, Today.
inventsekar_1
Respected Contributor

Re: run level on hpux 11.23

this will give you some more understanding about run levels:

who -r will give you the run level.
init 4 -->will move up to run-level 4
init 3 -->will move back to run-level 3

init and /sbin/rc start and stop services in stages called run levels.

do ll in the following directories,
/sbin/rc0.d/
/sbin/rc1.d/
/sbin/rc2.d/ ----> u will find script which kills (stops) nfs
/sbin/rc3.d/ ----> u will find script which starts nfs
/sbin/rc4.d/

ll /sbin/rc2.d/ from this u will find lot information.

Be Tomorrow, Today.
inventsekar_1
Respected Contributor

Re: run level on hpux 11.23

one question:

ll /sbin/rc4.d/ gives no output. (mine is 11.11--lab sand box machine)

that means, no service will be started or killed in run level 4. what services runs in runlevel 3 will remain in run level 4. isnt?
Be Tomorrow, Today.
inventsekar_1
Respected Contributor

Re: run level on hpux 11.23

Hi shivkumar,
when i am reading about "kc" commands, this question came to my mind.
This will give you more ideas to you and others( and me too.)

*NFS client functionality starts at the run level 2.
NFS server functionality starts at the run level 3.

*use "kclog" command or directly cat /var/adm/kc.log (for 11.23) and grep for NFS.

*if no lines with NFS available in kc.log, check whether NFS service is enabled or not in /etc/rc.config.d/nfsconf
Be Tomorrow, Today.