|
@@ -177,8 +177,8 @@ class GenerateRemoteCrontabCommand extends ContainerAwareCommand
|
|
|
$data = $device->jsonExtraData();
|
|
|
$deviceId = $device->getDeviceId();
|
|
|
|
|
|
- if (is_null($data['radiusPassword']) || empty($data['radiusPassword'])){
|
|
|
- $content .= PHP_EOL . PHP_EOL . "# Device(NAS) {$deviceId} skiped, radiusPassword is null or empty" . PHP_EOL;
|
|
|
+ if (is_null($data['snmpCommunity']) || empty($data['snmpCommunity'])){
|
|
|
+ $content .= PHP_EOL . PHP_EOL . "# Device(NAS) {$deviceId} skiped, snmpCommunity is null or empty" . PHP_EOL;
|
|
|
continue;
|
|
|
}
|
|
|
if (!in_array($data['library'], array('OIDSBase'))){
|
|
@@ -192,7 +192,7 @@ class GenerateRemoteCrontabCommand extends ContainerAwareCommand
|
|
|
}
|
|
|
|
|
|
$library = $data['library'];
|
|
|
- $snmpCommunity = $data['radiusPassword'];
|
|
|
+ $snmpCommunity = $data['snmpCommunity'];
|
|
|
$description = $data['description'];
|
|
|
$deviceIp = $device->getIp();
|
|
|
|