Welcome, Guest. Please login or register.

Author Topic: Discovery of Nexus 5000 => Message size exceeded buffer maxMsgSize  (Read 7075 times)

brunonilo

  • Guest
Last line of debug msg:

00xxcdxxdxx   port-channel1016   hostname      Qp=Message size exceeded buffer maxMsgSize
MtMessage size exceeded buffer maxMsgSize

Where in libsnmp.pl can I set a larger msgSize?

Thanks

brunonilo

  • Guest
Re: Discovery of Nexus 5000 => Message size exceeded buffer maxMsgSize
« Reply #1 on: January 21, 2010, 10:14:34 PM »
Found more about this issue...

I believe that the CDP message sent by this device is exceeding the max...

libsnmp.pl

line 960                                                 -maxmsgsize => 65535
line 1109                 $r = $session->get_table('1.3.6.1.4.1.9.9.23.1.2.1.1');


For any value greater than 65535 I get "Can't call method "get_table" on an undefined value at ./inc/libsnmp.pl line 1019."

error after let 65535 as maxmsgsize
.
.
.
 CDP: Ethernet101/1/24> switchname,Gi1/0/26 IP=111.111.111.111 TYP:cisco WS-CBS3120G-S Cisco IOS Software, CBS31X0 Software (CBS31X0-UNIVERSALK9-M), Version 12.2(46)SE, RELEASE SOFTWARE (fc2)Copyright (c) 1986-2008 by Cisco Systems, Inc.Compiled Thu 21-Aug-08 16:50 by nachen SV:1 P:0mW on Gi1/0/26-FD Vl0
 CDP: Ethernet1/2> switchname,Et1/2 IP=111.111.111.111 TYP:N5K-C5020P-BF Cisco Nexus Operating System (NX-OS) Software, Version 4.1(3)N1(1a) SV:1 P:0mW on Et1/2-FD Vl0
MtMessage size exceeded buffer maxMsgSize
« Last Edit: January 21, 2010, 10:17:51 PM by whitehatguy »

brunonilo

  • Guest
Re: Discovery of Nexus 5000 => Message size exceeded buffer maxMsgSize
« Reply #2 on: January 22, 2010, 10:18:35 PM »
had to increase the "maxmsgsize" under sub DisProtocol to 5500 and add -maxmsgsize => 5000 to sub Modules.


rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2786
    • View Profile
    • NeDi
Re: Discovery of Nexus 5000 => Message size exceeded buffer maxMsgSize
« Reply #3 on: January 26, 2010, 06:54:10 PM »
I've added 5500 on both, thanks for finding this one out!
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

jsnmngwn

  • Guest
Re: Discovery of Nexus 5000 => Message size exceeded buffer maxMsgSize
« Reply #4 on: April 21, 2011, 05:17:57 PM »
Ran into this issue again with 1.0.6 RC1 on a Nexus 7010.  Saw that libsnmp.pm actually had comment on what needed to be done, but my script-fu was not good enough to see if it would somehow detect this was a Nexus switch and adjust the message size accordingly.  I thought it might read it from the .def file where I specified it was NX-OS, but it still didn't work.  After making the change below, it works now.

Anyhow, I updated the libsnmp.pm line as follows:
Code: [Select]
    $tout  = ($tout)?$tout:$misc::timeout;
#   $maxms = ($maxms)? $maxms:1472;
    $maxms = 5500;  # set to 5500

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2786
    • View Profile
    • NeDi
Re: Discovery of Nexus 5000 => Message size exceeded buffer maxMsgSize
« Reply #5 on: April 21, 2011, 09:08:24 PM »
Does it happen during the CDP walk? You can adjust maxmsgsize in the calls of Connect(). Have a look at line 1245 of libsnmp.pl and change 4095, if it does happen in the CDP walk.

I use 5500 for modules now (see line 1973), but it's probably a good idea to tie it to the OS indeed...
« Last Edit: April 21, 2011, 09:25:33 PM by rickli »
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

jsnmngwn

  • Guest
Re: Discovery of Nexus 5000 => Message size exceeded buffer maxMsgSize
« Reply #6 on: May 26, 2011, 06:03:40 PM »
I've since upgraded to RC2.  I made my change as follows:
Code: [Select]
   &misc::Prt("\nDisProtocol  ------------------------------------------------------------------\n");
    ($session, $err) = &Connect($main::dev{$na}{ip}, $main::dev{$na}{rv}, $main::dev{$na}{rc}, $misc::timeout + 5, '5500');   # <---- changed from 4095 to 5500

Works fine!  Thanks.
« Last Edit: June 08, 2011, 06:46:09 PM by jsnmngwn »

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2786
    • View Profile
    • NeDi
Re: Discovery of Nexus 5000 => Message size exceeded buffer maxMsgSize
« Reply #7 on: March 16, 2013, 08:05:49 PM »
Just for the record. I've been playing with a N7K and some N5Ks. They behave very differently, where as that N7K even refuses to do any bulkwalks on the interfaces or CDP! Not I could just add ",-maxrepetitions  => 1" to every get call, but this slows nedi down notably! I hope other Nexs are not that picky or someone tells me, how this maxmessage nonsense can be fixed for good...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo