01-20-2008
services status finding ...???
Could we find out the all services status in salaries 9 operating system....???
10 More Discussions You Might Find Interesting
1. AIX
How can i check which service is activated on my AIX Box?
how one can check particular port is open or not (like ftp/telnet port)?
I dont have admin rights (1 Reply)
Discussion started by: ashish4422
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Please advise how do i find services status running on windows machines
from Linux.
=-=====================
Some one developed a script use rsh command to find the status but it stopped working.
rsh <Some IIS server Name> service -S < Windows Server name where service running>... (1 Reply)
Discussion started by: ashish_uiit
1 Replies
3. AIX
Hi,
As in Management Modules of IBM it is possible to find out wheather out of dual powersupply , if one goes down.
is it possible to find out in HMC to find out if one power supply goes down of P Series server? if server is remotely
HOw to find out if one power supply of server is down?... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
There are 2000 jobs in the list and i need to draw their status. I put all the jobs in the list and trying to read one by one from the list and to find out the status.
Help me out in correcting the script.
#!/bin/csh
for a in $(cat Jobs_List.txt);
do
source <<path>>
autorep -j $a... (1 Reply)
Discussion started by: venkatesht
1 Replies
5. Red Hat
I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed.
I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed.
Please revert with... (10 Replies)
Discussion started by: RHCE
10 Replies
6. Shell Programming and Scripting
Hi,
I just started working on a script. After my research, i found a command which can help me:
AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2.
So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies
7. Shell Programming and Scripting
Hello All,
I need to run a set of scripts, say 50 of them, parallely. I'm running these 50 scripts, from inside a script with the help of 'nohup' command.
1.The fifty scripts are stored in a separate file.
2.In a master script, i'm reading every line of the file through loop and executing... (4 Replies)
Discussion started by: SriRamKrish
4 Replies
8. AIX
Hi,
How can I list running services, corresponding package name and status on the AIX host?
On Linux (Centos), I use the below code snippet:-
for i in `chkconfig --list | awk '{ print $1}'`; do
status=`/sbin/service $i status`
packagename=`rpm -qf /etc/init.d/$i`
done
Is there... (2 Replies)
Discussion started by: Vipin Batra
2 Replies
9. HP-UX
Hi,
I am trying to list down list of running services, corresponding package name and status on HP-UX box. The output will be a CSV in a fashion:- Service Name, Package Name, Status.
While working on Linux centos, I used chkconfig to do the same. Below was the snippet:-
for i in `chkconfig... (3 Replies)
Discussion started by: Happy83
3 Replies
10. Solaris
My system suddenly crash and when it rebooted there was an error:
/dev/rdsk/c1t0d0s3 is logging
svc.startd: svc:/network/nis/client:default: Method "/method/yp" failed with status 96.
The system completes booting however when I log in a user account / directory is not longer... (1 Reply)
Discussion started by: NeedSolarisHelp
1 Replies
LEARN ABOUT OSF1
endservent_r
endservent(3) Library Functions Manual endservent(3)
NAME
endservent, endservent_r - Close the network services database file.
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <netdb.h>
void endservent(void);
[Tru64 UNIX] The following function is supported in order to maintain backward compatibility with previous versions of the operating sys-
tem. void endservent_r( struct servent_data *serv_data);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
endservent(): XNS4.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
[Tru64 UNIX] For endservent_r() only, this is data for services database.
DESCRIPTION
The endservent() function closes either the local /etc/services file or the NIS distributed services file, previously opened with the get-
servent(), getservbyname(), or getservbyport function. To determine which file or files to search, and in which order, the system uses the
switches in the /etc/svc.conf file.
[Tru64 UNIX] If the most recent setservent() function was performed with a nonzero parameter, a subsequent endservent() function will not
close the network services database file.
NOTES
[Tru64 UNIX] The endservent_r() function is the reentrant version of the endservent() function. It is supported in order to maintain
backward compatibility with previous versions of the operating system. The netdb.h header file defines the serv_data structure.
ERRORS
Current industry standards do not define error values for the endservent() function.
[Tru64 UNIX] If the endservent_r() function fails, errno may be set to: serv_data is NULL.
FILES
Contains service names. The database service selection configuration file.
RELATED INFORMATION
Functions: getservent(3), getservbyname(3), getservbyport(3), setservent(3).
Files: services(4), svc.conf(4).
Networks: nis_intro(7).
Standards: standards(5). delim off
endservent(3)