Check the status of the some services
Michael Gargiullo
mgargiullo at warpdrive.net
Wed Apr 7 14:36:46 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
>
>
>
>
or for your whole network...
assuming 192.168.0.0
nmap -sT -vv -O 192.168.0.1-254 > network-scan.txt
More information about the redhat-list
mailing list