Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to get information about the Webserver Via Scripts

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
I am writing a Dianostic web application for another web app we have, so far I was able to create some what of a filemanager, that'll show the Version informations for ActiveX files, and other types, now I Want to be able to present information about the webserver.<br><br>1) Determine Properties that are set<br>2) Determine state of web services<br>3) Determine version of WebServer(ie: NT sp, IIS version, etc)<br><br>by being able to show information webserver, ODBC setups, and controls, we can help our client without spending half a day on the phone with them asking them to check the version of this and that. any help is appreciated thanks <br><br><i>also anyone know how to get ODBC information, like the DSN on the machine, if this can be done in VB ActiveX Dll, I can do that too</i> <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Dear Karl,<br><br>I may not understand your question correctly, but here is some information even if it's not on point.<br><br>Most web servers send version and type information in the HTTP headers, so an ActiveX control could get that for you. <br><br>ODBC DSN can be enumerated so you could write an ActiveX control to do that for your ASP code, if there isn't already one provided by MS. You can even create DSN's and delete them. There are articles and sample code for this at msdn.m.... well you know where. ;o)<br><br>Good luck<br>-pete
 
I know how to create, remove DSN, and such, since my instalation program needs to do it, but the application I am writing is a Dianostic page, It'll need to be able to get some infomation like what version of IIS they have, what NT SP do they have, what Web Properties are set, that way if a customer has a problem, we can check the dianostic page for this informatino, as far as getting all the ODBC settings, like all the DSN and the details for each, we'll that's going to be fun :}.<br><br>thanks for your input, but I've been around MSDN like immensly over the past couple days about the webserver thing. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Dear Karl,<br><br>For sure you can write an ActiveX control that will locate and return the file version information for the web server executable(s). This appears to also be the only way to determine service packs according to the MSDN articles that I have seen. There is a list of files and their versions according to SP listed on MSDN.<br><br>You might be able to use the FileSystemObject in your ASP code to do this. Since you have experience building ActiveX controls I would suggest taking that route.<br><br>If I understand you correctly, it might be enough just to list a few pertinant files and their version information in the page you are building.<br><br>Good luck<br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top