Skip to content

Commit 94f3fbf

Browse files
committed
Configure AireOS WLC with a config file
1 parent c6a753c commit 94f3fbf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

wlc_conf.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from netmiko import ConnectHandler
2+
import sys
3+
import time
4+
import paramiko
5+
6+
platform = 'cisco_wlc'
7+
username = 'user' # edit to reflect
8+
password = 'password' # edit to reflect
9+
10+
ip_add_file = open(r'/home/user/ipadd.txt','r') # a simple list of IP addresses you want to connect to each one on a new line
11+
12+
for host in ip_add_file:
13+
host = host.strip()
14+
device = ConnectHandler(device_type=platform, ip=host, username=username, password=password)
15+
output = device.send_config_from_file('/home/user/wlc_conf.txt')

0 commit comments

Comments
 (0)