Re: trapsink with variable ip destination

2010-02-21 Thread Dave Shield
On 20 February 2010 11:06, majid namnabat maj@gmail.com wrote:         snmp_set_var_typed_value(var,  ASN_OBJECT_ID, oidnetsnmpUDPDomain3, oidnetsnmpUDPDomain3_len    ); The final parameter of this routine is the size of the data being passed. Not the number of

Re: trapsink with variable ip destination

2010-02-20 Thread majid namnabat
Dear, My program is now fine. It hasn't any error except setting snmpTargetAddrTDomain. I tried four ways to set its value snmpUDPDomain. but it's value become ccitt.1 This section is: oid oidnetsnmpUDPDomain2[]= { 1, 3, 6, 1, 6, 1, 1 }; oid

RE: trapsink with variable ip destination

2010-02-11 Thread Mike Ayers
From: majid namnabat [mailto:maj@gmail.com] Sent: Wednesday, February 10, 2010 9:02 PM but I can not set it. My code to set oidsnmpTargetAddrTDomain is similar to this: oid oidsnmpTargetAddrTDomain[] ={1, 3, 6, 1, 6, 3, 12, 1, 2, 1,

Re: trapsink with variable ip destination

2010-02-01 Thread majid namnabat
Dear, I try to use snmp_open netsnmp_query_set functions, I write a function similar attached code. But it's not work. Please guide me more! How can I create a row for a table with netsnmp_query_set function. In this table row indexes determined by strings such as 'internal0'. How can I specify

Re: trapsink with variable ip destination

2010-01-18 Thread Dave Shield
2010/1/18 majid namnabat maj@gmail.com: In there any way (standard not standard) to manage trap destinations internally from AgentX? Can I change snmpTargetAddrTable internally? The most flexible way would be to send SNMP SET requests from the subagent to the master agent, to manipulate

Re: trapsink with variable ip destination

2010-01-17 Thread majid namnabat
Dear, Until now, realy I didn't know the benefits of AgentX. Now, I want to work as an AgentX. But at AgentX, the Now I am using AgentX, but netsnmp_config command in AgentX doesn't work. I must manage trap destinations internally from AgentX. an simple may be stupid method can be kill snmpd,

Re: trapsink with variable ip destination

2009-12-21 Thread majid namnabat
I wouldn't use agent_trap functions at all inside a subagent if possible. This would preclude connecting the subagent via AgentX, but mostly it's just not necessary. I am developing in the master agent, not in a subagent at my embedded ARM node. I don't have multiple application

RE: trapsink with variable ip destination

2009-12-17 Thread Mike Ayers
From: majid namnabat [mailto:maj@gmail.com] Sent: Wednesday, December 16, 2009 11:05 PM Do not attempt to access snmpTargetAddrTable from the inside. Are you trying to change trap destinations from your subagent? Yes, In my corporation they take an object IP address in their MIB

Re: trapsink with variable ip destination

2009-12-16 Thread majid namnabat
Do not attempt to access snmpTargetAddrTable from the inside. Are you trying to change trap destinations from your subagent? Yes, In my corporation they take an object IP address in their MIB for the trap destination. This field must set by NMS Server. So I must add trap destinations

trapsink with variable ip destination

2009-12-08 Thread majid namnabat
Dear, In my system, the trap reciever ip was a mib object in my mib. In this state, we first must set this IP address and then receives the traps. How can I handle this with NET SNMP? I think the trapsink trapsink2 in snmpd.conf get constant ip address. Please help me?

RE: trapsink with variable ip destination

2009-12-08 Thread Mike Ayers
From: majid namnabat [mailto:maj@gmail.com] Sent: Tuesday, December 08, 2009 5:05 AM In my system, the trap reciever ip was a mib object in my mib. In this state, we first must set this IP address and then receives the traps. How can I handle this with NET SNMP? I think the trapsink