Solved

UNIX Utility

Posted on 2004-09-07
3
243 Views
Last Modified: 2010-04-21
What is the simplest way to see if the server is active? What utility would I use?
0
Comment
Question by:aahlawat
3 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 12003047
Depends on your definition of "active", but in general, ping will tell you if the network interface is up and doing 'ps' on the server will tell you what processes are running.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 12003883
Just add a bit more infor for Tintin's comment.

ping machine-ip

if you can get response from the machine, you know it is running for sure. If you get
no response, it mean the machine may be down, or the machine is off the network, or
the sys adm have disable respone to ping. (for security reason, some sys adm disable
it).

If you want to check if a process is running:
ps -ef | grep command-name

if it give you the pocess id etc, it is running, otherwise it is not.

man ping
man ps
to learn more details
0
 
LVL 20

Expert Comment

by:Gns
ID: 12004604
If they (the machines) support it you could use ruptime or rup. These are generally NOT available, since they can be severe security risks.

Are all these "similar" questions from a test?

-- Glenn
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now