- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to view the current runlevel in hp-ux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 05:43 AM
тАО05-23-2009 05:43 AM
In Redhat and suse linux. we can use following command to view the current run level.
Ex:
suse10tst: # runlevel
N 5
We can see the default runlevel in /etc/inittab.
but i want to know current runlevel of hpux.
is it possible.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 05:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 05:58 AM
тАО05-23-2009 05:58 AM
Re: how to view the current runlevel in hp-ux
you can check the current run level in all hpux flavour with
who -r
also check man who will get more detail help, thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 07:29 AM
тАО05-23-2009 07:29 AM
Re: how to view the current runlevel in hp-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 09:12 AM
тАО05-23-2009 09:12 AM
Re: how to view the current runlevel in hp-ux
You can get the runlevel by "who -r" command as shown:
root> who -r
. run-level 3 May 22 17:22 3 0 2
Here the server is in runlevel 3
-r Indicates the current run-level of the init process. The last three fields contain the current state of init, the number of times that state has been previously entered, and the previous state. These fields are updated each time init changes to a different run state.
Regds,
R.K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 09:12 AM
тАО05-23-2009 09:12 AM
Re: how to view the current runlevel in hp-ux
# who -r ==> will show you current runlevel of hpux.
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 09:28 AM
тАО05-23-2009 09:28 AM
Re: how to view the current runlevel in hp-ux
Does anyone READ what has already been posted? Endlessly repeating the same answer adds NOTHING!
NO POINTS FOR THIS COMMENT.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 09:41 AM
тАО05-23-2009 09:41 AM
Re: how to view the current runlevel in hp-ux
Repeating the same answer by different user (for sake of adding points to own account)will add NO VALUES to this forum rather makes it quite boring to read...
Thanks!!
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 04:04 PM
тАО05-23-2009 04:04 PM
Re: how to view the current runlevel in hp-ux
Why do you need it? Is is for some rc(1m) script?
>JRF: Does anyone READ what has already been posted?
It's not enough to read the man page and the current thread. You need to read other threads and you'll find out that "who -r" doesn't work at all.
The result of who(1) is nearly the same as "echo 3".
There was mention of getrunlvl but that may not work either:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1325385
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1239710
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1238202
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 07:54 PM
тАО05-23-2009 07:54 PM
Re: how to view the current runlevel in hp-ux
who -r gives current run level
/etc/inittab
Hp-UX has the following Run levels:
s single user
2 multi-user; no NFS server capabilities
3 multi-user with NFS server
4 same as 3, but with HP VUE
To change runlevels:
/sbin/shutdown -y 0 # to go to single user state
/sbin/init # bring the system up in the new runlevel
Rgds-Kranti