• Welcome to SAIL Community Supported PBX . Please login or sign up.
 
May 03, 2024, 06:26:43 AM

News:

SMF updated to 2.0


Invalid MAC address

Started by sysadmin, December 13, 2021, 05:01:11 PM

Previous topic - Next topic

sysadmin

December 13, 2021, 05:01:11 PM Last Edit: December 16, 2021, 04:59:36 PM by sysadmin
In version 6 systems you may encounter the above message when adding a new extension.   The cause is a URL change in the location of the wireshark public mainufacturers' database.   We are working up a fix in source but it will take a few days.  In the meantime here is a module fix you can apply directly to your system.

The module which fetches the manufacturers database is

/opt/sark/scripts/getmaclist.sh

Replace the module with this one

#!/bin/sh
# get a list of macs amd manufacturers
#

[ ! -e /opt/sark/www/sark-common/manuf.txt ]  && touch /opt/sark/www/sark-common/manuf.txt
chown www-data:www-data /opt/sark/www/sark-common/manuf.txt
curl -L -s "https://gitlab.com/wireshark/wireshark/-/raw/master/manuf" > /tmp/manuf.txt
if [ -s /tmp/manuf.txt ]; then
        diff /opt/sark/www/sark-common/manuf.txt /tmp/manuf.txt
        if [  "$?" -ne "0" ] ; then
                mv /tmp/manuf.txt /opt/sark/www/sark-common/manuf.txt
                logger SARKgetmaclist - updated manufacturer MAC DB
        else
                logger SARKgetmaclist - manufacturer MAC DB up to date
        fi
else
        logger SARKgetmaclist - **** Could not fetch new manufacturer MAC DB ****
fi

This module gets run every Sunday at 00:00 hours so it will self heal if you leave it to its own devices.  However, you can prime it by simply running the module.

sudo sh /opt/sark/scripts/getmaclist.sh
     

sysadmin

This issue was fixed in sail_6.2.0-22.  It is not yet on the distro library but you can fetch and install it manually from Github here

https://github.com/aelintra/sail6