01-20-2008
Hi udayn,
Q, What is the exact information you're trying to obtain from your solaris 9 system?
THIS MAY HELP!
Before running any commands always check your man pages for backround & detailed information;
example :
<snip start>
bash-2.05$ man prstat
Reformatting page. Please Wait... done
System Administration Commands prstat(1M)
Description
The prstat utility iteratively examines all active processes on the system;
<snip end>
(You should be root user of have root permission)
Run the following command
# prstat
(The output will list all active process)
I hope this is of help
Jnike
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 FREEBSD
services_mkdb
SERVICES_MKDB(8) BSD System Manager's Manual SERVICES_MKDB(8)
NAME
services_mkdb -- generate the services database
SYNOPSIS
services_mkdb [-b | -l] [-q] [-o database] [file]
services_mkdb -u [file]
DESCRIPTION
The services_mkdb utility creates a db(3) database for the specified file. If no file is specified, then /etc/services is used. The data-
base is installed into /var/db/services.db. The file must be in the correct format (see services(5)).
The options are as follows:
-b Use big-endian byte order for database metadata.
-l Use little-endian byte order for database metadata.
-o database
Put the output databases in the named file.
-q Do not warn about duplicate services.
-u Print the services file to stdout, omitting duplicate entries and comments.
The databases are used by the C library services routines (see
The -b and -l flags are mutually exclusive. The default byte ordering is the current host order. getservent(3)).
FILES
/var/db/services.db The current services database.
/var/db/services.db.tmp A temporary file.
/etc/services The current services file.
EXIT STATUS
The services_mkdb utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
db(3), getservent(3), services(5)
BUGS
Because services_mkdb guarantees not to install a partial destination file it must build a temporary file in the same file system and if suc-
cessful use rename(2) to install over the destination file.
If services_mkdb fails it will leave the previous version of the destination file intact.
BSD
April 4, 2010 BSD