- Oracle ZFS Storage Appliance Administration Guide, Release OS8.8.x
- Appliance Services
- Configuring Services
- NTP Configuration
- Configuring NTP (CLI)
Configuring NTP (CLI)
Use this procedure to configure NTP.
- Go to
configuration services ntp
and enterauthkey
to edit authorizations.hostname:configuration services ntp> authkey hostname:configuration services ntp authkey>
- From this context, new keys can be added with the
create
command.hostname:configuration services ntp authkey> create hostname:configuration services ntp authkey-000 (uncommitted)> get keyno = (unset) type = (unset) key = (unset) hostname:configuration services ntp authkey-000 (uncommitted)> set keyno=1 keyno = 1 (uncommitted) hostname:configuration services ntp authkey-000 (uncommitted)> set type=A type = A (uncommitted) hostname:configuration services ntp authkey-000 (uncommitted)> set key=coconuts key = (set) (uncommitted) hostname:configuration services ntp authkey-000 (uncommitted)> commit hostname:configuration services ntp authkey>
- To associate authentication keys with servers via the CLI, the
serverkeys
property should be set to a list of values in which each value is a key to be associated with the corresponding server in the servers property.If a server does not use authentication, the corresponding server key should be set to
0
. For example, use the following commands to use the key created earlier to authenticate the serversserver1
andserver2
:hostname:configuration services ntp> set servers=server1,server2 servers = server1,server2 (uncommitted) hostname:configuration services ntp> set serverkeys=1,1 serverkeys = 1,1 (uncommitted) hostname:configuration services ntp> commit hostname:configuration services ntp>
- To associate authentication keys with servers, set the
serverkeys
property to a list of values in which each value is a key to be associated with the corresponding server in theservers
property.If a server does not use authentication, the corresponding server key should be set to
0
. For example, use the following commands to use the key created earlier to authenticate the serversserver1
andserver2
.hostname:configuration services ntp> set servers=server1,server2 servers = server1,server2 (uncommitted) hostname:configuration services ntp> set serverkeys=1,1 serverkeys = 1,1 (uncommitted) hostname:configuration services ntp> commit hostname:configuration services ntp>
- Use the following commands to authenticate the server
server1
with key1
,server2
with key2
, andserver3
with key3
.hostname:configuration services ntp> set servers=server1,server2,server3 servers = server1,server2,server3 (uncommitted) hostname:configuration services ntp> set serverkeys=1,2,3 serverkeys = 1,2,3 (uncommitted) hostname:configuration services ntp> commit hostname:configuration services ntp>
- Use the following commands to authenticate the servers
server1
andserver2
with key1
, and to additionally have an unauthenticated NTP server (server3
).hostname:configuration services ntp> set servers=server1,server2,server3 servers = server1,server2,server3 (uncommitted) hostname:configuration services ntp> set serverkeys=1,1,0 serverkeys = 1,1,0 (uncommitted) hostname:configuration services ntp> commit hostname:configuration services ntp>