Skip to main content

how can i get information about device uptime ?

  • February 26, 2025
  • 3 replies
  • 74 views

Forum|alt.badge.img+2

how can i get information about device uptime ?

3 replies

AricaFN
Employee
Forum|alt.badge.img+3
  • Employee
  • February 26, 2025

We’ve added system uptime to the data model, and you can access it with the following NQE.

foreach device in network.devices
let system = device.system
select {
deviceName: device.name,
uptimeSeconds: system.uptimeSeconds,
uptime: system.uptime
}

 


Forum|alt.badge.img+2

thanks ​@AricaFN  , i got this information already via NQE , thanks again for the support.

 


davetee
Community Manager
Forum|alt.badge.img
  • Community Manager
  • February 26, 2025

Hi ​@Rohit_809 Kumar - good question. And thanks ​@AricaFN for the data model example. I’m including a couple other examples from the community that may also be helpful:

 

@deronjohnson‘s article which demonstrates the data model 

@AndyL created an NQE that offers more functionality.  

 

@davetee