Oct 162012
 

I recently wanted to disable fast polling for all the devices that had fast polling. After I couldn’t find a way to easily to do it in the GUI, I turned to the command line to do it.

The following command will find all devices that have fast polling enabled, and then set the polling to normal.

nhListElements.bat -where "pollRate matches fast" | nhModify Elements -fieldName pollRate -value Normal

Share
Jul 042012
 

I recently stuffed up a NPC install, so I had to reinstall from scratch. However I neglected to remove the eHealth instance as a data source before I wiped NPC. When I tried to add eHealth as a data source again, I would get this error –
Unable to add eHealth as data souce - associated to another instance

After some searching, I found this command which fixed it for me.
These commands need to be run on the eHealth Host.
*note* If you’re using windows, type in “bash” before you run the command.
$NH_HOME/bin/sys/nhisql "delete from nh_metadata where subject_area='NPC'"

Share