NTP

Import OPBNOS API

from opbclient import opb_api as opbapi

Initialize client

Use the appropriate JSON file that corresponds to the targetted device name. This JSON file should contain request body parameters corresponding to any potential configuration/post requests.

node = opbapi.connect_to('SN2010')

Configure NTP server

In order to configure NTP server information, the API, configNTP(), must be invoked with the server IPv4 as input parameters.

dt = {"ipv4":"128.xx.xx.xx"}
node.configNTP(dt)
Attribute Values Description
ip "128.XXX.XXX.XXX" NTP server IPv4 value

Get/Show NTP server

Retrieves NTP servers details

node.execute(['show ntp'])

Delete NTP server

Deletes the NTP server config

node.deleteNTP(ip = "128.xx.xx.xx")