• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

How to Determine Device Presence and Last Communication Value in ControlUp Edge DX

Posted on March 22, 2023

A user asked about EdgeDX API, looking for a best Index to use and if an API request should be sent for each device. It was suggested to use the (hidden) _devices index and take inspiration from the Edge UI, which can be accessed by pressing F12. Lastly, using the Get-EdgeDXIndexData with a maxrecord of 10000 was suggested which would retrieve all the records.


Read the entire ‘Getting the Most from EdgeDX API’ thread below:

Question about the EdgeDX API:

I’m busy with creating a device cross reference script between AD (Source) MECM EdgeDX to see which devices we are missing in each tool.

What Index would be the best to use to know if a device is present in EdgeDX AND what the ‘Last Communication’ value is.


You probably want the device_status index.


Fabian! Thats been a while!

And agree with Landon. The Last Communication value is not actually there, but you can see when the records were created, which will achieve the same.


The index is updated once per minute so the last communication should be the latest event in the index.


I guess you just said that, just a little different. lol@member Really a loooong time ago 🙂


Just looked it up, 15 years… And now @member is going to come in and say Please stay on topic and keep chat in #chitchat 😁


I have like 6000 devices to check, should i send an API request for each device? If the device exists i get like 1500 records back from device_status for 1 device


don’t use device_status. Use the (hidden) _devices index.

“`$tenant = "https://acmeorg.sip.controlup.com"

$URL = $tenant + "/api/data/_devices"

$devices = Invoke-RestMethod -Method Get -Uri $URL -WebSession $session“`



Doh, forgot about the hidden indexes. @member you The Man!


Well that makes it much simpler!


Looks like it! Going to try! let you guys know!

Thanks for the advise so far!


When in doubt, steal what the Edge UI does.

I mean.. take inspiration from


F12 is your friend…


THAT was exactly what i was looking for! Thank you @member

I will fetch all EdgeDX devices and compare them locally, perfect!


Remember it is still limited to 5000 resutls (per page?) so you may need to do some paging depending on how many devices you have


With the Get-EdgeDXIndexData -maxrecord 10000 i get them all


don’t use the ps module to extract data, the pagination is broken you will just get the same data twice


more exact: don’t use it at all

Continue reading and comment on the thread ‘How to Determine Device Presence and Last Communication Value in ControlUp Edge DX’.  Not a member? Join Here!


Categories: All Archives, ControlUp for Desktops, ControlUp Scripts & Triggers
Topics: Microsoft, Microsoft Active Directory, Physical Desktops, Scripts

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..