Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

We have a couple of windows servers and I want to get the information of the windows servers using either c# or Python script. The information I want to get is the disk space (image like the one we see in windows explorer) and the error logs of the services of the server. If any one can give me any leads on this, it would be great. We are looking to develop a script which can give us this information. I want to save the error logs in a text file format and the disk space as a .jpeg image, on the local machine.
Please also let me know which language would be best for this Python scripting or c#.

Thanks,
Gb1114
Posted
Updated 23-Jun-13 17:54pm
v4
Comments
Ron Beyer 23-Jun-13 23:07pm    
You would like to display it how? Web page? Application? Windows Forms? WPF?
GB_1114 23-Jun-13 23:14pm    
Hi, Sorry I forgot to mention this, The error log as a text file and the disk space as a .jpeg image saved on local machine.
Ron Beyer 23-Jun-13 23:28pm    
You still didn't answer the question though, how do you want to display it?
GB_1114 23-Jun-13 23:31pm    
Sorry , my bad, I have modified the question.. you have any idea how to get this information?

1 solution

Hello

how to calculate free disk space?

SystemInformation Class

Reading Event Log Entries

And you can create a Simple Console Application and Install it on the servers or
Create Windows Service and save the logs in a specific folder or path.

[Updated:]
For having a visual chart of disk information, look at this: Disk Size Explorer
Or: An Implementation of System Monitor
 
Share this answer
 
v3
Comments
GB_1114 25-Jun-13 12:31pm    
Hello Shahin,
Thanks for the reply and the links, can you please let me know how to get an image of the disk space..like the one we see when we click my computer. secondly, I will have to do a remote access of the servers and get this information for their disk space and error logs. Would these links be useful in that? Thanks again for the reply.
Shahin Khorshidnia 25-Jun-13 13:16pm    
Hello,
1. Remoting access to server is another subject and you don't have to code for it. Use Remote Desktop Connection (http://windows.microsoft.com/en-us/windows7/products/features/remote-desktop-connection)
2. For Image of the disk space please look at the updated answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900