Status Programming

Hey guys,
For work I have been asked to write a program where:
View stats (ie, cpu usage, available space etc.) of our network servers.

will this method work and could you possibly give my some starting code?

#Open file.txt
#Write Date/Time
#Read serverA
#Write serverA stats to file.txt
#Read serverB
#Write serverB stats to file.txt
#Close file.txt

"I need this to be done once a day"

So in the moring instead of going through each server and making sure they are stable, i can just open the file and view all the stats from the day.

Thanks heaps!
closed account (o1vk4iN6)
If it's running a unix-like system with posix you could write a simple shell script along with cron. Otherwise in C++ it'd be dependent on the operating system and the setup you have. How is this magical computer connected to ServerA and ServerB?
Last edited on
It's connected via Fibre....
Topic archived. No new replies allowed.