- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Services 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
Forums
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
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-28-2010 03:33 AM
тАО05-28-2010 03:33 AM
Services in HP-UX
I am new to Hp-Ux. I want to know the command to list all the active services. How to check which services will be running for particular runlevel. How to start or stop the service and how to check its status.
In linux I use to use
#chkconfig --list
Is there any command in HP-UX similar to it?
Thanks in Advance....
Appreciate revert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 04:03 AM
тАО05-28-2010 04:03 AM
Re: Services in HP-UX
# man rc
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 04:06 AM
тАО05-28-2010 04:06 AM
Re: Services in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 04:15 AM
тАО05-28-2010 04:15 AM
Re: Services in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 04:45 AM
тАО05-28-2010 04:45 AM
Re: Services in HP-UX
But still my purpose is not solved completely...
What if for eg. I want to start lp service in runlevel 3.
How do i chk its status if it is running or hanged or stopped.
(sry guys I am linux guy so trying to relate things with linux.. pls bare with me :-( )
Like in linux it would clearly give like:
#service lp start
lp is started.
# service lp status
lp is running
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 04:53 AM
тАО05-28-2010 04:53 AM
Re: Services in HP-UX
> disable services on HP-UX.
Not really. You can edit "/etc/services".
That may or may not enable or disable
anything. The world would be a better place
if people stopped offering advice like this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 05:11 AM
тАО05-28-2010 05:11 AM
Re: Services in HP-UX
>if people stopped offering advice like this.
The world would be a much better place if people could show their generosity when thing not going as they wish.
read the reply below my first reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 05:22 AM
тАО05-28-2010 05:22 AM
Re: Services in HP-UX
you can check out /etc/rc.log for services startup status at os startup time, of course sometimes services would stop or hang accidently, you could use ps to check whether the process of specific services was ok, I don't remember whether there was status option for scripts at /sbin/init.d beside stop and start, you can check out those scripts yourself.
sorry for my poor english expression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 10:56 AM
тАО05-28-2010 10:56 AM
Re: Services in HP-UX
Why? No!
==>
Definition: /etc/services: On UNIX, the configuration file /etc/services maps port numbers to named services. Key point: Its role in life is so that programs can do a getportbyname() sockets call in their code in order to get what port they should use. For example, a POP3 email daemon would do a getportbyname ("pop3") in order to retrieve the number 110 that pop3 runs at. The idea is that if all POP3 daemons use getportbyname(), then no matter what POP3 daemon you run, you can always reconfigure its port number by editing / etc/services. Misunderstanding: This file is bad in order to figure out what port numbers mean. If you want to find out what ports programs are using, you should instead use the program lsof to find out exactly which ports are bound to which processes. If running lsof is not appropriate, then you should lookup the ports in a more generic reference.
.................................
Source: Hacking-Lexicon / Linux Dictionary V 0.16
http://www.tldp.org/LDP/Linux-Dictionary/html/index.html
Author: Binh Nguyen linuxfilesystem(at)yahoo(dot)com(dot)au
.................................
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 12:08 PM
тАО05-28-2010 12:08 PM
Re: Services in HP-UX
Usually, the original scripts are kept in /etc/init.d and all the others are just link to the original scripts.
There is also /etc/rc.config.d directory, which decides whether the start script should be run or not.
When hp-ux is booting up, its console shows the list of the scripts are successful or not.
If you want to start or stop a service individually, you need to go to /sbin/init.d to run the script with start or stop after it.
This is just a simple description and you need to check the manual for details.