Re: Net-snmp-users Digest, Vol 44, Issue 9

nampindo ceaser <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
dear members

Am trying to do a project making snmp more secure using kerberos protocol.
Is any one who has ever tried it or who has an idea about it?
Any help rendered will helpful

thanks

On Fri, Jan 29, 2010 at 2:39 AM,
<[email protected]> wrote:
> 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. compiling net-snmp 5.5 on AIX 6.1 fails (Willem Hilders)
>   2. Re: compiling net-snmp 5.5 on AIX 6.1 fails ([email protected])
>   3. Re: compiling net-snmp 5.5 on AIX 6.1 fails (Fulko Hew)
>   4. Re: compiling net-snmp 5.5 on AIX 6.1 fails (Thomas Anders)
>   5. SNMPD high CPU usage (Alex Mutz)
>   6. Re: net-snmp compilation problem (Group)
>   7. Net::SNMP usage (John Fulton)
>   8. Re: Net::SNMP usage (Max)
>   9. Re: net-snmp compilation problem (Bart Van Assche)
>  10. Re: when snmpwalk query my private trap OID the snmpd routine
>      auto      termination ( Alexander King )
>  11. RE: compiling net-snmp 5.5 on AIX 6.1 fails (Willem Hilders)
>  12. RE: compiling net-snmp 5.5 on AIX 6.1 fails (Willem Hilders)
>  13. Re: when snmpwalk query my private trap OID the snmpd routine
>      auto      termination (Dave Shield)
>  14. about net-snmp 64bits data ( Alexander King )
>  15. Re: about net-snmp 64bits data (Dave Shield)
>  16. Little OT - Mock agent for testing SNMP OIDs - any OID, would
>      prefer    to use Net-SNMP for the basis of this (Max Schubert)
>  17. SNMP v3 help (Gaikwad, Rupesh)
>  18. RE: SNMP v3 help (Gaikwad, Rupesh)
>  19. Re: about net-snmp 64bits data ( Alexander King )
>  20. How to disable/enable SNMP V1 and V2 on the fly?
>      ([email protected])
>  21. Re: net-snmp compilation problem [solved] (Group)
>  22. RE: SNMP v3 help (Mike Ayers)
>  23. Re: Net::SNMP usage (John Fulton)
>  24. What these  means:  int majorID, int minorID, void
>      *serverarg, void  *clientarg (sanjaykumar)
>  25. HOST-RESOURCE::hrSWInstalledTable  (Vivek Singh Bhadauria)
>  26. Re: How to disable/enable SNMP V1 and V2 on the fly? (Dave Shield)
>  27. Re: What these means: int majorID, int minorID, void
>      *serverarg, void  *clientarg (Dave Shield)
>  28. Re: net-snmp compilation problem (Group)
>  29. About NET SNMPAgent... ([email protected])
>  30. Re: What these means: int majorID, int minorID, void
>      *serverarg,       void    *clientarg (sanjaykumar)
>  31. About NET SNMP Agent ... ([email protected])
>  32. About net-snmp agent..... ([email protected])
>  33. Re: net-snmp compilation problem (Bart Van Assche)
>  34. Where are Net-SNMP generated traps documented? (Fulko Hew)
>  35. Still seeing " too large for defined data type" w/5.5
>      (Mike Wilson (Yahoo!))
>  36. Re: Where are Net-SNMP generated traps documented? (Dave Shield)
>  37. Re: Where are Net-SNMP generated traps documented? (Fulko Hew)
>  38. Re: Where are Net-SNMP generated traps documented? (Dave Shield)
>  39. RE: How to disable/enable SNMP V1 and V2 on the fly?
>      ([email protected])
>  40. snmptrapd seg faulting after forwarding v3 traps
>      ([email protected])
>  41. RE: How to disable/enable SNMP V1 and V2 on the fly?
>      ([email protected])
>  42. Re: net-snmp compilation problem (Group)
>  43. RE: HOST-RESOURCE::hrSWInstalledTable  (Mike Ayers)
>  44. Re: How to disable/enable SNMP V1 and V2 on the fly? (Dave Shield)
>  45. net-snmp compilation including perl module (Group)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 26 Jan 2010 15:15:59 +0100
> From: Willem Hilders <[email protected]>
> Subject: compiling net-snmp 5.5 on AIX 6.1 fails
> To: "'[email protected]'"
>        <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi All
>
> When I compile net-snmp version 5.5 on my AIX 6.1 machine I get the errors underneath when I issue the make statement. Any one any idea how to solve this
> Thanks in advance
>
> In file included from /usr/include/sys/cred.h:49,
>                 from /usr/include/sys/file.h:32,
>                 from system.c:110:
> /usr/include/sys/secattr.h:50: error: parse error before "rid_t"
> /usr/include/sys/secattr.h:65: error: parse error before '}' token
> /usr/include/sys/secattr.h:70: error: parse error before "authnum_t"
> /usr/include/sys/secattr.h:76: error: parse error before "aroles"
> /usr/include/sys/secattr.h:77: error: parse error before '}' token
> /usr/include/sys/secattr.h:119: error: field `sc_attr' has incomplete type
> In file included from /usr/include/sys/file.h:32,
>                 from system.c:110:
> /usr/include/sys/cred.h:335: error: parse error before "rid_t"
> /usr/include/sys/cred.h:350: error: parse error before '}' token
> system.c: In function `get_myaddr':
> system.c:653: error: storage size of `ifc' isn't known
> system.c:669: error: invalid application of `sizeof' to an incomplete type
> system.c:674: error: invalid application of `sizeof' to an incomplete type
> system.c:677: error: invalid application of `sizeof' to an incomplete type
> system.c:705: error: dereferencing pointer to incomplete type
> system.c:706: error: dereferencing pointer to incomplete type
> system.c:711: error: dereferencing pointer to incomplete type
> system.c:714: error: dereferencing pointer to incomplete type
> system.c:716: error: invalid application of `sizeof' to an incomplete type
> system.c:719: error: dereferencing pointer to incomplete type
> system.c:719: error: `IFF_UP' undeclared (first use in this function)
> system.c:719: error: (Each undeclared identifier is reported only once
> system.c:719: error: for each function it appears in.)
> system.c:723: error: dereferencing pointer to incomplete type
> system.c:730: error: invalid application of `sizeof' to an incomplete type
> system.c:734: error: dereferencing pointer to incomplete type
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
> make: 1254-004 The error code from the last command is 2.
>
>
> Stop.
>
> Met vriendelijke groet,
> Willem Hilders
>
> SARA ICT Services
> Email: [email protected]
> Telefoon: 036-5238013
> Fax: 036-5238030
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Tue, 26 Jan 2010 08:14:42 -0700
> From: [email protected]
> Subject: Re: compiling net-snmp 5.5 on AIX 6.1 fails
> To: Willem Hilders <[email protected]>
> Cc: "'[email protected]'"
>        <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain;       charset=ISO-8859-1;     DelSp="Yes";
>        format="flowed"
>
> William,
>
> I have had successful compilations on AIX 5.1 and 5.3 with 5.5.  What
> is the configure line you used and gcc version?
>
> John
>
> Quoting Willem Hilders <[email protected]>:
>
>> Hi All
>>
>> When I compile net-snmp version 5.5 on my AIX 6.1 machine I get the
>> errors underneath when I issue the make statement. Any one any idea
>> how to solve this
>> Thanks in advance
>>
>> In file included from /usr/include/sys/cred.h:49,
>>                  from /usr/include/sys/file.h:32,
>>                  from system.c:110:
>> /usr/include/sys/secattr.h:50: error: parse error before "rid_t"
>> /usr/include/sys/secattr.h:65: error: parse error before '}' token
>> /usr/include/sys/secattr.h:70: error: parse error before "authnum_t"
>> /usr/include/sys/secattr.h:76: error: parse error before "aroles"
>> /usr/include/sys/secattr.h:77: error: parse error before '}' token
>> /usr/include/sys/secattr.h:119: error: field `sc_attr' has incomplete type
>> In file included from /usr/include/sys/file.h:32,
>>                  from system.c:110:
>> /usr/include/sys/cred.h:335: error: parse error before "rid_t"
>> /usr/include/sys/cred.h:350: error: parse error before '}' token
>> system.c: In function `get_myaddr':
>> system.c:653: error: storage size of `ifc' isn't known
>> system.c:669: error: invalid application of `sizeof' to an incomplete type
>> system.c:674: error: invalid application of `sizeof' to an incomplete type
>> system.c:677: error: invalid application of `sizeof' to an incomplete type
>> system.c:705: error: dereferencing pointer to incomplete type
>> system.c:706: error: dereferencing pointer to incomplete type
>> system.c:711: error: dereferencing pointer to incomplete type
>> system.c:714: error: dereferencing pointer to incomplete type
>> system.c:716: error: invalid application of `sizeof' to an incomplete type
>> system.c:719: error: dereferencing pointer to incomplete type
>> system.c:719: error: `IFF_UP' undeclared (first use in this function)
>> system.c:719: error: (Each undeclared identifier is reported only once
>> system.c:719: error: for each function it appears in.)
>> system.c:723: error: dereferencing pointer to incomplete type
>> system.c:730: error: invalid application of `sizeof' to an incomplete type
>> system.c:734: error: dereferencing pointer to incomplete type
>> make: 1254-004 The error code from the last command is 1.
>>
>>
>> Stop.
>> make: 1254-004 The error code from the last command is 2.
>>
>>
>> Stop.
>>
>> Met vriendelijke groet,
>> Willem Hilders
>>
>> SARA ICT Services
>> Email: [email protected]
>> Telefoon: 036-5238013
>> Fax: 036-5238030
>>
>>
>
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 26 Jan 2010 11:06:43 -0500
> From: Fulko Hew <[email protected]>
> Subject: Re: compiling net-snmp 5.5 on AIX 6.1 fails
> To: [email protected]
> Cc: Willem Hilders <[email protected]>,
>        "[email protected]"
>        <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Tue, Jan 26, 2010 at 10:14 AM, <[email protected]> wrote:
>
>> William,
>>
>> I have had successful compilations on AIX 5.1 and 5.3 with 5.5.  What
>> is the configure line you used and gcc version?
>>
>> John
>>
>> Quoting Willem Hilders <[email protected]>:
>>
>> > Hi All
>> >
>> > When I compile net-snmp version 5.5 on my AIX 6.1 machine I get the
>> > errors underneath when I issue the make statement. Any one any idea
>> > how to solve this
>> > Thanks in advance
>> >
>> > In file included from /usr/include/sys/cred.h:49,
>> >                  from /usr/include/sys/file.h:32,
>> >                  from system.c:110:
>> > /usr/include/sys/secattr.h:50: error: parse error before "rid_t"
>> > /usr/include/sys/secattr.h:65: error: parse error before '}' token
>> > /usr/include/sys/secattr.h:70: error: parse error before "authnum_t"
>>
>
>
> ... snip...
>
> I recognize this one.  I just had a machine moved from AIX 5.3 to 6.1, and a
> simple
> ./configure; make resulted in these errors.
>
> In _my_ case I had to have the guy _also_ install a newer version of the gcc
> toolchain
> because the old one points to 'old' copies of .h files rather than the 'new'
> ones that
> know how to resolve these symbols.
>
> Also don't forget to use the patches described in
> http://sourceforge.net/tracker/index.php?func=detail&aid=2886598&group_id=12694&atid=312694
>
>
> I searched the patch database for AIX & 6
> to get the title '*patch that allows net-snmp 5.4.2.1 to compile on AIX 6.1'
>
>
> *
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 4
> Date: Tue, 26 Jan 2010 17:18:31 +0100
> From: Thomas Anders <[email protected]>
> Subject: Re: compiling net-snmp 5.5 on AIX 6.1 fails
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Willem Hilders wrote:
>> When I compile net-snmp version 5.5 on my AIX 6.1 machine I get the
>> errors underneath when I issue the make statement. Any one any idea how
>> to solve this
>>
>> In file included from /usr/include/sys/cred.h:49,
>>                  from /usr/include/sys/file.h:32,
>>                  from system.c:110:
>>
>> /usr/include/sys/secattr.h:50: error: parse error before "rid_t"
>
> What compiler (and version) are you using? Do you by chance also have another compiler available?
> Please note that the compiler complains about a system header file, not about the net-snmp source.
> Please have a look into  /usr/include/sys/secattr.h to find out what the compiler is choking on.
>
>
> +Thomas
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 26 Jan 2010 08:58:12 -0800
> From: Alex Mutz <[email protected]>
> Subject: SNMPD high CPU usage
> To: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi everyone,
>
> on one of my linux routers I'm running snmpd with the following
> configuration:
> rocommunity  router1v2 192.168.1.1
>
> >From time to time the snmpd process will spike the load high and then go
> back to normal. The cpu usage goes to 100% and stays there for like a minute
> or two and then goes back to normal. When snmpd spikes, mrtg cannot connect
> to snmpd, neither can I connect with snmpwalk, it just times out.
> Does anyone have an idea what could be causing this? Any debug information I
> can give to help figure out the anomaly?
>
> Thanks!
> Alex
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 6
> Date: Tue, 26 Jan 2010 13:05:50 -0600
> From: Group <[email protected]>
> Subject: Re: net-snmp compilation problem
> To: Bart Van Assche <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thanks for your reply. I have cygwin with full installation which includes
> all the packages and also the openssl-0.9.8 package came from cygwin. Also,
> i have openssl-devel package shown as already installed (This is confirmed
> by going through the setup.exe, and selecting openssl-devel, the status is
> keep (for options: Reinstall, Uninstall, keep, Source).).
>
> Is there any other way to check that openssl-devel package is already
> installed?.
>
> Bart, also you were mentioning that net-snmp configure script can be
> mentioned about path of the header files. Can you let me know how can i do
> this. Any documentation is also helpful. Thanks in advance.
>
>
> On Tue, Jan 26, 2010 at 4:53 AM, Bart Van Assche
> <[email protected]>wrote:
>
>> On Mon, Jan 25, 2010 at 11:22 PM, Group <[email protected]> wrote:
>>
>>> I could see openssl installed from cygwin as (though i haven't explicitly
>>> installed)
>>> $ openssl version
>>> OpenSSL 0.9.8l 5 Nov 2009
>>>
>>> Is openssl-devel not included in openssl?
>>> If not. Which version do i need to install?. Do we have any version
>>> available for
>>> cygwin?. Please let me know. Thanks.
>>>
>>
>> When using openssl (or any other external library) with Net-SNMP, you need
>> matching binaries and header files. So you can either obtain a development
>> package from the same supplier that provided you OpenSSL 0.9.8l, install
>> this, and tell the Net-SNMP configure script the path of these header files,
>> or you can install the Cygwin packages openssl and openssl-devel via
>> Cygwin's installer (http://www.cygwin.com/setup.exe).
>>
>> Bart.
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 7
> Date: Tue, 26 Jan 2010 15:42:09 -0900 (AKST)
> From: John Fulton <[email protected]>
> Subject: Net::SNMP usage
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> I have several monitoring scripts that pull SNMP stats off of switches and routers that I have used for the past 10 years using perl by running snmpget and parsing the program output into variables:
>
> Ex:
> ===
> open(GETIN, "/usr/bin/snmpget -Oqf -v2c -c public 192.168.1.20 interfaces.ifTable.ifEntry.ifInOctets.1 |");
> (@temp) = split(/\s+/, <GETIN>);
> $inBytes = $temp[$#temp];
> ===
>
> Pretty rough, but it's worked for us for over 10 years.
>
> I have decided to torture myself by learning to use Net::SNMP instead of modifying our older scripts for pulling stats off of some of our newer equipment.
>
> The purpose is to create a comma delimited file of statistics from these devices (satellite modems). I have created the array of OID values to retrieve, and have pulling the info from the device, but have hit a bit of a roadblock in my understanding on parsing the output to get the returned values.
>
> Here is what I have sofar:
> -------------------------------------------------
> #!/usr/bin/perl
>
> use Net::SNMP;
>
> $SNMP_COMMUNITY = "public";
> $SNMP_VERSION = "2";
>
> $VSAT_ANCH_IP = "172.16.0.40";
>
> @VSAT_ANCH_OID = ('1.3.6.1.4.1.2591.26.1.8.1.1.8.1.1', #CA Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.3.1', #UN Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.3.2', #GA Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.3.4', #CB Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.3.5', #SG Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.4.1', #SP Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.4.2', #KC Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.4.3', #NO Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.4.4', #FY Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.4.5', #SA Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.4.6', #AN Rx
>                  '1.3.6.1.4.1.2591.26.1.8.1.1.8.4.7', #IL Rx
>                  '1.3.6.1.4.1.2591.26.1.1.3.0'); #Tx Power Level
>
> ($session, $error) = Net::SNMP->session(
>                                -hostname       => $VSAT_ANCH_IP,
>                                -version        => $SNMP_VERSION,
>                                -community      => $SNMP_COMMUNITY,
>                                );
>
>
> $VSAT_ANCH = $session->get_request(-varbindlist => \@VSAT_ANCH_OID,
>                                  );
>
> snmp_dispatcher();
>
> $session->close();
> -------------------------------------------------
> Each of those OID values should return an integer value from 10000 to -2500.
>
> I do not quite understand how to access the returned results in $VSAT_ANCH as what I see in the variable is "HASH(0x9c75270)" when referenced.
>
> Thanks for any help in pointing me in the right direction.
>
> -John Fulton
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Tue, 26 Jan 2010 21:04:14 -0500
> From: Max <[email protected]>
> Subject: Re: Net::SNMP usage
> To: John Fulton <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi John,
>
> Wrong list, Net::SNMP is not associated with the Net-SNMP project,
> though Net::SNMP works very well with the Net-SNMP agent.
>
> See the perldoc for Net::SNMP, it explains clearly how to access
> variables in the returned hash.
>
> I use Net::SNMP extensively, if you have problems after reading the
> perldoc for Net::SNMP and looking at the examples that come with the
> module I would be glad to answer you off list.
>
> - Max
>
> On Tue, Jan 26, 2010 at 7:42 PM, John Fulton <[email protected]> wrote:
>> I have several monitoring scripts that pull SNMP stats off of switches and routers that I have used for the past 10 years using perl by running snmpget and parsing the program output into variables:
>>
>> Ex:
>> ===
>> open(GETIN, "/usr/bin/snmpget -Oqf -v2c -c public 192.168.1.20 interfaces.ifTable.ifEntry.ifInOctets.1 |");
>> (@temp) = split(/\s+/, <GETIN>);
>> $inBytes = $temp[$#temp];
>> ===
>>
>> Pretty rough, but it's worked for us for over 10 years.
>>
>> I have decided to torture myself by learning to use Net::SNMP instead of modifying our older scripts for pulling stats off of some of our newer equipment.
>>
>> The purpose is to create a comma delimited file of statistics from these devices (satellite modems). I have created the array of OID values to retrieve, and have pulling the info from the device, but have hit a bit of a roadblock in my understanding on parsing the output to get the returned values.
>>
>> Here is what I have sofar:
>> -------------------------------------------------
>> #!/usr/bin/perl
>>
>> use Net::SNMP;
>>
>> $SNMP_COMMUNITY = "public";
>> $SNMP_VERSION = "2";
>>
>> $VSAT_ANCH_IP = "172.16.0.40";
>>
>> @VSAT_ANCH_OID = ('1.3.6.1.4.1.2591.26.1.8.1.1.8.1.1', #CA Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.3.1', #UN Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.3.2', #GA Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.3.4', #CB Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.3.5', #SG Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.1', #SP Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.2', #KC Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.3', #NO Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.4', #FY Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.5', #SA Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.6', #AN Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.7', #IL Rx
>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.1.3.0'); #Tx Power Level
>>
>> ($session, $error) = Net::SNMP->session(
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?-hostname ? ? ? => $VSAT_ANCH_IP,
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?-version ? ? ? ?=> $SNMP_VERSION,
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?-community ? ? ?=> $SNMP_COMMUNITY,
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?);
>>
>>
>> $VSAT_ANCH = $session->get_request(-varbindlist => \@VSAT_ANCH_OID,
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?);
>>
>> snmp_dispatcher();
>>
>> $session->close();
>> -------------------------------------------------
>> Each of those OID values should return an integer value from 10000 to -2500.
>>
>> I do not quite understand how to access the returned results in $VSAT_ANCH as what I see in the variable is "HASH(0x9c75270)" when referenced.
>>
>> Thanks for any help in pointing me in the right direction.
>>
>> -John Fulton
>>
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>> _______________________________________________
>> 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
>>
>
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 27 Jan 2010 09:10:21 +0100
> From: Bart Van Assche <[email protected]>
> Subject: Re: net-snmp compilation problem
> To: Group <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Tue, Jan 26, 2010 at 8:05 PM, Group <[email protected]> wrote:
>
>> Thanks for your reply. I have cygwin with full installation which includes
>> all the packages and also the openssl-0.9.8 package came from cygwin. Also,
>> i have openssl-devel package shown as already installed (This is confirmed
>> by going through the setup.exe, and selecting openssl-devel, the status is
>> keep (for options: Reinstall, Uninstall, keep, Source).).
>>
>> Is there any other way to check that openssl-devel package is already
>> installed?.
>>
>> Bart, also you were mentioning that net-snmp configure script can be
>> mentioned about path of the header files. Can you let me know how can i do
>> this. Any documentation is also helpful. Thanks in advance.
>>
>
> Building for Cygwin is documented here:
> http://net-snmp.sourceforge.net/docs/README.win32.html
>
> The command below works fine on my setup (Cygwin 1.7). As you can see the
> Net-SNMP 5.5 configure script is able to detect the OpenSSL library
> (-lcrypto) and header files even without passing --with-openssl=/usr to the
> configure script. This should also work with older Cygwin versions.
>
> $ ./configure --with-defaults --without-perl-modules --disable-embedded-perl
> && grep -E 'NETSNMPLIBS|SSL' config.status && make -s && agent/snmpd -f -Lo
> [ ... ]
> S["LNETSNMPLIBS"]=" -lcrypto"
> D["HAVE_OPENSSL_AES_H"]=" 1"
> D["HAVE_OPENSSL_DH_H"]=" 1"
> D["HAVE_OPENSSL_DES_H"]=" 1"
> D["HAVE_OPENSSL_HMAC_H"]=" 1"
> D["HAVE_OPENSSL_EVP_H"]=" 1"
> D["NETSNMP_USE_OPENSSL"]=" 1"
> [ ... ]
> 2010-01-27 09:03:27 Turning on AgentX master support.
> 2010-01-27 09:03:27 NET-SNMP version 5.5
>
> Bart.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 10
> Date: Wed, 27 Jan 2010 17:09:34 +0800
> From: " Alexander King " <[email protected]>
> Subject: Re: when snmpwalk query my private trap OID the snmpd routine
>        auto    termination
> To: " Dave Shield " <[email protected]>, " net-snmp-users "
>        <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain;       charset="utf-8"
>
> ------------------ Original ------------------
> From:  "Dave Shield"<[email protected]>;
> Date:  Tue, Jan 26, 2010 05:54 PM
> To:  "Alexander King"<[email protected]>;
> Cc:  "net-snmp-users"<[email protected]>;
> Subject:  Re: when snmpwalk query my private trap OID the snmpd routine auto termination
>
> Thank you for providing the full code.
>
> Compiling this, it became clear very quickly that the problem
> is nothing to do with the handling of notifications.
> I tried the following:
>
> -  Commented out all of the code relating to traps;
> compiled the agent;
> walked your subtree.
> This listed the first four scalars (up to systemType)
> and then the agent crashed.
>
> - Restarted the agent;
> Issued a GET request on
> The agent crashed again.
>
> - Restarted the agent;
> Issued a GET request on
> The agent crashed again.
>>>>>i had deleted all the code related to the two objects(in mib file,register function,traps),and I re-compiled the source use
>
> ./configure  --with-mib-modules="uit"
> make
> make install
>
> reboot the system,and I can walk all the info use MG-soft,the snmpd didnot auto termination ,the walk result are quite right(not systemJBODNumber.0 and systemStatus.0) But I didnot reveived one trap!I think it is maybe something wrong config or something,so I use
>
> ps aux |grep snmpd|grep -v grep|awk '{print $2}'|xargs kill
> ps aux |grep snmptrapd|grep -v grep|awk '{print $2}'|xargs kill
> /usr/local/sbin/snmpd -C -c /usr/local/share/snmp/snmpd.conf -M /usr/local/share/snmp/mibs/
> /usr/local/sbin/snmptrapd -C  -c /usr/local/share/snmp/snmptrapd.conf
>
> via CLI,but the snmpd daemon down quickly!is it something with my config file?
>
> I checked the handler function on systemJBODNumber and systemStatus,objectively speaking,I hadnot found something apparently wrong contrast to the other object handler function.I will check it more carefully again later.
>
>
> Alex
>
>
>
>
> - Commented out the registration of these two objects;
> compiled the agent;
> walked your subtree.
> This complete successfully.
>
> You need to look more closely at the handler routines for
> these two MIB objects.
>
> Some more general advice:
> Don't try to implement the whole MIB in one go. Build it up piece by piece.
>
> Start with the code for the scalar objects - and check each of these
> individually (using "snmpget").  Once your happy that these work in
> isolation, run "snmpwalk" on the whole lot to make sure things are OK.
> Then move on to the table
>
> Once you're happy that the main management objects are working
> properly - *then* (and only then) is it sensible to start thinking about
> the notifications.
> Trying to do everything in one go - particularly when you are not
> very experienced - is simply asking for trouble.
>
> There's also a problem with the implementation of the IP address
> and PhysAddress objects.   These are meant to be *binary* strings,
> not text strings.   You need something like
>
> unsigned char ipaddress[] = {201, 201, 201, 201};
> unsigned char macaddress[] = {0, 0x0c, 0x29, 0xd5, 0xbc, 0xb7 };
>
> and then use "sizeof" rather than "strlen" in the handler routines.
>
> But the basic problem is in the handler routines for the Status and
> JBODNumber objects.
>
> Dave
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> 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
>
> ------------------------------
>
> Message: 11
> Date: Wed, 27 Jan 2010 10:18:22 +0100
> From: Willem Hilders <[email protected]>
> Subject: RE: compiling net-snmp 5.5 on AIX 6.1 fails
> To: 'Fulko Hew' <[email protected]>, "[email protected]"
>        <[email protected]>
> Cc: "[email protected]"
>        <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> I solved my problem:
> ./configure --without-kmem-usage --enable-static --enable-shared --prefix=/opt/freeware/net-snmp --with-default-snmp-version="3" --with-sys-location="Almere" --with-sys-contact="[email protected]" --with-persistent-directory="/etc/snmp" --with-logfile="/var/log/snmpd.log" --with-openssl --with-pic
> gave the message below:
>
> configure: WARNING: libperfstat.h: present but cannot be compiled
> configure: WARNING: libperfstat.h:     check for missing prerequisite headers?
> configure: WARNING: libperfstat.h: see the Autoconf documentation
> configure: WARNING: libperfstat.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: libperfstat.h: proceeding with the preprocessor's result
> configure: WARNING: libperfstat.h: in the future, the compiler will take precedence
> configure: WARNING:     ## ---------------------------------------------------- ##
> configure: WARNING:     ## Report this to [email protected] ##
> configure: WARNING:     ## ---------------------------------------------------- ##
>
> found patch: 2886598 which stated to add #include <sys/protosw.h> to all files which include libperfstat.h before the include of libperfstat.h
>
> added: #include <sys/protosw.h> to the following files:
>
> agent/mibgroup/hardware/cpu/cpu_perfstat.c
> agent/mibgroup/hardware/memory/memory_aix.c
> agent/mibgroup/host/hr_storage.c
> agent/mibgroup/mibII/icmp.c
> agent/mibgroup/mibII/ip.c
> agent/mibgroup/mibII/tcp.c
> agent/mibgroup/mibII/udp.c
> agent/mibgroup/ucd-snmp/diskio.c
> agent/mibgroup/ucd-snmp/loadave.c
> agent/mibgroup/ucd-snmp/memory_aix4.c
>
> One question remains though, how do I generate an rpm out of this???
>
> Met vriendelijke groet,
> Willem Hilders
>
> SARA ICT Services
> Email: [email protected]
> Telefoon: 036-5238013
> Fax: 036-5238030
>
> From: Fulko Hew [mailto:[email protected]]
> Sent: dinsdag 26 januari 2010 17:07
> To: [email protected]
> Cc: Willem Hilders; [email protected]
> Subject: Re: compiling net-snmp 5.5 on AIX 6.1 fails
>
>
> On Tue, Jan 26, 2010 at 10:14 AM, <[email protected]<mailto:[email protected]>> wrote:
> William,
>
> I have had successful compilations on AIX 5.1 and 5.3 with 5.5.  What
> is the configure line you used and gcc version?
>
> John
>
> Quoting Willem Hilders <[email protected]<mailto:[email protected]>>:
>
>> Hi All
>>
>> When I compile net-snmp version 5.5 on my AIX 6.1 machine I get the
>> errors underneath when I issue the make statement. Any one any idea
>> how to solve this
>> Thanks in advance
>>
>> In file included from /usr/include/sys/cred.h:49,
>>                  from /usr/include/sys/file.h:32,
>>                  from system.c:110:
>> /usr/include/sys/secattr.h:50: error: parse error before "rid_t"
>> /usr/include/sys/secattr.h:65: error: parse error before '}' token
>> /usr/include/sys/secattr.h:70: error: parse error before "authnum_t"
>
>
> ... snip...
>
> I recognize this one.  I just had a machine moved from AIX 5.3 to 6.1, and a simple
> ./configure; make resulted in these errors.
>
> In _my_ case I had to have the guy _also_ install a newer version of the gcc toolchain
> because the old one points to 'old' copies of .h files rather than the 'new' ones that
> know how to resolve these symbols.
>
> Also don't forget to use the patches described in
> http://sourceforge.net/tracker/index.php?func=detail&aid=2886598&group_id=12694&atid=312694
>
>
> I searched the patch database for AIX & 6
> to get the title 'patch that allows net-snmp 5.4.2.1 to compile on AIX 6.1'
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 12
> Date: Wed, 27 Jan 2010 10:18:30 +0100
> From: Willem Hilders <[email protected]>
> Subject: RE: compiling net-snmp 5.5 on AIX 6.1 fails
> To: "[email protected]"
>        <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> I solved my problem:
> ./configure --without-kmem-usage --enable-static --enable-shared --prefix=/opt/freeware/net-snmp --with-default-snmp-version="3" --with-sys-location="Almere" --with-sys-contact="[email protected]" --with-persistent-directory="/etc/snmp" --with-logfile="/var/log/snmpd.log" --with-openssl --with-pic
> gave the message below:
>
> configure: WARNING: libperfstat.h: present but cannot be compiled
> configure: WARNING: libperfstat.h:     check for missing prerequisite headers?
> configure: WARNING: libperfstat.h: see the Autoconf documentation
> configure: WARNING: libperfstat.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: libperfstat.h: proceeding with the preprocessor's result
> configure: WARNING: libperfstat.h: in the future, the compiler will take precedence
> configure: WARNING:     ## ---------------------------------------------------- ##
> configure: WARNING:     ## Report this to [email protected] ##
> configure: WARNING:     ## ---------------------------------------------------- ##
>
> found patch: 2886598 which stated to add #include <sys/protosw.h> to all files which include libperfstat.h before the include of libperfstat.h
>
> added: #include <sys/protosw.h> to the following files:
>
> agent/mibgroup/hardware/cpu/cpu_perfstat.c
> agent/mibgroup/hardware/memory/memory_aix.c
> agent/mibgroup/host/hr_storage.c
> agent/mibgroup/mibII/icmp.c
> agent/mibgroup/mibII/ip.c
> agent/mibgroup/mibII/tcp.c
> agent/mibgroup/mibII/udp.c
> agent/mibgroup/ucd-snmp/diskio.c
> agent/mibgroup/ucd-snmp/loadave.c
> agent/mibgroup/ucd-snmp/memory_aix4.c
>
> One question remains though, how do I generate an rpm out of this???
>
> Met vriendelijke groet,
> Willem Hilders
>
> SARA ICT Services
> Email: [email protected]
> Telefoon: 036-5238013
> Fax: 036-5238030
>
>
> -----Original Message-----
> From: Thomas Anders [mailto:[email protected]]
> Sent: dinsdag 26 januari 2010 17:19
> To: [email protected]
> Subject: Re: compiling net-snmp 5.5 on AIX 6.1 fails
>
> Willem Hilders wrote:
>> When I compile net-snmp version 5.5 on my AIX 6.1 machine I get the
>> errors underneath when I issue the make statement. Any one any idea how
>> to solve this
>>
>> In file included from /usr/include/sys/cred.h:49,
>>                  from /usr/include/sys/file.h:32,
>>                  from system.c:110:
>>
>> /usr/include/sys/secattr.h:50: error: parse error before "rid_t"
>
> What compiler (and version) are you using? Do you by chance also have another compiler available?
> Please note that the compiler complains about a system header file, not about the net-snmp source.
> Please have a look into  /usr/include/sys/secattr.h to find out what the compiler is choking on.
>
>
> +Thomas
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> 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
>
>
>
> ------------------------------
>
> Message: 13
> Date: Wed, 27 Jan 2010 09:23:45 +0000
> From: Dave Shield <[email protected]>
> Subject: Re: when snmpwalk query my private trap OID the snmpd routine
>        auto    termination
> To: Alexander King <[email protected]>
> Cc: net-snmp-users <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 2010/1/27 Alexander King <[email protected]>:
>> I checked the handler function on systemJBODNumber and systemStatus,
>> objectively speaking,I hadnot found something apparently wrong contrast
>> to the other object handler function.I will check it more carefully again later.
>
> Remember that you need to pass a pointer *to* the value that you want to
> return.   You were actually returning this value *AS* a pointer variable.
>
> So when the agent dereferenced this pointer later (to retrieve the actual
> value), this triggered the crash.
>
> You also need to look again at how Counter64 values are handled in the
> Net-SNMP agent.   Hint:  It's not a simple "long" or "long long" variable.
>
> Dave
>
>
>
> ------------------------------
>
> Message: 14
> Date: Wed, 27 Jan 2010 18:49:09 +0800
> From: " Alexander King " <[email protected]>
> Subject: about net-snmp 64bits data
> To: " net-snmp-users " <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> ------------------ Original ------------------
>
> From: "Dave Shield"<[email protected]>;
>
> Date: Wed, Jan 27, 2010 05:23 PM
>
> To: "Alexander King"<[email protected]>;
>
> Cc: "net-snmp-users"<[email protected]>;
>
> Subject: Re: when snmpwalk query my private trap OID the snmpd routine auto termination
>
> 2010/1/27 Alexander King <[email protected]>:
>> I checked the handler function on systemJBODNumber and systemStatus,
>> objectively speaking,I hadnot found something apparently wrong contrast
>> to the other object handler function.I will check it more carefully again later.
>
> Remember that you need to pass a pointer *to* the value that you want to
> return.   You were actually returning this value *AS* a pointer variable.
>
> So when the agent dereferenced this pointer later (to retrieve the actual
> value), this triggered the crash.
>
>>>>>I will test this again.
>
> You also need to look again at how Counter64 values are handled in the
> Net-SNMP agent.   Hint:  It's not a simple "long" or "long long" variable.
>
>>>>> I did this:
>
> prefix          = /usr/local  \
>  --enable-shared \
>  --with-default-snmp-version=2 \
>  --with-mib-modules="uit"  \
>  --enable-mfd-rewrites
> and use uint64_t in my c source code,is it right?
>
> Dave
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 15
> Date: Wed, 27 Jan 2010 10:55:18 +0000
> From: Dave Shield <[email protected]>
> Subject: Re: about net-snmp 64bits data
> To: Alexander King <[email protected]>
> Cc: net-snmp-users <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 2010/1/27 Alexander King <[email protected]>:
>> You also need to look again at how Counter64 values are handled in the
>> Net-SNMP agent. ? Hint:? It's not a simple "long" or "long long" variable.
>>
>>>>>> I did this:
>> and use uint64_t in my c source code,is it right?
>
>
> No.
>
> Please look at how Counter64 objects are handled elsewhere in the agent.
>
> Dave
>
>
>
> ------------------------------
>
> Message: 16
> Date: Tue, 26 Jan 2010 22:27:30 -0500
> From: Max Schubert <[email protected]>
> Subject: Little OT - Mock agent for testing SNMP OIDs - any OID, would
>        prefer  to use Net-SNMP for the basis of this
> To: SNMP FORUM <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi all,
>
> I have been searching through the Net-SNMP source to see if there is a
> framework to do with with Net-SNMP, tried to set pass_persist up to do
> this, does not seem it will let me overwrite responses to built in
> OIDs.
>
> I really want a regression testing framework for our SNMP-based
> programs / scripts, we use Net-SNMP extensively so I am hoping to use
> it as a test harness as well :).
>
> However, I really would like to be able to mock out any OID with this
> agent and just have it act as a real harness, providing only data our
> test cases provide.
>
> I see an agent listener using TwistedSNMP that does this, but since we
> use Net-SNMP almost exclusively, would be the best to have it be our
> container.
>
> Anyone know of a way to do this with Net-SNMP that does this?
>
> Is the best solution to recompile a test agent with no mibs except for
> pass_persist so that pass_persist can then respond to any OID at or
> below 1.3.6.1?  Or would that plain fail too?  I am not by any means
> an expert at the C parts of Net-SNMP though I have poked around in the
> C files as needed and I submitted one small patch to the pass_persist
> table handler that resolved a crash.
>
> Any advice / help appreciated, am doing my best to do leg work on
> this, but so far not coming up with any way to do this with Net-SNMP
> as the SNMP mock server container ..
>
> Thank you,
> Max
>
>
>
> ------------------------------
>
> Message: 17
> Date: Wed, 27 Jan 2010 16:32:45 +0530
> From: "Gaikwad, Rupesh" <[email protected]>
> Subject: SNMP v3 help
> To: net-snmp-users <[email protected]>
> Message-ID:
>        <BC72F99748A5974BBA6FDB0A8568B529013C2AD07447@PUNCCRPRD01.adprod.bmc.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello All,
> I have configured snmptrapd and I can receive V3 AuthPriv traps very well on my test machine.
> But, now I want to know how I can receive and print trap from perl.
> I have searched many links and found Net-SNMPTrapd-0.02 > Net::SNMPTrapd.
> But this modules/ examples does not support v3. Otherwise it's something exact what I am looking for.
>
> Any help is appreciated.
>
> Best regards,
> Rupesh
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 18
> Date: Wed, 27 Jan 2010 17:03:40 +0530
> From: "Gaikwad, Rupesh" <[email protected]>
> Subject: RE: SNMP v3 help
> To: net-snmp-users <[email protected]>
> Message-ID:
>        <BC72F99748A5974BBA6FDB0A8568B529013C2AD07486@PUNCCRPRD01.adprod.bmc.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> What would you suggest me to do if I have following requirement.
>
> 1.       Receive V3 trap
>
> 2.       Decode v3 trap somehow. I don't know this step.
>
> 3.       Print the values like, oid , agentaddr etc from a perl script.
>
> Best regards,
> Rupesh
>
> From: Gaikwad, Rupesh
> Sent: Wednesday, January 27, 2010 4:33 PM
> To: net-snmp-users
> Subject: SNMP v3 help
>
> Hello All,
> I have configured snmptrapd and I can receive V3 AuthPriv traps very well on my test machine.
> But, now I want to know how I can receive and print trap from perl.
> I have searched many links and found Net-SNMPTrapd-0.02 > Net::SNMPTrapd.
> But this modules/ examples does not support v3. Otherwise it's something exact what I am looking for.
>
> Any help is appreciated.
>
> Best regards,
> Rupesh
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 19
> Date: Wed, 27 Jan 2010 19:53:42 +0800
> From: " Alexander King " <[email protected]>
> Subject: Re: about net-snmp 64bits data
> To: " Dave Shield " <[email protected]>, " net-snmp-users "
>        <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> Dave,about 64bits data run on net-snmp I found something below,it is in the right direction?
>
>
> 00080 #define IS_CONSTRUCTOR(byte)    ((byte) & ASN_CONSTRUCTOR)
> 00081 #define IS_EXTENSION_ID(byte)   (((byte) & ASN_EXTENSION_ID) == ASN_EXTENSION_ID)
> 00082
> 00083     struct counter64 {
> 00084         u_long          high;
> 00085         u_long          low;
> 00086     };
> 00087
> 00088 #ifdef NETSNMP_WITH_OPAQUE_SPECIAL_TYPES
> 00089     typedef struct counter64 integer64;
> 00090     typedef struct counter64 unsigned64;
>
>
> /*---------------------------------------------------------------------
>  * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInReceives
>  * ipSystemStatsHCInReceives is subid 4 of ipSystemStatsEntry.
>  * Its status is Current, and its access level is ReadOnly.
>  * OID: .1.3.6.1.2.1.4.31.1.1.4
>  * Description:
> The total number of input IP datagrams received, including
>            those received in error.  This object counts the same
>            datagrams as ipSystemStatsInReceives but allows for larger
>
>
>
>
>            values.
>
>
>            Discontinuities in the value of this counter can occur at
>            re-initialization of the management system, and at other
>            times as indicated by the value of
>            ipSystemStatsDiscontinuityTime.
>  *
>  * Attributes:
>  *   accessible 1     isscalar 0     enums  0      hasdefval 0
>  *   readable   1     iscolumn 1     ranges 0      hashint   0
>  *   settable   0
>  *
>  *
>  * Its syntax is COUNTER64 (based on perltype COUNTER64)
>  * The net-snmp type is ASN_COUNTER64. The C type decl is U64 (U64)
>  */
> /**
>  * Extract the current value of the ipSystemStatsHCInReceives data.
>  *
>  * Set a value using the data context for the row.
>  *
>  * @param rowreq_ctx
>  *        Pointer to the row request context.
>  * @param ipSystemStatsHCInReceives_val_ptr
>  *        Pointer to storage for a U64 variable
>  *
>  * @retval MFD_SUCCESS         : success
>  * @retval MFD_SKIP            : skip this node (no value for now)
>  * @retval MFD_ERROR           : Any other error
>  */
> int
> ipSystemStatsHCInReceives_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
>                              U64 * ipSystemStatsHCInReceives_val_ptr)
> {
>   /** we should have a non-NULL pointer */
>    netsnmp_assert(NULL != ipSystemStatsHCInReceives_val_ptr);
>
>    /*
>     * TODO:231:o: |-> copy ipSystemStatsHCInReceives data.
>     * get (* ipSystemStatsHCInReceives_val_ptr ).low and (* ipSystemStatsHCInReceives_val_ptr ).high from rowreq_ctx->data
>     */
>    (*ipSystemStatsHCInReceives_val_ptr).low =
>        rowreq_ctx->data->stats.HCInReceives.low;
>    (*ipSystemStatsHCInReceives_val_ptr).high =
>        rowreq_ctx->data->stats.HCInReceives.high;
>
>    return MFD_SUCCESS;
> }
>
>
>
>
>
> +          case ASN_COUNTER64:
> +       /* We want an integer here */
> +       if ((SvTYPE(value) == SVt_IV) || (SvTYPE(value) == SVt_PVMG)) {
> +  /* Good - got a real one (or a blessed scalar which we have to hope will turn out OK) */
> +  ulltmp = SvIV(value);
> +  c64.high = (ulltmp & 0xffffffff00000000ULL) >> 32;
> +  c64.low  = (ulltmp & 0xffffffffULL);
> +                  snmp_set_var_typed_value(request->requestvb, (u_char)type,
> +                                       (u_char *) &c64, sizeof(struct counter64));
> +  RETVAL = 1;
> +  break;
> +       }
> +       else if (SvPOKp(value)) {
> +           /* Might be OK - got a string, so try to convert it, allowing base 10, octal, and hex forms */
> +           stringptr = SvPV(value, stringlen);
> +  ulltmp = strtoul( stringptr, NULL, 0 );
> +  if (errno == EINVAL) {
> + snmp_log(LOG_ERR, "Could not convert string to number in setValue: '%s'", stringptr);
> + RETVAL = 0;
> + break;
> +  }
> +
> +  c64.high = (ulltmp & 0xffffffff00000000ULL) >> 32;
> +  c64.low  = (ulltmp & 0xffffffffULL);
> +                  snmp_set_var_typed_value(request->requestvb, (u_char)type,
> +                                       (u_char *) &c64, sizeof(struct counter64));
> +  RETVAL = 1;
> +  break;
> +       }
>
> ------------------ Original ------------------
>
> From: "Dave Shield"<[email protected]>;
>
> Date: Wed, Jan 27, 2010 06:55 PM
>
> To: "Alexander King"<[email protected]>;
>
> Cc: "net-snmp-users"<[email protected]>;
>
> Subject: Re: about net-snmp 64bits data
>
> 2010/1/27 Alexander King <[email protected]>:
>> You also need to look again at how Counter64 values are handled in the
>> Net-SNMP agent. ? Hint:? It's not a simple "long" or "long long" variable.
>>
>>>>>> I did this:
>> and use uint64_t in my c source code,is it right?
>
> No.
>
> Please look at how Counter64 objects are handled elsewhere in the agent.
>
> Dave
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 20
> Date: Wed, 27 Jan 2010 09:23:35 -0800
> From: [email protected]
> Subject: How to disable/enable SNMP V1 and V2 on the fly?
> To: <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,  thank you all for the help of my previous questions.  Problems were
> solved according to your answer.
> I have another question:
> I have an agent running for all the SNMP versions.
> 1.      I want to disable/enable SNMP V1, V2 for the whole agent on the
> fly,
>                What net-snmp command should I use or which OID should I
> set to do this while I don't have to restart the agent and redo the
> configure?
> 2.      Right now I have "rwcommunity public" in the
> /usr/local/share/snmp/snmpd.conf file for community string.
>                Which net-snmp command alow me to change the community
> name?
>
> Chi
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 21
> Date: Wed, 27 Jan 2010 14:17:55 -0600
> From: Group <[email protected]>
> Subject: Re: net-snmp compilation problem [solved]
> To: Bart Van Assche <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Bart,
>
> With your configure command as reference, I have tried with ./configure
> --without-perl-modules --disable-embedded-perl --with-openssl="/usr".
>
> I'm able to compile the code with make:
> These are the last lines of the compilation:
> ...
> chmod a+x net-snmp-config
> touch net-snmp-config-x
>
> and for 'make install'
> ...
> install: installed SNMPv2-TM.txt in /usr/local/share/snmp/mibs
> libtool: install: /usr/bin/install -c -m 644 ./NET-SNMP-VACM-MIB.txt
> /usr/local/
> share/snmp/mibs/NET-SNMP-VACM-MIB.txt
> install: installed NET-SNMP-VACM-MIB.txt in /usr/local/share/snmp/mibs
> libtool: install: /usr/bin/install -c -m 644 ./DISMAN-SCHEDULE-MIB.txt
> /usr/loca
> l/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt
> install: installed DISMAN-SCHEDULE-MIB.txt in /usr/local/share/snmp/mibs
> make[1]: Leaving directory `/home/mallik/net-snmp-5.5/mibs'
>
> Thanks for the help.
>
> On Wed, Jan 27, 2010 at 2:10 AM, Bart Van Assche
> <[email protected]>wrote:
>
>> On Tue, Jan 26, 2010 at 8:05 PM, Group <[email protected]> wrote:
>>
>>> Thanks for your reply. I have cygwin with full installation which includes
>>> all the packages and also the openssl-0.9.8 package came from cygwin. Also,
>>> i have openssl-devel package shown as already installed (This is confirmed
>>> by going through the setup.exe, and selecting openssl-devel, the status is
>>> keep (for options: Reinstall, Uninstall, keep, Source).).
>>>
>>> Is there any other way to check that openssl-devel package is already
>>> installed?.
>>>
>>> Bart, also you were mentioning that net-snmp configure script can be
>>> mentioned about path of the header files. Can you let me know how can i do
>>> this. Any documentation is also helpful. Thanks in advance.
>>>
>>
>> Building for Cygwin is documented here:
>> http://net-snmp.sourceforge.net/docs/README.win32.html
>>
>> The command below works fine on my setup (Cygwin 1.7). As you can see the
>> Net-SNMP 5.5 configure script is able to detect the OpenSSL library
>> (-lcrypto) and header files even without passing --with-openssl=/usr to the
>> configure script. This should also work with older Cygwin versions.
>>
>> $ ./configure --with-defaults --without-perl-modules
>> --disable-embedded-perl && grep -E 'NETSNMPLIBS|SSL' config.status && make
>> -s && agent/snmpd -f -Lo
>> [ ... ]
>> S["LNETSNMPLIBS"]=" -lcrypto"
>> D["HAVE_OPENSSL_AES_H"]=" 1"
>> D["HAVE_OPENSSL_DH_H"]=" 1"
>> D["HAVE_OPENSSL_DES_H"]=" 1"
>> D["HAVE_OPENSSL_HMAC_H"]=" 1"
>> D["HAVE_OPENSSL_EVP_H"]=" 1"
>> D["NETSNMP_USE_OPENSSL"]=" 1"
>> [ ... ]
>> 2010-01-27 09:03:27 Turning on AgentX master support.
>> 2010-01-27 09:03:27 NET-SNMP version 5.5
>>
>> Bart.
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 22
> Date: Wed, 27 Jan 2010 14:16:53 -0800
> From: "Mike Ayers" <[email protected]>
> Subject: RE: SNMP v3 help
> To: "Gaikwad, Rupesh" <[email protected]>, "net-snmp-users"
>        <[email protected]>
> Message-ID:
>        <83E753BE7B6A324ABB336245BAF1DAAC0DD868C2@mailserver.metatv-ds.metatv.com>
>
> Content-Type: text/plain;       charset="UTF-8"
>
>> From: Gaikwad, Rupesh [mailto:[email protected]]
>> Sent: Wednesday, January 27, 2010 3:34 AM
>
>> What would you suggest me to do if I have following requirement.
>>
>> 1.       Receive V3 trap
>>
>> 2.       Decode v3 trap somehow. I don?t know this step.
>>
>> 3.       Print the values like, oid , agentaddr etc from a perl script.
>
> http://www.net-snmp.org/docs/man/snmptrapd.conf.html
>
>
>        I point you to the traphandle command, but read the whole page, please.
>
>
>        HTH,
>
> Mike
>
>
> ------------------------------
>
> Message: 23
> Date: Wed, 27 Jan 2010 16:37:48 -0900 (AKST)
> From: John Fulton <[email protected]>
> Subject: Re: Net::SNMP usage
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=iso-8859-1
>
> My mistake, sorry about that, it was tough to track down support for Net::SNMP and I thought I had the right mailing list.
>
> Thanks!
>
> -john
>
> ---- Original message ----
>>Date: Tue, 26 Jan 2010 21:04:14 -0500
>>From: [email protected] (on behalf of Max <[email protected]>)
>>Subject: Re: Net::SNMP usage
>>To: John Fulton <[email protected]>
>>Cc: [email protected]
>>
>>Hi John,
>>
>>Wrong list, Net::SNMP is not associated with the Net-SNMP project,
>>though Net::SNMP works very well with the Net-SNMP agent.
>>
>>See the perldoc for Net::SNMP, it explains clearly how to access
>>variables in the returned hash.
>>
>>I use Net::SNMP extensively, if you have problems after reading the
>>perldoc for Net::SNMP and looking at the examples that come with the
>>module I would be glad to answer you off list.
>>
>>- Max
>>
>>On Tue, Jan 26, 2010 at 7:42 PM, John Fulton <[email protected]> wrote:
>>> I have several monitoring scripts that pull SNMP stats off of switches and routers that I have used for the past 10 years using perl by running snmpget and parsing the program output into variables:
>>>
>>> Ex:
>>> ===
>>> open(GETIN, "/usr/bin/snmpget -Oqf -v2c -c public 192.168.1.20 interfaces.ifTable.ifEntry.ifInOctets.1 |");
>>> (@temp) = split(/\s+/, <GETIN>);
>>> $inBytes = $temp[$#temp];
>>> ===
>>>
>>> Pretty rough, but it's worked for us for over 10 years.
>>>
>>> I have decided to torture myself by learning to use Net::SNMP instead of modifying our older scripts for pulling stats off of some of our newer equipment.
>>>
>>> The purpose is to create a comma delimited file of statistics from these devices (satellite modems). I have created the array of OID values to retrieve, and have pulling the info from the device, but have hit a bit of a roadblock in my understanding on parsing the output to get the returned values.
>>>
>>> Here is what I have sofar:
>>> -------------------------------------------------
>>> #!/usr/bin/perl
>>>
>>> use Net::SNMP;
>>>
>>> $SNMP_COMMUNITY = "public";
>>> $SNMP_VERSION = "2";
>>>
>>> $VSAT_ANCH_IP = "172.16.0.40";
>>>
>>> @VSAT_ANCH_OID = ('1.3.6.1.4.1.2591.26.1.8.1.1.8.1.1', #CA Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.3.1', #UN Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.3.2', #GA Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.3.4', #CB Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.3.5', #SG Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.1', #SP Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.2', #KC Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.3', #NO Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.4', #FY Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.5', #SA Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.6', #AN Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.8.1.1.8.4.7', #IL Rx
>>> ? ? ? ? ? ? ? ? ?'1.3.6.1.4.1.2591.26.1.1.3.0'); #Tx Power Level
>>>
>>> ($session, $error) = Net::SNMP->session(
>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?-hostname ? ? ? => $VSAT_ANCH_IP,
>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?-version ? ? ? ?=> $SNMP_VERSION,
>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?-community ? ? ?=> $SNMP_COMMUNITY,
>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?);
>>>
>>>
>>> $VSAT_ANCH = $session->get_request(-varbindlist => \@VSAT_ANCH_OID,
>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?);
>>>
>>> snmp_dispatcher();
>>>
>>> $session->close();
>>> -------------------------------------------------
>>> Each of those OID values should return an integer value from 10000 to -2500.
>>>
>>> I do not quite understand how to access the returned results in $VSAT_ANCH as what I see in the variable is "HASH(0x9c75270)" when referenced.
>>>
>>> Thanks for any help in pointing me in the right direction.
>>>
>>> -John Fulton
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The Planet: dedicated and managed hosting, cloud storage, colocation
>>> Stay online with enterprise data centers and the best network in the business
>>> Choose flexible plans and management services without long-term contracts
>>> Personal 24x7 support from experience hosting pros just a phone call away.
>>> http://p.sf.net/sfu/theplanet-com
>>> _______________________________________________
>>> 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
>>>
>
>
>
> ------------------------------
>
> Message: 24
> Date: Thu, 28 Jan 2010 12:15:08 +0530
> From: sanjaykumar <[email protected]>
> Subject: What these  means:  int majorID, int minorID, void
>        *serverarg, void        *clientarg
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 25
> Date: Thu, 28 Jan 2010 12:28:26 +0530 (IST)
> From: Vivek Singh Bhadauria <[email protected]>
> Subject: HOST-RESOURCE::hrSWInstalledTable
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> HI All,
> I am using Net-SNMP 5.4.2.1.
> I want to get the list of installed software but hrSWInstalledTable is empty when I run snmpwalk command.
>
> My question is: Who will fill the hrSWInstalledTable?
> Its me or already implemented by the Net-SNMP.
>
> Thanks
> Vivek
>
>
>
>
>
>      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 26
> Date: Thu, 28 Jan 2010 08:26:55 +0000
> From: Dave Shield <[email protected]>
> Subject: Re: How to disable/enable SNMP V1 and V2 on the fly?
> To: [email protected]
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=windows-1252
>
> On 27 January 2010 17:23,  <[email protected]> wrote:
>> I have an agent running for all the SNMP versions.
>>
>> 1.????? I want to disable/enable SNMP V1, V2 for the whole agent on the fly,
>
> The simplest way to do this is to remove any community-based
> access control settings.   Either by editing the snmpd.conf file
> or by manipulating the VACM tables.
>
>
>
>> What net-snmp command should I use or which OID should I set to do this
>> while I don?t have to restart the agent and redo the configure?
>
> You can reload the configuration without restarting the agent,
> by issuing a SET request on UCD-SNMP-MIB::versionUpdateConfig.0
>
>
>
>> 2.????? Right now I have ?rwcommunity public? in the
>> /usr/local/share/snmp/snmpd.conf file for community string.
>>
>> Which net-snmp command alow me to change the community name?
>
> If you've got access control set up in the snmpd.conf file, then
> you will need to edit this file (and re-load the config) in order
> to change it.   Most configuration set via that file is "static", and
> can't be changed via SET requests.
>
> Dave
>
>
>
> ------------------------------
>
> Message: 27
> Date: Thu, 28 Jan 2010 08:36:41 +0000
> From: Dave Shield <[email protected]>
> Subject: Re: What these means: int majorID, int minorID, void
>        *serverarg, void        *clientarg
> To: sanjaykumar <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 28 January 2010 06:45, sanjaykumar <[email protected]> wrote:
>> ??????????? I am not able to understand the meaning of following parameters.
>> As there numerous function in net-snmp-5.4.2.1 having following parameter.
>> Could someone explain the meaning of these parameters in DETAILS.
>> 1. int majorID
>> 2. int minorID
>> 3. void *serverarg
>> 4. void *clientarg
>> As in function:?? int? snmpv3_store(int majorID, int minorID, void
>> *serverarg, void *clientarg)
>
>
> These parameters are related to how the "callback" mechanism operates.
>
> The first two parameters (major, minor) match those used when registering
> the callback. (see snmpNotifyTable).  These are used to control when this
> particular callback routine will be invoked, and are passed to the callback
> routine in case it needs to distinguish between different possible invocations.
>
> It is also possible to supply some arbitrary data as part of this registration
> (using the final parameter of the registration call).   This is then passed to
> the callback routine as the 'clientarg' parameter.
>
>
> The code that triggers the callback (snmp_call_callbacks) can also provide
> some arbitrary data, which is passed to the callback routine as 'serverarg'.
> This is used by (e.g.) the access control callbacks, or those concerned with
> registering MIB modules.
>
>
> If you search the code for mention of SNMP_CALLBACK, you'll find examples
> of both registration of such callbacks (snmp_register_callback), and where
> these are callbacks are invoked (snmp_call_callbacks).
>
> This mechanism is used both within the Net-SNMP library (when majorID is
> SNMP_CALLBACK_LIBRARY), and the agent (SNMP_CALLBACK_APPLICATION)
>
>
> Dave
>
>
>
> ------------------------------
>
> Message: 28
> Date: Thu, 28 Jan 2010 02:50:58 -0600
> From: Group <[email protected]>
> Subject: Re: net-snmp compilation problem
> To: Bart Van Assche <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I'm coming up with the same problem as below  if i include perl-modules. (i
> need perl module for mib2c)
> I tried in two different ways:
> 1. ran
> $ make clean
> $ ./configure --without-perl-modules --disable-embedded-perl
> --with-openssl="/usr"
> $ make
> [Getting same errors as earlier i.e related to openssl package]
>
> 2. Added -lcrypto to LDLOADLIBS
> as...LDLOADLIBS= <existingcode> -lcrypto
> in Makefiles present in
> perl/ASN/Makefile ; OID/Makefile ; SNMP/Makefile ; TrapReceiver/Makefile
> agent/default_store/Makefile ; agent/Makefile ; default_store/Makefile
>
> The above Makefiles are places where its expecting openssl package, so i
> added in those locations.
>
> Ran the command again
> $ make
> Now i'm getting the following errors:
>
> rm -f ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll
> g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols
> -Wl,--stack,838
> 8608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector
> -L/usr/lib
> TrapReceiver.o -o ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll \
> /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -L/home/test/ne
> t-snmp-5.5/perl/TrapReceiver/../../apps/.libs
> -L/home/test/net-snmp-5.5/perl/T
> rapReceiver/../../apps
> -L/home/test/net-snmp-5.5/perl/TrapReceiver/../../agent
> /.libs -L/home/test/net-snmp-5.5/perl/TrapReceiver/../../agent -L/home/test/
> net-snmp-5.5/perl/TrapReceiver/../../agent/helpers/.libs
> -L/home/test/net-snmp
> -5.5/perl/TrapReceiver/../../agent/helpers
> -L/home/test/net-snmp-5.5/perl/Trap
> Receiver/../../snmplib/.libs
> -L/home/test/net-snmp-5.5/perl/TrapReceiver/../..
> /snmplib -lnetsnmptrapd -lnetsnmpagent -lnetsnmp -lcrypto \
>
> /usr/local/lib/libnetsnmptrapd.a(snmptrapd_handlers.o): In function
> `notificatio
> n_handler':
> /home/test/net-snmp-5.5/apps/snmptrapd_handlers.c:912: undefined reference
> to
> `_log_notification'
> /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
> `setup_tree':
> /home/test/net-snmp-5.5/agent/agent_registry.c:1636: undefined reference to
> `_
> netsnmp_register_null'
> /home/test/net-snmp-5.5/agent/agent_registry.c:1637: undefined reference to
> `_
> netsnmp_register_null'
> /home/test/net-snmp-5.5/agent/agent_registry.c:1638: undefined reference to
> `_
> netsnmp_register_null'
> /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
> `register_mib_co
> ntext':
> /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to
> `_n
> etsnmp_register_old_api'
> /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to
> `_n
> etsnmp_register_old_api'
> /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to
> `_n
> etsnmp_register_old_api'
> /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
> `netsnmp_subtree
> _load':
> /home/test/net-snmp-5.5/agent/agent_registry.c:545: undefined reference to
> `_n
> etsnmp_register_null_context'
> /home/test/net-snmp-5.5/agent/agent_registry.c:547: undefined reference to
> `_n
> etsnmp_register_null_context'
> /home/test/net-snmp-5.5/agent/agent_registry.c:549: undefined reference to
> `_n
> etsnmp_register_null_context'
> /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
> `register_mib_co
> ntext':
> /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to
> `_n
> etsnmp_register_old_api'
> /usr/local/lib/libnetsnmpagent.a(snmp_vars.o): In function `init_agent':
> /home/test/net-snmp-5.5/agent/snmp_vars.c:310: undefined reference to
> `_netsnm
> p_init_helpers'
> /usr/local/lib/libnetsnmpagent.a(master.o): In function
> `agentx_got_response':
> /home/test/net-snmp-5.5/agent/mibgroup/agentx/master.c:401: undefined
> referenc
> e to `_netsnmp_bulk_to_next_fix_requests'
> /usr/local/lib/libnetsnmpagent.a(agent_handler.o): In function
> `netsnmp_register
> _handler':
> /home/test/net-snmp-5.5/agent/agent_handler.c:251: undefined reference to
> `_ne
> tsnmp_get_bulk_to_next_handler'
> collect2: ld returned 1 exit status
> make[2]: *** [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll] Error
> 1
> make[2]: Leaving directory `/home/test/net-snmp-5.5/perl/TrapReceiver'
> make[1]: *** [subdirs] Error 2
> make[1]: Leaving directory `/home/test/net-snmp-5.5/perl'
> make: *** [perlmodules] Error 1
>
> Please let me know if there is any way to get through with this. Thanks in
> advance.
>
> On Wed, Jan 27, 2010 at 2:10 AM, Bart Van Assche
> <[email protected]>wrote:
>
>> On Tue, Jan 26, 2010 at 8:05 PM, Group <[email protected]> wrote:
>>
>>> Thanks for your reply. I have cygwin with full installation which includes
>>> all the packages and also the openssl-0.9.8 package came from cygwin. Also,
>>> i have openssl-devel package shown as already installed (This is confirmed
>>> by going through the setup.exe, and selecting openssl-devel, the status is
>>> keep (for options: Reinstall, Uninstall, keep, Source).).
>>>
>>> Is there any other way to check that openssl-devel package is already
>>> installed?.
>>>
>>> Bart, also you were mentioning that net-snmp configure script can be
>>> mentioned about path of the header files. Can you let me know how can i do
>>> this. Any documentation is also helpful. Thanks in advance.
>>>
>>
>> Building for Cygwin is documented here:
>> http://net-snmp.sourceforge.net/docs/README.win32.html
>>
>> The command below works fine on my setup (Cygwin 1.7). As you can see the
>> Net-SNMP 5.5 configure script is able to detect the OpenSSL library
>> (-lcrypto) and header files even without passing --with-openssl=/usr to the
>> configure script. This should also work with older Cygwin versions.
>>
>> $ ./configure --with-defaults --without-perl-modules
>> --disable-embedded-perl && grep -E 'NETSNMPLIBS|SSL' config.status && make
>> -s && agent/snmpd -f -Lo
>> [ ... ]
>> S["LNETSNMPLIBS"]=" -lcrypto"
>> D["HAVE_OPENSSL_AES_H"]=" 1"
>> D["HAVE_OPENSSL_DH_H"]=" 1"
>> D["HAVE_OPENSSL_DES_H"]=" 1"
>> D["HAVE_OPENSSL_HMAC_H"]=" 1"
>> D["HAVE_OPENSSL_EVP_H"]=" 1"
>> D["NETSNMP_USE_OPENSSL"]=" 1"
>> [ ... ]
>> 2010-01-27 09:03:27 Turning on AgentX master support.
>> 2010-01-27 09:03:27 NET-SNMP version 5.5
>>
>> Bart.
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 29
> Date: Thu, 28 Jan 2010 15:14:23 +0530 (IST)
> From: [email protected]
> Subject: About NET SNMPAgent...
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain;charset=iso-8859-1
>
> Hi All,
>
> I am using NET-SNMP to create snmp agent on Windows XP.
>
> i installed net-snmp-5.5-x86.exe in my system (downloaded from
>
> http://net-snmp.sourceforge.net/download.html).
>
> I configured the agent using the below command
>
> "snmpconf -g basic_setup"      as instructed in the FAQ section.
>
> While configuring it is asking system location, system services and syscontact only in system group.
>
> i set up access control settings also.
>
> Then I have started agent service.
>
> After this, when i try to execute snmpget
>
>  snmpget -v 2c -c public localhost sysDescr.0
>
> I am getting the following error.
>
>  SNMPv2-MIB::sysUpTime = No Such Instance currently exists
>
> Where i have done mistakes.
>
> Would you tell me?
>
> Thank you
>
> with best regards
>
> Ganesh Yellapu
> Membet Research Staff,
> Central Research Laboratory
> Bharat Electronics,
> Banglore, India.
>
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of
> the addressee(s) and may contain confidential or privileged
> information. If you are not the intended recipient, please notify
> the sender at Bharat Electronics  or [email protected] immediately
> and destroy all copies of this message and any attachments.
>
>
>
>
> ------------------------------
>
> Message: 30
> Date: Thu, 28 Jan 2010 15:56:37 +0530
> From: sanjaykumar <[email protected]>
> Subject: Re: What these means: int majorID, int minorID, void
>        *serverarg,     void    *clientarg
> To: Dave Shield <[email protected]>
> Cc: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 31
> Date: Thu, 28 Jan 2010 16:03:15 +0530 (IST)
> From: [email protected]
> Subject: About NET SNMP Agent ...
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain;charset=iso-8859-1
>
> Hi All,
>
> I am using NET-SNMP to create snmp agent on Windows XP.
>
> i installed net-snmp-5.5-x86.exe in my system (downloaded from
>
> http://net-snmp.sourceforge.net/download.html).
>
> I configured the agent using the below command
>
> "snmpconf -g basic_setup"      as instructed in the FAQ section.
>
> While configuring it is asking system location, system services and syscontact only in system group.
>
> i set up access control settings also.
>
> Then I have started agent service.
>
> After this, when i try to execute snmpget
>
>  snmpget -v 2c -c public localhost sysDescr.0
>
> I am getting the following error.
>
>  SNMPv2-MIB::sysUpTime = No Such Instance currently exists
>
> and some times i am getting the following :
>
> Time Out : No response from localhost
>
> Where i have done mistakes.
>
> Would you tell me?
>
> Thank you
>
> with best regards
>
> Ganesh Yellapu
> Membet Research Staff,
> Central Research Laboratory
> Bharat Electronics,
> Banglore, India.
>
>
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of
> the addressee(s) and may contain confidential or privileged
> information. If you are not the intended recipient, please notify
> the sender at Bharat Electronics  or [email protected] immediately
> and destroy all copies of this message and any attachments.
>
>
>
>
> ------------------------------
>
> Message: 32
> Date: Thu, 28 Jan 2010 17:09:19 +0530 (IST)
> From: [email protected]
> Subject: About net-snmp agent.....
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain;charset=iso-8859-1
>
> Hi All,
>
> I am using NET-SNMP to create snmp agent on Windows XP.
>
> i installed net-snmp-5.5-x86.exe in my system (downloaded from
>
> http://net-snmp.sourceforge.net/download.html).
>
> I configured the agent using the below command
>
> "snmpconf -g basic_setup"      as instructed in the FAQ section.
>
> While configuring it is asking system location, system services and syscontact only in system group.
>
> i set up access control settings also.
>
> Then I have started agent service.
>
> After this, when i try to execute snmpget
>
>  snmpget -v 2c -c public localhost sysDescr.0
>
> I am getting the following error.
>
>  SNMPv2-MIB::sysUpTime = No Such Instance currently exists
>
> and some times i am getting the following :
>
> Time Out : No response from localhost and
>
> the log file(c:\usr\etc\) is showing that  " unknown tokens syslocation and sysconact".
>
> Where i have done mistakes.
>
> Would you tell me?
>
> Thank you
>
> with best regards
>
> Ganesh Yellapu
> Membet Research Staff,
> Central Research Laboratory
> Bharat Electronics,
> Banglore, India.
>
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of
> the addressee(s) and may contain confidential or privileged
> information. If you are not the intended recipient, please notify
> the sender at Bharat Electronics  or [email protected] immediately
> and destroy all copies of this message and any attachments.
>
>
>
>
> ------------------------------
>
> Message: 33
> Date: Thu, 28 Jan 2010 15:50:54 +0100
> From: Bart Van Assche <[email protected]>
> Subject: Re: net-snmp compilation problem
> To: Group <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Jan 28, 2010 at 9:50 AM, Group <[email protected]> wrote:
>
>>
>> 2. Added -lcrypto to LDLOADLIBS
>> as...LDLOADLIBS= <existingcode> -lcrypto
>> in Makefiles present in
>> perl/ASN/Makefile ; OID/Makefile ; SNMP/Makefile ; TrapReceiver/Makefile
>> agent/default_store/Makefile ; agent/Makefile ; default_store/Makefile
>>
>> The above Makefiles are places where its expecting openssl package, so i
>> added in those locations.
>>
>> [ ... ]
>>
>
> Hello,
>
> Regarding building the Perl modules for Windows: please have a look at the
> section "Win32 (Cygwin)" in perl/SNMP/README. Note: I have not yet tried
> myself to build the Perl modules on Windows.
>
> Bart.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 34
> Date: Thu, 28 Jan 2010 10:41:27 -0500
> From: Fulko Hew <[email protected]>
> Subject: Where are Net-SNMP generated traps documented?
> To: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I'm putting the finishing touches on trap to event translation rules for our
> NMS for our systems that use (agentX extended) Net-SNMP daemons.
>
> What I see (correctly) when we test our extensions and their ability to
> reconnect
> to the master daemon when the daemon is restarted is...
>
> The daemon sends out a trap,  presumably an 'I have restarted trap'.
> Its a trap with an OID of '1.3.6.1.4.1.8072.4' and an enterprise specific
> value of 2.
>
> (Its followed by a 'coldstart' trap OID '1.3.6.1.4.1.8072.3.2.10' with a
> generic
> trap value of 'coldStart'(2))
>
> I expected to find a MIB file that defines all of the enterprise specific
> traps that
> net-snmp can source, but I don't.
>
> Insight to the location of this information and/or how people know what
> rules to
> define for these traps is welcome.
>
> Fulko
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 35
> Date: Thu, 28 Jan 2010 09:47:41 -0600
> From: "Mike Wilson \(Yahoo!\)" <[email protected]>
> Subject: Still seeing " too large for defined data type" w/5.5
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I recently updated to 5.5 to try and resolve the "statvfs dev/disk:
> Value too large for defined data type" on giant filesystems (3T+). I
> compiled 5.5 under x86/sol10 and installed but still see the error.
>
> The change log suggests it was fixed:
>
> "- [PATCH 2449210]: add 64-bit disk usage statistics to
> UCD-SNMP-MIB::dskTable"
>
> Did I miss a compile option? Or is there something else I can look at?
>
> --
>
> Mike Wilson
>
>
>
>
> ------------------------------
>
> Message: 36
> Date: Thu, 28 Jan 2010 15:54:34 +0000
> From: Dave Shield <[email protected]>
> Subject: Re: Where are Net-SNMP generated traps documented?
> To: Fulko Hew <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 28 January 2010 15:41, Fulko Hew <[email protected]> wrote:
>> I expected to find a MIB file that defines all of the enterprise specific
>> traps that net-snmp can source, but I don't.
>
> The Net-SNMP enterprise-specific traps are defined in the
> NET-SNMP-AGENT-MIB.   In particular, nsNotifyStart, nsNotifyShutdown
> and nsNotifyRestart
>
> Dave
>
>
>
> ------------------------------
>
> Message: 37
> Date: Thu, 28 Jan 2010 11:31:25 -0500
> From: Fulko Hew <[email protected]>
> Subject: Re: Where are Net-SNMP generated traps documented?
> To: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Jan 28, 2010 at 10:54 AM, Dave Shield <[email protected]>wrote:
>
>> On 28 January 2010 15:41, Fulko Hew <[email protected]> wrote:
>> > I expected to find a MIB file that defines all of the enterprise specific
>> > traps that net-snmp can source, but I don't.
>>
>> The Net-SNMP enterprise-specific traps are defined in the
>> NET-SNMP-AGENT-MIB.   In particular, nsNotifyStart, nsNotifyShutdown
>> and nsNotifyRestart
>>
>
> Thanks for your response.
> The reason I didn't find it was because I think something doesn't jive...
>
> I was looking for an OID '1.3.6.1.4.1.8072.4'.
> That decodes into:
>
> ... netsnmp (8072).netSnmpNotificationPrefix(4)
>
> so I was looking for something with netSnmpNotificationPrefix which I didn't
> find.
>
> But nsNotifyShutdown is defined as { netSnmpNotifications 2 } which works
> out to be (in my books):
>
> ... netsnmp (8072).netSnmpNotificationPrefix(4).netSnmpNotifications(0)
>
> I never saw that trailing '.0'.
> Am I missing something in my interpretation?
>
> Fulko
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 38
> Date: Thu, 28 Jan 2010 16:40:15 +0000
> From: Dave Shield <[email protected]>
> Subject: Re: Where are Net-SNMP generated traps documented?
> To: Fulko Hew <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 28 January 2010 16:31, Fulko Hew <[email protected]> wrote:
>> But nsNotifyShutdown is defined as { netSnmpNotifications 2 } which works
>> out to be (in my books):
>>
>> ... netsnmp (8072).netSnmpNotificationPrefix(4).netSnmpNotifications(0)
>>
>> I never saw that trailing '.0'.
>> Am I missing something in my interpretation?
>
>
> Please re-read the specification for co-existence between SNMPv1
> traps and SNMPv2 notifications.   In particular, RFC 3584 section 3.
>
> This intermediate '0' is the approved mechanism for ensuring traps
> can be reliably converted between different versions of SNMP.
>
> Dave
>
>
>
> ------------------------------
>
> Message: 39
> Date: Thu, 28 Jan 2010 09:14:04 -0800
> From: [email protected]
> Subject: RE: How to disable/enable SNMP V1 and V2 on the fly?
> To: "Dave Shield" <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain;       charset="iso-8859-1"
>
> Hi, Dave,
> I removed "rwcommunity public" from the /usr/local/share/snmp/snmpd.conf file and try to reload the config by setting the versionUpdateConfig to 1
> # /usr/local/bin/snmpset -u test-agent -l authPriv -a MD5 -A test_authkey -x DES -X test_privkey 192.168.83.4 UCD-SNMP-MIB::versionUpdateConfig.0 i 1
> But I got error as following:
> Error in packet.
> Reason: notWritable (That object does not support modification)
> Failed object: UCD-SNMP-MIB::versionUpdateConfig.0
> I look at the mib file that OID is read-write, why is not writable?
> Thanks
> Chi
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
> Sent: Thursday, January 28, 2010 12:27 AM
> To: Guan, Chi @ Datron
> Cc: [email protected]
> Subject: Re: How to disable/enable SNMP V1 and V2 on the fly?
>
> On 27 January 2010 17:23,  <[email protected]> wrote:
>> I have an agent running for all the SNMP versions.
>>
>> 1.????? I want to disable/enable SNMP V1, V2 for the whole agent on the fly,
>
> The simplest way to do this is to remove any community-based
> access control settings.   Either by editing the snmpd.conf file
> or by manipulating the VACM tables.
>
>
>
>> What net-snmp command should I use or which OID should I set to do this
>> while I don't have to restart the agent and redo the configure?
>
> You can reload the configuration without restarting the agent,
> by issuing a SET request on UCD-SNMP-MIB::versionUpdateConfig.0
>
>
>
>> 2.????? Right now I have "rwcommunity public" in the
>> /usr/local/share/snmp/snmpd.conf file for community string.
>>
>> Which net-snmp command alow me to change the community name?
>
> If you've got access control set up in the snmpd.conf file, then
> you will need to edit this file (and re-load the config) in order
> to change it.   Most configuration set via that file is "static", and
> can't be changed via SET requests.
>
> Dave
>
>
>
> ------------------------------
>
> Message: 40
> Date: Thu, 28 Jan 2010 09:12:31 -0800 (PST)
> From: <[email protected]>
> Subject: snmptrapd seg faulting after forwarding v3 traps
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> All,
>
> I've been having a
> problem with snmptrapd crashing after successfully logging and forwarding v3
> traps.  I have no problems with version 2 or 1.  If I turn forwarding off,
> snmptrapd does not crash with v3 traps.  My initial tests were run on net-snmp
> version 5.3.0.1.   I found online a mention of the fact that there were SNMP v3
> problems  in 5.3.0.1 so I tried using net-snmp version 5.4.2.1 and still
> encountered the same problem.  Then I put a return at the beginning of
> usm_free_usmStateReference, recompiled everything and I no longer see a
> segfault.
>
>
> Below is an excerpt
> from the command I issued, the backtrace and my snmptrapd.conf file.  I could
> not find this issue resolved in the bugtracker although I did find a similar
> issue that is still open:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1644670&group_id=12694&atid=112694
>
> Any help would be
> greatly appreciated.
>
> Thanks,
> Felix
>
>
>  snmptrap -d -e
> 0x0102030405 -v 3  -M /usr/share/snmp/mibs -m ALL -l noauthnoPriv -u traptest
> 192.168.0.141  "" .1.3.6.1.3.94.0.4  connUnitEventId i 1
>
>
>
> Core was generated by `/usr/sbin/snmptrapd -f -M
> /usr/share/snmp/mibs -m ALL -c /etc/snmptrapd.conf -L'.
> Program terminated
> with signal 11, Segmentation fault.
> #0  0x47bf3f17 in free () from
> /lib/libc.so.6
> (gdb) bt
> #0  0x47bf3f17 in free () from
> /lib/libc.so.6
> #1  0x47f3a127 in usm_free_usmStateReference () from
> /usr/lib/libnetsnmp.so.10
> #2  0x00000007 in ?? ()
> #3  0x081b8650 in ??
> ()
> #4  0x47cc809b in snmp_input () from /usr/lib/libnetsnmptrapd.so.10
> #5
> 0x47f17b09 in ?? () from /usr/lib/libnetsnmp.so.10
> #6  0x0816c470 in ??
> ()
> #7  0x081b8650 in ?? ()
> #8  0x542abe62 in ?? ()
> #9  0x08178f38 in ??
> ()
> #10 0x081b6280 in ?? ()
> #11 0xff8b6518 in ?? ()
> #12 0x08178f38 in ??
> ()
> #13 0xff8b6528 in ?? ()
> #14 0x47bf5a69 in malloc () from
> /lib/libc.so.6
>
> ###########################################################################
> #
> #
> snmptrapd.conf
> #
> #   - created by the snmpconf configuration
> program
> #
> ###########################################################################
> #
> SECTION: Output formatting for traps received.
> #
> #   Output from snmptrapd
> is formatted according to the
> #   rules defined by the formatting
> configuration directives.
>
>
> # format1: How SNMPv1 traps are
> formatted.
> #   See the snmptrapd.conf manual page for format string
> details.
> #   arguments: formatstring
>
> # format2: How SNMPv2 and SNMPv3 traps are
> formatted.
> #   See the snmptrapd.conf manual page for format string
> details.
> #   arguments: formatstring
>
> authCommunity log,execute,net
> public
> disableAuthorization yes
>
> #createUser informtest MD5 mypassword DES
> mypassword
> #authUser log,net informtest
>
> createUser -e 0x0102030405 traptest MD5 mypassword
> DES myotherpassword
> authUser log,execute,net traptest
>
> format1 %V\n% Agent Address: %A \n PDU Source
> Hostname: %B \n Date: %#02.2h:%#
> 02.2j:%#02.2k %#02.2m/%#02.2l/%#y \n
> Enterprise OID: %N \n Trap Type: %W \n Tr
> ap Sub-Type: %q \n
> Community/Infosec Context: %P \n Uptime: %#T \n Description
> : %W \n PDU
> Attribute/Value Pair Array:\n%v \n -------------- \n
>
> format2 %V\n% PDU Source Hostname: %B \n Date:
> %#02.2h:%#02.2j:%#02.2k %#02.2m
> /%#02.2l/%#y \n Community/Infosec Context: %P
> \n PDU Attribute/Value Pair Arra
> y:\n%v \n -------------- \n
>
> snmpTrapdAddr 192.168.0.141:162
> forward
> default  a.b.c.d   (I've commented out the actual
> address I'm forwarding to)
>
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 41
> Date: Thu, 28 Jan 2010 09:42:32 -0800
> From: [email protected]
> Subject: RE: How to disable/enable SNMP V1 and V2 on the fly?
> To: "Dave Shield" <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain;       charset="iso-8859-1"
>
> I don't think the UCD-SNMP-MIB is included in this agent,
> When I do
> #/usr/local/bin/snmpget -u test-agent -l authPriv -a MD5 -A test_authkey -x DES -X test_privkey 192.168.83.4 UCD-SNMP-MIB::versionUpdateConfig.0
> I got the following error
> UCD-SNMP-MIB::versionUpdateConfig.0 = No Such Object available on this agent at this OID
> How do I include UCD-SNMP-MIB in the agent?
> Thanks
> Chi
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
> Sent: Thursday, January 28, 2010 12:27 AM
> To: Guan, Chi @ Datron
> Cc: [email protected]
> Subject: Re: How to disable/enable SNMP V1 and V2 on the fly?
>
> On 27 January 2010 17:23,  <[email protected]> wrote:
>> I have an agent running for all the SNMP versions.
>>
>> 1.????? I want to disable/enable SNMP V1, V2 for the whole agent on the fly,
>
> The simplest way to do this is to remove any community-based
> access control settings.   Either by editing the snmpd.conf file
> or by manipulating the VACM tables.
>
>
>
>> What net-snmp command should I use or which OID should I set to do this
>> while I don't have to restart the agent and redo the configure?
>
> You can reload the configuration without restarting the agent,
> by issuing a SET request on UCD-SNMP-MIB::versionUpdateConfig.0
>
>
>
>> 2.????? Right now I have "rwcommunity public" in the
>> /usr/local/share/snmp/snmpd.conf file for community string.
>>
>> Which net-snmp command alow me to change the community name?
>
> If you've got access control set up in the snmpd.conf file, then
> you will need to edit this file (and re-load the config) in order
> to change it.   Most configuration set via that file is "static", and
> can't be changed via SET requests.
>
> Dave
>
>
>
> ------------------------------
>
> Message: 42
> Date: Thu, 28 Jan 2010 12:27:39 -0600
> From: Group <[email protected]>
> Subject: Re: net-snmp compilation problem
> To: Bart Van Assche <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thanks for your reply. I have already made an unsuccessful attempt with that
> also. May be, i have to repost regarding perl module.
>
> On Thu, Jan 28, 2010 at 8:50 AM, Bart Van Assche
> <[email protected]>wrote:
>
>> On Thu, Jan 28, 2010 at 9:50 AM, Group <[email protected]> wrote:
>>
>>>
>>> 2. Added -lcrypto to LDLOADLIBS
>>> as...LDLOADLIBS= <existingcode> -lcrypto
>>> in Makefiles present in
>>> perl/ASN/Makefile ; OID/Makefile ; SNMP/Makefile ; TrapReceiver/Makefile
>>> agent/default_store/Makefile ; agent/Makefile ; default_store/Makefile
>>>
>>> The above Makefiles are places where its expecting openssl package, so i
>>> added in those locations.
>>>
>>> [ ... ]
>>>
>>
>> Hello,
>>
>> Regarding building the Perl modules for Windows: please have a look at the
>> section "Win32 (Cygwin)" in perl/SNMP/README. Note: I have not yet tried
>> myself to build the Perl modules on Windows.
>>
>> Bart.
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 43
> Date: Thu, 28 Jan 2010 11:40:52 -0800
> From: "Mike Ayers" <[email protected]>
> Subject: RE: HOST-RESOURCE::hrSWInstalledTable
> To: "Vivek Singh Bhadauria" <[email protected]>,
>        <[email protected]>
> Message-ID:
>        <83E753BE7B6A324ABB336245BAF1DAAC0DD86CEE@mailserver.metatv-ds.metatv.com>
>
> Content-Type: text/plain;       charset="UTF-8"
>
>> From: Vivek Singh Bhadauria [mailto:[email protected]]
>> Sent: Wednesday, January 27, 2010 10:58 PM
>
>> I want to get the list of installed software but hrSWInstalledTable is
>> empty when I run snmpwalk command.
>>
>> My question is: Who will fill the hrSWInstalledTable?
>> Its me or already implemented by the Net-SNMP.
>
>        There is an existing implementation, but it's optional.  to find out if you have it, run this command on the system that hosts the master agent (the net-snmp-config command must be from the same build as the master agent):
>
> $ net-snmp-config --snmpd-module-list | tr [:blank:] '\n' | grep host/hr_sw
>
>        If not, you'll need to rebuild with --with-mib-modules="host/hr_swinst, host/hr_swrun"  (or just -with-mib-modules="host") to get the functionality.
>
>        If you do have the modules, check your access control.
>
>
>        HTH,
>
> Mike
>
>
> ------------------------------
>
> Message: 44
> Date: Thu, 28 Jan 2010 22:29:45 +0000
> From: Dave Shield <[email protected]>
> Subject: Re: How to disable/enable SNMP V1 and V2 on the fly?
> To: [email protected]
> Cc: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 2010/1/28  <[email protected]>:
>> I don't think the UCD-SNMP-MIB is included in this agent,
>
> It's certainly part of a default build.
> You'd have to explicitly exclude it.
>
>
>> When I do
>> #/usr/local/bin/snmpget -u test-agent -l authPriv -a MD5 -A test_authkey -x DES -X test_privkey 192.168.83.4 UCD-SNMP-MIB::versionUpdateConfig.0
>> I got the following error
>> UCD-SNMP-MIB::versionUpdateConfig.0 = No Such Object available on this agent at this OID
>
> What information can you see using these settings?
> What does  "snmpgetnext .... system"  show?
> What about "snmpgetnext ...  ucdavis" ?
>
> Dave
>
>
>
> ------------------------------
>
> Message: 45
> Date: Thu, 28 Jan 2010 17:39:49 -0600
> From: Group <[email protected]>
> Subject: net-snmp compilation including perl module
> To: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I 'm getting compilation issues, i couldnot proceed from here.
> Here are the steps which i ran:
>
> $ ./configure --with-perl-modules  --with-openssl="/usr"
> $ make
> [Getting errors related to openssl package]
>
> ->Added -lcrypto to LDLOADLIBS
> as...LDLOADLIBS= <existingcode> -lcrypto
> in Makefiles present in
> perl/ASN/Makefile ; OID/Makefile ; SNMP/Makefile ; TrapReceiver/Makefile
> agent/default_store/Makefile ; agent/Makefile ; default_store/Makefile
>
> The above Makefiles are places where its expecting openssl package, so i
> added in those locations.
>
> Ran the command again
> $ make
> Now i'm getting the following errors:
>
> g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols
> -Wl,--stack,838
> 8608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector
> -L/usr/lib
> TrapReceiver.o -o ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll \
>
> /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -L/home/test/ne
> t-snmp-5.5/perl/TrapReceiver/../../apps/.libs
> -L/home/test/net-snmp-5.5/perl/T
> rapReceiver/../../apps
> -L/home/test/net-snmp-5.5/perl/TrapReceiver/../../agent
> /.libs -L/home/test/net-snmp-5.5/perl/TrapReceiver/../../agent -L/home/test/
> net-snmp-5.5/perl/TrapReceiver/../../agent/helpers/.libs
> -L/home/test/net-snmp
> -5.5/perl/TrapReceiver/../../agent/helpers
> -L/home/test/net-snmp-5.5/perl/Trap
> Receiver/../../snmplib/.libs
> -L/home/test/net-snmp-5.5/perl/TrapReceiver/../..
> /snmplib -lnetsnmptrapd -lnetsnmpagent -lnetsnmp -lcrypto \
>
> /usr/local/lib/libnetsnmptrapd.a(snmptrapd_handlers.o): In function
> `notificatio
> n_handler':
> /home/test/net-snmp-5.5/apps/snmptrapd_handlers.c:912: undefined reference
> to
> `_log_notification'
> /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
> `setup_tree':
> /home/test/net-snmp-5.5/agent/agent_registry.c:1636: undefined reference to
> `_
> netsnmp_register_null'
> /home/test/net-snmp-5.5/agent/agent_registry.c:1637: undefined reference to
> `_
> netsnmp_register_null'
> /home/test/net-snmp-5.5/agent/agent_registry.c:1638: undefined reference to
> `_
> netsnmp_register_null'
> /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
> `register_mib_co
> ntext':
> /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to
> `_n
> etsnmp_register_old_api'
> /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to
> `_n
> etsnmp_register_old_api'
> /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to
> `_n
> etsnmp_register_old_api'
> /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
> `netsnmp_subtree
> _load':
> /home/test/net-snmp-5.5/agent/agent_registry.c:545: undefined reference to
> `_n
> etsnmp_register_null_context'
> /home/test/net-snmp-5.5/agent/agent_registry.c:547: undefined reference to
> `_n
> etsnmp_register_null_context'
> /home/test/net-snmp-5.5/agent/agent_registry.c:549: undefined reference to
> `_n
> etsnmp_register_null_context'
> /usr/local/lib/libnetsnmpagent.a(agent_registry.o): In function
> `register_mib_co
> ntext':
> /home/test/net-snmp-5.5/agent/agent_registry.c:980: undefined reference to
> `_n
> etsnmp_register_old_api'
> /usr/local/lib/libnetsnmpagent.a(snmp_vars.o): In function `init_agent':
> /home/test/net-snmp-5.5/agent/snmp_vars.c:310: undefined reference to
> `_netsnm
> p_init_helpers'
> /usr/local/lib/libnetsnmpagent.a(master.o): In function
> `agentx_got_response':
> /home/test/net-snmp-5.5/agent/mibgroup/agentx/master.c:401: undefined
> referenc
> e to `_netsnmp_bulk_to_next_fix_requests'
> /usr/local/lib/libnetsnmpagent.a(agent_handler.o): In function
> `netsnmp_register
> _handler':
> /home/test/net-snmp-5.5/agent/agent_handler.c:251: undefined reference to
> `_ne
> tsnmp_get_bulk_to_next_handler'
> collect2: ld returned 1 exit status
> make[2]: *** [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll] Error
> 1
> make[2]: Leaving directory `/home/test/net-snmp-5.5/perl/TrapReceiver'
> make[1]: *** [subdirs] Error 2
> make[1]: Leaving directory `/home/test/net-snmp-5.5/perl'
> make: *** [perlmodules] Error 1
>
> Please help me out on how to resolve this issue. Thanks.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
>
> ------------------------------
>
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
> End of Net-snmp-users Digest, Vol 44, Issue 9
> *********************************************
>



-- 
Nampindo ceaser
IT systems engineer
Mob: +256 712 313 834
[email protected]

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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.