In this Bite you are going to make an API call to a Cisco Nexus 9k device using the
requestslibrary. We will parse out the returned output for the current NX-OS version.
The call format will be json-rpc with the command type being cli.
The remote device is an always-on lab device provided by Cisco DevNet:
- - Nexus 9000v Host : sbx-nxos-mgmt.cisco.com
- - NXAPI Ports: 443 (HTTPS)
- - Username: admin
- - Password: Admin_1234!
Note: due to the current setup, the SSL
verify=Falsecan be used.
Good luck and code more Python!