cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Status Programming
Status Programming
Mar 28, 2012 at 1:04am UTC
Jordan Bryant
(2)
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!
Mar 28, 2012 at 2:04am UTC
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
Mar 28, 2012 at 2:04am UTC
Mar 28, 2012 at 2:09am UTC
Jordan Bryant
(2)
It's connected via Fibre....
Topic archived. No new replies allowed.