We have a customer putting a lot of RIO’s into the field and they wanted to get a good bit of information about the each of the RIOs health and well-being back to the central operations center.
Most of the system data they wanted is scattered around in different posts here in the forums, so I have just pulled all those threads together here.
But they also wanted some network data, like WAN IP address of the cell modem, the RIO’s local IP and more importantly, the VPN IP address of each RIO. The other two bits of data that were not here in the forums were the RIOs serial number or firmware version.
@torchard has written some API calls for that in the past, so I had to dig up his old flows and add them in here as well.
Bottom line, here is what I think is a pretty useful slug of info from a RIO (You should be able to - with a few tweaks - get all this from an EPIC if you need).
- CPU (%)
- Memory Used (Kb)
- Drive Space (Gb)
- I/O Board Temperature (F or C)
- Uptime (milliseconds)
- Serial Number
- WAN IP Address
- Host name
- Host IP Address
- VPN IP Address
- Firmware Version
The flow I have posted here does not do anything with the information (beside show it in the debug tab).
This customer is going to send it all back via MQTT / SparkplugB, so I am going to move each string into the string scratchpad area and then use Ignition (they are using RIO-MM2) to publish each index on change (ie, every 15 minutes).
How you work with the data strings is up to you.
I would not run this more than every 15 minutes, there is just no need.
One thing to note about the flow, there is a 10 second delay on the CPU% because every now and then the flow would catch a CPU spike as the flow itself ran, I put the delay node in so we get a true indication of what the RIO is up to when this flow is not running.
The WAN IP address uses my favorite IP address look up https://icanhazip.com
Here is how the flow looks:
The flow is attached the zip file.
riostatus_allofthem.zip (2.6 KB)
If I have missed any status you would like added let me know, or you end up adding some of your own if you are happy to share, please post in this thread.