Get information about many devices - DNA Center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2022 05:57 PM
Hi everyone
Someone knows how Can I get information about many switches devices from DNA Center?
Dna Center version = 2.2.3.5
For example I want to execute and get "show cdp neighbors" or "show ip route" and the output in txt o the same console GUI to export.
Thanks for the suggestion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2022 09:20 PM
There are several ways you can accomplish this, here are two examples:
1. Using API Calls
https://developer.cisco.com/docs/dna-center/
2. Using Command Runner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 04:34 AM
Hi
Command runner is easier but incomplete. For example, show cdp is not an option:
API is probably a better option but never tested for this porpuse and for different porpuse I had some problems like information missing. I had some TACs about it.
Conclusion, despite DNAC has potential, it is a incomplete tool. A lot yet to build. Probably coming version will be lot better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 09:35 AM
@Flavio Miranda "show cdp" (and any other show command) will still work even if it's not in that search list. In fact, once you add it manually, it will start to show up in the search field shown in your example.
So this might be suitable for @willytech007 as there is a convenient export option from command runner, but if the commands need to be run routinely and the list of devices is sizeable, I think API is the way to go. (You can use the /network-device-poller/cli/read-request to programmatically execute command runner). That way you don't have to manually enter the list of devices each time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 04:07 PM
Thank you for you advice, I'm testing that options.
