Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Python C#4.0
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 23-Jun-13 18:01pm
GB_1114256
Edited 23-Jun-13 18:54pm
v4
Comments
Ron Beyer at 23-Jun-13 23:07pm
   
You would like to display it how? Web page? Application? Windows Forms? WPF?
GB_1114 at 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 at 23-Jun-13 23:28pm
   
You still didn't answer the question though, how do you want to display it?
GB_1114 at 23-Jun-13 23:31pm
   
Sorry , my bad, I have modified the question.. you have any idea how to get this information?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
v3
Comments
GB_1114 at 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 at 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)

  Print Answers RSS
0 OriginalGriff 5,170
1 DamithSL 4,357
2 Maciej Los 3,750
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,851


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 25 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100