LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-16-2010, 07:45 AM   #1
ericb@firsttechfs.co.za
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Command for applications currently running?


Please can any one assist me?

I am doing a audit on some Linux servers about 40.
One off the recuirments is a list of Applications currently
running on each server.
Does anyone have a command that I can use to show the required
info?
 
Old 04-16-2010, 08:33 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,629

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
This is Linux preschool.....

ps aux, top (htop, atop), ...
 
Old 04-16-2010, 08:44 AM   #3
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,989
Blog Entries: 5

Rep: Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780
A good start would be to simply run "ps -ef" and see what processes are running. You could do "ps -ef |grep -v root" to determine those processes not run by the root user. Generally speaking processes run by root are system processes and applications have their own admin user. Unfortunately this is not always the case - many people badly configure systems and have root running applications it shouldn't. There are also special cases where the first process is running as root and it then spawns subprocesses as another user. (Properly configured Apache is a good example of that.)

Many packages on Linux are installed by a package manager and these are different for the various distros. You could use your package manager to show you what packages are there and then try to determine which of these are just system (required to support the application) or are actually the main point of the server. For example you could run "rpm -qa" on a RedHat/Fedora/CentOS system to see all RedHat Package Manager (RPM) packages.

Some packages however are installed by other means - via an extracted compressed tar bundle and/or compiled locally on the server.

I guess it would depend on what the definition of "application" is in this context. Were I charged with doing such an audit my definition would be:
1) Primary purpose application of the system whether it is free or not.
2) Any commercial application (one you pay money for).
3) Some other applications critical to the business whether free or not.

I suspect the main interest in such an audit is number 2 so I would be sure to list any free applications as such.

So if the primary purpose were to be a web server I might list Apache as the application (seen as httpd in ps output) but note that it was Free Open Source Software (FOSS). If I were running MySQL as a primary database server I would list MySQL.

If I were running say Oracle which ships with Apache I would list the Oracle product but not Apache as I would consider it part of Oracle install. (Similarly Oracle is heavily dependent on Java so I wouldn't list Java as it is FOSS.)

If you were running JBOSS as supported by RedHat you might list that as an application even though it is part of your web infrastructure.
 
  


Reply

Tags
application, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running more applications BIG_Yack Linux - Newbie 1 07-02-2008 01:07 PM
CPU running at 100% usage while no applications are running mike_morley Linux - Desktop 14 05-17-2007 09:39 PM
Applications Running. ranjeet_badhe Solaris / OpenSolaris 1 02-06-2007 01:25 AM
Applications not running... clemons Linux - Software 2 10-27-2004 11:10 PM
Running Applications kingtas Linux - Newbie 3 09-13-2004 04:31 PM


All times are GMT -5. The time now is 09:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration