RE: FW: Registering a Table

2010-04-06 Thread Prakash
It's working Thank you very much Dava. -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Tuesday, April 06, 2010 8:49 PM To: PrakashRaju Meka Cc: [email protected] Subject: Re: FW: Registering a Tab

Re: data table conf overhaul

2010-04-06 Thread Robert Story
On Tue, 6 Apr 2010 15:46:41 +0100 Dave wrote: DS> Once I'd got over my initial indignation at mere mortals meddling with DS> perfection, Yes, I know the feeling all to well. ;-) DS> > - use row_merge helper if $i.rowstatus, so handler gets called once per index DS> DS>I can see that this mo

Re: Help with Trap configuration - Specifying trap port with :port

2010-04-06 Thread Fatima Peter
Thanks Dave. I am afraid we were doing both :-). i.e create_trap_session( "localhost:162", 162, "public", SNMP_VERSION_1, SNMP_MSG_TRAP); It is possible the call to snmp_log was removed in the older code. Thanks very much for the quick response, Fatima On Tue, Apr 6, 2010 at 12:24 AM, Dav

Multi-Thread Support

2010-04-06 Thread Brendan Tauras
I have several questions related to multi-thread (pthreads) support within the Net-SNMP C API. I am currently linking against Net-SNMP v5.4.2.1. Thank you for your time. -Brendan 1. Can I use the the same session concurrently with multiple threads? 1A. Can a single library/snmp_api.h: str

Re: trap from subagent

2010-04-06 Thread Dave Shield
On 6 April 2010 18:26, maxim maxim wrote: >snmp_varlist_add_variable(¬ification_vars, > objid_snmptrap, objid_snmptrap_len, This parameter is the name of the varbind to be added. It's inherently of type Object ID, so the size is the number of subidentifiers: >oid objid

Re: trap from subagent

2010-04-06 Thread maxim maxim
my code now is : oid notification_oid[] ={1, 3, 6, 1, 6, 3, 1, 1, 5, 3}; size_t notification_oid_len =OID_LENGTH(notification_oid); oid objid_snmptrap[] = { 1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0 }; size_t objid_snmptrap_len =OID_LENGTH(objid_snmptrap);//linux4biz snmp_

Re: FW: Registering a Table

2010-04-06 Thread Dave Shield
Why are the column objects (abcValue and abcSize, xyzValue and xyzSize) defined as "not-accessible"? In fact, there's absolutely nothing in this MIB that can legitimately be queried! Apart from that, the problem appears to be with the call to netsnmp_table_set_multi_add_default_row() This

Re: data table conf overhaul

2010-04-06 Thread Dave Shield
On 6 April 2010 11:59, Robert Story wrote: > I'm working on some new tables and decided to give the table_data conf file a > whirl... I've made quite a few changes. > Some minor, some major > I haven't checked it in yet because I wanted to make sure I hadn't strayed too > far from the ori

FW: Registering a Table

2010-04-06 Thread Prakash
-Original Message- From: Prakash [mailto:[email protected]] Sent: Tuesday, April 06, 2010 8:11 PM To: 'Dave Shield' Cc: '[email protected]' Subject: RE: Registering a Table Hi Dave, I attached my code. I am getting the list when I use the oid up to column

RE: Registering a Table

2010-04-06 Thread Prakash
Hi Dave, I attached my code. I am getting the list when I use the oid up to column id. snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.11456.3.3.1.2 snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.11456.3.3.1.3 I tried to get the sub-tree list of abcModule and abcTable. snmpwalk -v 2c -c public

Re: Registering a Table

2010-04-06 Thread Dave Shield
On 5 April 2010 12:03, Prakash wrote: > How to register a table in subagent. > snmpwalk is not working for my table > > here is my code.. If you wish assistance, can you please post (as an attachment), the *full* text of your MIB module code file - not just fragments of it. That way we can tr

Re: Can't start snmpd as different user

2010-04-06 Thread Dave Shield
On 31 March 2010 13:09, Jan Safranek wrote: > I've stumbled upon a possible bug in net-snmp-5.5 in on Fedora 12: > $ snmpd -f -Lo -u daemon > initgroups failed: Operation not permitted > > Looking at strace and code in snmpd.c, I can see that the snmpd changed > UID to daemon user, but subsequent

Perl SNMP V3 trap listener

2010-04-06 Thread Rathod, Nitin
Hello, As I was using the ucd snmp perl code for listening SNMP V1 and V2 traps, we now wanted to also support SNMP V3 traps. So wanted to know whether is there a full support for listening as well as parsing the SNMP V3 trap PDU in Perl Regards, Nitin R. ---

Re: Help with Trap configuration - Specifying trap port with :port

2010-04-06 Thread Dave Shield
On 6 April 2010 03:18, Fatima Peter wrote: > Hello All, >   I am not sure whether this is new issue or has been discussed already. > We used to be able to specify trap while creating trap session like > "host:port" in earlier versions. But in net-snmp.5.5, we seem to be > getting the following not