In the $NH_HOME/sys directory, find the file named startup.cfg. Copy it to startup.cfg.polleron and again to startup.cfg.polleroff. Edit startup.cfg.polleroff, comment out all the lines that look like this:
-----------------------------------------------------
program nhiPoller {
restart all # Restart everything so UI is informed
disable $(_isDistributedConsole) # Disable on Dist. Console
}
program nhiPoller {
restart all # Restart everything so UI is informed
arguments "-dlg" # Dialog poller
disable $(_isDistributedConsole) # Disable on Dist. Console
}
program nhiPoller {
restart all # Restart everything so UI is informed
arguments "-import" # Import Poller
disable $(_isDistributedConsole) # Disable on Dist. Console
}
program nhiPoller {
restart all # Restart everything so UI is informed
arguments "-live" # Fast Live Poller
disable $(_isDistributedConsole) # Disable on Dist. Console
}
-----------------------------------------------------
To turn polling on:
nhServer stop
cp startup.cfg.polleron startup.cfg
nhServer start
To turn polling off:
nhServer stop
cp startup.cfg.polleroff startup.cfg
nhServer start
Keep both copies, and they can be switched at will. This can also be made into a batch/shell script file to make the stop, switch, start as needed.