comvbscriptasp-classicsunone

How can I find out more about my classic ASP environment?


I'm trying to make some modifications to some old ASP pages running VBScript on a server that I don't have a lot of information about. The people who would have that information are off in another department/hard to track down/probably wouldn't be able to provide complete information anyway.

I would like to run an ASP script that would get the server to tell me about itself. Information I would like to know is stuff like:

Bearing in mind that I know very little about ASP, what is some code that I could put into an ASP file I could run on the server so that it would provide me this information?


Based on the ServerVariables clue provided in the comment by JB King, below, I wrote this code and put it in an ASP:

<%   
    dim x
    for each x in Request.ServerVariables
      response.write("<p>" & x & ": " & Request.ServerVariables(x) &"</p>")
    next
%>

This provided a lot of the information I needed - such as telling me that I'm actually running under something called Chili!Soft on a Solaris server, not Windows, which probably explains why the stuff I want to use from the Microsoft library doesn't work.

I still would like a good way of figuring out what COM objects are available in this environment...


Solution

  • So, you've found out that the server is running Chili!Soft. You can probably assume that the COM objects will mostly be limited to the basics like the ASP Built-in (intrinsic) objects, and some form of data access like ADO. I don't know of an easy way to blindly list the registered COM classes for a server with VBScript. My guess is that this wouldn't work so well on a Solaris platform anyways since COM registers classes in the Windows registry... does Solaris have a Windows registry? ;)

    Here are some links to the official Chili!Soft reference pages (aka Sun ONE ASP):

    ASP Built-in Objects Reference - covers: Application, ASPError, Request, Response, Server & Session objects

    Sun ONE ASP Installed Components - Note that these may not be available on your installation since you might be on an older version of the platform (add-on components such as: Ad Rotator, Browser Capabilities, Counters, etc)

    Sun ONE ASP XML Control - Supposed to correspond to the COM interfaces in MSXML 1.0

    Also, if the server has Chili!Beans installed and enabled you can access Java components in VBScript as if they were COM components. More info on that here.

    Lastly, you may want to try and access the Administration Console for Sun ONE ASP via either http://[HOSTNAME]:5100 or http://[HOSTNAME]/caspsamp. Detailed instructions for accessing the admin console can be found here. If you can manage to get in I am sure there is a lot more information to discover about the server in the admin console.

    Good Luck!