Scanning OPNET Open Port 27401 For Active Agent
If you need to check a list of servers for active agents, you can put the hostnames in a file, hostname.txt for instance and use NMAP to check if the port 27401 is open and listening.
server1:~# nmap -iL hostname.txt -n -p 27401
I will explain this, the -iL option loads the file with hostnames in it,
-n prevents DNS resolution, since, we probably are using IP addresses and -p is the flag for PORT.
server1:~# nmap -iL hosts -n -p 27401
Starting Nmap 4.20 ( http://insecure.org ) at 2007-07-30 14:14 EDT
Interesting ports on 192.168.10.29:
PORT STATE SERVICE
27401/tcp open unknown
Interesting ports on 192.168.10.23:
PORT STATE SERVICE
27401/tcp open unknown
Interesting ports on 192.168.10.67:
PORT STATE SERVICE
27401/tcp open unknown

Leave a comment