Modify

Opened 9 years ago

Closed 8 years ago

Last modified 4 years ago

#5373 closed enhancement (fixed)

Add package to translate mac address to device information

Reported by: Daniel Dickinson <crazycshore@…> Owned by: jow
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version:
Keywords: Cc:

Description

The attached tarball adds a set of scripts that

0) Download the MAC address to OUI/IAB owner databases from IEEE
1) Takes a MAC address and converts it to device information (OUI/IAB owner at least, and possibly more if it's been added to database (which can be overriden/added to using UCI)
2) If IP is in arp cache can convert an IP to MAC to devinfo
3) By using smap find all SIP enabled devices and convert to devinfo

will add:

4) with netdiscover probe network and produce device info for all connected devices

Attachments (8)

mac-to-devinfo.tar.gz (4.8 KB) - added by Daniel Dickinson <crazycshore@…> 9 years ago.
mac to device info; smap to device info; ip in arp cache to device info
mac-to-devinfo.tar.2.gz (5.2 KB) - added by Daniel Dickinson <crazycshore@…> 9 years ago.
Improved, and netdiscover-to-devinfo added
smap+netdiscover.patch (16.0 KB) - added by Daniel Dickinson <crazycshore@…> 9 years ago.
patch smap to fix bugs and patch netdiscover so it does machine parseable output
smap+netdiscover.2.patch (16.0 KB) - added by Daniel Dickinson <crazycshore@…> 9 years ago.
Fix silly error in regular display due to change in patch
luci-smap-netdiscover.tar.gz (14.6 KB) - added by Daniel Dickinson <crazycshore@…> 9 years ago.
combined patch with mac-to-devinfo, need smap+netdiscover patches, and LuCI pages for the scripts
luci-smap-netdiscover.tar.2.gz (14.5 KB) - added by Daniel Dickinson <crazycshore@…> 9 years ago.
Corrected lack of INSTALL_BIN which meant scripts were not executable
luci-smap-v2.tar.gz (8.7 KB) - added by Daniel Dickinson <crazycshore@…> 9 years ago.
luci-netdiscover+smap-i18n.patch (71.1 KB) - added by Daniel Dickinson <crazycshore@…> 9 years ago.
The final i18n package with all bug fixes and enhancements

Download all attachments as: .zip

Change History (18)

Changed 9 years ago by Daniel Dickinson <crazycshore@…>

mac to device info; smap to device info; ip in arp cache to device info

Changed 9 years ago by Daniel Dickinson <crazycshore@…>

Improved, and netdiscover-to-devinfo added

Changed 9 years ago by Daniel Dickinson <crazycshore@…>

patch smap to fix bugs and patch netdiscover so it does machine parseable output

comment:1 Changed 9 years ago by Daniel Dickinson <crazycshore@…>

The second tarball has some improvements to smap-to-discover, a couple of small bugfixes.

This package contains some scripts that depend on other packages and some that or useful standalone, so I didn't make the other packages dependencies, but the scripts are small enough that I didn't think a group of packages was appropriate.

The smap-to-devinfo and netdiscover-to-devinfo depend on a pair of patches that:

patch smap to fix bugs and patch netdiscover so it does machine parseable output

Changed 9 years ago by Daniel Dickinson <crazycshore@…>

Fix silly error in regular display due to change in patch

comment:2 Changed 9 years ago by Daniel Dickinson <crazycshore@…>

I've updated the netdiscover patch to fix a silly bug in the display when not using machine parseable mode due to the previous patch.

Changed 9 years ago by Daniel Dickinson <crazycshore@…>

combined patch with mac-to-devinfo, need smap+netdiscover patches, and LuCI pages for the scripts

comment:3 Changed 9 years ago by Daniel Dickinson <crazycshore@…>

I've just attached a tarball that has three patches in it.

These patches

  • fix smap and netdiscover to work as needed for mac-to-devinfo set of scripts to work
  • fix and enhance mac-to-devinfo
  • split mac-to-devinfo, smap-to-devinfo, and netdiscover-to-devinfo into separate packages
  • Introduce LuCI pages which use the scripts and report the results of the scans
  • Introduce LuCI pages to configure the LuCI-launched scans
  • Introduce a LuCI pages to edit MAC to Device Info Overrides (which overrides the information displayed for a particular set of mac ranges according to the system adminsitrator's preference)

As a reminder the scripts:

  • convert MAC addresses into device information
  • convert IP's to device information through MAC address if the IP is pingable
  • scan specified networks and ports for SIP devices and display device info
  • scan specified networks (on specified interfaces) for devices and displays the device info

Changed 9 years ago by Daniel Dickinson <crazycshore@…>

Corrected lack of INSTALL_BIN which meant scripts were not executable

comment:4 Changed 9 years ago by Daniel Dickinson <crazycshore@…>

I've attached a new tarball which corrects the mac-to-devinfo patch to using INSTALL_BIN and therefore make the scripts executable. I didn't notice because I was previously installing onto a previously installed router.

comment:5 Changed 9 years ago by florian

smap patches applied in [16710], netdiscover in [16711] and mac-to-devinfo added in [16712]. I will let jow take the LuCI parts.

comment:6 Changed 9 years ago by florian

  • Owner changed from developers to jow

Changed 9 years ago by Daniel Dickinson <crazycshore@…>

comment:7 Changed 9 years ago by Daniel Dickinson <crazycshore@…>

More enhancements to the LuCI part of the smap and netdiscover scans. Depends on the enhancements to mac-to-devinfo included in the tarball and (same patch) another ticket

Changed 9 years ago by Daniel Dickinson <crazycshore@…>

The final i18n package with all bug fixes and enhancements

comment:8 Changed 9 years ago by Daniel Dickinson <crazycshore@…>

The most recent patch is the completed revision, except that the po files may change to better text. Scanning is now reasonable for speed and seems to catch all the devices (there were issues before due to speed of arp requests). Depends on ticket #5537 which Florian should be applying any moment.

comment:9 Changed 8 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Applied to LuCI trunk

comment:10 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.