GH avatar Bite 201. Call a Cisco Nexus 9k device

In this Bite you are going to make an API call to a Cisco Nexus 9k device using the requests library. 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=False can be used.

Good luck and code more Python!

17 out of 18 users completed this Bite.
Will you be Pythonista #18 to crack this Bite?
It takes an average of ~62 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 7.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Buy Now Login and get coding
We use Python 3.7