1
votes

Can someone please let me know How to programmatically find out whether the Domino server is installed on Unix or Windows.

Is there any Domino server API to find out in which OS(OS related information) the domino server is running.

3

3 Answers

4
votes

You can use the formula @Platform function for this.

When it is used in column, selection, or scheduled agent formulas, @Platform returns the current platform where the database resides. If the database resides on a server, @Platform returns the server platform; if the database resides locally, @Platform returns the workstation platform.

2
votes

If you open the main Domino Directory on the server ( names.nsf ) and look at the server/servers view you will see a list of all the Domino servers that are setup. Each record contains a reference to the OS that is running the server.

1
votes

In LotusScript or with the COM classes, use NotesSession.Platform(). In Java, use Session.getPlatform(). Note that in either case, your code must be running on the actual server that you are testing.