VSPDL Configuration File (vspd.conf)
Functioning parameters of the VSPDL, and also configurations of individual VSPs are all defined by a single configuration file vspd.conf . The file usually resides at /usr/local/vsp/etc/ . You must be logged in as a superuser to be able to edit this file. Editing can be done with any text editor of your choice.
After the file is edited and changes saved you must "update" driver configuration by using the following command:
/etc/rc.d/init.d/vspd reloadconf
This will make the VSPDL re-read the file and start using new configuration. Configuration can be updated even when the VSPDL is working i.e. some VSPs are opened and in use.
Vspd.conf has the following structure* (see a sample file in the next topic for actual configuration example):
<!-- **** VIRTUAL SERIAL PORT DRIVER FOR LINUX (VSPDL) CONFIGURATION FILE **** -->
< vspdconfig>
<!-- ==================== GENERAL CONFIGURATION ==================== -->
<!-- Root directory for the daemon -->
<[root dir](vspl_general_root)="directory"\/>
<!-- Path and prefix for device files -->
<[devprefix value](vspl_general_devprefix)="value"\/>
<!-- Host to bind by default -->
<[bind host](vspl_general_bind)="IP\_address"\/>
<!-- Timeout for basic I\/O operations -->
<[timeout](vspl_general_timeout) \[ **exec**="exec\( **100**\)"\] \[ **priority**="priority\( **10**\)"\]\/>
<!-- VSPdaemon event logging configuration -->
\[<[log](vspl_general_log) **type**=" **syslog** **|**pipe **|**file" **level**="EMR **|**ALR **|**CRT **|**ERR **|**WRN **|**NTC **|**INF **|**DBG" **path**="path"\/>\]
...
...
\[<[log](vspl_general_log) **type**=" **syslog** **|**pipe **|**file" **level**="EMR **|**ALR **|**CRT **|**ERR **|**WRN **|**NTC **|**INF **|**DBG" **path**="path"\/>\]
<!-- ======= CONFIGURATION OF INDIVIDUAL VIRTUAL SERIAL PORTS (VSPs) ======= -->
<!-- -------------------- VSP0 CONFIGURATION -------------------- -->
<!-- VSP number -->
<[vsp](vspl_port_config) [num](vspl_port_number)="0">
<!-- HOST AND PORT TO BIND -->
<[bind](vspl_port_bind) [host](vspl_port_bind_host)="\[IP\_address\]" [port](vspl_port_bind_port)="port"\/>
<!-- Connection parameters -->
<[connection](vspl_port_connection) \[[rmode](vspl_port_connection_rmode)=" **client** **|**server **|**server\/client"\] \[[proto](vspl_port_connection_proto)=" **udp** **|**tcp"\] \[[conmode](vspl_port_connection_conmode)=" **ondata** **|**immediately"\]
\[[timeout](vspl_port_connection_timeout)="timeout\( **5**\)"\] \[[onthefly](vspl_port_connection_onthefly)=" **outofband** **|**inband **|**disabled"\] \[[clogin](vspl_port_connection_clogin)="pwd"\] \[[dlogin](vspl_port_connection_dlogin)="pwd"\] \/>
<!-- Destination device parameters -->
<[destination](vspl_port_dest) [ip](vspl_port_dest_ip)="IP\_address" **|**[mac](vspl_port_dest_mac)="MAC\_address" \[[port](vspl_port_dest_port)="port\( **1001**\)"\] \[[cport](vspl_port_dest_cport)="cport\( **65535**\)"\] \/>
<!-- Outbound packet generation options -->
<[packets](vspl_port_packets) \[[maxlen](vspl_port_packets_maxlen)="len\( **255**\)"\] \[[maxdelay](vspl_port_packets_maxdelay)="delay\( **0**\)"\] \[[starton](vspl_port_packets_starton)=" **any** **|**char"\] \[[startchar](vspl_port_packets_startchar)="hex"\] \[[stopchar](vspl_port_packets_stopchar)="hex"\] \/>
<!-- Event logging configuration for this VSP -->
\[<[log](vspl_port_log) **type**=" **syslog** **|**pipe **|**file" **level**="EMR **|**ALR **|**CRT **|**ERR **|**WRN **|**NTC **|**INF **|**DBG" **path**="path"\/>\]
...
...
\[<[log](vspl_port_log) **type**=" **syslog** **|**pipe **|**file" **level**="EMR **|**ALR **|**CRT **|**ERR **|**WRN **|**NTC **|**INF **|**DBG" **path**="path"\/>\]
<!-- Data dump section -->
\[<[dump](vspl_port_dump) **port**=" **no** **|**yes" **path**="path"\/>\]
< **\/vsp**>
<!-- -------------------- END OF VSP0 CONFIGURATION -------------------- -->
<!-- -------------------- VSP1 CONFIGURATION -------------------- -->
< **vsp** **num**="1">
...
...
< **\/vsp**>
<!-- -------------------- END OF VSP1 CONFIGURATION -------------------- -->
< /vspdconfig>
<!-- **** END OF VIRTUAL SERIAL PORT DRIVER FOR LINUX (VSPDL) CONFIGURATION FILE **** -->
* Some comments found in the actual vspd.conf that comes with the driver were omitted. Default values for optional parameters are shown in purple