
14.1 Conguration over SNMP
Page 101
14.1.2 Further configuration possibilities
Because the timeserver uses a standard version of the net-snmp SNMP daemon (with extended features covering
the timeserver-specic functions), all conguration parameters of the SNMPD can be used. The conguration
le of the SNMP daemon is located at /usr/local/share/snmp after boot time, the lename is snmpd.conf.
During the boot sequence, this le is created dynamically by using a template le and appending the SNMP
parameters stored in the timeserver setup.
If you need to customize the conguration of the timeservers SNMPD (for setting up detailed access control
rights for example), you may edit /mnt/ash/packages/snmp/etc/snmpd_conf.default (which is the men-
tioned template le). Please note that some lines are appended to this le (as described above), before it is used
as /usr/local/share/snmp/snmpd.conf by the snmpd process.
14.1.3 Send special timeserver commands with SNMP
The timeserver is capable of receiving special commands by SNMP in order to reboot the unit or reload its
conguration after you manually changed it. A special SNMP variable is reserved for this (mbgLtCmdExecute)
and has to be set to a special integer value for each command. The following commands are available:
Reboot(1)
Setting the mbgLtCmdExecute variable to value 1 will reboot the timeserver after a short waiting period of ap-
proximately 3-5 seconds.
FirmwareUpdate(2)
This command installs a previously uploaded (with FTP for example) rmware version.
ReloadCong(3)
The parameters of the timeserver conguration (stored in
/mnt/ash/global_conguration) are re-read and afterwards a number of subsystems (e.g. NTPD, HTTPD/HTTPSD,
SMBD) will be restarted in order to use those eventually changed settings. Please note that the SNMPD will not
be restarted by this command (you have to use reboot instead or restart it manually by killing the process and
starting it again in the shell).
GenerateSSHKey(4)
A new SSH key will be generated.
GenerateHTTPSKey(5)
A new HTTPS key will be generated.
ResetFactoryDefaults(6)
The conguration of the timeserver is reset to factory defaults, afterwards an automatic ReloadCong 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.
SendTestNotication(8)
A test message is sent by using all notication methods the timeserver has a conguration for (e.g. mail, win-
popup, 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:/#
LANTIME M600 MRS
Date: 31st July 2014
101