Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.08k stars 549 forks source link

ListDevices with --json param and without group ID does not return power state #6081

Closed geekasso closed 4 months ago

geekasso commented 4 months ago

Is your feature request related to a problem? Please describe. When running "node meshctrl ListDevices --json" (without the group ID), the power state (pwr) is not in the response.

Describe the solution you'd like Include the pwr state in the response

si458 commented 4 months ago

was going to have a look at this tomorrow, did you fix the issue or something mis-configured?

geekasso commented 4 months ago

I'm thinking pwr does not show when the machines are offline. I see the key/value pair once the devices are online.

I was expecting pwr to be false if devices were offline.

On Fri, May 10, 2024, 3:00 PM Simon Smith @.***> wrote:

was going to have a look at this tomorrow, did you fix the issue or something mis-configured?

— Reply to this email directly, view it on GitHub https://github.com/Ylianst/MeshCentral/issues/6081#issuecomment-2105123627, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXXKRFPVFOJJZDJLEBFDW3ZBUKMZAVCNFSM6AAAAABHP4IHV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVGEZDGNRSG4 . You are receiving this because you modified the open/close state.Message ID: @.***>