Frage

Ich versuche, einige Änderungen an einigen alten ASP-Seiten, läuft VBScript auf einem Server, dass ich nicht viele Informationen über haben. Die Leute, die diese Informationen sind aus in einer anderen Abteilung haben würden / schwer aufzuspüren / wahrscheinlich nicht in der Lage sein würde sowieso alle Informationen zur Verfügung zu stellen.

Ich möchte ein ASP-Skript ausgeführt werden soll, dass der Server mir bekommen würde sagen, über sich selbst. Informationen Ich mag würde wissen, Sachen wie:

  • die Versionsnummer des Servers
  • Windows-Version es läuft
  • die Version von VBScript bin ich mit
  • , welche die dll und COM-Objekte sind für mich
  • verwenden

In Anbetracht der Tatsache, dass ich weiß sehr wenig über ASP, was ist ein Code, dass ich in eine ASP-Datei setzen konnte ich auf dem Server ausgeführt werden könnte, so dass es mir diese Informationen zur Verfügung stellen würde?


Basierend auf dem Hinweis Servervariables im Kommentar von JB König zur Verfügung gestellt, unter, ich diesen Code geschrieben und stecke es in einer ASP:

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

Dieses eine Menge der bereitgestellten Informationen die ich brauchte - wie mir zu sagen, dass ich tatsächlich läuft unter etwas namens Chili Weiche auf einem Solaris-Server, Windows nicht, was wahrscheinlich erklärt, warum das, was ich von der Microsoft verwenden möchten! Bibliothek funktioniert nicht.

Ich möchte noch eine gute Möglichkeit, herauszufinden, was für COM-Objekte in dieser Umgebung zur Verfügung stehen ...

War es hilfreich?

Lösung

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!

Andere Tipps

Server Variables would be a starting point though I'm not sure how well that would work as if you could remote onto the server that may be a better option. You may also want to look into COM objects as those were used with ASP that involve some DLLs.

You may want to look into what version of IIS is being used and what ISAPI filters are on server for a couple of other points along with what logging is there on the server.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top