Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Server Monitoring
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sr_erick
Senior Member

USA
1318 Posts

Posted - 14 April 2004 :  12:37:00  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
Here's what I want to do. I want to create an asp page, when executed, grabs the current CPU time, and server uptime (or IIS uptime for that matter) and display it for me.

I need some tips, I'm assuming an object needs to be created to access this information. What object do I need? Thanks!




Erick
Snowmobile Fanatics

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 14 April 2004 :  14:37:00  Show Profile
To get IIS uptime you can set an Application variable in the Application_OnStart method in the global.asa file

eg
Sub Application_OnStart
      Application("IIS_START") = Now()
End Sub


Then you can display the IIS start time using Application("IIS_START") in any ASP page. Use the DateDiff function to compare the IIS start time to the current time to get the actual uptime
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 14 April 2004 :  18:12:53  Show Profile  Visit Gremlin's Homepage
If you've got full access to the server this is quite nifty http://aspsysinfo.kex3.dyndns.org/

Theres a similar PHP project for *nix servers as well http://phpsysinfo.sourceforge.net/

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 14 April 2004 :  21:19:16  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
Thanks, that looks interesting. I'll look into installing it and trying out some things.




Erick
Snowmobile Fanatics

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07