Hello,
I am trying add and test new OID initially for debug purposes.
I want add new OID in side snmpd.conf by adding following lines which should call my simple snmp_handler program:
pass_persist .1.3.6.1.4.1.12345.1 /home/vedge/work/snmp/c/snmp_handler/snmp_handler
pass_persist .1.3.6.1.4.1.12345.2 /home/vedge/work/snmp/c/snmp_handler/snmp_handler
After starting snmpd as following :
sudo systemctl start snmpd
sudo systemctl status snmpd
I tried get oid by using following:
snmpget -v2c -c public localhost .1.3.6.1.4.1.12345.1
SNMPv2-SMI::enterprises.12345.1 = No Such Instance currently exists at this OID
And my snmp_handler not called, i have print statement at the beginning of program.
Need help find out why the way i am adding my own OID not working.
Thanks,