- /usr/lib/systemd/system/snmpd.service
- Environment=OPTIONS="-LS0-4d"
- systemctl daemon-reload
- systemctl restart snmpd
- /etc/sysconfig/snmpd
- OPTIONS='-Lsd -Lf /dev/null'
- vicfg-snmp.pl --server hostname --username your_username --password your_password -c YOUR_STRING
- vicfg-snmp.pl --server hostname --username your_username --password your_password -p 161
- vicfg-snmp.pl --server hostname --username your_username --password your_password --enable
- esxcli system snmp set --communities YOUR_STRING
- esxcli system snmp set --enable true
- esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true
- esxcli network firewall ruleset set --ruleset-id snmp --enabled true
- /etc/init.d/snmpd restart
- esxcli system snmp set -r
- esxcli system snmp set -c YOUR_STRING
- esxcli system snmp set -p 161
- esxcli system snmp set -L "City, State, Country"
- esxcli system snmp set -C [email protected]
- esxcli system snmp set -e yes
REFS: