would a single group with different access right to access different views?

2010-03-15 Thread Fatima Peter
Hello All, I am posting this question for a colleague and would appreciate whether what he is asking is reasonable. It doesn't look like it is so in my opinion. Suppose we have 2 views: “all” and “none” 1 group: “group1” 3 access right: noAuthNoPriv, AuthNoPriv, and AuthPriv Could we confi

snmpwalk does not walk the table when using dynamic load.

2010-03-15 Thread Wei Zheng
We are using net-snmp 5.4.2.1. We've been using subagent for our own SNMP mibs. It has been working fine. Now, I am trying to use dynamic load for our own SNMP mibs. When I do a snmpwalk of our own SNMP tables, it only output the top level of the table, does not output what below the top leve

Re: question about Re: About net-snmp table iterator performance

2010-03-15 Thread Dave Shield
On 15 March 2010 21:26, Kathy McLeod wrote: >> There is a flag that can improve performance if the internal >> indexing matches the SNMP ordering, but it's still probably >> not the most efficient of the helpers. > >  Where is the flag and when do I set it? netsnmp_iterator_info *iinfo =

Re: returning multi-line string via pass through

2010-03-15 Thread Christopher Fitzner
thanks for your response. I was looking at that "zap the linefeed" section of the code earlier and couldn't figure out why that would be truncating to the first line. I see now that just before that the data is being read with fgets which will do this. It's easier to work around this limitation

question about Re: About net-snmp table iterator performance

2010-03-15 Thread Kathy McLeod
Hi - In your reply to note in title, you said: There is a flag that can improve performance if the internal indexing matches the SNMP ordering, but it's still probably not the most efficient of the helpers. Where is the flag and when do I set it? I have the iterate_access code working now so

Re: Failed to connect to agentx master agent ([NIL])

2010-03-15 Thread Bart Van Assche
On Mon, Mar 15, 2010 at 3:12 PM, Patrick H. Piper wrote: > Bart, > > Thanks again. You have been most helpful. I am sure that I am not the first > to go thru the pain of the nuiances between Net-SNMP on Linux vs. Windows. > I know I am late to the SNMP party, but I do appreciate your help. In > su

Re: The problem of allowing a cooomunity or usmUser to belong to multiple group

2010-03-15 Thread Dave Shield
On 15 March 2010 19:02, Fatima Peter wrote: > I have a question on vacm group and whether the same communitystring or > usmUser can belong to multiple groups. Probably not. Looking at the vacmSecurityToGroupTable (in SNMP-VIEW-BASED-ACM-MIB) the table is indexed by the pair (securityModel, secur

The problem of allowing a cooomunity or usmUser to belong to multiple group

2010-03-15 Thread Fatima Peter
Hello All, I have a question on vacm group and whether the same communitystring or usmUser can belong to multiple groups. For example let us say we have a community string "public" which is configured to belong to 2 groups "v1Group1" and "v1Group2". com2sec test 10.10.0.0/16public g

Re: ./snmpd:not found

2010-03-15 Thread Sylvain Dery
You are correct, I'm building for an ARM-linux embedded system. Good idea, I will see what kind of support is available from the ARM-linux community; in the mean time any other suggestions are more than welcome! Could it be a problem with the parameters I used for the configuration tool?  ./conf

Re: ./snmpd:not found

2010-03-15 Thread Dave Shield
On 15 March 2010 15:22, Sylvain Dery wrote: > $ ldd ./snmpd >  not a dynamic executable > $ file ./snmpd > ./snmpd: ELF 32-bit LSB executable, ARM, version 1, > dynamically linked (uses shared libs) Hmmm... So one command states that it's not using shared libraries, while the other claims tha

Re: ./snmpd:not found

2010-03-15 Thread Sylvain Dery
Here is the result of the "file" and "ldd" command, which I ran on the building platform: [sylvain.d...@macadamian-plantcml sbin]$ ldd ./snmpd  not a dynamic executable [sylvain.d...@macadamian-plantcml sbin]$ file ./snmpd ./snmpd: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (us

Re: ./snmpd:not found

2010-03-15 Thread Sylvain Dery
If you are refering to the "LD_TRACE_LOADED_OBJECTS " question, the answer was: Setting LD_TRACE_LOADED_OBJECTS did not do anything... any other suggestions are welcome!  /usr/local/sbin # LD_TRACE_LOADED_OBJECTS=1 ./snmpd >-sh: ./snmpd: not found > Unfortunately, "file" and "ldd" are not availab

RE: Failed to connect to agentx master agent ([NIL])

2010-03-15 Thread Patrick H. Piper
Bart, Thanks again. You have been most helpful. I am sure that I am not the first to go thru the pain of the nuiances between Net-SNMP on Linux vs. Windows. I know I am late to the SNMP party, but I do appreciate your help. In summary on the Windows challenges: Agent.dll is not usable on Windows

Re: -sh: ./snmpd:not found

2010-03-15 Thread Sylvain Dery
Setting LD_TRACE_LOADED_OBJECTS did not do anything... any other suggestions are welcome! /usr/local/sbin # LD_TRACE_LOADED_OBJECTS=1 ./snmpd >-sh: ./snmpd: not found > Regards,   Sylvain From: Bart Van Assche To: Sylvain Dery Cc: net-snmp-users@lists.sourcefo

Re: ./snmpd:not found

2010-03-15 Thread Sylvain Dery
You are correct, but I am still clueless on what is happening! Regards, Sylvain From: Dave Shield To: Mike Ayers Cc: Sylvain Dery ; net-snmp-users@lists.sourceforge.net Sent: Mon, March 15, 2010 6:29:58 AM Subject: Re: ./snmpd:not found On 13 March 2010 00:

Re: ./snmpd:not found

2010-03-15 Thread Dave Shield
On 15 March 2010 13:53, Sylvain Dery wrote: > You are correct, but I am still clueless on what is happening! What was the answer to Bart's question about shared libraries? What do the commands file ./snmpd ldd ./snmpd report? Dave

Re: SNMPv3: Diffie-Hellman

2010-03-15 Thread Dave Shield
On 9 March 2010 15:53, Sam V wrote: >  Is this something enabled from snmpd.conf? or is it enabled by default? You'd need to enable this when you compile the agent ("configure --with-mib-modules=snmp-usm-dh-objects-mib") Dave -

Net-SNMP 5.4.3.rc1 and 5.2.6.rc1 available for testing

2010-03-15 Thread Dave Shield
New release candidates versions of the 5.4.x and 5.2.x packages are now available from the SourceForge download servers. These are mostly bug fixes over the previous releases. Details of the more significant changes and relevant tracker entries are attached. Note that both of these versions conta

Re: About net-snmp table iterator performance

2010-03-15 Thread Dave Shield
On 15 March 2010 10:29, bai haoquan wrote: > To my understanding, it will cause performance problem when there are mass > of data. Yes - the iterator helper is notoriously inefficient for large tables. It's probably not a sensible choice if performance is an issue. Use one of the other helpers i

Re: returning multi-line string via pass through

2010-03-15 Thread Dave Shield
On 14 March 2010 20:02, Christopher Fitzner wrote: > I was wondering if anyone knows if it's possible to send a multiline > string back from an snmp pass through script. No - it's explicitly defined in the manpage, and coded to return a single line. If you want to try changing this, look in the

Re: ./snmpd:not found

2010-03-15 Thread Dave Shield
On 13 March 2010 00:05, Mike Ayers wrote: >> /usr/local/sbin # ls -la ./snmpd >> -rwxr-xr-x     1 root    root   32859  Mar 10  14:40  2010  ./snmpd > >        If this is actually cut-n-paste, then the daemon, which should be > named "snmpd", > is actually named "./snmpd" No - the daemon is inde

Re: Building custom OID

2010-03-15 Thread Dave Shield
On 13 March 2010 01:34, Rana Dhekial wrote: > I have to create custom  OID out of existing OIDs in an an SNMP agent. > Essentially it will be something like > > value of Custom OID 1 = value of (Existing OID 1+ Exsisting OID 2 - Existing > OID 3) Is this a single OID calculation, or a table of t

Re: SNMPv3 RFCs

2010-03-15 Thread Dave Shield
On 12 March 2010 23:57, Mike Ayers wrote: >> >  I'm using NET-SNMP version: 5.2.1.2. Would this support the RFC 34x specs? >> >> Yes > >        ...except the community table, which is replaced by an equivalent, > correct? The snmpCommunityTable is defined in RFC 3584, which is not itself part of

Re: Unknown Object Identifier for log counter

2010-03-15 Thread Dave Shield
On 9 March 2010 22:34, Mudassar wrote: > I am getting following error, even i have update the netsnmp to 5.5 but > still getting this error. also copy all mibs from > /usr/local/net-snmp-5.4.2.1/mibs/* TO /usr/local/share/snmp/mibs > > /proc/940/psinfo: Unknown Object Identifier (Sub-id not found:

RE: SNMPv3 RFCs

2010-03-15 Thread Mike Ayers
> From: Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] > Sent: Friday, March 12, 2010 7:55 AM > On 12 March 2010 14:26, Sam V wrote: > >  I'm using NET-SNMP version: 5.2.1.2. Would this support the RFC 34x > specs? > > Yes ...except the community table, which is replaced by an equivale

RE: ./snmpd:not found

2010-03-15 Thread Mike Ayers
> From: Sylvain Dery [mailto:snmpgroupu...@yahoo.ca] > Sent: Thursday, March 11, 2010 1:28 PM > /usr/local/sbin # ./snmpd > -sh: ./snmpd: not found > > But it is there!: > /usr/local/sbin # ls -la ./snmpd > -rwxr-xr-x 1 rootroot 32859 Mar 10 14:40 2010 ./snmpd If this is ac

returning multi-line string via pass through

2010-03-15 Thread Christopher Fitzner
Hey, I was wondering if anyone knows if it's possible to send a multiline string back from an snmp pass through script. When I use the string type and attempt this, it will only actually return the first line. I feel like this should be possible because when using extend, there is an oid in the

Re: Failed to connect to agentx master agent ([NIL])

2010-03-15 Thread Bart Van Assche
On Sun, Mar 14, 2010 at 6:37 PM, wrote: > > While using the sample agent code in the Perl NetSNMP::agent POD page, I am > getting the following error message on Windows 2008 Server: > > c:\temp\agent.pl > Warning: Failed to connect to the agentx master agent ([NIL]): > Warning: Failed to connect