Re: Re: Who can help me to let net-snmp working in arm-linux?

2010-11-29 Thread Jason
Hi,
I cross-compiled the net-snmp with arm-linux-gcc in static mode, and it 
successfully generated a snmpd, but I thought it was not a static binary.

./configure -prefix=/usr/local/snmp-test --enable-static --disable-shared 
--enable-mini-agent --disable-applications --disable-des --disable-privacy 
--disable-md5 --disable-manuals --with-ldflags=-Bstatic 
--with-cc=/usr/local/arm/3.3.5/bin/arm-linux-gcc 
--with-ar=/usr/local/arm/3.3.5/bin/arm-linux-ar 
--with-ld=/usr/local/arm/3.3.5/bin/arm-linux-ld --with-endianness=little 
--with-defaults --without-perl-modules --build=i386-linux --host=arm-linux 
--target=arm-linux --without-openssl --with-logfile=/var/log/ snmpd.log 
--with-default-snmp-version=2 --disable-mib-loading --with-mib-modules=mibII 
ip-mib if-mib tcp-mib udp-mib ucd_snmp target agent_mibs notification-log-mib 
snmpv3mibs notification 

[r...@localhost sbin]# file snmpd
snmpd: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, 
dynamically linked (uses shared libs), not stripped
[r...@localhost sbin]# ldd snmpd
not a dynamic executable
I don't know why the command file display dynamically linked, but the command 
ldd display it was not a dynamic executable? When I copied it to my target 
system and run it, it displayed No such Files. After I copied some lib file 
to my target system, it can be runed and auto exited immediately. The log 
display:
Encryption support not enabled.
/usr/local/snmp-test/share/snmp/snmp.conf: line 25: Warning: Unknown token: 
mibs.
Encryption support not enabled.
Encryption support not enabled.
Error opening specified endpoint 
Server Exiting with code 1

Thanks

Regards,
Jason




发件人: rakesh zingade 
发送时间: 2010-11-29  15:04:49 
收件人: Jason 
抄送: net-snmp-users 
主题: Re: Who can help me to let net-snmp working in arm-linux? 
 



On Mon, Nov 29, 2010 at 11:38 AM, Jason zh-sh...@163.com wrote:

Dear all,
I tried to cross-compile net-snmp with arm-linux v3.3.2, it is ok,

Whats the errors displayed when you start cross-compiled snmpd on arm-linux 
board?
You may have to cross-compile the required libs and create a static binary.


but it can not work in my target. Who can help me? Any body can let net-snmp 
working well in arm-linux system?
Thank you very much~



Regards,
Jason

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users





-- 
Rakesh P. Zingade
+919420626099
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmpset gives an gen Error message

2010-11-29 Thread jack n
Hi Leo,

I am facing a similar issue, can  you please tell me how u debugged this
issue??

Thanks and Regards,
Jack.

On Sun, Oct 17, 2010 at 8:22 AM, Leo Lin hayashi_...@yahoo.com wrote:

   I've found the bug, now it's working fine.

 Thanks!

 Leo;

 --- On *Sat, 10/16/10, Leo Lin hayashi_...@yahoo.com* wrote:


 From: Leo Lin hayashi_...@yahoo.com
 Subject: snmpset gives an gen Error message
 To: Net-snmp-users net-snmp-users@lists.sourceforge.net
 Date: Saturday, October 16, 2010, 2:38 PM


Hi,

 I've been extending the snmpd with my own modules.  I made sure that each
 module is working properly before adding another one.

 Suddendly, on one of the latest modules, netsnmp builds ok, but I get an
 error while using snmpset command.

 I also tested the snmpset with a library in c# separate from netsnmp, and
 it does not work either.

 I removed the module, and re-build the netsnmp and still gives me the
 error.

 The error is:

 $snmpset -v1 -cprivate localhost myvar.0 i 0
 Error in packet.
 Reason: (genError) A general failure occured

 it happens with each oid I've implemented.  I'm using net-snmp-5.6.rc1.

 I also though that maybe the modules that I've extended created some
 seg-fault, and overwrite some source/header files in net-snmp, so I
 re-install (tar) the whole netsnmp, but I still get the error.

 I'm not too sure what could cause this sudden error.  I reverted to only
 the modules that was working fine before, and I did not change the MIB or
 the snmpd.conf files.

 Thanks!

 Leo;





 --
 Download new Adobe(R) Flash(R) Builder(TM) 4
 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
 Flex(R) Builder(TM)) enable the development of rich applications that run
 across multiple browsers and platforms. Download your free trials today!
 http://p.sf.net/sfu/adobe-dev2dev
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Re: Who can help me to let net-snmp working in arm-linux?

2010-11-29 Thread rakesh zingade
2010/11/29 Jason zh-sh...@163.com

  Hi,
 I cross-compiled the net-snmp with arm-linux-gcc in static mode, and it
 successfully generated a snmpd, but I thought it was not a static binary.

 ./configure -prefix=/usr/local/snmp-test --enable-static --disable-shared 
 --enable-mini-agent --disable-applications --disable-des --disable-privacy 
 --disable-md5 --disable-manuals --with-ldflags=-Bstatic 
 --with-cc=/usr/local/arm/3.3.5/bin/arm-linux-gcc 
 --with-ar=/usr/local/arm/3.3.5/bin/arm-linux-ar 
 --with-ld=/usr/local/arm/3.3.5/bin/arm-linux-ld --with-endianness=little 
 --with-defaults --without-perl-modules --build=i386-linux --host=arm-linux 
 --target=arm-linux --without-openssl --with-logfile=/var/log/ snmpd.log 
 --with-default-snmp-version=2 --disable-mib-loading --with-mib-modules=mibII 
 ip-mib if-mib tcp-mib udp-mib ucd_snmp target agent_mibs notification-log-mib 
 snmpv3mibs notification


 [r...@localhost sbin]# file snmpd

 snmpd: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, 
 dynamically linked (uses shared libs), not stripped
 [r...@localhost sbin]# ldd snmpd
 not a dynamic executable
 I don't know why the command file display dynamically linked, but the
 command ldd display it was not a dynamic executable? When I copied it to my
 target system and run it, it displayed No such Files. After I copied some
 lib file to my target system, it can be runed and auto exited immediately.
 The log display:
  Encryption support not enabled.

 /usr/local/snmp-test/share/snmp/snmp.conf: line 25: Warning: Unknown token: 
 mibs.
 Encryption support not enabled.

 The encryption support warning is I guess because of SSL is not enabled.


 Encryption support not enabled.
 Error opening specified endpoint 
 Server Exiting with code 1

 check snmpd.conf  .. try executing snmpd with some other user


 Thanks

 Regards,
 Jason

 --
 *发件人:* rakesh zingade
 *发送时间:* 2010-11-29  15:04:49
 *收件人:* Jason
 *抄送:* net-snmp-users
 *主题:* Re: Who can help me to let net-snmp working in arm-linux?


 On Mon, Nov 29, 2010 at 11:38 AM, Jason zh-sh...@163.com wrote:

  Dear all,
 I tried to cross-compile net-snmp with arm-linux v3.3.2, it is ok,


 Whats the errors displayed when you start cross-compiled snmpd on arm-linux
 board?
 You may have to cross-compile the required libs and create a static binary.

  but it can not work in my target. Who can help me? Any body can let
 net-snmp working well in arm-linux system?
 Thank you very much~



 Regards,
 Jason


 --
 Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
 Tap into the largest installed PC base  get more eyes on your game by
 optimizing for Intel(R) Graphics Technology. Get started today with the
 Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
 http://p.sf.net/sfu/intelisp-dev2dev
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users




 --
 Rakesh P. Zingade
 +919420626099




-- 
Rakesh P. Zingade
+919420626099
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Re: Re: Who can help me to let net-snmp working in arm-linux?

2010-11-29 Thread Jason
Hi,
The snmpd.conf:
#   sec.name  source  community
com2sec all   0.0.0.0/0   public

# Second, map the security names into group names:
#  sec.model  sec.name
group MyRWGroup v1 all
group MyRWGroup v2call
group MyRWGroup usmall
group MyROGroup v1 mynetwork
group MyROGroup v2cmynetwork
group MyROGroup usmmynetwork

# Third, create a view for us to let the groups have rights to:
#   incl/excl subtree  mask
view allincluded  .1   80

# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
#context sec.model sec.level match  read   write  notif
access MyROGroup   any   noauthexact  allnone   none
access MyRWGroup   any   noauthexact  allallnone
# -

Is it OK?
By the way, I executed snmpd with root.


Regards,
Jason




发件人: rakesh zingade 
发送时间: 2010-11-29  16:11:38 
收件人: Jason 
抄送: net-snmp-users 
主题: Re: Re: Who can help me to let net-snmp working in arm-linux? 
 



2010/11/29 Jason zh-sh...@163.com

Hi,
I cross-compiled the net-snmp with arm-linux-gcc in static mode, and it 
successfully generated a snmpd, but I thought it was not a static binary.

./configure -prefix=/usr/local/snmp-test --enable-static --disable-shared 
--enable-mini-agent --disable-applications --disable-des --disable-privacy 
--disable-md5 --disable-manuals --with-ldflags=-Bstatic 
--with-cc=/usr/local/arm/3.3.5/bin/arm-linux-gcc 
--with-ar=/usr/local/arm/3.3.5/bin/arm-linux-ar 
--with-ld=/usr/local/arm/3.3.5/bin/arm-linux-ld --with-endianness=little 
--with-defaults --without-perl-modules --build=i386-linux --host=arm-linux 
--target=arm-linux --without-openssl --with-logfile=/var/log/ snmpd.log 
--with-default-snmp-version=2 --disable-mib-loading --with-mib-modules=mibII 
ip-mib if-mib tcp-mib udp-mib ucd_snmp target agent_mibs notification-log-mib 
snmpv3mibs notification 

[r...@localhost sbin]# file snmpd
snmpd: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, 
dynamically linked (uses shared libs), not stripped
[r...@localhost sbin]# ldd snmpd
not a dynamic executable
I don't know why the command file display dynamically linked, but the command 
ldd display it was not a dynamic executable? When I copied it to my target 
system and run it, it displayed No such Files. After I copied some lib file 
to my target system, it can be runed and auto exited immediately. The log 
display:
Encryption support not enabled.
/usr/local/snmp-test/share/snmp/snmp.conf: line 25: Warning: Unknown token: 
mibs.
Encryption support not enabled.
 The encryption support warning is I guess because of SSL is not enabled.
 

Encryption support not enabled.
Error opening specified endpoint 
Server Exiting with code 1
 check snmpd.conf  .. try executing snmpd with some other user


Thanks

Regards,
Jason




发件人: rakesh zingade 
发送时间: 2010-11-29  15:04:49 
收件人: Jason 
抄送: net-snmp-users 
主题: Re: Who can help me to let net-snmp working in arm-linux? 



On Mon, Nov 29, 2010 at 11:38 AM, Jason zh-sh...@163.com wrote:

Dear all,
I tried to cross-compile net-snmp with arm-linux v3.3.2, it is ok,


Whats the errors displayed when you start cross-compiled snmpd on arm-linux 
board?
You may have to cross-compile the required libs and create a static binary.


but it can not work in my target. Who can help me? Any body can let net-snmp 
working well in arm-linux system?
Thank you very much~



Regards,
Jason


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users





-- 
Rakesh P. Zingade
+919420626099




-- 
Rakesh P. Zingade
+919420626099
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:

Re: SNMPSET - Error - :(genError) A general failure occured

2010-11-29 Thread jack n
Can someone help me with this?
Thanks in advance.

Regards,
Jack.

On Thu, Nov 25, 2010 at 2:12 AM, jack n mailbackj...@gmail.com wrote:

 Hi All,

 I had placed my private MIBs under /usr/share/snmp/mibs and compiled them
 using mib2c.

 I got .c and .h files, added my code in the .c file and placed them under
 /agent/mibgroup.

 Now when I try to run snmpwalk and SNMPGET request they work succesfully,
 but when I run SNMPSET for the same OID, it fails and returns an error.

 *# snmpwalk -v 1 localhost -c public 1.3.6.1.8.1.1.2321.79.2.1.5.4*
 *.1.3.6.1.8.1.1.2321.79.2.1.5.4.0 = INTEGER: 123

 **# snmpget -v 1 localhost -c public 1.3.6.1.8.1.1.2321.79.2.1.5.4.0
 .1.3.6.1.8.1.1.2321.79.2.1.5.4.0 = INTEGER: 123*

 But when I run *snmpset* ,

 *snmpset -v 1 -c public localhost .1.3.6.1.8.1.1.2321.79.2.1.5.4.0 i 12345
 *
 *Error in packet *
 **
 *Reason:(genError) A general failure occured*


 My snmpd.conf file contains the following entries:

 #   sec.name  sourcecommunity
 com2sec Anyone127.0.0.1/32  public
 # create some groups
 # group name  security model  security name
 group Group   v1  Anyone
 group Group   v2c Anyone
 #view  all   included   xx.xx.xx.xx.xx.xx.xx
 view  wview included   .1.3.6.1.8.1.1.2321.79.2.1.5.4.0
 master agentx
 #agentxPerms 0660 0550 nobody snmp
 agentxPerms 600
 agentxSocket /tmp/agentx
 agentxTimeout 60
 agentxRetries 1

 rwcommunity  public

 Is there anything else that I need to do?
 Am i missing something? Please let me know.

 Thanks and Regard,
 Jack.


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: SNMPSET - Error - :(genError) A general failure occured

2010-11-29 Thread Ramakrishna Dronamraju Venkatavalli
unsubscribe
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmpset gives an gen Error message

2010-11-29 Thread Leo Lin
Hi Jack;
 
The error was in the handler I implemented.  I comitted a silly mistake of 
deleting the modes I did not have code for, for example:
 
int syslocation_handler(netsnmp_mib_handler *handler,
  netsnmp_handler_registration *reginfo,
  netsnmp_agent_request_info *reqinfo,
  netsnmp_request_info *requests) {
 
 switch (reqinfo-mode) {
  case MODE_GET:
  // my code here
  break;
  case MODE_SET_ACTION:
 // my code here
  break;
  default:
  return SNMP_ERR_GENERR;
 }
 return SNMP_ERR_NOERROR;
}
 
as you see, I'm missing MODE_SET_RESERVE1, MODE_SET_RESERVE2, MODE_SET_UNDO, 
MODE_SET_COMMIT, and MODE_SET_FREE, so in such instances, the routine returns 
SNMP_ERR_GENERR.
 
if you do a snmpget, it will not create this error, as it does not go through 
the several SET modes as in snmpset.
 
Hope it helps,
 
Leo;

--- On Mon, 11/29/10, jack n mailbackj...@gmail.com wrote:


From: jack n mailbackj...@gmail.com
Subject: Re: snmpset gives an gen Error message
To: Leo Lin hayashi_...@yahoo.com
Cc: Net-snmp-users net-snmp-users@lists.sourceforge.net
Date: Monday, November 29, 2010, 12:08 AM



Hi Leo,
 
I am facing a similar issue, can  you please tell me how u debugged this issue??
 
Thanks and Regards,
Jack.


On Sun, Oct 17, 2010 at 8:22 AM, Leo Lin hayashi_...@yahoo.com wrote:






I've found the bug, now it's working fine.
 
Thanks!
 
Leo;

--- On Sat, 10/16/10, Leo Lin hayashi_...@yahoo.com wrote:


From: Leo Lin hayashi_...@yahoo.com
Subject: snmpset gives an gen Error message
To: Net-snmp-users net-snmp-users@lists.sourceforge.net
Date: Saturday, October 16, 2010, 2:38 PM 











Hi,
 
I've been extending the snmpd with my own modules.  I made sure that each 
module is working properly before adding another one.
 
Suddendly, on one of the latest modules, netsnmp builds ok, but I get an error 
while using snmpset command.
 
I also tested the snmpset with a library in c# separate from netsnmp, and it 
does not work either.
 
I removed the module, and re-build the netsnmp and still gives me the error.
 
The error is:
 
$snmpset -v1 -cprivate localhost myvar.0 i 0
Error in packet.
Reason: (genError) A general failure occured
 
it happens with each oid I've implemented.  I'm using net-snmp-5.6.rc1.
 
I also though that maybe the modules that I've extended created some seg-fault, 
and overwrite some source/header files in net-snmp, so I re-install (tar) the 
whole netsnmp, but I still get the error.
 
I'm not too sure what could cause this sudden error.  I reverted to only the 
modules that was working fine before, and I did not change the MIB or the 
snmpd.conf files.
 
Thanks!
 
Leo;


--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users





  --
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Memory leak in MFD logic?

2010-11-29 Thread kavita raghunathan
Hello, after spending nearly 1 week on this, I thought I will email to ask. Any 
known leaks in MFD logic ? I'm using net-snmp-5.5, and after many walks I see 
leaks of 1M each. I looked at 5.6, and ported over all the fixes that claimed 
to be memory leak fixes in the table and row logic. But still I see the leak.

More info: Leak seems to be dependent on index. Leak happens on most of the MFD 
MIBs being walked. But say a MIB has only 1 single row (only 1 index), the leak 
is only 1M even after being left running with constant MIB walks for many days. 
If there are 5 rows, the leaks is about 5M. So, my if-mib with 5 if indices 
has a leak that is proportional to the number of if-indices it seems. I left 
the target system running for several days with constant if-mib walks, and 
there was a leak of 5M. Also, the leak happens 1M at a time, and is sudden, 
that is, I'll be looking at the output of top VSIZ one instant, no leak, next 
instant its a 1M jump.

Also note, this leak is different from all the other ones I have posted about 
in the past which have been resolved. Also, I'm currently trying to reproduce 
this walk leak on the linux host using valgrind and no luck so far.

Thanks,
Kavita


  

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: net-snmp on windows 2003 crash

2010-11-29 Thread David Dumortier
Hello,

Le Sun Nov 07 2010 � 06:10:22PM +0100, Bart Van Assche dit :
 On Fri, Nov 5, 2010 at 8:41 AM, David Dumortier d.dumort...@free.fr wrote:
 
  Le Thu Nov 04 2010 à 07:36:42PM +0100, Bart Van Assche dit :
   On Tue, Nov 2, 2010 at 5:49 PM, David Dumortier d.dumort...@free.fr
  wrote:
  
I try to install net-snmp 5.5 on windows 2003 and the service die in
few seconds with the errors :
init_winExtDLL: could not load SNMP extension DLL
C:\WINDOWS\system32\inetsrv\httpmib.dll.
duplicate registration
  (mibII/snmp,C:\WINDOWS\System32\snmpmib.dll)handler
registration failed.
   
  
   All you have to do is to pass the appropriate -I- options to snmpd.exe at
   startup such that no duplicate registrations are triggered. This is a
  known
   bug that has been fixed in later versions.
 
  I forgot to say I tried -I-snmp as I read in a forum tip with the same
  result. Is there a list of modules available ?
 
 
 A good start would be to read README.win32.

I had other tasks to do. I return to snmpd.
I read it and passed also the other modules as write on the README
(udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,sysORTable)
So I want list of modules to deactivate more and see if I can solve
the conflict (with IIS I suspect).

 Bart.

Thank you for any tips.
-- 
David Dumortier

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


which mib2c template to use

2010-11-29 Thread Kobi Biton
Hi I used the mib2c int template to convert a mib with a single
read-write object successfully , however now I face a new issue the
value that I need to snmpset is `date +%s` (Linux APOC) which I assume
will not fit into an integer field  , I assume I will need to change the
field type to counter32  , however I simply do not know which template
to use , nor to code the missing lines after mib2c , below my MIB.

Please Assist.

Thanks

 

MY-COMPANY4-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, enterprises, Counter32 FROM SNMPv2-SMI;

-- root of our MIB will point to enterprises

myCompany4MIB MODULE-IDENTITY
LAST-UPDATED
20101121Z
ORGANIZATION
my org
CONTACT-INFO
email: r...@localhost
DESCRIPTION
Example MIB
REVISION
201011210001Z
DESCRIPTION
snmp SET test mib
::= { enterprises 36506 }

Apoc32Value OBJECT IDENTIFIER ::= { myCompany4MIB 1 }

-- time to define apoc values

apoc32 OBJECT-TYPE
SYNTAX Counter3MAX-ACCESS read-write
STATUS current
DESCRIPTION
Apoc Set from script
::= { Apoc32Value2

END


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


MaxMsgSize on v2c request

2010-11-29 Thread Connie Chan


Hi,
I'm using netsnmp 5.4.2.1.

I made a v2c request to server but got error send response: Too long

Turned on debug msgand got 
sess_async_send: 2010-11-29 15:00:16,716 - length of packet (8379) exceeds 
session maximum (4096)

We cannot specify maxMsgSize in snmpv2c PDU. 

Does netsnmp default it to 4096?

Why we limit the max response size in v2c? Should we only check the msgMaxSize 
if it is v3 or v2u?

Is there any way to increase the default size or skip the checking?

Thanks  Regards,
Connie
  --
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


bulkget returns junk when requesting integers and strings

2010-11-29 Thread Daniel Ng
Hi,

My server is using net-snmp 5.6. I am getting the same problem with
different snmp clients:


This case is fine:

d...@dng-1:~$ snmpbulkget -v2c -Cn0 -Cr8 -Os -c public 192.168.1.75
enterprises.28458.7.2.4.6.3.1.8 enterprises.28458.7.2.4.6.3.1.7
enterprises.28458.7.2.4.6.3.1.8.1.1 = STRING: E1 1/1
enterprises.28458.7.2.4.6.3.1.7.1.1 = INTEGER: 2
enterprises.28458.7.2.4.6.3.1.8.1.2 = STRING: E1 1/2
enterprises.28458.7.2.4.6.3.1.7.1.2 = INTEGER: 0
enterprises.28458.7.2.4.6.3.1.8.1.3 = STRING: E1 1/3
enterprises.28458.7.2.4.6.3.1.7.1.3 = INTEGER: 0
enterprises.28458.7.2.4.6.3.1.8.1.4 = STRING: E1 1/4
enterprises.28458.7.2.4.6.3.1.7.1.4 = INTEGER: 0
enterprises.28458.7.2.4.6.3.1.8.1.5 = STRING: E1 1/5
enterprises.28458.7.2.4.6.3.1.7.1.5 = INTEGER: 0
enterprises.28458.7.2.4.6.3.1.8.1.6 = STRING: E1 1/6
enterprises.28458.7.2.4.6.3.1.7.1.6 = INTEGER: 0
enterprises.28458.7.2.4.6.3.1.8.1.7 = STRING: E1 1/7
enterprises.28458.7.2.4.6.3.1.7.1.7 = INTEGER: 0
enterprises.28458.7.2.4.6.3.1.8.1.8 = STRING: E1 1/8
enterprises.28458.7.2.4.6.3.1.7.1.8 = INTEGER: 0


However, if I switch the order of the OIDs on the command line, I get junk:

d...@dng-1:~$ snmpbulkget -v2c -Cn0 -Cr8 -Os -c public 192.168.1.75
enterprises.28458.7.2.4.6.3.1.7 enterprises.28458.7.2.4.6.3.1.8
enterprises.28458.7.2.4.6.3.1.7.1.1 = STRING: E1 1/1
enterprises.28458.7.2.4.6.5.1.2.6.1 = INTEGER: 2
enterprises.28458.7.2.4.6.3.1.7.1.2 = INTEGER: 0
enterprises.28458.7.2.4.6.5.1.2.6.2 = INTEGER: 2
enterprises.28458.7.2.4.6.3.1.7.1.3 = INTEGER: 0
enterprises.28458.7.2.4.6.5.1.2.6.3 = INTEGER: 2
enterprises.28458.7.2.4.6.3.1.7.1.4 = INTEGER: 0
enterprises.28458.7.2.4.6.5.1.2.6.4 = INTEGER: 2
enterprises.28458.7.2.4.6.3.1.7.1.5 = INTEGER: 0
enterprises.28458.7.2.4.6.5.1.2.6.5 = INTEGER: 2
enterprises.28458.7.2.4.6.3.1.7.1.6 = INTEGER: 0
enterprises.28458.7.2.4.6.5.1.2.6.6 = INTEGER: 2
enterprises.28458.7.2.4.6.3.1.7.1.7 = INTEGER: 0
enterprises.28458.7.2.4.6.5.1.2.6.7 = INTEGER: 2
enterprises.28458.7.2.4.6.3.1.7.1.8 = INTEGER: 0
enterprises.28458.7.2.4.6.5.1.2.6.8 = INTEGER: 3

-the problem only happens when the first OID is a string and the
second OID is an integer. Note that both of the above OIDs correspond
to elements in the same table.

Can someone please explain why the second case fails, and how it could be fixed?

Cheers,
Daniel

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: bulkget returns junk when requesting integers and strings

2010-11-29 Thread Daniel Ng
On Tue, Nov 30, 2010 at 11:31 AM, Daniel Ng daniel.ng1...@gmail.com wrote:

 -the problem only happens when the first OID is a string and the
 second OID is an integer. Note that both of the above OIDs correspond
 to elements in the same table.


Please also note that the problem only happens for a 2-dimensional
table ie. where the last 2 digits in the element's OID uniquely
identify the element-

eg. enterprises.28458.7.2.4.6.3.1.8.1.2

  -1.2 are the last 2 digits. In this case, '1' is the slot number and
'2' is the port number.


Cheers,
Daniel

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


couldn't find ifIndex

2010-11-29 Thread Andrus, Brian Contractor
Hello all,
 
Not a coder or anything, but I have had an issue and noticed others have as 
well. I hunted down and watched for patterns for myself.
 
Here is a scenario that seems to be consistent in my environment:
 
We are running a CentOS 5.5 environ. Strictly rpms.
We run TCPoIB (TCP over InfiniBand).
We run net-snmp 5.3.2.2
 
On the boxes that have TCPoIB we consistently get the errors:
 
snmpd[6248]: ioctl 35123 returned -1
snmpd[6248]: couldn't find ifIndex for '*', skipping

 
I am thinking net-snmp isn't quite familiar with infiniband and running tcp 
over it.
 
Just a thought.
 
Brian Andrus
Naval Postgraduate School
 
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users