Re: Net-snmp-users Digest, Vol 13, Issue 14

"feebright" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
 Hello,Awadhesh Kumar !
    You need to fix some library links 
eg.
   ln -s /usr/local/lib/libnetsnmpmibs.so.14   /lib/libnetsnmpmibs.so.14



  
 Regards feebright
 [email protected]
 2007-06-07 
----- Original Message ----- 
From: net-snmp-users-request 
To: net-snmp-users 
Sent: 2007-06-07, 09:06:38
Subject: Net-snmp-users Digest, Vol 13, Issue 14


Send Net-snmp-users mailing list submissions to
  [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
  https://lists.sourceforge.net/lists/listinfo/net-snmp-users
or, via email, send a message with subject or body 'help' to
  [email protected]

You can reach the person managing the list at
  [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Net-snmp-users digest..."


Today's Topics:

   1. Re: error while loading shared libraries:
      libnetsnmpmibs.so.14 (Dave Shield)
   2. Re: Rebuilding Net-SNMP 5.4 with IPv6 (Dave Shield)
   3. Re: composite index creation in mib2c generated code (Dave Shield)
   4. Re: can we send trap and normal value of same object (Dave Shield)
   5. Re: Wrong Type (should be INTEGER): NULL (Dave Shield)
   6. Re: Problems extending a MIB (Dave Shield)
   7. RE: Repeated SET requests failing (Ward Witt)
   8. Re: Rebuilding Net-SNMP 5.4 with IPv6 (Alex Burger)


----------------------------------------------------------------------

Message: 1
Date: Wed, 6 Jun 2007 22:55:22 +0100
From: "Dave Shield" <[email protected]>
Subject: Re: error while loading shared libraries:
  libnetsnmpmibs.so.14
To: "Awadhesh Kumar" <[email protected]>
Cc: [email protected]
Message-ID:
  <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 28/05/07, Awadhesh Kumar <[email protected]> wrote:
> $ ./snmpSubAgent
> ./snmpSubAgent: error while loading shared libraries: libnetsnmpmibs.so.14:
> cannot open shared object file: No such file or directory
>
> This file is also available at lovation /usr/local/lib


Have you run "ldconfig" to tell the linker about this library?

Dave



------------------------------

Message: 2
Date: Wed, 6 Jun 2007 23:01:46 +0100
From: "Dave Shield" <[email protected]>
Subject: Re: Rebuilding Net-SNMP 5.4 with IPv6
To: "Alex Burger" <[email protected]>
Cc: "Kleffman, Justin \(Mission Systems\)" <[email protected]>,
  [email protected]
Message-ID:
  <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 26/05/07, Alex Burger <[email protected]> wrote:
> I have not been able to get IPv6 to actually work though. I start snmpd
> with:
>
> snmpd udpv6:161
>
> and it starts fine. I do an snmpwalk with:
>
> snmpwalk -v 1 -c public udpv6:[::1] system
>
> and I get nothing back.


What access control settings are you using?

Dave



------------------------------

Message: 3
Date: Wed, 6 Jun 2007 23:24:53 +0100
From: "Dave Shield" <[email protected]>
Subject: Re: composite index creation in mib2c generated code
To: "Awadhesh Kumar" <[email protected]>
Cc: [email protected]
Message-ID:
  <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 23/05/07, Awadhesh Kumar <[email protected]> wrote:
> I am using mib2c application to develop the agent application for table.

Which mib2c framework are you using?
There are various options, and the code produced looks very different
in each case.

The fragment you posted isn't really sufficient to see what's happening.

Dave



------------------------------

Message: 4
Date: Wed, 6 Jun 2007 23:32:34 +0100
From: "Dave Shield" <[email protected]>
Subject: Re: can we send trap and normal value of same object
To: "Vishal Nandanwar" <[email protected]>
Cc: Net-SNMP mailing list <[email protected]>
Message-ID:
  <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 21/05/07, Vishal Nandanwar <[email protected]> wrote:
> I am developing a agent in which some parameters are traps and some are
> scalar objects.

It's not particularly clear what you mean by this.
What do you mean by "parameters" in this context?

> I have problem if instead of trap I have to send
> normal vallue of that object how to send?

If you're sending information from the agent, then this message must
take the form of a notification (i.e. a trap) - which *must* be defined
as a NOTIFICATION-TYPE object.
   However this trap can take a list of "normal" objects as the payload
for the trap, so it's perfectly valid (and usual) to include such values
as *part* of the trap - but not "instead" of it.


Dave



------------------------------

Message: 5
Date: Wed, 6 Jun 2007 23:35:31 +0100
From: "Dave Shield" <[email protected]>
Subject: Re: Wrong Type (should be INTEGER): NULL
To: "Vishal Nandanwar" <[email protected]>
Cc: Net-SNMP user <[email protected]>
Message-ID:
  <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

    [ 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 20/05/07, Vishal Nandanwar <[email protected]> wrote:
> > > Object value type is integer. Why I am getting such error message?
> >
> > Because the agent implementing this object is broken, probably.

> I have written the MIB. Thanks for the help.

What does the code that implements this object look like?

Dave



------------------------------

Message: 6
Date: Wed, 6 Jun 2007 23:37:18 +0100
From: "Dave Shield" <[email protected]>
Subject: Re: Problems extending a MIB
To: " Eric Fernandes de Mello Ara?jo " <[email protected]>
Cc: [email protected]
Message-ID:
  <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 20/05/07, Eric Fernandes de Mello Ara?jo <[email protected]> wrote:
> I've tried to extend a MIB and to put a new tree in the
> "enterprises". I created the MIB, and generated the .c and .h files with
> mib2c, but I couldn't go over it...

I'm sorry, but that's not really enough for us to work with.
If you're still having problems, then you'll need to give us more
details about exactly what you've tried, and what problems
you are seeing.

Dave



------------------------------

Message: 7
Date: Wed, 6 Jun 2007 19:00:08 -0500
From: "Ward Witt" <[email protected]>
Subject: RE: Repeated SET requests failing
To: "Dave Shield" <[email protected]>
Cc: [email protected]
Message-ID:
  <C914E193B22E9F4CB8186AEC29E8C9C07A296D@mail-server.filmworkers.local>
Content-Type: text/plain; charset="iso-8859-1"

// SNMP-SET 1.3.6.1.4.1.6827.10.74.3.9.1.1.2 Int 1

Sending 51 bytes to UDP: [10.0.0.126]:161
0000: 30 31 02 01 01 04 07 70 72 69 76 61 74 65 A3 23 01.....private.#
0016: 02 04 62 17 B9 1A 02 01 00 02 01 00 30 15 30 13 ..b.........0.0.
0032: 06 0E 2B 06 01 04 01 B5 2B 0A 4A 03 09 01 01 02 ..+.....+.J.....
0048: 02 01 01 ...


Received 51 bytes from UDP: [10.0.0.126]:161
0000: 30 31 02 01 01 04 07 70 72 69 76 61 74 65 A2 23 01.....private.#
0016: 02 04 62 17 B9 1A 02 01 00 02 01 00 30 15 30 13 ..b.........0.0.
0032: 06 0E 2B 06 01 04 01 B5 2B 0A 4A 03 09 01 01 02 ..+.....+.J.....
0048: 02 01 01 ...

// SNMP-SET 1.3.6.1.4.1.6827.10.74.3.9.1.1.2 Int 2

Sending 30 bytes to UDP: [10.0.0.126]:161
0000: 30 1C 02 01 01 04 07 70 72 69 76 61 74 65 A3 0E 0......private..
0016: 02 04 62 17 B9 1C 02 01 00 02 01 00 30 00 ..b.........0.


Received 30 bytes from UDP: [10.0.0.126]:161
0000: 30 1C 02 01 01 04 07 70 72 69 76 61 74 65 A2 0E 0......private..
0016: 02 04 62 17 B9 1C 02 01 00 02 01 00 30 00 ..b.........0.


Terminate and restart sending a 2 to 1.3.6.1.4.1.6827.10.74.3.9.1.1.2 works then subsiquent SETs to 1.3.6.1.4.1.6827.10.74.3.9.1.1.2 will fail, however I can send 1..7 to 1.3.6.1.4.1.6827.10.74.3.2.1.1.2 without problem.

This was net-snmp 5.2.1 ( standard Apple install ) 5.4 acts the same.

Thanks for looking into this Dave, I haven't been subscribed for long but I can tell your busy.

Ward


-----Original Message-----
From: [email protected] on behalf of Dave Shield
Sent: Wed 6/6/2007 3:46 PM
To: Ward Witt
Cc: [email protected]
Subject: Re: Repeated SET requests failing
 
On 01/06/07, Ward Witt <[email protected]> wrote:
> One command that sets aspect ratio (an integer 1 through 7) works
> perfectly, yet another that turns on or off a text overlay will only work
> once.
>
> I've enabled the snmp debug messages with a ~/.snmp.conf entry and can see
> that the working packets are 50 bytes long while that ones that fail are
> only 30 bytes.


Can you try posting a dump of a request that works, and a dump of one
that fails. (Preferably using the same OID for each).
   That might help indicate what might be going on.

Dave

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 8
Date: Wed, 06 Jun 2007 21:06:31 -0400
From: Alex Burger <[email protected]>
Subject: Re: Rebuilding Net-SNMP 5.4 with IPv6
To: Dave Shield <[email protected]>
Cc: "Kleffman, Justin \(Mission Systems\)" <[email protected]>,
  [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dave Shield wrote:
> On 26/05/07, Alex Burger <[email protected]> wrote:
>> I have not been able to get IPv6 to actually work though. I start snmpd
>> with:
>>
>> snmpd udpv6:161
>>
>> and it starts fine. I do an snmpwalk with:
>>
>> snmpwalk -v 1 -c public udpv6:[::1] system
>>
>> and I get nothing back.
> 
> What access control settings are you using?

I had rocommunity6 public defined in snmpd.conf.

The changes Magnus made (16455) fixed the problem. I can now do a 
snmpwalk using the commands above. I tested this with V5-4-patches.

Justin, have you tried with the latest code in V5-4-patches?

Dave, I had to put an #ifndef WIN32 around the feature code 1041888 in 
read_config.c:

if (!S_ISDIR(statbuf.st_mode)) {
..
..
}

Windows doesn't have S_ISDIR. We need a proper fix, but that allowed me 
to compile to test IPv6.

Alex




------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


End of Net-snmp-users Digest, Vol 13, Issue 14
**********************************************

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.