Whats Up Doc
George Toft
plug-discuss@lists.plug.phoenix.az.us
Mon, 11 Nov 2002 18:07:14 -0500
George Gambill wrote:
>
> >From the command line (RH8) how do I findout the status (is it installed, is
> it running) of such things as:
>
> TFTP
>
> NFS
>
> ????
> George
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
The Unix solution is netstat. Ask netstat for all listening connections
like this:
$ netstat -a | grep LISTEN
Example from one of my machines:
tcp 0 0 *:swat *:*
LISTEN
tcp 0 0 *:6346 *:*
LISTEN
tcp 0 0 *:mysql *:*
LISTEN
tcp 0 0 *:netbios-ssn *:*
LISTEN
tcp 0 0 *:http-alt *:*
LISTEN
tcp 0 0 *:6000 *:*
LISTEN
tcp 0 0 *:www-http *:*
LISTEN
tcp 0 0 *:ftp *:*
LISTEN
tcp 0 0 donelle.georgeto:domain *:*
LISTEN
tcp 0 0 localhost:domain *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
tcp 0 0 *:3128 *:*
LISTEN
tcp 0 0 *:7101 *:*
LISTEN
tcp 0 0 *:389 *:*
LISTEN
tcp 0 0 *:auth *:*
LISTEN
go down the line and identify the services.
This works on Linux, Solaris, and AIX.
George