Sample Configuration File

Top  Previous  Next

 

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 ==================== -->

 

   <!-- Root directory for the daemon -->

   <root dir="/usr/local/vsp"/>

 

   <!-- Path and prefix for device files -->

   <devprefix value="/dev/vsp/vspd"/>

 

   <!-- Host to bind by default -->

   <bind host="192.168.100.40"/>

 

   <!-- Timeout for basic I/O operations -->

   <timeout exec="100" priority="10"/>

 

   <!-- VSPdaemon event logging configuration -->

   <log type="file" level="EMR" path="var/vspd.log"/>

   <log type="file" level="ALR" path="var/vspd.log"/>

   <log type="file" level="CRT" path="var/vspd.log"/>

   <log type="file" level="ERR" path="var/vspd.log"/>

   <log type="file" level="WRN" path="var/vspd.log"/>

   <log type="file" level="NTC" path="var/vspd.log"/>

   <log type="file" level="INF" path="var/vspd.log"/>

 

 

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

 

   <!-- ==================== VSP0 CONFIGURATION ==================== -->

 

   <!-- VSP number -->

   <vsp num="0">

 

       <!-- HOST AND PORT TO BIND -->

       <bind host="192.168.100.40" port="3500"/>

 

       <!-- Connection parameters -->

       <connection rmode="server/client" proto="tcp" conmode="ondata" timeout="2" onthefly="outofband" clogin="pwd" dlogin="pwd"/>

 

       <!-- Destination device parameters -->

       <destination ip="192.168.100.90" port="1001" cport="32767"/>

 

       <!-- Outbound packet generation options -->

       <packets maxlen="255" maxdelay="0" starton="any"/>

 

       <!-- Event logging configuration for this VSP -->

        <log type="file" level="EMR" path="var/vspd.log"/>

        <log type="file" level="ALR" path="var/vspd.log"/>

        <log type="file" level="CRT" path="var/vspd.log"/>

        <log type="file" level="ERR" path="var/vspd.log"/>

        <log type="file" level="WRN" path="var/vspd.log"/>

        <log type="file" level="NTC" path="var/vspd.log"/>

        <log type="file" level="INF" path="var/vspd.log"/>

 

   </vsp>

   <!-- ===================== END OF VSP0 CONFIGURATION ==================== -->

 

</vspdconfig>

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