mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
scripts/gen_rancid.php: Add support for H3C/Comware (#12144)
* allied, radlan, ciscowlc rancid router.db configuration support allied and radlan represent allied telesis * tab/spaces * allied, radlan, ciscowlc rancid router.db configuration support allied and radlan represent allied telesis * * Added rancid support for H3C/Comware * extraneous newline
This commit is contained in:
1
scripts/gen_rancid.php
Executable file → Normal file
1
scripts/gen_rancid.php
Executable file → Normal file
@ -49,6 +49,7 @@ $rancid_map['ciscosb'] = 'cisco-sb';
|
|||||||
$rancid_map['allied'] = 'at';
|
$rancid_map['allied'] = 'at';
|
||||||
$rancid_map['radlan'] = 'at';
|
$rancid_map['radlan'] = 'at';
|
||||||
$rancid_map['ciscowlc'] = 'cisco-wlc8';
|
$rancid_map['ciscowlc'] = 'cisco-wlc8';
|
||||||
|
$rancid_map['comware'] = 'h3c';
|
||||||
|
|
||||||
foreach (dbFetchRows("SELECT `hostname`,`os`,`disabled`,`status` FROM `devices` WHERE `ignore` = 0 AND `type` != '' GROUP BY `hostname`") as $devices) {
|
foreach (dbFetchRows("SELECT `hostname`,`os`,`disabled`,`status` FROM `devices` WHERE `ignore` = 0 AND `type` != '' GROUP BY `hostname`") as $devices) {
|
||||||
if (isset($rancid_map[$devices['os']])) {
|
if (isset($rancid_map[$devices['os']])) {
|
||||||
|
Reference in New Issue
Block a user