Simulate router locally on Zabbix server, snmpwalk, snmpsim, CentOS 7

This instruction is supposed to execute on CentOS 7
  1. get snmpwalk file
  2. rename snmpwalk file to some device id for example "WS-C3750G-24TS.snmpwalk":
    .1.3.6.1.2.1.47.1.1.1.1.2.1 = STRING: "Catalyst 37xx Switch Stack"
    .1.3.6.1.2.1.47.1.1.1.1.2.1001 = STRING: "WS-C3750G-24TS"
    .1.3.6.1.2.1.47.1.1.1.1.2.1002 = STRING: "Switch 1 - WS-C3750G-24TS - Fixed Module 0"
    .1.3.6.1.2.1.47.1.1.1.1.2.1003 = STRING: "Switch 1 - WS-C3750G-24TS - Power Supply 0"
    .1.3.6.1.2.1.47.1.1.1.1.2.1004 = STRING: "Switch 1 - WS-C3750G-24TS - Fan 0"
  3. install python pip:
    curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
    python get-pip.py
  4. install snmpsim module for python:
    pip install snmpsim
  5. create dedicated user for simulator:
    groupadd snmpd
    useradd -g snmpd snmpd
    mkdir -p /var/log/snmpd
    chown -R snmpd:snmpd /var/log/snmpd
  6. add firewall exception:
    firewall-cmd --add-port=1024/udp --permanent
    firewall-cmd --reload
  7. make data dir:
    mkdir -p /usr/share/snmpsim/data
  8. move all snmpwalk files:
    cd
    mv *.snmpwalk /usr/share/snmpsim/data
  9. set permissions:
    chown -R snmpd:snmpd /usr/share/snmpsim
  10. note down your ip address:
    ip a
  11. launch simulator:
    snmpsimd.py --process-user=snmpd --process-group=snmpd --logging-method=file:/var/log/snmpd/snmpsimd.log --agent-udpv4-endpoint=10.0.2.5:1024
  12. look for errors:
    cat /var/log/snmpd/snmpsimd.log
  13. test walk:
    snmpwalk -v2c -cWS-C3750G-24TS 127.0.0.1:1024 .1.3.6.1.2.1