Skip to content

Add or Update MAC address #3063

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

Closed
guif opened this issue Jul 1, 2020 · 5 comments
Closed

Add or Update MAC address #3063

guif opened this issue Jul 1, 2020 · 5 comments

Comments

@guif
Copy link

guif commented Jul 1, 2020

Hi ,

Where can I force it to add or update the MAC address on all devices?
Is it needed to enable a certain feature?

Inside settings I didn't found anything related with arp command

Thanks!

@oraclesod
Copy link

Yeah im trying to find how to do this too, there is an SMNP ARP scan, so why does this not update the MAC address on active IP's ?

@nbartokos
Copy link

Hello,
take a look at following thread. I've changed the code to store the mac-addresses on every snmp-arp-update scan.
#2378

@guif
Copy link
Author

guif commented Aug 20, 2020

Hi!

Error 500 If I put inside functions/classes/class.Scan.php:

public function ping_update_mac($ip, $mac) {
try { $this->Database->updateObject("ipaddresses", array("id"=>$id, "mac"=>$mac), "id"); }
catch (Exception $e) {
!$this->debugging ? : $this->Result->show("danger", $e->getMessage(), false);
!$this->debugging ? : $this->Log->write ("status_update", _('Failed to update mac address'), 0);
}
}

if I remove "public" IPAM is ok.
There's any way to force to update mac?

@clearnetworx
Copy link

I added this code from another post and had to change $ip to $id for the updates to work.

@Daelalus
Copy link

Solved in the last version

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

6 participants