Re: Trap SNMPv3

2009-07-23 Thread priya thangaraj
Ok... thanks for the initial reply, I got the relevant details from these sites http://www.mail-archive.com/net-snmp-cod...@lists.sourceforge.net/msg05469.html http://www.net-snmp.org/wiki/index.php/FAQ:Coding_19 snmpsess was missing in my snmpd.conf, I convinced myself thinking trapsink or trap2

Re: Trap SNMPv3

2009-07-23 Thread priya thangaraj
SNMP Variables: newMIBNotify OBJECT IDENTIFIER ::= { newMIB 3 } netSnmpExampleHeartbeatRate OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS accessible-for-notify STATUS current DESCRIPTION "A simple integer object, to act as a payload for the netSnmpExampleHear

Re: Trap SNMPv3

2009-07-23 Thread Dave Shield
2009/7/23 priya thangaraj : > I was successful in sending a snmptrap which was logged by snmptrapd in > SNMPv3. > > The current issue is that, I have developed my own TRAP-Variables, sending > it through send_trapv2() via Agentx. But the trap sent is not being received > by snmptrapd. > > is there

Re: passing context to MIB library

2009-07-23 Thread Dave Shield
2009/7/23 Pranali Hande (phande) : > If you refer  function set_snmp_log_params  in file > third-party/src/snmp/net-snmp-5.1/agent/snmp_agent.c I've just checked that code file (in both the current branches, and the very old 5.1 release), and there is no mention of a function by that name. Neithe

Trap SNMPv3

2009-07-23 Thread priya thangaraj
Hello people, I was successful in sending a snmptrap which was logged by snmptrapd in SNMPv3. The current issue is that, I have developed my own TRAP-Variables, sending it through send_trapv2() via Agentx. But the trap sent is not being received by snmptrapd. is there anything that I missed? Th

Re: Extending the agent using an extend script written in Python

2009-07-23 Thread Dave Shield
2009/7/23 Hamish Whittal : > I get the extend script to run via sudo and > have tried and tested the "sudo ubc.py" Running a script via "sudo" is fine for interactive use, but isn't really appropriate for an extension script. The first time the agent invokes it, surely sudo will prompt for a passw

Extending the agent using an extend script written in Python

2009-07-23 Thread Hamish Whittal
Hi folks, I have written a python script to be run as an extend script from within the agent. The script runs beautifully, and returns what I want, exiting with exit status 0. I get the extend script to run via sudo and have tried and tested the "sudo ubc.py" Problem now is that when I run it wit

Re: Error while creating a row in a table

2009-07-23 Thread Dave Shield
2009/7/23 François Dumont : >> snmpset -c private -v 2c 10.0.0.1 rbAQoSProfileRowStatus.32 i 4 >> rbQoSProfileType.32 i 1 rbQoSProfileName.32 s test rbQoSProfileParamTime.32 >> i 1 rbQoSProfileParam1.32 u 1000 > > And it worked > But then I tried to set another row and now I can't :/ I don't

Error while creating a row in a table

2009-07-23 Thread François Dumont
Hi everybody, I'm trying to create a new row in a table of QoS Profiles. To understand what I do, here is the extract of the MIB concerning my table : rbQoSProfileConfigTableOBJECT-TYPE > SYNTAXSEQUENCE OF RbQoSProfileConfigEntry > MAX-ACCESSnot-accessible >

Re: Problem initializing table create with create-dataset

2009-07-23 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] 2009/7/

Re: Query on writing new mib modules for netsnmp

2009-07-23 Thread Dave Shield
2009/7/23 Sathish Chandrasekaran : > Would appreciate any example code/ reference   with some > handlers as I need to invoke some function call specific to the product on > setting of parameters like ipaddress. There are dozens of examples of handler-based MIB modules, under 'agent/mibgroup' i

Re: passing context to MIB library

2009-07-23 Thread Dave Shield
2009/7/22 Pranali Hande (phande) : > snmptable -M +. -m all -v 2c -c pub...@vlan3  172.23.231.28 dot1dTpFdbTable That is sending a community-based request, using the community string "pub...@vlan3" This has no connection with contexts, which are primarily an SNMPv3 concept. There may be SNMP

Re: snmpd.conf community strings with a space?

2009-07-23 Thread Dave Shield
2009/7/23 Jared Smith (jarsmith) : > I have noticed that if you double quote the community string in > snmpd.conf like this: > > trap2sink 10.10.10.10 “public” > > It will actually send the trap with the quotes in the community string. So it does. That's definitely a bug. >

Re: Weird behavior when setting trap destination with same username asthe agent username

2009-07-23 Thread Dave Stav
Hi Dave, Thanks for replying. I canceled my subscription to the list after this project ended, so I did not see any other messages if there were any. It seems that both the trap destination and the admin users' password hash are stored in the same table. Indeed I specified explicit engineID for

passing context to MIB library

2009-07-23 Thread Pranali Hande (phande)
Hi snmptable -M +. -m all -v 2c -c pub...@vlan3 172.23.231.28 dot1dTpFdbTable If I give the following query to net-snmp. vlan 3 will get passed to my get_dot1dTpFdbTable as which parameter ? Please let me know if net-snmp uses some other way of passing context. Thanks and Regards