Security protocol must be one of “DES”, “AES128”, or “AES E_ERROR¶
Description¶
The fourth argument of snmp3_get() must be one of the following values, “DES”, “AES128”, or “AES”.
The DES protocol must be active to see this error message. Otherwise, a distinct message is displayed.
Case is important. There are not constants to for these values.
Example¶
<?php
try {
var_dump(snmp3_get($hostname, $community, '', 'protocol', '', '', '', '');
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
Solutions¶
Use one of the three possible values.