SNMP: Why does a SET-request also perfom a GET-request? -


i'm trying build own snmp-agent (on solaris 10.0) , added line snmpd.conf:

pass .1.3.6.1.4.1.xxxx    /home/snmp/snmp_agent.bash 

for testing, thing bash-script does, writing current time , arguments log-file. now, when use net-snmp perform set-request, by:

 snmpset -v1 -c public node 1.3.6.1.4.1.1590.xxxx.1 1 

i notice 2 lines in log-file. 1 argument -g (which means get), , other -s (which means set). why 1 -g , how can rid of it?

it's annoying me because in mib have oids max-access = write-only, , agent gives error when trying read oid.

i looked on internet problem (or maybe it's not problem), couldn't find anything.

i believe internals of net-snmp agent pass scripts only. eg, it's requirement of using 'pass' extension , has nothing what's happening "on wire".


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -