Sample Configuration File

Here is a sample configuration file (some optional parameters are at default values and were included for clarity):

<!-- **** VIRTUAL SERIAL PORT DRIVER FOR LINUX (VSPDL) CONFIGURATION FILE **** -->

<vspdconfig>

<!-- ==================== GENERAL CONFIGURATION ==================== -->

&lt;!-- Root directory for the daemon --&gt;

&lt;root dir="\/usr\/local\/vsp"\/&gt;



&lt;!-- Path and prefix for device files --&gt;

&lt;devprefix value="\/dev\/vsp\/vspd"\/&gt;



&lt;!-- Host to bind by default --&gt;

&lt;bind host="192.168.100.40"\/&gt;



&lt;!-- Timeout for basic I\/O operations --&gt;

&lt;timeout exec="100" priority="10"\/&gt;



&lt;!-- VSPdaemon event logging configuration --&gt;

&lt;log type="file" level="EMR" path="var\/vspd.log"\/&gt;

&lt;log type="file" level="ALR" path="var\/vspd.log"\/&gt;

&lt;log type="file" level="CRT" path="var\/vspd.log"\/&gt;

&lt;log type="file" level="ERR" path="var\/vspd.log"\/&gt;

&lt;log type="file" level="WRN" path="var\/vspd.log"\/&gt;

&lt;log type="file" level="NTC" path="var\/vspd.log"\/&gt;

&lt;log type="file" level="INF" path="var\/vspd.log"\/&gt;

<!-- ======= CONFIGURATION OF INDIVIDUAL VIRTUAL SERIAL PORTS (VSPs) ======= -->

&lt;!-- ==================== VSP0 CONFIGURATION ==================== --&gt;



&lt;!-- VSP number --&gt;

&lt;vsp num="0"&gt;



    &lt;!-- HOST AND PORT TO BIND --&gt;

    &lt;bind host="192.168.100.40" port="3500"\/&gt;



    &lt;!-- Connection parameters --&gt;

    &lt;connection rmode="server\/client" proto="tcp" conmode="ondata" timeout="2" onthefly="outofband" clogin="pwd" dlogin="pwd"\/&gt;



    &lt;!-- Destination device parameters --&gt;

    &lt;destination ip="192.168.100.90" port="1001" cport="32767"\/&gt;



    &lt;!-- Outbound packet generation options --&gt;

    &lt;packets maxlen="255" maxdelay="0" starton="any"\/&gt;



    &lt;!-- Event logging configuration for this VSP --&gt;

     &lt;log type="file" level="EMR" path="var\/vspd.log"\/&gt;

     &lt;log type="file" level="ALR" path="var\/vspd.log"\/&gt;

     &lt;log type="file" level="CRT" path="var\/vspd.log"\/&gt;

     &lt;log type="file" level="ERR" path="var\/vspd.log"\/&gt;

     &lt;log type="file" level="WRN" path="var\/vspd.log"\/&gt;

     &lt;log type="file" level="NTC" path="var\/vspd.log"\/&gt;

     &lt;log type="file" level="INF" path="var\/vspd.log"\/&gt;



&lt;\/vsp&gt;

&lt;!-- ===================== END OF VSP0 CONFIGURATION ==================== --&gt;

</vspdconfig>

<!-- **** END OF VIRTUAL SERIAL PORT DRIVER FOR LINUX (VSPDL) CONFIGURATION FILE **** -->