Log MAC Address of devices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2024 12:50 AM
Greetings all,
I have a Catalyst 9200 Switch.
Would it be possible to immediately send to a Syslog server of MAC addresses of devices whenever they plug into any of the switch ports?
I understand this is possible via SNMP traps but is it possible via logging method? Thanks.
- Labels:
-
Catalyst 9000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2024 01:20 AM
SNMP trap is best way to do it, you can just create on remote syslog server listed SNMP traps and do post usage what ever you like to do based on the message.
Other option is dump all MAC address table and redirect to syslog, this is bit of work, so suggest SNMP trap.
check my other suggestion :
https://community.cisco.com/t5/switching/mac-address-to-log/td-p/4585486
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 07:46 PM
@balaji.bandi wrote:SNMP trap is best way to do it, you can just create on remote syslog server listed SNMP traps and do post usage what ever you like to do based on the message.
Other option is dump all MAC address table and redirect to syslog, this is bit of work, so suggest SNMP trap.
check my other suggestion :
https://community.cisco.com/t5/switching/mac-address-to-log/td-p/4585486
Hi, I would like to share my solution
Event manager applet Mac_Address
Event syslog msg pattern "%LINK-3-UPDOWN"
action 1.0 info type SNMP oid 1.3.6.1.4.1.9.9.215.1.1.8.1.1 get-type next
action 2.0 syslog msg ": $_info_snmp_value"
Not sure if there are any flaws implementing this, pls let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 11:37 PM
logging event link-status <<- this generate Log for Link UP/Down
NOW the log message have level 3 and 5
also the logging show only to what you config i.e. logging console/terminal or host
last think sometimes you need
terminal monitor to see logging message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 11:46 PM
is your environment AAA based then you need to configure ignore that AAa config, if not test and let us know anything not working.
