The z/OS UNIX sntpd command: Simple Network Time Protocol

The z/OS UNIX sntpd command is used to start the sntp daemon.
Note: TCP/IP must be started prior to starting SNTPD.

Format

Read syntax diagramSkip visual syntax diagram
>>-sntpd-------------------------------------------------------->

>--+-+-----------------+-+---------------+-+----------------------------+-+----------------------------+-+-------+-+-><
   | +- -d-------------+ '- -pf pathname-' | .-unicast mode-.           | | .-unicast mode-.           | '- -s n-' |   
   | '- -df --pathname-'                   '-+--------------+- -b nnnnn-' '-+--------------+- -m nnnnn-'           |   
   '-?-------------------------------------------------------------------------------------------------------------'   

Parameters

-?
Specifies the command help.
-d
Enables debugging. Debug messages go to the syslog daemon.
-df pathname
Enables debugging. Debug messages go to the specified file location. For example:
-df /var/sntpd.debug
-pf pathname
z/OS UNIX file system path for the pid file. For example:
 -pf /var
-b nnnnn
Act in broadcast mode. Send local broadcasts on all interfaces every nnnnn seconds. Valid values are in the range 1 – 16 284. Listen for requests and respond with unicast replies.
-m nnnnn
Act in multicast mode. Send multicast updates (TTL = 1) on all interfaces every nnnnn seconds. Valid values are in the range 1 – 16 284. Listen for requests and respond with unicast replies.
-s n
Use n as the stratum level in all replies sent by the server. Valid values for n are in the range 1 – 15. The stratum level indicates the relative accuracy of the local clock compared to the clocks of other SNTP servers in the network. One is most accurate. Fifteen is least accurate.

If -s is not specified or an invalid value is specified, the default stratum level will be 1.

Note: The SNTP server always responds to client requests (unicast mode) whether the -b, -m, or both start options are specified.

Examples

Sample SNTPD debug output
Tue Apr  2 15:26:14 2002 Writing PID to file /etc/sntpd.pid                     
Tue Apr  2 15:26:14 2002 EZZ9602I SNTP server initializing                      
Tue Apr  2 15:26:14 2002 Initializing signal handling                           
Tue Apr  2 15:26:14 2002 Set sigaction of signal SIGINT                         
Tue Apr  2 15:26:14 2002 Set sigaction of signal SIGTERM                        
Tue Apr  2 15:26:14 2002 Set sigaction of signal SIGABND                        
Tue Apr  2 15:26:14 2002 Set sigaction of signal SIGABRT                        
Tue Apr  2 15:26:14 2002 Set sigaction of signal SIGQUIT                        
Tue Apr  2 15:26:14 2002 Set sigaction of signal SIGHUP                         
Tue Apr  2 15:26:14 2002 Set sigaction of signal SIGTTOU                        
Tue Apr  2 15:26:14 2002 Initializing MVS command handling                      
Tue Apr  2 15:26:14 2002 Initializing pthread for MVS command                   
Tue Apr  2 15:26:14 2002 Initializing UDP socket(s)                             
Tue Apr  2 15:26:15 2002 SNTP port was set to 123                               
Tue Apr  2 15:26:15 2002 Bound to address: 9.67.2.1                             
Tue Apr  2 15:26:15 2002 Bound to address: 9.67.115.15                          
Tue Apr  2 15:26:15 2002 Bound to address: 9.67.2.2                             
Tue Apr  2 15:26:15 2002 Bound to address: 0.0.0.0                              
Tue Apr  2 15:26:15 2002 Initializing pthread for multicast/broadcast
Tue Apr  2 15:26:15 2002 Initializing pthread for unicast
Tue Apr  2 15:26:15 2002 EZZ9600I SNTP server ready                         
Tue Apr  2 15:28:15 2002 Sending NTP message to multicast address 224.0.1.1 
Tue Apr  2 15:30:15 2002 Sending NTP message to multicast address 224.0.1.1