This document will explain how to a get a total device count of what's in your eHealth configuration.
Often is the case where your element configuration exceeds the total supported configuration for your OS flavor. Or you simply need a nicely formatted output of all your devices currently in eHealth.
Download and extract this file to your eHealth system while logged in as the $NH_USER: eHealth Device Counting.zip
The script is run with no arguments. It will output to stdout comma separated output suitable for importing into excel. There is a single header row specifying the column names, and each row after that represents a device. For each device, the device key, name, sysName, ip address, number of ports/interfaces, and whether the device uses QoS. Only devices that have at least one unretired and polling enabled element are emitted. When counting interfaces for a device, only interfaces that are polling enabled and unretired are counted.
Usage / Examples Options:
- Output to STDOUT:
- To get a quick device count, you can just run it this way:
$ ./nhsPrintDevices.sh |wc -l
- To redirect to a file for import into excel: