Check the status of the some services

Michael Gargiullo mgargiullo at warpdrive.net
Wed Apr 7 14:35:38 UTC 2004


On Wed, 2004-04-07 at 10:08, truejack at indiainfo.com wrote:
> I have been put on this weird Sarbans-Oaxley commitee for our company.
> 
> My manger has come up with a request, where I have to prepare a GOLD
> STANDARD machine and compare all the rest of our Linux boxes, whether
> they comply with this Gold Standard machine.
> 
> I am planning to write a shell script which gathers some detailed
> information about the hardware and system configuration (basically
> what the sysreport utility does).
> 
> One thing I could not figure out is how would get a report of the
> specific services and ports that are open on the System.
> 
> I want to see whether SSHD, FTP, TELNET, RSH, RLOGIN & TFTP are
> running on the system. If they are running, I want to know which port
> are they running on. 
> 
> Can someone give me a snippet of code which does this. I am sort of a
> novice in Shell scripting and was unable to figure this out.
> 
> Thanks in advance
> 
>  
> 
> 

nmap -sT -vv -O xxx.xxx.xxx.xxx

It will list standard open ports, and try to guess the OS running.





More information about the redhat-list mailing list