Meinberg LANTIME/GPS Operating Instructions Manual page 95

Etx 1he
Table of Contents

Advertisement

GenerateHTTPSKey(5)
A new HTTPS key will be generated.
ResetFactoryDefaults(6)
The configuration of the timeserver is reset to factory defaults, afterwards an
automatic ReloadConfig is executed in order to use these default settings.
GenerateNewNTPAutokeyCert(7)
A new key is generated, it can be used with the NTP AUTOKEY feature.
SendTestNotification(8)
A test message is sent by using all notification methods the timeserver has a
configuration for (e.g. mail, winpopup, SYSLOG etc.).
A few examples:
(we are again using the snmpset command which comes with the net-snmp tools).
root@testhost:/# snmpset -v2c -r 0 -t 10 -c rwsecret timeserver.meinberg.de
mbgLtCmdExecute.0 int 1
MBG-SNMP-LANTIME-CMD-MIB::mbgLtCmdExecute.0 = INTEGER: Reboot(1)
root@testhost:/#
The command shown above is forcing the timeserver to reboot. Instead of using the
integer value, you may also enter the command name, as it is defined in the MIB file
MBG-SNMP-LANTIME-CMD.txt (and in the command list above).
If you want the timeserver to reload it's configuration file (which you previously
uploaded via FTP probably), you would enter this command:
root@testhost:/# snmpset -v2c -r 0 -t 10 -c rwsecret timeserver.meinberg.de
mbgLtCmdExecute.0 int ReloadConfig
MBG-SNMP-LANTIME-CMD-MIB::mbgLtCmdExecute.0 = INTEGER: ReloadConfig(3)
root@testhost:/#
Please pay attention to the options "-r 0" (meaning "no retries") and "-t 10" (meaning
"timeout of 10 secs") in the above examples. These options avoid multiple executions
of the desired command, additionally they give your snmpset command enough time
to wait for an acknowledgement from the timeservers snmp agent.
95

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents