Created
January 26, 2021 20:50
Enabling Aruba ClearPass on a switch port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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