mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
SNMP Capabilities (#13289)
* SNMP Capabilities Allow all available auth algorithms to be set in global settings cleanup other usages * fix style
This commit is contained in:
@@ -670,23 +670,6 @@ function version_info($remote = false)
|
||||
return $output;
|
||||
}//end version_info()
|
||||
|
||||
/**
|
||||
* Checks SNMPv3 capabilities
|
||||
*
|
||||
* SHA2 for Auth Algorithms (SHA-224,SHA-256,SHA-384,SHA-512)
|
||||
* AES-192, AES-256 for Privacy Algorithms
|
||||
*/
|
||||
function snmpv3_capabilities(): array
|
||||
{
|
||||
$process = new Process([Config::get('snmpget', 'snmpget'), '--help']);
|
||||
$process->run();
|
||||
|
||||
$ret['sha2'] = Str::contains($process->getErrorOutput(), 'SHA-512');
|
||||
$ret['aes256'] = Str::contains($process->getErrorOutput(), 'AES-256');
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a MySQL binary v4 (4-byte) or v6 (16-byte) IP address to a printable string.
|
||||
*
|
||||
|
Reference in New Issue
Block a user