Managed Devices
Imports
from aos.client import AosClient
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
from aos.resources import Range
You will need to update the connection details below with your specific AOS instance
Login
Install System Agents
devices = [
{"name": "Spine1", "ip": "192.168.0.90"},
{"name": "Spine2", "ip": "192.168.0.91"},
{"name": "Leaf1", "ip": "192.168.0.100"},
{"name": "Leaf2", "ip": "192.168.0.101"},
{"name": "Leaf3", "ip": "192.168.0.102"},
]
for d in devices:
aos.devices.system_agents.create(
management_ip=d["ip"],
label=d["name"],
username="admin",
password="admin"
)