PrtgAPI icon indicating copy to clipboard operation
PrtgAPI copied to clipboard

Get more Values from Get-SystemInfo -Type System (-Count not working)

Open m4xr1s opened this issue 1 year ago • 3 comments

What's going on?

Hi, I am trying to export Asset Data from PRTG. Some Devices have a lot of entries that I need in their SystemInformation Data in the System Category.

However I can not export all the entries, since there is the limit of 500 entries for the request. The -Count doesnt seem to work with the Get-SystemInfo Commandlet.

Is there another way to achieve this?

Due Dilligance

  • [X] It wasn't covered by the wiki, I swear!
  • [X] I have tried doing some basic research on this issue but haven't been able to come up with anything. Please help!

m4xr1s avatar Sep 30 '24 15:09 m4xr1s

Is there a way of doing this in the PRTG UI?

lordmilko avatar Oct 01 '24 08:10 lordmilko

Yes it can show up to 1000 entries in the UI From the Browser Console the request looks like this https://FQDN/controls/table.htm?content=sysinfo&category=system&customtitle=%26%23040%3BSystem%26%23041%3B&sortby=_displayname&sortable=true&refreshable=true&columns=key%2C_value&headers=Name%2CWert&varexpand=headers&=1727771088426&id=9532&count=1000

m4xr1s avatar Oct 01 '24 08:10 m4xr1s

Thanks @m4xr1s,

It seems like you can specify a count parameter to do this. PrtgAPI does not support specifying a count when requesting System Info objects. I would need to add support for doing this. Unfortunately however, I have moved on to other projects and am no longer looking to make enhancements to PrtgAPI. If the servers you're trying to query are within your domain, I would recommend using WMI via PowerShell

lordmilko avatar Oct 04 '24 05:10 lordmilko