Skip to content

Instantly share code, notes, and snippets.

@jftuga
Created January 26, 2021 20:50
Enabling Aruba ClearPass on a switch port
@echo off
setlocal
set PORT=%1
if not defined PORT goto ERR
@echo conf t
@echo vlan 1 untag %PORT%
@echo no port-security %PORT%
@echo aaa port-access authenticator %PORT% client-limit 1
@echo aaa port-access authenticator %PORT% tx-period 10
@echo aaa port-access %PORT% auth-order mac-based authenticator
@echo aaa port-access %PORT% auth-priority authenticator mac-based
@echo aaa port-access authenticator %PORT%
@echo aaa port-access mac-based %PORT%
@echo int %PORT% enable
@echo sho mac-address ^| include %PORT%
@echo sho port-access clients ^| include %PORT%
goto END
:ERR
@echo Give PORT on cmd line
goto END
:END
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment