Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

what is the equivalent file to linuxe's "ntp.conf" in aix ?

Posted on 2011-02-25
5
Medium Priority
?
593 Views
Last Modified: 2012-05-11
I am collecting ntp.conf in linux

what do I need to collect from solaris & aix ?/
0
Comment
Question by:TIMFOX123
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 34979316
solaris : /etc/inet/ntp.conf
aix : etc/ntp.conf

0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 34979332
Hi,

AIX: /etc/ntp.conf

AIX uses xntpd. It's started via SRC in /etc/rc.tcpip so you can use "startsrc -s xntpd", "stopsrc -s xntpd", "refresh -s xntpd" and "lssrc -ls xntpd".
ntpq, ntpdate etc. and xntpdc are available.

Solaris: /etc/inet/ntp.conf
Solaris uses xntpd as well. The service is controlled by svcadm. "svcs" and "svcadm" can be used.
ntpq, ntpdate etc. are available.

wmp
0
 

Author Comment

by:TIMFOX123
ID: 34984445
Ok it is my job to "prove" ntp is running on these boxes.  I can not find a ntp.conf xnpt.conf  on the box.  

I tried for the long shot  svcs | grep ntp
one box came up with svc:/network/ntp:default

How can I find the file that tells me what ntp servers it uses to keep it's time correct. ?

0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 2000 total points
ID: 34984622
Which OS does the "box" run?

In AIX it's definitely /etc/ntp.conf, the process is xntpd.
You can check with "lssrc -ls xntpd". It will show you status and configuration.
"ps -ef |grep ntp" will show you the running process, if any.
/etc/ntp.conf is always present, because xntpd comes with "bos.net.tcp.client", a fileset which is installed by default, regardless of whether you plan to use xntpd or not.

In Solaris it's /etc/inet/ntp.conf, the process is also xntpd and you can check with
"svcs |grep ntp", just as you wrote, and additionally of course with "ps -ef | grep ntp", just as above under AIX.
Initially there are /etc/inet/ntp.server and /etc/inet/ntp.client. The appropriate file must be renamed/copied to /etc/inet/ntp.conf, depending on whether you're going to configure the machine as a server or a client.

If there is no ntp.conf the box is maybe running openntpd, whose configuration file is /etc/ntpd.conf!
openntpd exists in portable versions for Solaris and even for AIX.

wmp
0
 

Author Closing Comment

by:TIMFOX123
ID: 35020767
What I as missing is that I was not looking on the Global Zone using solaris zones

that is why the file was not there.

thank yall
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question