Skip to content

Instantly share code, notes, and snippets.

@bandrel
Created January 27, 2017 20:50
Show Gist options
  • Save bandrel/b9dcc64628fc9dff8fd1c9d476bf0506 to your computer and use it in GitHub Desktop.
Save bandrel/b9dcc64628fc9dff8fd1c9d476bf0506 to your computer and use it in GitHub Desktop.
eem script for updating port description using CDP
event manager applet update-port-description
event neighbor-discovery interface regexp GigabitEthernet0/.* cdp add
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 "description $_nd_cdp_entry_name:$_nd_port_id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment