ntprc man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

ntprc(4)			 File Formats			      ntprc(4)

NAME
       ntprc - file to initialize perferences for NTP programs

DESCRIPTION
       The .ntprc file contains data used to initialize certain parameters for
       various NTP related programs. When these programs are started, the cur‐
       rent  directory	is  searched for the existence of the .ntprc file.  If
       found, the file is read and searched for a section header  that	speci‐
       fies  the program being run. If such a section is found, then the lines
       in that section are used to initialize the program. If such  a  section
       is  not	found  and no other sections are found, then the whole file is
       used do the initialization.  If the file is not found  in  the  current
       directory,  the	users  home  directory is searched if found then it is
       processed as above.

       The .ntprc file is a text file, with each line specifying the  settings
       of  a  command  line  flag.  The	 flags are indicated by the use of the
       flag's long name. Anything after the long name on the line is  used  to
       set the value of the flag if it takes a value. The same file is used by
       several NTP programs, so to separate which lines	 go  with  which  pro‐
       grams, the file is split into sections. Each section is marked with the
       name of the corresponding program in all	 capital  letters  and	inside
       square  brackets.   Comments  can be given in the file by beginning the
       comment line with a "#" in the first column.

       The best way to set the lines in the file is  to	 run  the  command  in
       question	 with  all  of the flags the way you want them and to give the
       --save-opts filename flag at the end to save the parameters to a	 file.
       After  that,  simply edit the resulting file to remove the comments and
       add the section header and then append the file to the .ntprc file.

EXAMPLES
       Example 1 A Sample .ntprc File

       A .ntprc file containing the following lines:

	 [NTPQ]
	 numeric
	 command rv 0
	 [NTPDC]
	 peers

       will force the ntpq program to always execute the "rv  0"  command  and
       print  the  results  with  IP  addresses and not hostname. It will also
       cause the ntpdc program to always run as	 if  the  --peers  option  was
       given.

FILES
       ~/.ntprc

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Availability		     │SUNWntp4u			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Interface Stability	     │Uncommitted		   │
       └─────────────────────────────┴─────────────────────────────┘
NOTES
       The  package name associated with this file will be changed in the next
       release and should not be relied on.

SEE ALSO
       ntpq(1M), ntpdc(1M), ntp-keygen(1M)

								      ntprc(4)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net