Snmp retrieve mac address table

However, since devices are not removed until they time out, this is less effective for device tracker integration page than desirable.

10 Replies

It is recommended to use Ping or Nmap instead. To use the SNMP version 1 or 2c platform in your installation, add the following to your configuration. Example of SNMPv3 configuration:.

Most devices have a default community set to public with read-only permission which is sufficient. See the device tracker integration page for instructions how to configure the people to be tracked. SNMP uses a tree-like hierarchy where each node is an object, and is mainly supported by network-oriented devices such as routers, modems and printers.

To enable this sensor in your installation, add the following to your configuration.

Version 2c or higher is needed to read data from bit counters. This allows the sensor to be initialized properly even if, for example, your printer is not on when you start Home Assistant. If not set, the sensor will have value unknown in case of errors. OIDs may vary on different systems because they are vendor-specific.

21 Network Management and SNMP — An Introduction to Computer Networks, edition

As an example, the following OIDs are for the load of a Linux system. I apologize in advance for the length of this answer I wish polling with SNMP wasn't as complicated If you really want the mac-address table from the switch, then remember you have to change the community string you poll with In my example below, the switch at To translate that into a normal interface name, you have to map that to an ifName If you're not sure which vlans to poll on a switch, you can get that information from.

Keep in mind that Vlans are internal Cisco Vlans that you should not poll.


  • How to get the ARP and MAC address table via SNMP on Edgecore switch ?.
  • convertitore youtube mp3 mac online;
  • mac prep and primer adjust review.
  • best free pc games for mac!
  • best blu ray ripper for mac review?

As you see above, you can use cat in linux to get all output from a text file. NOTE: Some linux distributions ahem You should use your HOME directory in linux to store the file. Thank you for your interest in this question.

Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site the association bonus does not count. Would you like to answer one of these unanswered questions instead?

Documenting a Network 101

Home Questions Tags Users Unanswered. Asked 6 years, 2 months ago. Active 2 years, 1 month ago.

Get latest updates about Open Source Projects, Conferences and News.

Viewed 66k times. My problem is that I don't know where exactly to run the command, or save the output to a file.

Hi, adding information to a database is off-topic Super User is a good place to ask if you need help modifying a database. If you don't mind deleting that portion of the question, we can reopen it.

admin