cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
156
Views
0
Helpful
1
Replies
Highlighted
Beginner

Automated Intersight Device Claim ot worki

Hello All,

 

I am trying to work on python automation for intersight device claim, mentioned in this cisco document :

https://community.cisco.com/t5/data-center-documents/automated-intersight-device-claim/ta-p/3652214

 

my intersight_api_param.jason file looks something like this :

{

"api_base_uri": "https://intersight.com/api/v1",

    "api_key_id": "Key",

    "api_private_key_file": "PATH"

 

}

 

My devices.json looks something like this :

 

{

        "device_type": "ucsm",

        "hostname":"10.20.1.161",

        "password": "Cisco123",

        "username": "admin",

        "read_only": true

}

 

 

I am getting this error :

 

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='10.20.1.161', port=443): Max retries exceeded with url: /nuova (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffb654961c0>: Failed to establish a new connection: [Errno 60] Operation timed out'))

 

 

I do not have any proxy in my environment,  did anyone get the same error ?

 

Thanks in advance !!

1 REPLY 1
Highlighted
VIP Engager

HI,

Just for your information, you created a Blog post. When you have questions, you need to ask them in the appropriate section. For example, on the intersight, there is this dedicated subsection: https://community.cisco.com/t5/cisco-intersight/bd-p/5871j-discussions-intersight

EDIT: looks like an admin moved your post to the Intersight subsection.

 

Regarding the problem you have, can you verify if the access to XML API works?

curl -d "<aaaLogin inName='admin' inPassword='password'></aaaLogin>" http://10.20.1.161/nuova

If HTTPS is enabled, you must use HTTPS in the cURL command:

curl -d "<aaaLogin inName='admin' inPassword='password'></aaaLogin>" https://10.20.1.161/nuova

Cheers,

Sergiu

This widget could not be displayed.