Cisco Intersight Account Reset Tool
The Cisco Intersight Account Reset Tool is designed to increase the efficiency of developers, engineers, sellers and trainers working with Cisco Intersight by automating the Intersight account reset process.
The Cisco Intersight Account Reset Tool will automatically remove any devices, profiles, policies and/or users created under an Intersight account. By removing the burden of having to manually reset accounts, the Cisco Intersight Account Reset Tool enables more time to be spent on other tasks. For developers and engineers building applications and platforms for Cisco Intersight, the development and testing process of new features is simplified. For sellers and trainers demonstrating the Cisco Intersight product, downtime between customer or student engagements is reduced. The Cisco Intersight Account Reset Tool also has the ability to exempt specified users and devices from the account reset process.
Use of the Cisco Intersight Account Reset Tool is at your own risk and intended for development, testing, demonstration and training environments. Please do not use on production systems
The Cisco Intersight Account Reset Tool can be found on the Cisco DevNet Code Exchange here or directly from GitHub at https://github.com/ugo-emekauwa/intersight-account-reset-tool.
Prerequisites:
- Python 3 installed, which can be downloaded from https://www.python.org/downloads/.
- The Cisco Intersight SDK for Python, which can be installed by running:
pip install git+https://github.com/CiscoUcs/intersight-python.git
More information on the Cisco Intersight SDK for Python can be found at https://github.com/CiscoUcs/intersight-python.
- An API key from your Intersight account. To learn how to generate an API key for your Intersight account, more information can be found at https://intersight.com/help/features#rest_apis.
Getting Started:
- Please ensure that the above prerequisites have been met.
- Download the intersight_account_reset_tool.py file for the Cisco Intersight Account Reset Tool from here on GitHub.
- Edit the intersight_account_reset_tool.py file to set the key_id variable using the following instructions:
- Open the intersight_account_reset_tool.py file in an IDLE or text editor of choice.
- Find the comment "MODULE REQUIREMENT 1".
- Underneath, you will find the variable key_id = "". The variable is currently empty.
- Fill in between the quotes of the key_id variable value with the ID of your API key. For example:
key_id = "5c89885075646127773ec143/5c82fc477577712d3088eb2f/5c8987b17577712d302eaaff"
- Edit the intersight_account_reset_tool.py file to set the key variable using the following instructions:
- Open the intersight_account_reset_tool.py file in an IDLE or text editor of choice.
- Find the comment "MODULE REQUIREMENT 2".
- Underneath, you will find the variable key = "". The variable is currently empty.
- Fill in between the quotes of the key variable value with your system's file path to the SecretKey.txt file for your API key. For example:
key = "C:\\Keys\\Key1\\SecretKey.txt"
- Save the changes you have made to the intersight_account_reset_tool.py file.
- The intersight_account_reset_tool.py file is now ready for use. The file can be ran directly or as a script. See the "Options:" section for information on how to exempt specified users or devices under an Intersight account from the reset process.
Options:
Exemptions
The Cisco Intersight Account Reset Tool provides the ability to exempt specified users and devices from the Intersight account reset process. The following is a list of the exemptions and how to setup each:
Use Cases:
_____________________________________
Ugo Emekauwa
Developer / Technical Solutions Architect
dCloud DCV, DCoE
uemekauw@cisco.com