Code: Select all
# php add_device.php --description=server1 --ip=10.10.10.1 --version=3 --username=SNMPUSER --password=STUFF --authproto=SHA --privpass=OTHERSTUFF --privproto=AES
Adding server1 (10.10.10.1) as "Net-SNMP Device" using SNMP v3 with community "public"
ERROR: Failed to add this device
The accepted syntax is: --privproto=AES128
This isn't explained in the help page, nor does the script reject "AES" as invalid. Also, in the gui, the dropdown displays a value of "AES" which is why I expected that to be the proper value. And since my google searches failed to turn up anything for this, I had to dig into the code to find the answer.
So I'm posting this here in hopes it will save someone else some time.