HP (Hewlett-Packard) M208 Switch User Manual


 
152 USING THE M208’S ADDITIONAL OPTIONS: FTP Daemon
their syntax.
The configuration file can be seen as simply a user-defined script that includes a num-
ber of configuration commands to be executed. Comments describing the configura-
tion can also be included in this file provided they follow the correct syntax.
The following is an example of a simple configuration file:
; These are comments for the example config file.
; Note that comments have to start at the beginning of a
; line and be preceded by an ‘;’
;
version 5.6
; If this command is found and the current version does not
; correspond to the command parameter, the file execution
; will abort.
;
redirect prn
load default
set dest d1prn name newdest
set dest d2com1 name another
set dest newdest ioport com2
set model m1 name newmod
set prn slowmode
set com1 cs8 19200 istrip
save
The above example includes a line for the version number. Because the commands
and/or syntax may change from one firmware version to another, an old configuration
file may be incompatible with the current version. By entering a version number, the
transfer will be aborted and the user notified to check if the commands are compatible
with the current firmware version if the version numbers do not match.
The above example includes the load default command. This is optional. Including
load default ensures that you always begin a configuration from the factory default
settings.
The above example uses the redirect command. This redirects standard output to a
specified port with an attached monitor or printer. This allows the user to monitor the
commands as they are being executed. Without the redirect command, users will see
no output from the commands as they are being executed.
Examp
l
e
N
o
t
e
N
o
t
e
N
o
t
e