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: wap_platforms and phone_platforms (Ricardo Stella)
--- Begin Message ---
Thanks for the tip but it didn't seem to work even though the regex seems
ok from what I can tell.

Running a discover in debug mode I get (obfuscated):

[2598] 2021-08-10 16:29:50 debug  [10.0.0.110] neigh - 10.1.0.210 with ID
[aa:bb:cc:dd:ee:ff] on GigabitEthernet1/0/1
SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation
  FROM device_ip me
WHERE me.alias = '10.1.0.210' AND me.ip = '10.1.0.210'
SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation
  FROM device_ip me
WHERE alias = '10.1.0.210'
SELECT me.ip, me.creation, me.dns, me.description, me.uptime, me.contact,
me.name, me.location, me.layers, me.num_ports, me.mac, me.serial, me.model,
me.ps1_type, me.ps2_type, me.ps1_status, me.ps2_status, me.fan, me.slots,
me.vendor, me.os, me.os_ver, me.log, me.snmp_ver, me.snmp_comm,
me.snmp_class, me.snmp_engineid, me.vtp_domain, me.last_discover,
me.last_macsuck, me.last_arpnip, to_char( me.creation, 'YYYY-MM-DD HH24:MI'
), to_char( me.last_arpnip, 'YYYY-MM-DD HH24:MI' ), to_char(
me.last_discover, 'YYYY-MM-DD HH24:MI' ), to_char( me.last_macsuck,
'YYYY-MM-DD HH24:MI' ), extract( epoch
      FROM age( now(  ), me.creation ) ), extract( epoch
      FROM age( now(  ), me.last_arpnip ) ), extract( epoch
      FROM age( now(  ), me.last_discover ) ), extract( epoch
      FROM age( now(  ), me.last_macsuck ) ), replace( age( timestamp
'epoch' + me.uptime / 100 * interval '1 second', timestamp '1970-01-01
00:00:00-00' ) ::text, 'mon', 'month' )
  FROM device me
WHERE me.ip = '10.1.0.210'
UPDATE device_port
  SET is_uplink = true, manual_topo = false, remote_id =
'aa:bb:cc:dd:ee:ff', remote_ip = '10.1.0210', remote_port = 'bond0',
remote_type = 'ArubaOS (MODEL: 315), Version Aruba AP'
WHERE ip = '10.0.0.110' AND port = 'GigabitEthernet1/0/1'
SELECT me.ip, me.port, me.creation, me.descr, me.up, me.up_admin, me.type,
me.duplex, me.duplex_admin, me.speed, me.speed_admin, me.name, me.mac,
me.mtu, me.stp, me.remote_ip, me.remote_port, me.remote_type, me.remote_id,
me.is_master, me.slave_of, me.manual_topo, me.is_uplink, me.vlan, me.pvid,
me.lastchange
  FROM device_port me
WHERE me.ip = '10.0.0.110' AND me.port = 'GigabitEthernet1/0/1'

My understanding is that this should show a "matches wap_platforms" message
like I get for phones (which do show the telephone icon).

I think the device is returning the capabilities properly - here's the
output

    0.1.313      [
        [0] "bridge",
        [1] "wlanAccessPoint"
    ],

c_platforms return:

 0.1.313      "ArubaOS (MODEL: 315), Version Aruba AP",

I added the following to deployments.yml:

wap_platforms:
 - '(?i:.*Aruba\sAP$)'

wap_capabilities:
 - '(?i:wlanAccessPoint)'

More than the icon, I'd love to be able to search by the AP name:  Here's
the LLDP info:

Chassis id: aa:bb:cc:dd:ee:ff
Port id: aa:bb:cc:dd:ee:ff
Port Description: bond0
System Name: Test_AP

System Description:
ArubaOS (MODEL: 315), Version Aruba AP


Thanks in advance - Ricardo.

On Tue, Aug 10, 2021 at 1:40 AM Nick Nauwelaerts <
nick.nauwelae...@aquafin.be> wrote:

> wap_platforms seems to be a regular expression list, so the brackets could
> be causing an issue.
>
>
>
> on the top of my head i would change it to something like
> '(?i:.*Aruba\sAP$)'
>
>
>
> other issue could be that the ap is not returning the required
> cpd/lldp/etc info:
>
> https://github.com/netdisco/netdisco/wiki/Configuration#wap_capabilities
>
>
>
>
>
>
>
> // nick
>
>
>
> *From:* Ricardo Stella <ste...@rider.edu>
> *Sent:* Wednesday, August 4, 2021 21:56
> *To:* netdisco-users@lists.sourceforge.net
> *Subject:* [Netdisco] wap_platforms and phone_platforms
>
>
>
>
>
> Figure I ask before reinventing the wheel.  Our Aruba APs don't seem to be
> recognized as access points.  They only show a device is inaccessible
> icon.  No entries for discover_waps so default of true should be in effect.
>
>
>
> For example, c_platform returns "ArubaOS (MODEL: 315), Version Aruba AP"
>
>
>
> Tried adding the whole string to test to deployment.yml but doesn't seem
> to work:
>
>
>
> wap_platforms:
>  - 'ArubaOS (MODEL: 315), Version Aruba AP'
>
>
>
> Am I missing something? Thanks in advance.
>
>
>
> --
>
> °(((*=*((*===°°°*(((*================================================*
>
>
> ------------------------------
>
>
> *Volg Aquafin op Facebook <https://www.facebook.com/AquafinNV> | Twitter
> <https://twitter.com/aquafinnv> | YouTube
> <http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> |
> LinkedIN <http://www.linkedin.com/company/aquafin/products> | Instagram
> <https://www.instagram.com/aquafin_nv/> *
>
> In het kader van de uitoefening van onze taken verzamelen we bij Aquafin
> persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de
> betrokkenen zijn, kan je nalezen in onze privacy policy
> <https://www.aquafin.be/nl-be/privacy-policy>.
>
>   P Denk aan het milieu. Druk deze mail niet onnodig af.
>
> <https://www.aquafin.be/>
>


-- 
°(((=((===°°°(((================================================

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

Reply via email to