Operating System - OpenVMS
1753765 Members
6111 Online
108799 Solutions
New Discussion юеВ

How to identify if system is a server or workstation

 
SOLVED
Go to solution
Vineet Deshpande
Frequent Advisor

How to identify if system is a server or workstation

Hi,

I want to find if an OpenVMS system is a Server or a Work Station.

Is there any DCL command or lexical function for this ?

Please help.

Thanks,

Vineet
19 REPLIES 19
Wim Van den Wyngaert
Honored Contributor

Re: How to identify if system is a server or workstation

f$getsy("hw_name") shows something with "station" on Alpha. No other hardware over here.

Wim
Wim
Joseph Huber_1
Honored Contributor

Re: How to identify if system is a server or workstation

The attribute "server" is not well defined:
a workstation can as well be a disk- and boot-server.

A workstation usually must run some window system to be recognized as such:
if f$getsyi("WINDOW_SYSTEM") .ne. 0 then -
"this is a workstation".

Server systems will have system parameters
MSCP_SERVE_ALL or TMSCP_SERVE_ALL /= 0

http://www.mpp.mpg.de/~huber
Joseph Huber_1
Honored Contributor

Re: How to identify if system is a server or workstation


Even the WINDOW_SYSTEM parameter probably is not enough: a server may have WINDOW_SYSTEM=1 to enable X11 client programs to display somewhere else.

So one has (in case of window_system == 1) to see if an X11 server is running:
once has to do a process-scan to see if a process with name beginning with "DECW$SERVER"
exists.
http://www.mpp.mpg.de/~huber
Wim Van den Wyngaert
Honored Contributor

Re: How to identify if system is a server or workstation

Joseph,

My 4100 and GS160 with 7.3 are workstations according to your rule.

In fact none of my stations and servers display are servers (all return 1).

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: How to identify if system is a server or workstation

And I have quorum stations that don't have decw. So, that's not foolproof.

Wim
Wim
Joseph Huber_1
Honored Contributor

Re: How to identify if system is a server or workstation

> And I have quorum stations that don't have decw. So, that's not foolproof.

As I have told: the distinction is not well defined.
If something is a potential workstation (because it has a graphic head), but has not enabled the software to use it, then I don't call (or count) it as a workstation.
http://www.mpp.mpg.de/~huber
Joseph Huber_1
Honored Contributor

Re: How to identify if system is a server or workstation

> My 4100 and GS160 with 7.3 are workstations according to your rule.

Yes, if they have a graphic head and run DECW$SERVER.
They most probably are servers as well.
http://www.mpp.mpg.de/~huber
Kumar_Sanjay
Regular Advisor

Re: How to identify if system is a server or workstation

Vineet,

couple of think involve on that.
Like what hardware you are using, and your license loaded in the system.
Well there is no such separate operating system called VMS workstation or
Server. It depends upon you, how you are using the VMS system as workstation or server.


Regards
Sanjay
Joseph Huber_1
Honored Contributor

Re: How to identify if system is a server or workstation

BTW, from DECW$STARTUP.COM:

$ ! Unless we are specifically skipping workstation specific setup,
$ ! or we know for a fact (as reported by SYS$STARTUP:LICENSE_CHECK.EXE
$ ! in an earlier stage of the startup process) that this system is not
$ ! correctly licensed, determine if this is a workstation
$ !
$ IF F$TRNLNM("DECW$IGNORE_WORKSTATION") .OR. (F$TRNLNM("DECW$LICENSE_CHECK") .EQS. "FALSE")
$ THEN
$ decw$device == "NONE"
$ ELSE


i.e. those 4100/GSnnn having a graphic console, but are considered as servers, which almost never use the graphics console, should define the logical DECW$IGNORE_WORKSTATION before DECW$STARTUP to inhibit start of DECW$SERVER.
Then by my definition they are not workstations (in the software meaning).
http://www.mpp.mpg.de/~huber