Search : in
By :

Script file to display service , port no and

Last answer on Nov 7, 2008 2:55:33 am GMT a4akk, on Nov 6, 2008 1:07:13 am GMT 
 Report this message to moderators

Hello,
Please help me to write a script that displays
1.Listening services
2.the ports used by those services
3.Protocols used by those services

i can use
netstat -a | findstr "LISTEN"
but it wont give the port number

i can use
netstat -an | findstr "LISTEN"
but it wont give the service name

Thease commands give other information which i dont need. How to access and print only specific fields .In this case i need only "service name" "port No" "protocol" only.For example, the output should be like

Service Port Protocol
----------------------------------------------------------
epmap 135 TCP

Thanks in advance
a4akk

Configuration: Windows XP
Internet Explorer 6.0

Best answers for « script file to display service , port no and » in :
File transfer via SSH ShowSSH - Secure SHell SSH allows the use of pipelines controls, and use inputs / outputs pipes as any other commands , on the basis that redirection is done to or from the remote machine. This may be used to transfer files: ssh server...
[PS3] Sharing files / DLNA Server Show[PS3] Sharing files / DLNA Server How to share files between a Playstation 3 and PC Issue You want to establish a relationship with DLNA protocol between your PC and your PS3, including images, audio and video access to YouTube,...
Cannot find script file [C:WINDOWSsowar.vbs] ShowCannot find script file "C:\WINDOWS\sowar.vbs" Issue Solution Issue Whenever I start my laptop I get: Cannot find script file "C:\WINDOWS\sowar.vbs". I think this is a virus. What should I do to resolve this one? Another thing,...
Download Remove Empty Directories ShowRemove Empty Directories or RED is a free software intended to abolish the empty files. RED searches and abolishes the empty files by showing by a tree-like aspect the way of access to the file. You can create certain rules to be able to keep a...
FTP protocol (File Transfer Protocol) ShowIntroduction to FTP protocol FTP protocol (File Transfer Protocol) is, as its name indicates a protocol for transferring files. The implementation of FTP dates from 1971 when a file transfer system (described in RFC141) between MIT machines...
Operating Systems - MS-DOS - Tips ShowSetting the CD-ROM drive The CD-ROM drive is configured in the config.sys and autoexec.bat system files. The CD-ROM drive device driver must be configured in the config.sys file (even if the device is automatically detected in Windows). To do...
Environment variables ShowEnvironment variables An environment variable is a dynamic value loaded into the memory that can be used by several processes operating simultaneously. On most operating systems, the location of some libraries or of the main system executables may...

1

somacmg, on Nov 6, 2008 9:58:49 am GMT

Hello,

just check out this link and can you tell me afterwards if it is sucessful or not:

http://the-welters.com/professional/scripts/

Reply to somacmg

2

 a4akk, on Nov 7, 2008 2:55:33 am GMT

I am not able to open the link.. can you please list out the script..

Reply to a4akk