- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- List running services, corresponding package and t...
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
Discussions
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
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
01-14-2015 11:24 PM
01-14-2015 11:24 PM
List running services, corresponding package and the status.
Hi,
I am looking to list down all the services, corresponding package name and the services status on HP-UX.
In Linux (Centos), I use chkconfig to achieve this .. i.e. list all running services, corresponding package and the status.
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".
Please provide any pointers available on this.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2015 05:05 AM - edited 01-15-2015 05:07 AM
01-15-2015 05:05 AM - edited 01-15-2015 05:07 AM
Re: List running services, corresponding package and the status.
The simple equivalent for chkconfig is to cat /etc/inetd.conf.
You can also list this file without comments and blank lines with:
awk 'NF && ! /^[[:space:]]*#/' /etc/inetd.conf
A grep for these inetd daemons will only show those stay active. Many service daemons will close after an idle period.
init (see /etc/inittab) can spawn some programs although its use for services is not as common as it was decades ago. The /etc/inittab file lists each of the processes where respawn will restart a process if it stops. Most of inittab is setup for boot processes.
The term package in HP-UX usually refers to an application collection that runs under Service Guard, the clustering product from HP.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2015 07:40 PM
01-15-2015 07:40 PM
Re: List running services, corresponding package and the status.
Hi,
I tried extracting info from /etc/inetd.conf. This shows a list of running services, is what you mean?
Any idea what does the other fields imply?
I wanted the extract to be as follows:- "Service Name", "Package Name", "Status".
Please confirm if its possible to extract information in such a manner.
Thanks.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2015 10:51 PM
01-15-2015 10:51 PM
Re: List running services, corresponding package and the status.
>I tried extracting info from /etc/inetd.conf. This shows a list of running services, is what you mean?
>Any idea what does the other fields imply?
They are comments at the top for each of the 7 fields and also inetd.conf(4).
>I wanted the extract to be as follows: "Service Name", "Package Name", "Status".
These aren't in this file, only "Service Name" and "server program".
As Bill mentioned, demons are started by inetd(1m), init(1M) and rc(1m). See inittab(4) and rc.config(4) and
/sbin/init.d/.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2015 01:58 PM
01-22-2015 01:58 PM
Re: List running services, corresponding package and the status.
You could also take a look at the output from Lsof. I.e. /opt/iexpress/lsof/bin/lsof -i