Re: Wnidows Server 2003 - I need help in getting the Connection Co



Tons of options there. Personally I'd use VB.Net, but any .Net language would
suffice (C#, C++, etc.) Or you could probably use a language like Perl.

"Frank H. Shaw" <FrankHShaw@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D8544237-A42B-464C-8297-F618B8552751@xxxxxxxxxxxxxxxx
Thanks - do you mike have a idea what lauague you would chose to wiite this
exteral application in since it needs to run on Windows Server 2003. Any
thougts on that. THANKS!!!!!!

"Mike Lowery" wrote:

Write an external app. Have your PHP script either launch it or send it a
command if already running. A surefire way is by writing to a file on the
drive. This external app looks for that file every X seconds and if it sees
it,
it fires off the netstat command for you, sending the results from that to
another file which your PHP process can access.

There's probably a more elegant process but I haven't played much with PHP.

"Frank H. Shaw" <FrankHShaw@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C313A386-6AD7-4BAA-B774-C1E419CC2446@xxxxxxxxxxxxxxxx
Thanks Mike but the probem is i need the that data in REAL time because the
number of chatters change from moment to moment - so do you have any ideas
on
how i can do this a real time situaion. THANKS Frank

"Mike Lowery" wrote:

Seems you have two choices: Run your PHP script with admin rights (likely
a
bad
idea) or use another process on the box to run the command and save it to
a
text
file which you can parse with PHP.

"Frank H. Shaw" <FrankHShaw@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:34A35509-8A7C-4C29-9E2A-4C03451A1BEE@xxxxxxxxxxxxxxxx
The problem has been indentifyed as the following: DO NOT KNOW HOW TO
SOLVE
IT? SHELL EXEC FUNCTION ON SERVER 2003 - PERMISION PROBLEM!!!!!

But let me explain - the command netstat is running in a PHP script as a
shell exec function but since PHP as a anonymous user - the netstat
comand
requires administator access we are get file permison problems - ANY
IDEAS
OR
WORK AROUND this one any one have a idea how one can do in Microsoft
Server
2003.

netstat -n | find "66.98.253.115:5000" | find /C "ESTABLISHED"

"Frank H. Shaw" wrote:

I HAVE FOUND PART OF THE PROBLEM IS SOLVIED - BUT NOW I GET A PERMISION
PROBLEM ON SERVER 2003.

Ok - I now have a permison problem runnig netstat on Microsoft Server
2003
- I have found the exact command to do the ting i was trying to do the
following does work just fine on my standalone computer run XP
Profersional
and runing the comand prompt - The following :

netstat -n | find "66.98.253.115:5000" | find /C "ESTABLISHED"

But on Microsoft Server 2003 we are getting a permision problem trying
to
run netstat command. What do i need to do to get around the problem.
THANKS
Frank

"Frank H. Shaw" wrote:

Hi i need a way of getting the Connection count of only the IP and
PORT
and
nothing else - We are porting are system that host or websites to a
microsoft
windows soulition from Lynex Red Hat Enterpirse - and we used netstat
comand
on the Red Hat - Now we tried the netstat comand on windows and it
brings
back to much stuff - we only want the IP and PORT Address returned so
it
is
a
simple parse. Can someone help me and tell me how to do it in
windows.
THANKS
Frank








.



Relevant Pages

  • Re: Wnidows Server 2003 - I need help in getting the Connection Co
    ... Run your PHP script with admin rights (likely a bad ... idea) or use another process on the box to run the command and save it to a text ... shell exec function but since PHP as a anonymous user - the netstat comand ... requires administator access we are get file permison problems - ANY IDEAS OR ...
    (microsoft.public.windowsmedia.server)
  • Re: Wnidows Server 2003 - I need help in getting the Connection Co
    ... exteral application in since it needs to run on Windows Server 2003. ... command if already running. ... it fires off the netstat command for you, sending the results from that to ... SHELL EXEC FUNCTION ON SERVER 2003 - PERMISION PROBLEM!!!!! ...
    (microsoft.public.windowsmedia.server)
  • Re: Wnidows Server 2003 - I need help in getting the Connection Co
    ... command if already running. ... it fires off the netstat command for you, sending the results from that to ... another file which your PHP process can access. ... requires administator access we are get file permison problems - ANY IDEAS ...
    (microsoft.public.windowsmedia.server)
  • Re: IIS5.0 https:// Not working
    ... This is in beta 1 internally (I am driving it to ... > tested the server using netstat -an at the command line ... > second server on the network and the PRIMARY is the DC. ...
    (microsoft.public.inetserver.iis.security)
  • Re: pix access list
    ... How about if when connected to the exchange server with Outlook I am ... able to see only the following ports from a netstat -a command on my ...
    (comp.dcom.sys.cisco)