Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendor database no longer updates #150

Open
b-m-e opened this issue Mar 27, 2022 · 9 comments
Open

Vendor database no longer updates #150

b-m-e opened this issue Mar 27, 2022 · 9 comments

Comments

@b-m-e
Copy link

b-m-e commented Mar 27, 2022

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
@ch-ris
Copy link

ch-ris commented Apr 18, 2022

I would actually recommend using proper https links instead.

@iamenderst
Copy link

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

@AubreyKloppers
Copy link

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...

@FerC10110
Copy link

"Download Public Listing" links broken

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

@FerC10110
Copy link

"Download Public Listing" links broken

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

or blocked my ip

@ogghi
Copy link

ogghi commented Oct 11, 2022

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

@dougie23fresh
Copy link

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

@reneknuvers
Copy link

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

@jokob-sk
Copy link

jokob-sk commented Jun 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants