473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

A simple System Info application

Hi there,

I just got an assignment to work on server maintenance. It is a weekly task
and we have about 7 production servers running Win2K server.

The tasks include but not limited to
1) Find out drive free space for each server’s disk drives (C:, D:, E:, and
etc)
2) Report critical errors from the event logs (Application, System,
replication and etc) for each server.
3) Review and perform windows critical updates
4) Make sure each server has the correct time stamp (Atom time for example)

After a weeks of manual processing, I started to wonder whether there is a
simple tool or sample ASP.NET code to do part of these items.

Instead of spending hours to walk through server by server, this simple
ASP.NET app can provide a report about these servers' system information I
don’t know the specific .NET library class that can retrieve these
server/network system info. Could you help?

Thanks a lot.

Best Regards,

Abel chan

Nov 19 '05 #1
2 2348
Hi Abel,

Yes, this could be done using Windows Management Instrumentation (WMI) . It
exposes COM objects that you can use from ASP.NET to get data:
"Windows Management Instrumentation (WMI) provides access to information
about objects in a managed environment. Through WMI and the WMI application
programming interface (API), applications can query for and make changes to
static information in the Common Information Model (CIM) repository and
dynamic information maintained by the various types of providers."

http://msdn.microsoft.com/library/de..._reference.asp

"Windows Management Instrumentation (WMI) Tutorial

WMI is one of those things you hear about but never take any notice until
you look into a little bit and you realise the huge potential for monitoring
your application.

This tutorial will let you interrgoate things such as the IIS Service and
the MSSqlServer service. Note the potential with WMI is staggering - al you
need is some thought about what you want to do with it. "
http://www.csharpfriends.com/Article...?articleID=114
"Abel Chan" <aw***@newsgroup.nospam> wrote in message
news:BE**********************************@microsof t.com...
Hi there,

I just got an assignment to work on server maintenance. It is a weekly
task
and we have about 7 production servers running Win2K server.

The tasks include but not limited to
1) Find out drive free space for each server’s disk drives (C:, D:, E:,
and
etc)
2) Report critical errors from the event logs (Application, System,
replication and etc) for each server.
3) Review and perform windows critical updates
4) Make sure each server has the correct time stamp (Atom time for
example)

After a weeks of manual processing, I started to wonder whether there is a
simple tool or sample ASP.NET code to do part of these items.

Instead of spending hours to walk through server by server, this simple
ASP.NET app can provide a report about these servers' system information
I
don’t know the specific .NET library class that can retrieve these
server/network system info. Could you help?

Thanks a lot.

Best Regards,

Abel chan


Nov 19 '05 #2
Hi Ken,

I will look into WMI.

Thanks for your info.

Abel

"Ken Cox [Microsoft MVP]" wrote:
Hi Abel,

Yes, this could be done using Windows Management Instrumentation (WMI) . It
exposes COM objects that you can use from ASP.NET to get data:
"Windows Management Instrumentation (WMI) provides access to information
about objects in a managed environment. Through WMI and the WMI application
programming interface (API), applications can query for and make changes to
static information in the Common Information Model (CIM) repository and
dynamic information maintained by the various types of providers."

http://msdn.microsoft.com/library/de..._reference.asp

"Windows Management Instrumentation (WMI) Tutorial

WMI is one of those things you hear about but never take any notice until
you look into a little bit and you realise the huge potential for monitoring
your application.

This tutorial will let you interrgoate things such as the IIS Service and
the MSSqlServer service. Note the potential with WMI is staggering - al you
need is some thought about what you want to do with it. "
http://www.csharpfriends.com/Article...?articleID=114
"Abel Chan" <aw***@newsgroup.nospam> wrote in message
news:BE**********************************@microsof t.com...
Hi there,

I just got an assignment to work on server maintenance. It is a weekly
task
and we have about 7 production servers running Win2K server.

The tasks include but not limited to
1) Find out drive free space for each server’s disk drives (C:, D:, E:,
and
etc)
2) Report critical errors from the event logs (Application, System,
replication and etc) for each server.
3) Review and perform windows critical updates
4) Make sure each server has the correct time stamp (Atom time for
example)

After a weeks of manual processing, I started to wonder whether there is a
simple tool or sample ASP.NET code to do part of these items.

Instead of spending hours to walk through server by server, this simple
ASP.NET app can provide a report about these servers' system information
I
don’t know the specific .NET library class that can retrieve these
server/network system info. Could you help?

Thanks a lot.

Best Regards,

Abel chan


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jim Butler | last post by:
What are the drawbacks if any to this approach of not using the gac for shared components... basically having a central directory located outside of iis, that all web applications have a virtual...
7
by: SL | last post by:
Could someone direct to a simple explanation of how to use MS Visual Studio 2003 to design .aspx code? This code works if pasted into notepad and run as an .aspx file: <%@ Import...
11
by: Hazz | last post by:
is there something as easy as just providing a link to an inexpensive credit card approval/payment component to integrate into an asp.net app. My question isn't about the linking process itself but...
5
by: Logickle | last post by:
Hi, all. I'm working on an application which requires communicating session info between separate web apps running on the same web server. The out of process server method sounded ideal, and...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
2
by: Ryan | last post by:
Hi all, I've been banging my head on this for two days so I'd appreciate any pointers from the knowledgable amongst you. I have a win app that recurses through a path looking for assemblies to...
0
by: Trax | last post by:
I am create simple HelloWord example: my code: http://temp.f5web.com/1HelloWorld.zip on this URL: http://infowebpages.info/test/Default.aspx Any ideas why error below? Runtime Error
2
by: electroman | last post by:
Hello! I am having a very weird problem that I cant find any solution on the Internet (after so many years!). I am trying to code a C# program and I am using the WebBroswer control. The code is...
5
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.