D
D
Denis Sechin2017-11-01 17:27:22
Computer networks
Denis Sechin, 2017-11-01 17:27:22

Mac addresses on switch port?

There is a Linksys SRW224G4 switch, unifi ap points are connected to its ports, I need to collect mac addresses on each port of the switch, i.e. the number of clients on the access point, nagios is up, snmp is enabled on the switch, how to get this data via snmp? THX

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Michael, 2017-11-02
@ARMADIK

See the snmp thread for Linksys SRW224G4 to see if it can send a MAC on a port. You can also go through snmpwalk to see what it will give out.

S
Someone White, 2017-11-03
@hack_student

Most likely just snmpwalk will not give any specifics. Experience with cisco showed that it is possible to collect poppies by vlans, while its id must be specified in the community via @. There is an article for catalyst https://www.cisco.com/c/ru_ru/support/docs/ip/simp...
Alternatively, use an ssh connection to select addresses on ports:

ssh -i id_rsa host <<'SSHMAC'
sh mac add int gi 0/1
sh mac add int gi 0/2
sh mac add int gi 0/3
sh mac add int gi 0/N
SSHMAC

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question