cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
779
Views
5
Helpful
2
Replies

Looking for uptime from ACI nodes from API

3bruno
Beginner
Beginner

Hi all.

 

How can I get the uptime from Cisco ACI Nodes (APIC, Leaf and Spine) from API?

 

Thank you.

1 Accepted Solution

Accepted Solutions

Sergiu.Daniluk
VIP Advisor VIP Advisor
VIP Advisor

Hi @3bruno 

You can send a GET for each node you are interested in:

https://<APIC-IP>/api/node/mo/topology/pod-<POD-ID>/node-<NODE-ID>.json?query0target=children&target-subtree-class=topSystem

 

Response contains both systemUpTime and lastRebootTime:

Screenshot 2022-05-17 085547.png

 

Stay safe,

Sergiu

View solution in original post

2 Replies 2

Sergiu.Daniluk
VIP Advisor VIP Advisor
VIP Advisor

Hi @3bruno 

You can send a GET for each node you are interested in:

https://<APIC-IP>/api/node/mo/topology/pod-<POD-ID>/node-<NODE-ID>.json?query0target=children&target-subtree-class=topSystem

 

Response contains both systemUpTime and lastRebootTime:

Screenshot 2022-05-17 085547.png

 

Stay safe,

Sergiu

Thank you Sergiu. 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers