Changing community strings automatically

2011-03-01 Thread Giuseppe Modugno
I have a Net-SNMP agent running on a Linux computer.

I want to write a script/program that automatically change the 
community strings (I'm not interested in SNMPv3).

Actually I know how to stop and restart the snmpd daemon. But how to 
change the community strings?
I know they are written in snmpd.conf file. Do you have any 
suggestions how can I modify it changing the community strings?

Is it possible to change the community strings through SNMP SET 
requests (of course, knowing the old community strings)?

Is it possible to pass the community strings as command line 
parameters to snmpd, so I can change only the command line that 
starts the daemon?

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
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


Re: snmptrapd - parse fail not logging trap

2011-03-01 Thread Andy Brown
On 01/03/11 12:17, Dave Shield wrote:
> On 1 March 2011 11:03, Andy Brown  wrote:
>> Having a right time with snmptrapd here, got it working perfectly on one
>> ubuntu server, and on another, supposedly identical, no go, it fails to
>> receive/log the traps sent to it (from the same hardware).
>>
>> Can anyone assist in debugging the logs here and help me get it logging
>> (all I need is it to log any traps sent to the syslog)
>
>
>> The debug trace seems to point to the error, but I cannot figure out
>> why/what it means
>
> The parsing seems to handle the trap header OK - but it's failing
> as soon as it starts to parse the varbind list.   Unfortunately there's
> no detail of what it's received here, and hence why it's getting confused.
>
> Can you try running the trap receiver using  the '-d' flag, which will
> dump the raw incoming packet before it starts to process it.
> That (plus "-Drecv") might give us a bit more to work with.
>
> Dave

Hi Dave,
thanks for the fast reply. I'd not be surprised if the device sending 
the traps sends them malformed or buggy, so we could be onto something. 
I've logged with both debugs and the traps are definitely in there:

Mar  1 12:39:11 lanserv1 snmptrapd[1149]: #012Sending 20 bytes to Local 
IPC: /var/agentx/master
Mar  1 12:39:11 lanserv1 snmptrapd[1149]: : 01 0D 00 00  05 00 00 00 
  00 00 00 00  07 3F 59 31.?Y1
Mar  1 12:39:11 lanserv1 snmptrapd[1149]: 0016: 00 00 00 00 
   
Mar  1 12:39:11 lanserv1 snmptrapd[1149]:
Mar  1 12:39:11 lanserv1 snmptrapd[1149]: #012Received 28 bytes from 
Local IPC: abstract
Mar  1 12:39:11 lanserv1 snmptrapd[1149]: : 01 12 00 00  05 00 00 00 
  00 00 00 00  07 3F 59 31.?Y1
Mar  1 12:39:11 lanserv1 snmptrapd[1149]: 0016: 08 00 00 00  78 52 00 00 
  00 00 00 00 xR..
Mar  1 12:39:11 lanserv1 snmptrapd[1149]:
Mar  1 12:39:16 lanserv1 snmptrapd[1149]: #012Received 97 bytes from 
UDP: [192.168.2.14]:7878->[192.168.2.5]
Mar  1 12:39:16 lanserv1 snmptrapd[1149]: : 30 81 5E 02  01 00 04 06 
  70 75 62 6C  69 63 A4 4B0.^.public.K
Mar  1 12:39:16 lanserv1 snmptrapd[1149]: 0016: 06 07 2B 06  01 04 01 5C 
  0C 40 04 C0  A8 02 0E 02..+\.@..
Mar  1 12:39:16 lanserv1 snmptrapd[1149]: 0032: 01 06 02 01  00 43 04 00 
  56 55 16 30  34 30 32 06.C..VU.0402.
Mar  1 12:39:16 lanserv1 snmptrapd[1149]: 0048: 07 2B 06 01  04 01 5C 0C 
  04 27 32 30  31 31 30 33.+\..'201103
Mar  1 12:39:16 lanserv1 snmptrapd[1149]: 0064: 30 31 5F 31  32 33 39 30 
  33 5E 39 32  31 32 20 2D01_123903^9212 -
Mar  1 12:39:16 lanserv1 snmptrapd[1149]: 0080: 2D 3E 20 4F  55 54 35 20 
  3D 20 4F 46  46 20 20 21-> OUT5 = OFF  !
Mar  1 12:39:16 lanserv1 snmptrapd[1149]: 0096: 21 
   !
Mar  1 12:39:16 lanserv1 snmptrapd[1149]:
Mar  1 12:39:18 lanserv1 snmptrapd[1149]: #012Received 96 bytes from 
UDP: [192.168.2.14]:7878->[192.168.2.5]
Mar  1 12:39:18 lanserv1 snmptrapd[1149]: : 30 81 5D 02  01 00 04 06 
  70 75 62 6C  69 63 A4 4B0.].public.K
Mar  1 12:39:18 lanserv1 snmptrapd[1149]: 0016: 06 07 2B 06  01 04 01 5C 
  0C 40 04 C0  A8 02 0E 02..+\.@..
Mar  1 12:39:18 lanserv1 snmptrapd[1149]: 0032: 01 06 02 01  00 43 04 00 
  56 56 0E 30  33 30 31 06.C..VV.0301.
Mar  1 12:39:18 lanserv1 snmptrapd[1149]: 0048: 07 2B 06 01  04 01 5C 0C 
  04 26 32 30  31 31 30 33.+\..&201103
Mar  1 12:39:18 lanserv1 snmptrapd[1149]: 0064: 30 31 5F 31  32 33 39 30 
  35 5E 39 32  31 32 20 2D01_123905^9212 -
Mar  1 12:39:18 lanserv1 snmptrapd[1149]: 0080: 2D 3E 20 4F  55 54 35 20 
  3D 20 4F 4E  20 20 21 21-> OUT5 = ON  !!
Mar  1 12:39:18 lanserv1 snmptrapd[1149]:
Mar  1 12:39:26 lanserv1 snmptrapd[1149]: #012Sending 20 bytes to Local 
IPC: /var/agentx/master
Mar  1 12:39:26 lanserv1 snmptrapd[1149]: : 01 0D 00 00  05 00 00 00 
  00 00 00 00  08 3F 59 31.?Y1
Mar  1 12:39:26 lanserv1 snmptrapd[1149]: 0016: 00 00 00 00 
   
Mar  1 12:39:26 lanserv1 snmptrapd[1149]:
Mar  1 12:39:26 lanserv1 snmptrapd[1149]: #012Received 28 bytes from 
Local IPC: abstract
Mar  1 12:39:26 lanserv1 snmptrapd[1149]: : 01 12 00 00  05 00 00 00 
  00 00 00 00  08 3F 59 31.?Y1
Mar  1 12:39:26 lanserv1 snmptrapd[1149]: 0016: 08 00 00 00  55 58 00 00 
  00 00 00 00 UX..
Mar  1 12:39:26 lanserv1 snmptrapd[1149]:



-- 
Andy
e: andy @ thebmwz3.co.uk
e: andy @ broadcast-tech.co.uk
w: http://www.thebmwz3.co.uk
w: http://www.broadcast-tech.co.uk

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insigh

Re: snmptable return : No Entries

2011-03-01 Thread Dave Shield
On 1 March 2011 12:15, Evgeny Mugerman  wrote:
> I built my MIB based on IF-MIB example. I "copied" the first table "ifTable"
> and run mib2c with mib2c.mfd.conf script.
> I didn't find any row creation or addition there.
> Can you point me on the appropriate documentation.

Sorry - I'm not familiar with the MfD framework.
I've tended to use the other table helpers for my MIBs.

I'll leave you to those who are more experienced
with this style of code.

Dave

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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


Re: snmptrapd - parse fail not logging trap

2011-03-01 Thread Dave Shield
On 1 March 2011 11:03, Andy Brown  wrote:
> Having a right time with snmptrapd here, got it working perfectly on one
> ubuntu server, and on another, supposedly identical, no go, it fails to
> receive/log the traps sent to it (from the same hardware).
>
> Can anyone assist in debugging the logs here and help me get it logging
> (all I need is it to log any traps sent to the syslog)


> The debug trace seems to point to the error, but I cannot figure out
> why/what it means

The parsing seems to handle the trap header OK - but it's failing
as soon as it starts to parse the varbind list.   Unfortunately there's
no detail of what it's received here, and hence why it's getting confused.

Can you try running the trap receiver using  the '-d' flag, which will
dump the raw incoming packet before it starts to process it.
That (plus "-Drecv") might give us a bit more to work with.

Dave

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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


Re: snmptable return : No Entries

2011-03-01 Thread Evgeny Mugerman
Thank you for fast reply.
No, I missed it.
I built my MIB based on IF-MIB example. I "copied" the first table "ifTable"
and run mib2c with *mib2c.mfd.conf script.*
***I didn't find any row creation or addition there.*
*Can you point me on the appropriate documentation.*
*
*
On Tue, Mar 1, 2011 at 12:19 PM, Dave Shield wrote:

> On 1 March 2011 09:59, Evgeny Mugerman  wrote:
> > It seems to me that my table's OID registration pass well.
> > Can somebody explain, why " No Entries " message printed?
>
> Have you added any rows to the table?
> How?
>
>
> > Should I add Entries somehow?
>
> Errr... yes.
> If the table is empty, then there will be nothing in it,
> so "snmpwalk" and friends won't be able to retrieve the contents.
>
> Dave
>
--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
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


snmptrapd - parse fail not logging trap

2011-03-01 Thread Andy Brown
Hi All,

Having a right time with snmptrapd here, got it working perfectly on one 
ubuntu server, and on another, supposedly identical, no go, it fails to 
receive/log the traps sent to it (from the same hardware).

Can anyone assist in debugging the logs here and help me get it logging 
(all I need is it to log any traps sent to the syslog)

I've done the usual in the snmptrapd.conf:
ignoreauthfailure yes
disableAuthorization yes
traphandle default /etc/snmp/go.sh
format1 "%#02.2h:%#02.2j TRAP%w.%q %v %W from %A"

(traphandler /etc/snmp/go.sh just touches a file to see if its worked, 
which it doesnt!)

The debug trace seems to point to the error, but I cannot figure out 
why/what it means, it obviously closes the fd after the parse fail error:

Mar  1 08:19:59 lanserv1 snmptrapd[26914]: sess_process_packet:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: parse fail
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: _sess_read(): snmp_api.c, 5437:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: sess_read:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: not reading 6 (fdset 
0xbfcbe700 set 0)

Here's the full debug trace:

Mar  1 08:19:54 lanserv1 snmptrapd[26914]: sess_select:
Mar  1 08:19:54 lanserv1 snmptrapd[26914]: next alarm 14.996963 sec
Mar  1 08:19:54 lanserv1 snmptrapd[26914]: verbose:sess_select:
Mar  1 08:19:54 lanserv1 snmptrapd[26914]: timer due in 14.996963 sec
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: snmp_sess_select_info(): 
snmp_api.c, 5860:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: sess_select:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: for all sessions:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: 8
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: 6
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: 4
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: sess_select:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: next alarm 9.991703 sec
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: verbose:sess_select:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: timer due in 9.991703 sec
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: netsnmp_udp_recvfrom(): 
snmpUDPDomain.c, 155:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: netsnmp_udp:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: got source addr: 192.168.2.14
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: netsnmp_udp_recvfrom(): 
snmpUDPDomain.c, 160:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: netsnmp_udp:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: got destination (local) addr 
192.168.2.5
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: netsnmp_udp_recv(): 
snmpUDPDomain.c, 236:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: netsnmp_udp:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: recvfrom fd 8 got 96 bytes 
(from UDP: [192.168.2.14]:7878->[192.168.2.5])
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: _sess_process_packet(): 
snmp_api.c, 5113:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: sess_process_packet:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: session 0x9f127d0 fd 8 pkt 
0x9f26628 length 96
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: dumpx_recv:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: 02 01 00
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: dumpv_recv:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:   Integer:#0110 (0x00)
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: _snmp_parse(): snmp_api.c, 4115:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: snmp_api:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: Parsing SNMPv1 message...
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: _snmp_parse(): snmp_api.c, 4122:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: dumph_recv:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: SNMPv1 message
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: snmp_comstr_parse(): 
snmp_auth.c, 135:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: dumph_recv:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: SNMP version
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: dumpx_recv:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: 02 01 00
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: dumpv_recv:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:   Integer:#0110 (0x00)
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: trace:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: snmp_comstr_parse(): 
snmp_auth.c, 147:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: dumph_recv:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]:
Mar  1 08:19:59 lanserv1 snmptrapd[26914]: community string
Mar  1 08:19:59 lanserv1 snmptrapd[26914]

Re: snmpd droped if library pthread linked

2011-03-01 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.   ]


On 1 March 2011 10:00,   wrote:
> The snmpd dropped after first request and no response received.
> Here my print statements of the snmpd. If i do not link the pthread library 
> it works fine.
>
> Here is my request:
> snmpget -v2C -c public 192.168.10.71 sysLocation.0
> Timeout: No Response from 192.168.10.71.
>
> snmpd print statements:
> snmpd -f -Le -d
> Initializing networkData - get_network_data retval 0
> initialize_table_moduleParamTable
> initialize_table_channelParamTable
> initialize_table_globalChannelDataTable
> initialize_table_deviceDataTable
> NET-SNMP version 5.3.3
>
> Received 43 bytes from UDP: [192.168.10.163]:50115->[192.168.10.71]
> : 30 29 02 01  01 04 06 70  75 62 6C 69  63 A0 1C 02    0).public...
> 0016: 04 2A 22 0B  C0 02 01 00  02 01 00 30  0E 30 0C 06    .*"0.0..
> 0032: 08 2B 06 01  02 01 01 06  00 05 00                    .+.
>
> Received SNMP packet(s) from UDP: [192.168.10.163]:50115->[192.168.10.71]
>  GET message
>    -- SNMPv2-MIB::sysLocation.0
>
> Norman

OK - so the agent is quitting immediately it receives a request.
The only way to track this down is probably to run the agent
under a debugger, and generate a backtrace to see exactly
where it is crashing.

The Wiki page
   http://www.net-snmp.org/wiki/index.php/Debugger
   has some guidance about doing this.


Note that running multiple threads within an agent is not something
that any of the core developers have really tried to do,
As long as all of the SNMP-related activity is confined within a
single thread, this *should* work,   but we're seeing reports of
problems with this - you may be being hit by the same problem.

Dave

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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


Re: snmptable return : No Entries

2011-03-01 Thread Dave Shield
On 1 March 2011 09:59, Evgeny Mugerman  wrote:
> It seems to me that my table's OID registration pass well.
> Can somebody explain, why " No Entries " message printed?

Have you added any rows to the table?
How?


> Should I add Entries somehow?

Errr... yes.
If the table is empty, then there will be nothing in it,
so "snmpwalk" and friends won't be able to retrieve the contents.

Dave

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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


snmptable return : No Entries

2011-03-01 Thread Evgeny Mugerman
Hello,
I wrote my own mib file and snmp translate run successfully on
the NetCounterTablein this mib.
Here is an output of snmptranslate
snmptranslate -On -Td -IR CODS-NETCTR-MIB::NetCounterTable
.1.3.6.1.4.1.37010.6
NetCounterTable OBJECT-TYPE
  -- FROM   CODS-NETCTR-MIB
  MAX-ACCESSnot-accessible
  STATUScurrent
  DESCRIPTION   "A list of Network counters tables."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
sagunaCods(37010) 6 }

I've also successfully  run the mib2c utility, and code generation. I
compiled the code as subagent and run it.
Debug messages shows that registration of my OID is going well.

But i have the problem when run snmptable:
$ snmptable -v 2c -c private localhost -Os NetCounterTable
NetCounterTable: Unknown Object Identifier (Sub-id not found: (top) ->
NetCounterTable)

Then i tried with explicitly specified MIB file and got "No entries"
message:
$ env MIBS="+CODS-NETCTR-MIB" snmptable -v 2c -c private localhost -Os
NetCounterTable
NetCounterTable: No entries

I set the DEBUG tokens to "ALL" and there is an output from
"netsnmp_register_table(reginfo, tbl_info);

handler::register: Registering NetCounterTable
(::table::cache_handler::table_container::row_merge::baby_steps::baby_steps_mu
trace: netsnmp_inject_handler_before(): agent_handler.c, 342:
handler:inject: injecting bulk_to_next before table
trace: netsnmp_register_mib(): agent_registry.c, 611:
register_mib: registering "NetCounterTable" at iso.3.6.1.4.1.37010.6 with
context "(null)"
trace: netsnmp_subtree_find_first(): agent_registry.c, 156:
subtree: looking for subtree for context: ""
trace: netsnmp_subtree_find_first(): agent_registry.c, 160:
subtree: found one for: ""
trace: netsnmp_subtree_find_first(): agent_registry.c, 156:
subtree: looking for subtree for context: ""
trace: netsnmp_subtree_find_first(): agent_registry.c, 160:
subtree: found one for: ""
trace: netsnmp_subtree_find_prev(): agent_registry.c, 1493:
wtest: oid in: iso.3.6.1.4.1.37010.6
trace: netsnmp_subtree_find_prev(): agent_registry.c, 1504:
wtest: oid cmp: ccitt  --- off = 0, in off = 0 test = 1
trace: netsnmp_subtree_find_prev(): agent_registry.c, 1504:
wtest: oid cmp: iso  --- off = 1, in off = 1 test = 1
trace: netsnmp_subtree_find_prev(): agent_registry.c, 1504:
wtest: oid cmp: joint-iso-ccitt  --- off = 1, in off = 2 test = 1
trace: _callback_lock(): callback.c, 120:
9:callback:lock: locked (APP,null)
trace: snmp_call_callbacks(): callback.c, 310:
callback: START calling callbacks for maj=1 min=1
trace: snmp_call_callbacks(): callback.c, 336:
callback: END calling callbacks for maj=1 min=1 (0 called)
trace: _callback_unlock(): callback.c, 152:
9:callback:lock: unlocked (APP,null)

It seems to me that my table's OID registration pass well.
Can somebody explain, why " No Entries " message printed?
Should I add Entries somehow?
Thanks Evgen
--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
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


Re: Can not get remote engineTime.

2011-03-01 Thread Dave Shield
On 28 February 2011 19:20, Zongjun  wrote:
> Besides our own MIB definitions, it outputs
> SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.1."public" = STRING: public
> SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.2."public" = STRING: public
> SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.3."public" = STRING: grppublic
   

That's all?   Nothing else?   Not even the system group?   Boggle!

As far as I can tell from that list, you should be able to see everything
(and it *does* look like a Net-SNMP agent)


>> Either:
>>    -  the agent has been compiled with a *very* restricted set of MIBs
>
> How to specify this?

This would be specified using the "configure" command when first
compiling the agent.   Something like

./configure --enable-mini-agent --with-out-mib-modules="xxx,yyy,..."

But I'm amazed that there is so little visible in the tree.
I can't believe that someone would remove things like the system
tree and the usmUser table,   but leave the vacm table accessible.


Something very strange is happening here.


Is this an agent that you compiled yourself, or a vendor-supplied
agent, or what?

Is there a command "net-snmp-config" on this system?
If so, what does
  net-snmp-config --configure-options
   report?

Dave

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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


Re: createUser entry issue

2011-03-01 Thread Dave Shield
On 28 February 2011 20:41, Prakash Masanagi  wrote:
> If I add "createUser ... " entry in /etc/snmp/snmpd.conf

Try putting this entry directly into /var/net-snmp/snmpd.conf
(while the agent is *not* running),  and then start snmpd.

This line should then be replaced by the equivalent usmUser line

Dave

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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


Re:

2011-03-01 Thread Dave Shield
On 1 March 2011 08:08,   wrote:
> my snmp application is created as a Dynamically Loadable Object.
> If i link the pthread library to my shared object snmpd will not
> response on any request. After the first request snmpd droped. :-(

Does it log anything before stopping?
What happens if you start the agent using

snmp -f -Le (plus any other options that you usually use)

What is displayed by the agent when you query it?

Dave

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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


createUser entry issue

2011-03-01 Thread Prakash Masanagi
Hi,
I have built net-snmp 5.6.1 and trying to enable snmpV3. I have a problem
with "createUser ..." entry.
If I add "createUser ... " entry in /etc/snmp/snmpd.conf and restart snmpd,
then it adds corresponding "usmUser ..." entry with hashed key into
/var/net-snmp/snmpd.conf file. That is working fine.
Since now usmUser entry with hash key has been added to
/var/net-snmp/snmpd.conf, I am removing "createUser ..." line (which is
having password in plaintext) from /etc/snmp/snmpd.conf. Now again when I
restart snmpd, it removes usmUser entry from /var/net-snmp/snmpd.conf.

Could you please tell me how to go about this. Once hashed keys are setup, I
want to remove plaintext passwords.

Thanks,
Prakash
--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
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


Request information for net-snmp

2011-03-01 Thread Vabhav
Hello users,

I would like to compile/configure net-snmp package for OpenWrt with minimal 
functionality(test/set parameters & implement traps),Request you to provide me 
with step by step approach starting from getting the binary till compiling it 
for Openwrt

I am using ubuntu 10 as the place for producing kernel image for openwrt

Thanks in advance.
Regards,
Vabhav

The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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


[no subject]

2011-03-01 Thread normanraedke
Hello,

my snmp application is created as a Dynamically Loadable Object. If i link the 
pthread library to my shared object snmpd will not response on any request. 
After the first request snmpd droped. :-(

I would like to update my table data, because there is another application 
which provides the specific table data over unix domain sockets so i have to 
update my data every 2 seconds wihin a thread.

I only link the pthread library and the snmpd droped, what can i do.

Norman Rädke

 
-- 
Schon gehört? GMX hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://www.gmx.net/de/go/toolbar

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
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