mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Added brocade ports * Create brocade.inc.php * Update functions.php * Update functions.php * Update brocade.inc.php * Try to remove complexity * Removed white space Removed white space * Added testdata * removed temp variable * Update functions.php * Create brocade.inc.php * Added fill ifAlias for fibrechannel ports * Update functions.php * Update brocade.inc.php * Update fabos.json
7 lines
266 B
PHP
7 lines
266 B
PHP
<?php
|
|
$brocade_stats = snmpwalk_group($device, 'swFCPortName', 'SW-MIB', 1, $brocade_stats);
|
|
foreach ($brocade_stats as $index => $port) {
|
|
$index_brocade=$index + 1073741823;
|
|
$port_stats[$index_brocade]['ifAlias'] = $brocade_stats[$index]['swFCPortName'];
|
|
}
|