<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to view the current runlevel in hp-ux in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177047#M459243</link>
    <description>hello &lt;BR /&gt;you can check the current run level in all hpux flavour with &lt;BR /&gt;who -r&lt;BR /&gt;&lt;BR /&gt;also check man who will get more detail help, thanks,</description>
    <pubDate>Sat, 23 May 2009 12:58:48 GMT</pubDate>
    <dc:creator>avizen9</dc:creator>
    <dc:date>2009-05-23T12:58:48Z</dc:date>
    <item>
      <title>how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177045#M459241</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt; In Redhat and suse linux. we can use following command to view the current run level.&lt;BR /&gt;&lt;BR /&gt;Ex: &lt;BR /&gt;&lt;BR /&gt;suse10tst: # runlevel&lt;BR /&gt;N 5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We can see the default runlevel in /etc/inittab.&lt;BR /&gt;&lt;BR /&gt;but i want to know current runlevel of hpux.&lt;BR /&gt;&lt;BR /&gt;is it possible.</description>
      <pubDate>Sat, 23 May 2009 12:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177045#M459241</guid>
      <dc:creator>senthil_kumar_2</dc:creator>
      <dc:date>2009-05-23T12:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177046#M459242</link>
      <description>&lt;BR /&gt;Dear Senthil&lt;BR /&gt;&lt;BR /&gt;The command is who -r&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;&lt;BR /&gt;Sajjad Sahir</description>
      <pubDate>Sat, 23 May 2009 12:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177046#M459242</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2009-05-23T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177047#M459243</link>
      <description>hello &lt;BR /&gt;you can check the current run level in all hpux flavour with &lt;BR /&gt;who -r&lt;BR /&gt;&lt;BR /&gt;also check man who will get more detail help, thanks,</description>
      <pubDate>Sat, 23 May 2009 12:58:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177047#M459243</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-23T12:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177048#M459244</link>
      <description>who -r or runlevel command</description>
      <pubDate>Sat, 23 May 2009 14:29:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177048#M459244</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2009-05-23T14:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177049#M459245</link>
      <description>&lt;!--!*#--&gt; Hello Senthil,&lt;BR /&gt; &lt;BR /&gt; You can get the runlevel by "who -r" command as shown:&lt;BR /&gt; &lt;BR /&gt; root&amp;gt; who -r&lt;BR /&gt;   .       run-level 3  May 22 17:22    3    0    2&lt;BR /&gt;&lt;BR /&gt;Here the server is in runlevel 3&lt;BR /&gt;   &lt;BR /&gt;-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.&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;R.K.</description>
      <pubDate>Sat, 23 May 2009 16:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177049#M459245</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-05-23T16:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177050#M459246</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# who -r  ==&amp;gt; will show you current runlevel of hpux.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson</description>
      <pubDate>Sat, 23 May 2009 16:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177050#M459246</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-05-23T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177051#M459247</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Does anyone READ what has already been posted?  Endlessly repeating the same answer adds NOTHING!&lt;BR /&gt;&lt;BR /&gt;NO POINTS FOR THIS COMMENT.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 23 May 2009 16:28:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177051#M459247</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-23T16:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177052#M459248</link>
      <description>I agree with James..&lt;BR /&gt;&lt;BR /&gt;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...&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;BR /&gt;Johnson</description>
      <pubDate>Sat, 23 May 2009 16:41:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177052#M459248</guid>
      <dc:creator>johnsonpk</dc:creator>
      <dc:date>2009-05-23T16:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177053#M459249</link>
      <description>&amp;gt;I want to know current runlevel of HP-UX.&lt;BR /&gt;&lt;BR /&gt;Why do you need it?  Is is for some rc(1m) script?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: Does anyone READ what has already been posted?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;The result of who(1) is nearly the same as "echo 3".&lt;BR /&gt;&lt;BR /&gt;There was mention of getrunlvl but that may not work either:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1325385" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1325385&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1239710" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1239710&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1238202" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1238202&lt;/A&gt;</description>
      <pubDate>Sat, 23 May 2009 23:04:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177053#M459249</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-23T23:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177054#M459250</link>
      <description>Hi Senthil,&lt;BR /&gt;&lt;BR /&gt;who -r gives current run level&lt;BR /&gt;/etc/inittab&lt;BR /&gt;&lt;BR /&gt;Hp-UX has the following Run levels: &lt;BR /&gt;s single user&lt;BR /&gt;2 multi-user; no NFS server capabilities&lt;BR /&gt;3 multi-user with NFS server&lt;BR /&gt;4 same as 3, but with HP VUE&lt;BR /&gt;&lt;BR /&gt;To change runlevels:&lt;BR /&gt;/sbin/shutdown -y 0     # to go to single user state&lt;BR /&gt;/sbin/init      # bring the system up in the new runlevel&lt;BR /&gt;&lt;BR /&gt;Rgds-Kranti</description>
      <pubDate>Sun, 24 May 2009 02:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177054#M459250</guid>
      <dc:creator>Kranti Mahmud</dc:creator>
      <dc:date>2009-05-24T02:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177055#M459251</link>
      <description>Commands  who -r and getrunlvl will return the run level of init.  IF you are fully booting a system up by not interupting boot at ISL/EFI the return will always be a 3 (or what ever is defined in /etc/inittab.  If you bring a system down to level 1 or 2 or S&lt;BR /&gt;these commands will show that run level.  &lt;BR /&gt;&lt;BR /&gt;It is a bit strange but when the rc1.d and rc2.d  scripts are executed they are techincally running at run level 3.  If you  want to know what stage of startup a system is at I have used the following logic  in the rc scripts&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RUN_LEVEL=$(echo $0 | awk -F/ '{print $3}')&lt;BR /&gt;&lt;BR /&gt;This should return the directory the script is running from .  &lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2009 22:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177055#M459251</guid>
      <dc:creator>Mark J. Sewhuk</dc:creator>
      <dc:date>2009-11-06T22:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177056#M459252</link>
      <description>Hi Senthil,&lt;BR /&gt;&lt;BR /&gt;who -r will show you the current run levels of HP-UX. HPUX has the following run levels:&lt;BR /&gt;&lt;BR /&gt;0--System halted&lt;BR /&gt;S--Single-User mode, booted to system console only, with only root filesystem mounted (as read-only)&lt;BR /&gt;s--Single-User mode, identical to S except the current terminal acts as the system console&lt;BR /&gt;1--Single-User mode with local filesystems mounted (read-write)&lt;BR /&gt;2--Multi-User mode with most daemons started and Common Desktop Environment launched&lt;BR /&gt;3--Identical to runlevel 2 with NFS exported&lt;BR /&gt;4--Multi-User mode with VUE started instead of CDE&lt;BR /&gt;5, 6--Not used/User-definable&lt;BR /&gt;&lt;BR /&gt;Rgds-Kranti</description>
      <pubDate>Sat, 07 Nov 2009 04:38:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177056#M459252</guid>
      <dc:creator>Kranti Mahmud</dc:creator>
      <dc:date>2009-11-07T04:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177057#M459253</link>
      <description>&amp;gt;Kranti: who -r will show you the current run levels of HP-UX.&lt;BR /&gt;&lt;BR /&gt;Again I suggest you read all the replies so you know that "who -r" is broken and doesn't work.</description>
      <pubDate>Sun, 08 Nov 2009 05:46:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177057#M459253</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-08T05:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177058#M459254</link>
      <description>runlevels are not inported, I can stop everyting till runlevel 1 whitout changing the runlevel.&lt;BR /&gt;&lt;BR /&gt;if the stop start scripts are used you can check the /etc/rc.log and the old log.&lt;BR /&gt;the last entery is the last this that is stopped/started.&lt;BR /&gt;don't worry about the run level, yust see what processes/deamons are running...&lt;BR /&gt;&lt;BR /&gt;why:&lt;BR /&gt;if you stop everyting till run level 2, it will not look the same as you start everyting untill level 2, why, yous stop scrips will not stop everyting...</description>
      <pubDate>Sun, 08 Nov 2009 09:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177058#M459254</guid>
      <dc:creator>F Verschuren</dc:creator>
      <dc:date>2009-11-08T09:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177059#M459255</link>
      <description>&amp;gt;Dennis:Again I suggest you read all the replies so you know that "who -r" is broken and doesn't work.&lt;BR /&gt;&lt;BR /&gt;So do you mean, who -r is not a guaranteed command to know, it is not dynamic response , because it just read from file and if it files is not guaranteed situation when it read.</description>
      <pubDate>Sun, 08 Nov 2009 11:54:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177059#M459255</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-11-08T11:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177060#M459256</link>
      <description>&amp;gt;Hakki: So do you mean, who -r is not a guaranteed command to know, it is not dynamic response, because it just read from file&lt;BR /&gt;&lt;BR /&gt;See links above.  It reads it from utmp(4) and that only has a value if 3 or larger.  It may have smaller values if you use init(1m) to reduce the run level.</description>
      <pubDate>Sun, 08 Nov 2009 12:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177060#M459256</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-08T12:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177061#M459257</link>
      <description>Try with command - getrunlvl&lt;BR /&gt;&lt;BR /&gt;bash-4.0# getrunlvl &lt;BR /&gt;New_level 3 Old_level S</description>
      <pubDate>Mon, 09 Nov 2009 07:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177061#M459257</guid>
      <dc:creator>Jerry Jiangwei</dc:creator>
      <dc:date>2009-11-09T07:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177062#M459258</link>
      <description>&amp;gt;Jerry: getrunlvl&lt;BR /&gt;&lt;BR /&gt;Check this link out for getrunlvl ,you can see what Dennis exactly want to say;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=217851&amp;amp;admit=109447626+1257761270117+28353475" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=217851&amp;amp;admit=109447626+1257761270117+28353475&lt;/A&gt;</description>
      <pubDate>Mon, 09 Nov 2009 10:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177062#M459258</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-11-09T10:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177063#M459259</link>
      <description>JRF:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  Does anyone READ what has already been posted? Endlessly repeating the same answer adds NOTHING! &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;They must read it, Jim.  These morons wouldn't know the answer otherwise!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 09 Nov 2009 11:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177063#M459259</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-11-09T11:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to view the current runlevel in hp-ux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177064#M459260</link>
      <description>JRF:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Does anyone READ what has already been posted? Endlessly repeating the same answer adds NOTHING! &lt;BR /&gt; &lt;BR /&gt;That is the reasion I told to Senthil please close the thread once he got the correct answer.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Mon, 09 Nov 2009 13:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-view-the-current-runlevel-in-hp-ux/m-p/5177064#M459260</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-11-09T13:03:07Z</dc:date>
    </item>
  </channel>
</rss>

