I can successfully snmpwalk/get devices via CLI - - but am required to use the -3k/-3K flags to retrieve any info as opposed to the native -A/-X and all lookups fail within cacti when changing these flags.
Code: Select all
snmpwalk -v 3 -u USERMON -a MD5 -3k LONGHEXHERE -x DES -3K LONGHEXHERE -l authPriv udp6:IPv6ADDY
Code: Select all
function cacti_get_snmpv3_auth($auth_proto, $auth_user, $auth_pass, $priv_proto, $priv_pass, $context, $engineid) {
$sec_details = ' -a ' . snmp_escape_string($auth_proto) . ' -A ' . snmp_escape_string($auth_pass);
if ($priv_proto == '[None]' || $priv_pass == '') {
if ($auth_pass == '' || $auth_proto == '[None]') {
$sec_level = 'noAuthNoPriv';
$sec_details = '';
} else {
$sec_level = 'authNoPriv';
}
$priv_proto = '';
$priv_pass = '';
} else {
$sec_level = 'authPriv';
$priv_pass = '-X ' . snmp_escape_string($priv_pass) . ' -x ' . snmp_escape_string($priv_proto);