I need to write a program that can monitor our server,
Who is logged into the machine?
What are they doing?
Where are they logged in from?
What active TCP/UDP connections are there?
Where are these connections being made to/from?
and output the details to a text file.
Hoping someone out there have a similar script that I can get an idea from.
Thanks in advance