Tried to to netstat on remote computer within perl/cgi script, but no luck as the output is gobbledygook and I dont know how perl read pipe symbol |, any other ideas guys?
@out = `psexec \\\\Server_Name -u Domain\\username -p Password netstat -na | find "port_number" | findstr "ESTABLISHED"`;