cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1438
Views
0
Helpful
4
Replies

ACI: Disable Intersight Device Connector using the REST API

Johannes Luther
Level 4
Level 4

Hi ACI professionals,

I want to disable the Intersight Device Connector using the REST API.

Unfortunately I have no idea what the correct object is. The API inspector does not show any changes when changing the Intersight preferences over the GUI. Furthermore, the right click context menu to open visore is also not available for intersight.

Any idea what the object or DN is for this setting?

4 Replies 4

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Hi @Johannes Luther 

I do not think Intersight is an object in APIC. It seems that APIC connects to the Intersight portal through a Device Connector that is embedded in the management controller of each system. "Device Connector provides a secure way for the connected devices to send information and receive control instructions from the Cisco Intersight portal, using a secure Internet connection."

Cheers,

Sergiu

Robert Burns
Cisco Employee
Cisco Employee

Here's the corresponding Ansible configs.

 - name: Disable dcpolicy
aci_rest:
<<: *aci_login
path: /api/mo/uni/userext/dcpolicy.json
method: post
content:
{ "dcPolicy": { "attributes": { "dn": "uni/userext/dcpolicy", "adminState": "disabled" } }}
delegate_to: localhost

- name: Enable dcpolicy
aci_rest:
<<: *aci_login
path: /api/mo/uni/userext/dcpolicy.json
method: post
content:
{ "dcPolicy": { "attributes": { "dn": "uni/userext/dcpolicy", "adminState": "enabled" } }}
delegate_to: localhost

Robert

Hi @Robert Burns 

The dcPolicy object is not modifying the state of Intersight, at least in my lab. How it looks for me:

apic1# moquery -c dcPolicy
Total Objects shown: 1

# dc.Policy
adminState         : enabled
annotation         : 
childAction        : 
dn                 : uni/userext/dcpolicy
extMngdBy          : 
lcOwn              : local
modTs              : 2020-08-31T18:13:02.744+02:00
name               : 
nameAlias          : 
rn                 : dcpolicy
status             : 
uid                : 0
upgradeAdminState  : disabled

intersight.png

 

Then I used an API call to disable it:

apic1# moquery -c dcPolicy
Total Objects shown: 1

# dc.Policy
adminState         : disabled
annotation         : 
childAction        : 
dn                 : uni/userext/dcpolicy
extMngdBy          : 
lcOwn              : local
modTs              : 2021-01-18T15:33:02.986+02:00
name               : 
nameAlias          : 
rn                 : dcpolicy
status             : 
uid                : 0
upgradeAdminState  : disabled

- nothing changed from UI perspective.

So I then enabled it from GUI:

intersight2.png

But the dcPolicy object is still disabled:

 

apic1# moquery -c dcPolicy
Total Objects shown: 1

# dc.Policy
adminState         : disabled
annotation         : 
childAction        : 
dn                 : uni/userext/dcpolicy
extMngdBy          : 
lcOwn              : local
modTs              : 2021-01-18T15:33:02.986+02:00
name               : 
nameAlias          : 
rn                 : dcpolicy
status             : 
uid                : 0
upgradeAdminState  : disabled

To me it looks like dcPolicy is not related to Intersight.

 

Cheers,

Sergiu

Alexander09
Level 1
Level 1

Hi Johannes,

I can't provide you with the Dn, however take a config snapshot with the intersite plugin enabled, enable it and take another config snapshot and compare both?

This might give you a clue?

 

Cheers

Alexander

 

 

 

 

--
Alexander Deca

Save 25% on Day-2 Operations Add-On License