Heartbeat Stop and Start Scripts Terminate Early When Run from the Command Line



This Knowledgebase article provides information about running a Neverfail Start or Stop script from the command line.

More Information

When running a Start or Stop script from the command line, the script will fail because 'NfNet' is not recognized as an internal or external command.

To allow successful execution of the script, add the Neverfail bin directory to the windows path variable. Alternatively, execute the script from the neverfail\r2\bin directory e.g. c:\neverfail\r2\bin>...\scripts\exchange\stop.bat.

Substitute the Neverfail Heartbeat install location at step 4 to reflect the correct location for the \R2\bin directory:

  1. On the desktop, right-click 'My Computer' and then select 'Properties'.
  2. Click on the 'Advanced' tab
  3. Select 'Environment Variables'.
  4. Under System Variables (lower half of the box), highlight the path and click on Edit . At the end of the line, enter 'C\Neverfail\R2\bin' (without the quotes).
  5. Click OK to exit each screen navigating back to the desktop.
    6. Go to Start -> Run . Type CMD and click OK (to open command prompt).
    7. Type Path, and press ENTER . You should see that the C:\Neverfail\R2\bin (or its equivalent) has been appended to the end of the line
    8. Now type Exit to close the command prompt.

    Note: This issue does not affect the execution of the scripts from within the Neverfail Heartbeat Management Client.

Applies To

All Versions

Related Information



0 out of 0 found this helpful



Please sign in to leave a comment.