09-16-2019 07:29 AM - edited 09-16-2019 07:39 AM
Hello Everyone,
I was looking the HTTP APIs to manage systems programmatically.
For example, I would like to get below mentioned information using HTTP API:
- List of managed systems, installed packages on them, hardware interfaces connected to them and their status.
On looking Github page for SystemLink, I found some documentation, but they are not working.
By hacking the HTTP frames going out of SystemLink web UI a bit, I found "http://<SystemLinkServer>/nisysmgmt/v1/systems/managed?id=<managed_system_ID>", but the response of this is too vague. I can see the JSON response which gives "packages" and "sysapi".
Somehow I can parse "packages" to get meaning info what I need, but I am struggling to parse "sysapi".
"sysapi": has lot of information within it, basically I want list of interfaces and their status.
Sample HTTP response is attached, if anyone can help me to get this done.
Solved! Go to Solution.
09-16-2019 08:54 AM
The "tag"s returned in the "sysapi" response are enumerated attributes. There's a long list of attributes and definitions can be found on disk when you install LabVIEW but for now let's focus on the two attributes that you asked for.
Based on your request here are some pertinent tags:
Based on these tags it looks like your system has:
Simulated Devices:
Controller:
Physical Devices:
Is this correct?
09-16-2019 09:29 AM
Thanks quick response, this is what I was looking for.
I have LabVIEW installed, on which file I can see those "tag" definitions.
Thanks.
09-16-2019 09:32 AM - edited 09-16-2019 09:33 AM
The nisysapi.rc resource file stores the attribute values as hexidecimal.
I'm working on a quick script to pull in the tag numbers based on the attributes documented here:
http://zone.ni.com/reference/en-XX/help/373107N-01/nisyscfg/property_node_hardware/
Example directory for nisysapi.rc:
"C:\Program Files\National Instruments\LabVIEW 2018\resource\objmgr\nisysapi.rc"
09-16-2019 10:53 AM
Okay here's a csv of Tag numbers -> Property names described at http://zone.ni.com/reference/en-XX/help/373107N-01/nisyscfg/property_node_hardware/
I noticed that there were a few overlaps between the file and the descriptions online and so somethings may be missing and/or inaccurate (I expect something like 6 out of 134 are missing as a result). The ones I posted earlier are represented accurately in my spot check. Instead of a deeper validation, I'll post what I have and let someone reply or create a new thread if the file is inaccurate.