A network engineer wants to automate the deployment of a new VLAN across all Cisco Nexus switches in a data center using Python scripts. Which tool is most appropriate for this task?
Trap 1: SSH CLI commands via Paramiko
While possible, it's less efficient than NX-API for automation.
Trap 2: Ansible playbook
Ansible is a separate automation tool, not a Python script tool.
Trap 3: SNMP SET commands
SNMP is not designed for configuration deployment.
- A
Cisco NX-API with Python requests
NX-API provides RESTful API for direct configuration via Python.
- B
SSH CLI commands via Paramiko
Why wrong: While possible, it's less efficient than NX-API for automation.
- C
Ansible playbook
Why wrong: Ansible is a separate automation tool, not a Python script tool.
- D
SNMP SET commands
Why wrong: SNMP is not designed for configuration deployment.