DCE Application Programming Guide

Building, Running, and Debugging NonStop DCE
Applications
HP NonStop DCE Application Programming Guide429551-003
4-5
Using NonStop DCE Environment Variables
Distributed time services (DTS) information
°
An application can determine whether client and server clocks are tested for
synchronization by checking the CHECK_TIME environment variable, which can
have these values:
The default value is y.
°
An application can also determine the current DTS server by checking the
TIME_SERVER environment variable, which specifies the virtual host that the
security client synchronizes its clock against.
°
An application can check the TOLERANCE_SEC environment variable to
determine the number of seconds a client system clock can differ from the
security server system clock before either the user is prompted to synchronize
clocks or clocks are synchronized automatically.
The default value is 120 seconds.
Both the security service and the CDS service require that there be no more
than a 5-minute difference between the clocks on any two nodes in a cell.
NonStop DCE virtual host information
An application can determine the name of the virtual host in which it runs by
checking the DCEVH or TCPIP_PROCESS_NAME environment variable.
The DCEVH environment variable specifies the TCP/IP hostname assigned to the
virtual host. This environment variable is used by the dce_config utility, DCE
demons, application servers, and clients.
The TCPIP_PROCESS_NAME environment variable specifies the Guardian process
name for the TCP/IP stack of the virtual host.
The value specified for DCEVH is used when the TCPIP_PROCESS_NAME
environment variable is not specified.
If neither DCEVH nor TCPIP_PROCESS_NAME is specified, the default value of
DCEVH is the name of the virtual host containing the /opt/dcelocal directory. If
the /opt/dcelocal directory is not available, a default process name of
/G/ZTC0 is assumed and the default value of DCEVH is the hostname attribute of
/G/ZTC0.
If the TCPIP_PROCESS_NAME and DCEVH environment variables are both set, then
the value specified for DCEVH is ignored and the hostname attribute of the
specified process is used.
y indicates that time is checked
n indicates that time is not checked