192Configuration of the Update Server

13.4 Running Maintenance

The update file is immediately read and also immediately executed. After a device restart, the update server is automatically queried periodically in accordance with the interval set. When the maintenance file has been successfully received, it is executed sequentially. Theoretically, all commands that can be transmitted to the device in a Telnet session or that occur in a configuration file can be used in the maintenance file.

13.5 Maintenance Commands

Additional commands implemented specially for the update server are available. The maintenance file is executed every time (depending on the interval set), as soon as it is received.

13.5.1 Check Command

In most cases, however, the maintenance file should be executed not every time as soon as it is received, but once only. Assuming that a secure configuration is to be loaded onto several devices, then it is best if this is done from one device. This can be achieved with the check command:

mod cmd UP1 check <final-command> <serial>

KIRK devices have an internal variable that is initially empty (or empty if the device was reset with the standard settings) called UPDATE/CHECK. The check command compares the content of <serial> with the UPDATE/CHECK variable. If both match, all further processes of the maintenance file are terminated. If they differ, the remaining processes are executed. When the last process has been executed, the UPDATE/CHECK variable is overwritten with the content of <serial>, and the content of <final-command>is executed. The following commands are usable content for <final-command>

ireset. Resets the device as soon as it is not being actively used.

reset: Resets the device immediately.

iresetn: Resets the device as soon as it is not being actively used and a reset i required.

resetn: Resets the device immediately if a reset is required.

ser: no-op

13.5.2 Times Command

Often, configuration changes shall be made only during certain times (e.g. non-working hours). This can be achieved using the times command:

mod cmd UP1 times [/allow <hours>] [/initial <minutes>]

14117800, Ed.2.6

Page 192
Image 192
Polycom 14117800 manual Running Maintenance, Maintenance Commands, Check Command, Times Command