23.5.1   Alarm Notification via 3rd party program

To better control a dial-up connection for alarm notification email, the bwserver.ini can be modified to specify a user program (*.exe, *.bat or other):

 

[UserDefined]

Email_Program=YourProgram.exe

If WebAccess detects this setting, instead of using the default alarm email program, WebAccess will run YourProgram.exe ; YourProgram can be any name and must be in \WebAccess\Node folder.

WebAccess will pass a temp_File name in commandline to YourProgram. YourProgram can make dial-up connection, then run

"BwRunrpt Bwrunscr command_line_from input_program"

to send the alarm email. Your Program will need to disconnect the phone line and reset com port back to normal.

Change Email_Program in BWSERVER.INI

 

1.      Open Explorer.  Right Click Start -> Explore

2. Go to drive:\WebAccess\Node 
(typically C:\WebAccess\Node)

3.      Right Click on bwserver.ini

4.      Select Open with…

5.      Select Notepad.

6.      Typical BWSERVER.INI file looks like:

 

[language]

type=1

 

[nodetype]

type=0

 

[www]

root=d:\inetpub\wwwroot

 

[smtp]

smarthost=mail.yourcompany.com

port=0

 

[port]

web_rpc_port=0

web_socket_port=0

 

[security]

code=remoteaccesscode

 

 

 

7.      Insert the following:

 [UserDefined]

Email_Program=YourProgram.exe.

 

8.        Save the bwserver.ini file

9.   Restart the SCADA Node.