<?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: List running services, corresponding package and the status. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6698692#M496992</link>
    <description>&lt;P&gt;You could also take a look at the output from Lsof. I.e. /opt/iexpress/lsof/bin/lsof -i&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2015 21:58:21 GMT</pubDate>
    <dc:creator>RJHall</dc:creator>
    <dc:date>2015-01-22T21:58:21Z</dc:date>
    <item>
      <title>List running services, corresponding package and the status.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6695058#M496988</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to list down all the services, corresponding package name and the services status on HP-UX.&lt;/P&gt;&lt;P&gt;In Linux (Centos), I use chkconfig to achieve this .. i.e. list all running services, corresponding package and the status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, we dont have chkconfig equivalent on HP-UX but I have a clue that we have some catch in /etc/init.d or related directories - regarding the installed services. Though, not sure how can we extract reuqired information from here and use the same. The requirement is basically for a CSV output with following:- "Service Name", "Package Name", "Status".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide any pointers available on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 07:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6695058#M496988</guid>
      <dc:creator>Happy1983</dc:creator>
      <dc:date>2015-01-15T07:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: List running services, corresponding package and the status.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6695154#M496989</link>
      <description>&lt;P&gt;The simple equivalent for &lt;STRONG&gt;chkconfig&lt;/STRONG&gt; is to &lt;STRONG&gt;cat /etc/inetd.conf&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;You can also list this file without comments and blank lines with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;awk 'NF &amp;amp;&amp;amp; ! /^[[:space:]]*#/' /etc/inetd.conf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;A &lt;STRONG&gt;grep&lt;/STRONG&gt; for these &lt;STRONG&gt;inetd&lt;/STRONG&gt; daemons will only show those stay active. Many service daemons will close after an idle period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;init&lt;/STRONG&gt; (see &lt;STRONG&gt;/etc/inittab&lt;/STRONG&gt;) can spawn some programs although its use for services is not as common as it was decades ago. The &lt;STRONG&gt;/etc/inittab&lt;/STRONG&gt; file lists each of the processes where respawn will restart a process if it stops. Most of &lt;STRONG&gt;inittab&lt;/STRONG&gt; is setup for boot processes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The term package in HP-UX usually refers to an application collection that runs under Service Guard, the clustering product from HP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 13:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6695154#M496989</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2015-01-15T13:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: List running services, corresponding package and the status.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6695426#M496990</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried extracting info from /etc/inetd.conf. This shows a list of running services, is what you mean?&lt;/P&gt;&lt;P&gt;Any idea what does the other fields imply?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted the extract to be as follows:- "&lt;STRONG&gt;Service Name&lt;/STRONG&gt;", "&lt;STRONG&gt;Package Name&lt;/STRONG&gt;", "&lt;STRONG&gt;Status&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please confirm if its possible to extract information in such a manner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 03:40:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6695426#M496990</guid>
      <dc:creator>Happy1983</dc:creator>
      <dc:date>2015-01-16T03:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: List running services, corresponding package and the status.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6695491#M496991</link>
      <description>&lt;P&gt;&amp;gt;I tried extracting info from /etc/inetd.conf. This shows a list of running services, is what you mean?&lt;BR /&gt;&amp;gt;Any idea what does the other fields imply?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are comments at the top for each of the 7 fields and also inetd.conf(4).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I wanted the extract to be as follows: "&lt;STRONG&gt;Service Name&lt;/STRONG&gt;", "&lt;STRONG&gt;Package Name&lt;/STRONG&gt;", "&lt;STRONG&gt;Status&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These aren't in this file, only "Service Name" and "server program".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Bill mentioned, demons are started by inetd(1m), init(1M) and rc(1m).&amp;nbsp; See inittab(4) and rc.config(4) and&lt;/P&gt;&lt;P&gt;&amp;nbsp;/sbin/init.d/.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 06:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6695491#M496991</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-01-16T06:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: List running services, corresponding package and the status.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6698692#M496992</link>
      <description>&lt;P&gt;You could also take a look at the output from Lsof. I.e. /opt/iexpress/lsof/bin/lsof -i&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 21:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-running-services-corresponding-package-and-the-status/m-p/6698692#M496992</guid>
      <dc:creator>RJHall</dc:creator>
      <dc:date>2015-01-22T21:58:21Z</dc:date>
    </item>
  </channel>
</rss>

