Ramblings of a Linux Geek.

Solaris

Configuring NTPD in Solaris

by on Feb.09, 2008, under Operating System, Solaris

Add the following to vi /etc/inet/ntp.conf

driftfile /etc/ntp.drift
server 0.north-america.pool.ntp.org
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
server 3.north-america.pool.ntp.org

Then run following commands

touch /etc/ntp.drift
svcadm enable svc:/network/ntp
svcadm refresh svc:/network/ntp
svcadm restart svc:/network/ntp

To make sure the ntp daemon is started run the following command “svcs | grep ntp” if the service is running you should see something like the output below.

online 20:42:57 svc:/network/ntp:default

Also the output of “ntpq -pn” will show what time server you are using by the * next to it.

bash-3.2# ntpq -pn
remote refid st t when poll reach delay offset disp
=========================================================
+216.237.126.10 132.239.1.6 2 u 10 128 377 61.31 -0.120 1.08
*217.160.254.116 209.51.161.238 2 u 78 128 377 61.33 0.359 0.50
-217.160.252.91 64.142.103.194 2 u 90 512 377 62.55 8.937 1.10
+207.5.137.134 192.168.1.114 3 u 71 128 377 75.55 4.623 0.12

Link to the ntp pool group http://www.pool.ntp.org/

1 Comment more...

Enable remote ZFS web administration

by on Nov.28, 2007, under Solaris

Not really much to say just wanted to post this little snippet so I can do a ZFS writeup latter on.

To enable the nsmcwebserver to listen to remote connections with out having to run “netservices open” and turn on all services to accept remote connection. The following three commands will

svccfg -s svc:/system/webconsole \

    setprop options/tcp_listen = true
svcadm refresh svc:/system/webconsole/usr/sbin/smcwebserver restart

Official Sun docs here

Hope this little tidbit helps someone else if they are lucky enough to stumble upon it.

1 Comment : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!