dumpnet.getSessionId - generate a new session ID by incrementing the old one
dumpnet.getSessionId [-d DUMPNET_CONFIG]
Generates a new session ID by incrementing the old one. The new session ID will be printed on STDOUT. The old session ID is read from and the new session ID is written to the session ID logfile. The location of the session ID logfile can be specified by the variable $logfile_sessionId in dumpnet.conf(8) - the default is $DUMPNET_HOME/log/sessionId.log. Before reading from the session ID logfile it will be locked and after writing the new session ID it will be unlocked. If the session ID logfile does not yet exist it will be created and a session ID of 10000 will be used.
The session ID is used to identify a backup session. A session is started by manually executing one of the dumpnet modules. The executed module will generate a new session ID (if none was given on the command line) by calling this executable.
A progressive session ID is essential for dumpnet to work correctly. Every session ID must be greater than the previous one. Make sure the session ID logfile does not get corrupted and the session ID always has 5 digits (is equal to or greater than 10000).
Get a new session ID:
dumpnet.getSessionId
Use an alternative dumpnet configuration file:
dumpnet.getSessionId -d /usr/local/dumpnet/conf/dumpnet2.conf
dumpnet.getSessionId will return 1 if the session ID logfile could not be written to. In any other case it has a zero exit status.
$DUMPNET_HOME/log/sessionId.log
dumpnet(8) dumpnet.conf(8)
Lukas Feiler <lukas.feiler@lukasfeiler.com>
dumpnet is published under the LGPL (GNU LESSER GENERAL PUBLIC LICENSE). Please see the LICENSE file contained in the installation tarball for details. The official web site is http://dumpnet.sourceforge.net.