Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

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

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Netdisco with Meraki (Jeremiah Garmatter)
   2. Re: Search in Node Properties (Weidner)
--- Begin Message ---
Thanks for the input Michael, I saw some of your other posts while
reviewing the netdisco-user archives. It's a shame Meraki hasn't corrected
their issues after all this time.

Sure thing Oliver, see below for my additions to Info.pm and the contents
of Meraki.pm. I can get the MAC addresses from each port but I don't get
VLANs, which would be nice to have.


Info.pm:
--Around line 1750--
    my %l3sysoidmap = (
        29671 => 'SNMP::Info::Layer3::Meraki',    <------ Right here,
obtained from an archived netdisco-user email.
        9     => 'SNMP::Info::Layer3::CiscoSwitch',
--Around line 1900--
        $objtype = 'SNMP::Info::Layer3::C3550' if $desc =~ /(C3550|C3560)/;
        $objtype = 'SNMP::Info::Layer3::C4000' if $desc =~ /Catalyst
4[05]00/;
        $objtype = 'SNMP::Info::Layer3::Foundry' if $desc =~ /foundry/i;
        $objtype = 'SNMP::Info::Layer3::ERX' if $desc =~ /erx/i;

        # Meraki MS3*  <-------- Right here, match the description with any
of our Meraki devices (MS390 and 355).
        $objtype = 'SNMP::Info::Layer3::Meraki'
          if $desc =~ /^Meraki\sMS3/;

        # Aironet - older non-IOS
        $objtype = 'SNMP::Info::Layer3::Aironet'

Created Meraki.pm:
# I whipped this up from the suggestions in the included link and other pm
files.
# https://sourceforge.net/p/netdisco/mailman/message/37257000/
# - custom addition 4/25/24

package SNMP::Info::Layer3::Meraki;

use strict;
use warnings;
use Exporter;
use SNMP::Info::Layer3;

@SNMP::Info::Layer3::Meraki::ISA       = qw/SNMP::Info::Layer3 Exporter/;
@SNMP::Info::Layer3::Meraki::EXPORT_OK = qw//;

our ($VERSION, %GLOBALS, %MIBS, %FUNCS, %MUNGE);

$VERSION = '3.970001';

%MIBS = (
    %SNMP::Info::Layer2::MIBS, %SNMP::Info::Layer3::MIBS,
);

%GLOBALS = (
    %SNMP::Info::Layer2::GLOBALS, %SNMP::Info::Layer3::GLOBALS,
);

%FUNCS = ( %SNMP::Info::Layer2::FUNCS, %SNMP::Info::Layer3::FUNCS, );

%MUNGE = ( %SNMP::Info::Layer2::MUNGE, %SNMP::Info::Layer3::MUNGE, );

sub layers {
    return '00000110';
}


<https://www.google.com/url?q=https://onu.edu&source=gmail-html&ust=1674828335432000&usg=AOvVaw28_De1JtB-AXSBY3ffLqIg>
<https://www.google.com/url?q=https://www.instagram.com/ohionorthern/?hl%3Den&source=gmail-html&ust=1674828335432000&usg=AOvVaw2T5Mr7Skb1malhmRz_e6L7>
<https://www.google.com/url?q=https://www.facebook.com/OhioNorthern/&source=gmail-html&ust=1674828335432000&usg=AOvVaw3nAxUn3wIQnybVvpceEIDC>
<https://www.google.com/url?q=https://twitter.com/ohionorthern?ref_src%3Dtwsrc%255Egoogle%257Ctwcamp%255Eserp%257Ctwgr%255Eauthor&source=gmail-html&ust=1674828335432000&usg=AOvVaw2gJCHRWcjlGtZi5ft71zQz>
<https://www.google.com/url?q=https://www.youtube.com/channel/UCvdGjbOWVUkVJZVm0l-px7g&source=gmail-html&ust=1674828335432000&usg=AOvVaw1nIUlB6-a3l6ENfFlK-WfL>
*Jeremiah Garmatter*
Linux Systems Administrator
Office of Information Technology
IT Building 107
419-772-1074
j-garmat...@onu.edu


On Fri, Apr 26, 2024 at 5:36 AM Oliver Gorwits <oli...@cpan.org> wrote:

> Hi Jeremiah!
>
> Many thanks for getting in touch. Are you able to share the modifications
> to Info.pm and Meraki.pm that you made in order to get the macsuck and
> arpnip working?
>
> Also did the macsuck and arpnip work enough so you are OK with the
> results, or is more still missing?
>
> (honestly, as others have said, the Meraki support is difficult for SNMP,
> so it might never be complete, and we could consider alternatives later
> such as CLI scraping or APIs)
>
> Kind regards,
> Oliver.
>
> On Thu, 25 Apr 2024 at 19:32, Jeremiah Garmatter <j-garmat...@onu.edu>
> wrote:
>
>> Hello,
>>
>> We recently added a few Meraki MS switches to our network.
>> After reviewing some archived emails regarding Meraki I have come to the
>> conclusion that Meraki and SNMP-based monitoring tools are not very
>> compatible. I have issues with both Netdisco and another tool, Cacti,
>> regarding only the Meraki devices.
>>
>> That being said, I was able to perform a macsuck and arpnip after
>> following the instructions within an archived email. I had to modify the
>> ~netdisco/perl5/lib/perl5/SNMP/Info.pm file and create a
>> ~netdisco/perl5/lib/perl5/SNMP/Info/Layer3/Meraki.pm file.
>>
>> I can't help but feel that I hacked the solution together from the emails
>> and other Layer3 device files. I am not very confident in this approach
>> since I don't know much about the inner workings of Netdisco or the Perl
>> files.
>>
>> I am curious if anyone else has created their own "Meraki.pm" kind of
>> file and if you would be willing to share it.
>>
>> <https://www.google.com/url?q=https://onu.edu&source=gmail-html&ust=1674828335432000&usg=AOvVaw28_De1JtB-AXSBY3ffLqIg>
>> <https://www.google.com/url?q=https://www.instagram.com/ohionorthern/?hl%3Den&source=gmail-html&ust=1674828335432000&usg=AOvVaw2T5Mr7Skb1malhmRz_e6L7>
>> <https://www.google.com/url?q=https://www.facebook.com/OhioNorthern/&source=gmail-html&ust=1674828335432000&usg=AOvVaw3nAxUn3wIQnybVvpceEIDC>
>> <https://www.google.com/url?q=https://twitter.com/ohionorthern?ref_src%3Dtwsrc%255Egoogle%257Ctwcamp%255Eserp%257Ctwgr%255Eauthor&source=gmail-html&ust=1674828335432000&usg=AOvVaw2gJCHRWcjlGtZi5ft71zQz>
>> <https://www.google.com/url?q=https://www.youtube.com/channel/UCvdGjbOWVUkVJZVm0l-px7g&source=gmail-html&ust=1674828335432000&usg=AOvVaw1nIUlB6-a3l6ENfFlK-WfL>
>> *Jeremiah Garmatter*
>> Linux Systems Administrator
>> Office of Information Technology
>> IT Building 107
>> 419-772-1074
>> j-garmat...@onu.edu
>> _______________________________________________
>> Netdisco mailing list
>> netdisco-users@lists.sourceforge.net
>> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>
>

--- End Message ---
--- Begin Message ---
Hi,

I hope this output is somewhat useful:

netdisco=> select * from device_port_properties where ip=' 111.111.111.111' and 
port='1/g19';
       ip       | port  | error_disable_cause | remote_is_wap | remote_is_phone 
| remote_vendor | remote_model | remote_os_ver | remote_serial | raw_speed  | 
faststart | ifindex | remote_is_discoverable | remote_dns | 
pae_authconfig_state | pae_authconfig_port_control |
 pae_authconfig_port_status | pae_authsess_user | pae_authsess_mab | 
pae_last_eapol_frame_source | pae_is_authenticator | pae_is_supplicant
----------------+-------+---------------------+---------------+-----------------+---------------+--------------+---------------+---------------+------------+-----------+---------+------------------------+------------+----------------------+-----------------------------+
----------------------------+-------------------+------------------+-----------------------------+----------------------+-------------------
  111.111.111.111 | 1/g19 |                     | f             | f             
  |               |              |               |               | 1000000000 | 
f         |      19 | t                      | idrac-prod-01   |                
      |                             |
                            |                   |                  |            
                 |                      |
(1 row)

netdisco=> select * from device_port where ip=' 111.111.111.111' and 
port='1/g19';
       ip       | port  |          creation          |             descr        
      | up | up_admin |      type      | duplex | duplex_admin |  speed   | 
name  |        mac        | mtu  | stp |    remote_ip    |    remote_port    |  
                   remote_type
                 |     remote_id     | vlan | pvid | lastchange | manual_topo | 
is_uplink | slave_of | is_master | speed_admin | has_subinterfaces | 
custom_fields | tags
----------------+-------+----------------------------+--------------------------------+----+----------+----------------+--------+--------------+----------+-------+-------------------+------+-----+-----------------+-------------------+------------------------------------
-----------------+-------------------+------+------+------------+-------------+-----------+----------+-----------+-------------+-------------------+---------------+------
  111.111.111.111 | 1/g19 | 2024-04-26 08:30:27.504552 | unit 1 port 19 Gigabit 
- Level | up | up       | ethernetCsmacd |        |              | 1.0 Gbps | 
1/g19 | 08:bd:43:78:0c:63 | 1500 |     | 222.222.222.222 | JLK5PT3 Dedicated | 
Integrated Dell Remote Access Contr
oller 7.10.30.00 | cc:96:e5:e9:80:8c | 1    |    1 | 2383965000 | f           | 
t         |          | f         |             | f                 | {}         
   | {}
(1 row)


Thank you for your support.
[Mühlhausen - Mittelalterliche Reichsstadt:]<https://www.muehlhausen.de>
[Besuchen Sie uns auf 
Facebook!]<https://www.facebook.com/stadtverwaltung.muehlhausen.de>


Stadtverwaltung Mühlhausen
Ratsstraße 25 | 99974 Mühlhausen | Postfach 1243 | 99962 Mühlhausen
Telefon: +49 3601 452 0 | Fax: +49 3601 452 177
www.muehlhausen.de | i...@muehlhausen.de

Informationen zum Umgang mit Ihren Daten (Art. 13, 14 DSGVO)
in der Stadtverwaltung Mühlhausen finden Sie im Internet
unter www.muehlhausen.de/Datenschutz.
Auf Wunsch übersenden wir Ihnen eine Papierfassung.

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to