Back to series

An easy way to load test a RightFax server is by using embedded codes and a batch file.
Download the sample Embedded_Code and batch file

SETTING THE BATCH FILE

Here is the sample batch file:

echo off
REM "change i=0" to the number of faxes you want to send. SET /a i=100 for 100 test faxes
REM "change the \rightfaxserverhpfax to the name of your RightFax server"
SET /a i=0
:loop
IF %i%==10 GOTO END
echo Sending fax number %i%.
copy testfax.txt \rightfaxserverhpfax
SET /a i=%i%+1
GOTO LOOP
:end
echo That is it!

To set the number of test faxes - change the SET /a i=0 to the number of number of faxes you want to send.  For 100 test faxes use "SET /a i=100"

SENDING THE FILE

Next you will need to edit the TESTFAX.TXT to send what type of file you want to send. This is a simple 1 page embedded code file.

<TONAME:Fax Load Test>
<TOFAXNUM:999-9999>
<WHO:LOADTEST>
<NOCOVER>
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
THIS IS A TEST FAX
<BREAK>

Change the <WHO:LOADTEST> to match the FaxUtil user you want to send the faxes from.  To use the Administrator account use "<WHO:ADMINISTRATOR>"

To send an attachment instead of a text page, use <ADDDOC:\serversharefilename.pdf>

<TONAME:Fax Load Test>
<TOFAXNUM:999-9999>

<WHO:LOADTEST>
<ADDDOC:\serversharefilename.pdf>
<BREAK>

You will need to make sure the RightFax Service Account has access to the \serversharefilename that you are attaching. If the service account does not have access, the faxes will not be sent.

SENDING TEST FAXES

To send the text faxes, you simply need to run the batch file.

If your test is successful you will see "1 file(s) copied.

C:embedded_code_test>echo off
Sending fax number 0.
 1 file(s) copied.
Sending fax number 1.
 1 file(s) copied.
Sending fax number 2.
 1 file(s) copied.
Sending fax number 3.
 1 file(s) copied.
Sending fax number 4.
 1 file(s) copied.
Sending fax number 5.
 1 file(s) copied.
Sending fax number 6.
 1 file(s) copied.
Sending fax number 7.
 1 file(s) copied.
Sending fax number 8.
 1 file(s) copied.
Sending fax number 9.
 1 file(s) copied.
That's it!
C:embedded_code_test>

If you have a bunch of faxes with "INFORMATION INCOMPLETE" edit your embedded code file and make sure you don't have any spaces or blank lines after the last embedded code.

Information_Incomplete

 

 

 

 

 

 

 

You can also schedule the task using TASK SCHEDULER on the server to submit faxes every 5 minutes, 1 hour, etc. This will enable you to consistently and unattended send a large load of faxes to the RightFax server.

LoadTestingSchedule