Hi!
If you're going to create a value after you get it via the SET, does it
matter what you reply to the GET? If possible, reply with an empty
string, or some other pre-defined string of your choice instead of
replying NONE.
/Fredrik
jiaqin wu skrev 2013-08-16 17:06:
Hi,
I am Akim, working on a project to extend an snmp agent with
pass-persist module.
but I met a problem,
When I w?ant to Set a mib, net-snmp seems pass me a "GET" request
first, and I response the mib value, then net-snmp pass me the real
"SET" request.
For example : I want to set a tabular.
1. what I did:
> snmpset -v2c -c mycommunity 192.168.10.7
1.3.6.1.4.1.7679.4.1.1.2 = "test string"
2. what net-snmp passed to me:
get
1.3.6.1.4.1.7679.4.1.1.2
3. what I response:
string
1.3.6.1.4.1.7679.4.1.1.2
abcde
4. then the real SET passed to me:
set
1.3.6.1.4.1.7679.4.1.1.2
string test string
5. I response
DONE
Everything is fine.
But if the requested tabular INDEX doesn't exist in this table,
(actually I will create one in my program), the process becomes:
1. what I did:
> snmpset -v2c -c mycommunity 192.168.10.7
1.3.6.1.4.1.7679.4.1.2.2 = "test string"
^ //assuming this
index "2" doesn't exist yet.
2. what net-snmp passed to me:
get
1.3.6.1.4.1.7679.4.1.2.2
3. what I response:
NONE
4. then it is all over! net-snmp doesn't pass me anything.
So I can not create a new row for this table in my own program! But I
have to...
Who can help me ??
Thank you all very much.
Akim
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users