How to Programatically find the Web Server version?

Hi,

I'm looking for a way (API?) to programmatically find out the version of the Sun One server in a module that I wrote. NSAPI documentation doesn't show any such option.

I would like to get the exact version of the Sun One Server (e.g. 6.1SP3). Is there any good way of doing so?

Thanks!

[317 byte] By [noam.bonnie] at [2007-11-26 11:29:07]
# 1

why do you want to ?

if you r developing NSAPI plugin, then our NSAPI API interface hasn't changed in a long time though some new API's have been introduced with newer releases.

or else, here is what you will need to do (though, this is not a public interface and has changed with subsequent releases)

for eg, a c program to detect web server 6.1 version will look like

popen("<INSTALL_ROOT>/https-admserv/start -version"

similarly, to detect web server version 7.0, you would do something like

popen("<INSTALL_ROOT/bin/wadm -version")

you might wanna do "man popen " for more info on syntax on how to use this call. Af course, if you r planning to use different language like perl or shell script, then you get the idea as to how to go about doing it.

the catch is that , until web server 7.0, none of the interfaces are public and has changed with major releases.>

chilideveloper at 2007-7-7 3:44:54 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
Isn't there a nsapi function called system_version() ?
motor at 2007-7-7 3:44:54 > top of Java-index,Web & Directory Servers,Web Servers...