Pi.Alert icon indicating copy to clipboard operation
Pi.Alert copied to clipboard

Vendor database no longer updates

Open b-m-e opened this issue 2 years ago • 9 comments

The script to update vendors database from ieee creates zero-length files.

Reason seems to be that ieee moved the files and created a redirect that curl per default does not follow. Solution is to add flag -L to curl.

So in ~/pialert/back/update_vendors.sh

Change lines 27-37 to:

sudo curl -L $1 -# -O http://standards-oui.ieee.org/iab/iab.csv
sudo curl -L $1 -# -O http://standards-oui.ieee.org/iab/iab.txt
 
sudo curl -L $1 -# -O http://standards-oui.ieee.org/oui28/mam.csv
sudo curl -L $1 -# -O http://standards-oui.ieee.org/oui28/mam.txt
 
sudo curl -L $1 -# -O http://standards-oui.ieee.org/oui36/oui36.csv
sudo curl -L $1 -# -O http://standards-oui.ieee.org/oui36/oui36.txt
 
sudo curl -L $1 -# -O http://standards-oui.ieee.org/oui/oui.csv
sudo curl -L $1 -# -O http://standards-oui.ieee.org/oui/oui.txt

b-m-e avatar Mar 27 '22 11:03 b-m-e

I would actually recommend using proper https links instead.

ch-ris avatar Apr 18 '22 08:04 ch-ris

sed -i 's/http:/https:/' ~/pialert/back/update_vendors.sh

iamenderst avatar May 15 '22 18:05 iamenderst

Thank you - Adding https to the url did the job 100%! Only thing is, I see that when you do an upgrade it gets overwritten...

AubreyKloppers avatar May 19 '22 10:05 AubreyKloppers

"Download Public Listing" links broken

https://standards.ieee.org/products-programs/regauth/

FerC10110 avatar Aug 05 '22 16:08 FerC10110

"Download Public Listing" links broken

https://standards.ieee.org/products-programs/regauth/

or blocked my ip

FerC10110 avatar Aug 05 '22 16:08 FerC10110

Seems not working here either. But in the current update_vendors.sh they work? https://standards-oui.ieee.org/iab/iab.csv

ogghi avatar Oct 11 '22 11:10 ogghi

Please update the curl links to use -LO to follow redirections

sudo curl $1 -# -LO http://standards-oui.ieee.org/iab/iab.csv sudo curl $1 -# -LO http://standards-oui.ieee.org/iab/iab.txt

sudo curl $1 -# -LO http://standards-oui.ieee.org/oui28/mam.csv sudo curl $1 -# -LO http://standards-oui.ieee.org/oui28/mam.txt

sudo curl $1 -# -LO http://standards-oui.ieee.org/oui36/oui36.csv sudo curl $1 -# -LO http://standards-oui.ieee.org/oui36/oui36.txt

sudo curl $1 -# -LO http://standards-oui.ieee.org/oui/oui.csv sudo curl $1 -# -LO http://standards-oui.ieee.org/oui/oui.txt

https://askubuntu.com/questions/1036484/curl-o-stores-an-empty-file-though-wget-works-well

dougie23fresh avatar Mar 17 '23 21:03 dougie23fresh

Last comment works. But I think it would be better to reference the https-links here:

sudo curl $1 -# -LO https://standards-oui.ieee.org/iab/iab.csv
sudo curl $1 -# -LO https://standards-oui.ieee.org/iab/iab.txt

sudo curl $1 -# -LO https://standards-oui.ieee.org/oui28/mam.csv
sudo curl $1 -# -LO https://standards-oui.ieee.org/oui28/mam.txt

sudo curl $1 -# -LO https://standards-oui.ieee.org/oui36/oui36.csv
sudo curl $1 -# -LO https://standards-oui.ieee.org/oui36/oui36.txt

sudo curl $1 -# -LO https://standards-oui.ieee.org/oui/oui.csv
sudo curl $1 -# -LO https://standards-oui.ieee.org/oui/oui.txt

reneknuvers avatar Jun 04 '23 20:06 reneknuvers

If you want to have things fixed or added, you should switch to one of the forks. The main project has not been maintained for over 2 years. For example: https://github.com/leiweibau/Pi.Alert https://github.com/jokob-sk/Pi.Alert

jokob-sk avatar Jun 04 '23 20:06 jokob-sk