Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Intersight Automation

Overview

This section covers how to automate Cisco Intersight. We will be running scripts and configurations against the Cisco Intersight - Manage Infrastructure from the Cloud v1 pod on Cisco dCloud.

Installation

Clone and Install Dependencies

Follow the instructions on the main landing page of this repo to clone it and install dependencies.

Change into this directory:

cd https://github.com/xanderstevenson/data-center-development/intersight

Install the Intersight library

pip install intersight

Claim dCloud Intersight Pod and API Keys

Go to Cisco Intersight - Manage Infrastructure from the Cloud v1 on Cisco dCloud

Click View and then Go to Intersight

image

From the top menu, choose System

image

Choose Generate API Key > version 3 (giving it any name and expiration > copy and save the API Key ID and download the Secret Key.

Copy the Secret key from your Downloads to this dir (data-center-development/intersight)

Prepare for Authentication

Export the API Key and Secret Key in the authenticate.py file like so (be sure you're in your virtual environment):

Linux/Mac

export intersight_api_key="<your api key>"
export intersight_api_key_file="../<your secret key>.txt"

Windows

set intersight_api_key=<your api key>
set intersight_api_key_file=..\<your secret key>.txt