Page History
...
- Enter directory "snmp":
cd /root/snmp
- Install packages in folder:
rpm -ivh --force *.rpm
...
- Enter directory "snmp":
cd /root/snmp
- Stop SNMP server:
systemctl stop snmpd
- Back up old snmp config file:
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
- Generate new UUID for next step (copy to notepad for further use):
uuidgen
- Edit snmpd.conf to enter newly generated GUID
nano ./snmpd.conf
- Replace string "GUID" in line .1.3.6.1.2.1.47.1.1.1.1.11.0 with new GUID
Example: override .1.3.6.1.2.1.47.1.1.1.1.11.0 octet_str "6c422afb-b420-4f3b-84ff-cfb9e1431bde" - Check if hostname needs to be overridden (e.g. to show FQDN instead of CN)
Uncomment and edit line .1.3.6.1.2.1.1.5.0 if necessary - Modify "syslocation" and "syscontact" as needed
- Copy new config file to /etc:
cp ./snmpd.conf /etc/snmp/
- Restart SNMP server:
systemctl restart snmpd
- Make sure SNMP service starts at boot time:
systemctl enable snmpd
- Test configuration:
snmpwalk -v2c -c public localhost
and/orsnmpget -v1 -c public localhost .1.3.6.1.2.1.47.1.1.1.1.11.0
- In case of errors, check logs:
systemctl status snmpd
and/orjournalctl
...