10-08-2018 06:55 AM - edited 03-08-2019 04:19 PM
My organization is deploying some new 9407 switches for campus access, and one feature I've been looking at is using auto smart ports to set the ports for different settings, depending on what gets plugged in.
One of my challenges is that we are using a non-Cisco vendor for desktop switches that a user may have at their desk. While I can do detection based upon the MAC address, I'd much rather take advantage of LLDP as a more reliable means of detection, especially if the use of these small switches extends beyond the pilot.
I came across a document, "Auto Smartport with Custom Trigger", which led me to find the dc_default_profiles.txt. This looks like the file I would need to either modify or augment in order to use this kind of detection. Unfortunately, there is no clear documentation on how the file is structured, or how it can be updated / replaced.
Of course, the header contains this:
# ------------------------------------------------------------------ # Profile, Rules and check definition for the IOS rule engine # Copyright (c) 2010-2013, 2017 by Cisco Systems, Inc. # All rights reserved. # **** THIS FILE IS AUTO-GENERATED FROM XML FILE - DO NOT EDIT ***** # ------------------------------------------------------------------
It appears there are a few sections:
Now here's my problem. There is no documentation to either add to, augment, or whatnot. Since authentication is not required on a per-port basis, it doesn't seem sensible to deploy something like ISE.
Does anyone have suggestions?
10-09-2018 05:37 AM - edited 10-09-2018 06:25 AM
you can start with
show macro auto monitor type string < your selection>
to check if your vendor device is al ready present?
in later release called "device classifier"
10-09-2018 06:05 AM
btw the file you reference is IOS version dependent and is overwritten on ios-upgrade.
The default profiles are updated as part of the Cisco IOS archive download.
is it sufficient to run the macro based on vendor id in the mac-address?
look at the end of: On-Box Automation and Operations Tools
10-09-2018 08:08 AM
10-10-2018 12:15 AM - edited 10-10-2018 12:18 AM
did you try the commands I suggested to check if your vendor is al ready known in the list?
show macro auto monitor type string < your selection>
show device classifier profile type <keyword>
if so you need not modify the profiles but only need to add a custom trigger and macro suitable for your needs
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide