05-18-2018 02:19 AM - edited 02-21-2020 10:56 AM
Hi
Is it possible for ISE to rename a port after a device has successfully finished a dot1x authentication? I'd like to be able to pull the hostname of the device and put it on the port description and then have it change back to a generic port description when a device hasn't authenticated. How would I go about doing this? I assume i'm going to have to do something with EPM to pull the hostname from somewhere?
I've seen rm-port-description on our 2960Xs radius attributes but don't see the same option on ISE on the authorization results.
Thanks
05-18-2018 05:52 AM
I do not think the ISE can configure the description on the switch, but it should be able to send the hostname using aaa:supplicant-name AV-Pairs attribute.
Then you would need to have some sort of script in place to monitor the interface, grab the supplicant-name (trickiest thing) and write it as description.
I found this macro in the following post, but it does not seem to work:
If you want to have the description configure so you can issue show int description and see who is connected to the interface then you may consider using show int users.
https://bst.cloudapps.cisco.com/bugsearch/bug/CSCuz16631/?rfs=iqvred
HTH
Bogdan
05-18-2018 06:29 AM
05-18-2018 06:48 AM
If you ca use a command to see the hostamane you could use a EEM script like this one (I haven't actually tested it so you might need to adapt it):
event manager applet add_port_descr
event identity interface regexp GigabitEthernet.* authz all athuz-complete
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "interface $_nd_local_intf_name"
action 4.0 cli command "do show auth sess int $_nd_local_intf_name | include User-Name"
action 5.0 cli command "description $_cli_result"
should write a description 'User-Name: host/hostname.domain'
HTH
Bogdan
05-18-2018 07:03 AM
Thanks for this. Unfortunately we're using 2960X which as far as I can see don't support the EEM scripting? The only way I can see it working is if we use an auto-smart-port macro.
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