cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
258
Views
0
Helpful
1
Replies

Cisco DNAC - Get Network Device by IP

Netmart
Level 1
Level 1

Hello,

I was wondering, whether it is possible to pull also the IP address in addition to hostname, pltaformID, sofwareType, and Version

 

Excerpt URL:

dnac = {
        "host": host,
        "port": 443,
        "username": username,
        "password": password
}
:

url = "https://{}/dna/intent/api/v1/network-device/4501/500".format(dnac['host'])

 

Please advise.

Thanks

 

1 Accepted Solution

Accepted Solutions

Netmart
Level 1
Level 1

Ok, I was able to solve my problem.

All, it needs to be done is to add the parameter "managementIpAddress", which is already part of the DNAC OpertionID getDeviceList.

source: https://developer.cisco.com/docs/dna-center/#!get-device-list

Extract:

dnac_devices = PrettyTable(['Hostname', 'managementIpAddress', 'Platform Id','Software Type','Software Version', 'Up Time' ])

View solution in original post

1 Reply 1

Netmart
Level 1
Level 1

Ok, I was able to solve my problem.

All, it needs to be done is to add the parameter "managementIpAddress", which is already part of the DNAC OpertionID getDeviceList.

source: https://developer.cisco.com/docs/dna-center/#!get-device-list

Extract:

dnac_devices = PrettyTable(['Hostname', 'managementIpAddress', 'Platform Id','Software Type','Software Version', 'Up Time' ])