Skip to main content

how can i get information about device uptime ?

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
}

 


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

 


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 


Reply