|
@@ -229,9 +229,11 @@ class GenerateRemoteCrontabCommand extends ContainerAwareCommand
|
|
|
|
|
|
$library = $data['library'];
|
|
|
$snmpCommunity = $data['snmpCommunity'];
|
|
|
+ $docsVersion = $data['docsVersion'];
|
|
|
$description = $data['name'];
|
|
|
$deviceIp = $device->getIp();
|
|
|
$timeScan = $data['timeScan'];
|
|
|
+ $timeOctets = $data['timeCmtsOctets'];
|
|
|
|
|
|
$params = "--cmts-ip={$deviceIp} --cmts-community={$snmpCommunity} --cmts-snmp-library={$library} --cmts-device-id={$deviceId} --cmts-server-id={$serverId}";
|
|
|
if ($amqp)
|
|
@@ -248,11 +250,21 @@ class GenerateRemoteCrontabCommand extends ContainerAwareCommand
|
|
|
|
|
|
$commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:interface:stats {$params}";
|
|
|
|
|
|
+ if ($amqp) {
|
|
|
+ $params .= " --args=--cmts-docs:{$docsVersion}";
|
|
|
+ } else {
|
|
|
+ $params .= " --cmts-docs={$docsVersion}";
|
|
|
+ }
|
|
|
+ $commands[] = "*/{$timeOctets} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:octets {$params}";
|
|
|
+
|
|
|
$params = "--cmts-device-id={$deviceId} --cmts-server-id={$serverId}";
|
|
|
if ($amqp) $params = "--args=--cmts-device-id:{$deviceId} --args=--cmts-server-id:{$serverId}";
|
|
|
-
|
|
|
$commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} stats:interface {$params}";
|
|
|
|
|
|
+ $params .= " --generate-remote-commands=0";
|
|
|
+ if ($amqp) $params .= " --args=--generate-remote-commands:0";
|
|
|
+ $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} stats:cm {$params}";
|
|
|
+
|
|
|
$content .= PHP_EOL . "# CMTS {$description} ({$deviceIp})" . PHP_EOL;
|
|
|
|
|
|
$content .= implode(PHP_EOL, $commands) . PHP_EOL.PHP_EOL;
|