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

Looking for uptime from ACI nodes from API

3bruno
Level 1
Level 1

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 Alumni
VIP Alumni

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 Alumni
VIP Alumni

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.