Skip to main content
Skip table of contents

Automated transfer of files into Transit Zone (Passon)

Overview

Users are able to upload into the Transit Zone. Depending on the user, file name or file type
these files can be passed on automatically to another location via script with or without approval.

It is also possible to copy a file into the Transit Zone of another user via VISULOX Transit Command Line Interface.

The configuration is easily done in VISULOX Cockpit / Policies / Transit Policy.

The passon script used for the automated transfer can be created or adjusted in
VISULOX Cockpit / Administration / Actions as well.


Important: Files must not be deleted or renamed in the Transit Zone during the transfer process..

Upload

Download

Create a passon example script

Using the CLI a passon example script can be implemented with the following steps.

  1. Create a file with the example script (see below)

  2. Use the following command to implement the script for the Transit Policies:

    Setup script

    CODE
    visulox admin action add -name passon -category validate -scriptfile /tmp/passon.sh
  3. The passon script now is displayed in VISULOX Cockpit / Administration / Actions and can be used in the Transit Policies

Example script: passon.sh

CODE
#!/bin/bash
# VLXOBJECT = Originale filename
# VLXFILEPATH = Path to file on disk (no not delete within script)
$VLXPATH/bin/cmd/config.tcl env > /tmp/passon.$$ 
cp $VLXFILEPATH /tmp/${VLXLOGINUSER}-${VLXCREATETIME}-$VLXOBJECT
echo "done with $VLXOBJECT" 
# If the script should be treated as successful in VISULOX, the exit code must be 0
true
exit $?

In this example script the file will be copied to /tmp (the available variables will be dumped to a file in /tmp as well).

The login user name and the timestamp will be added to the filename.

Most important variables within the script

CODE
        VLXFILEPATH = /opt/visulox/var/filearea/upload/81e77f1e-b8d1-4004-96dd-f87d85b18b32
          VLXOBJECT = Hydrangeas.jpg
           VLXOWNER = o=Tarantella System Objects/cn=Miller
CODE
File:  %VLXFILENAME%
Sign:  %VLXFILETYPE%
Size:  %VLXFILESIZE_FMT%
Hashs: %VLXFILEHASHS%

Additional variables that can be used in the script

CODE
     VLXACCESSPOINT = example.domain.com
	    VLXCLIENTIP = 192.168.1.123
      VLXCREATETIME = 1538735003
    VLXCREATETIMEMS = 1538735003717
VLXCREATETIMEMS_FMT = 2018-10-05 12:23:23.717
  VLXCREATETIME_FMT = 2018-10-05 12:23:23
       VLXEVENTINFO = POL-FT Filetype: JPEG image data, JFIF standard 1.02 Size:581.33kB
        VLXFULLNAME = Miller
       VLXGROUPLIST = {o=Tarantella System Objects/cn=Miller}
   VLXGROUPLIST_FMT = Worker
            VLXLANG = en
             VLXLOG = /opt/visulox/var/log
       VLXLOGINUSER = Miller
         VLXOWNERID = 6F69AFA4EFD0B379724F330FCB81A65C
      VLXOWNERSHORT = Miller
            VLXPATH = /opt/visulox
          VLXPOLICY = POL-FT
      VLXPOLICYMODE = passedon
        VLXREMOTEIP = 192.168.1.123
 	  VLXREPOSITORY = DATASTORE
     VLXSESSIONHOST = vEXAMPLE
         VLXSURNAME = Miller
       VLXTOKENMODE = NONE
     VLXUSERPROFILE = o=Tarantella System Objects/cn=Miller
VLXUSERPROFILESHORT = Miller
            VLXUTIL = /opt/visulox/lib/utils
      VLXWEBTOPBASE = https://example.domain.com:443/sgd

Passon approved variables

CODE
	  VLXACCESSPOINT  = t1-ol9.tbsol.de
	  VLXAPPROVALMODE = approved
  VLXAPPROVEDBYEMAIL  = xxx
VLXAPPROVEDBY_FMT_FMT = test
VLXAPPROVEDBY_FMT	  = o=organization/cn=test
		VLXAPPROVEDBY = o=organization/cn=test
		VLXCREATETIME = 1758172170
	VLXCREATETIME_FMT = 2025-09-18 07:09:30
	     VLXEVENTINFO = File is requested by change management.
			 VLXEVENT = tzapproved
		 VLXFILEHASHS = sha256 25e70697b2ed05bd5e14057b6b450868deffd26be525b49a1d81d257b7c02205 md5 d0ab9f7d4c1d286cad20deaa8c638669
		  VLXFILENAME = cust.png
		  VLXFILESIZE = 876
	  VLXFILESIZE_FMT = 876B
		  VLXFULLNAME = Administrator
	     VLXGATEWAYIP = ::1
	   VLXGATEWAYNAME = localhost
		 	 VLX_HOME = /opt/visulox
			  VLXLANG = en
	     VLXLOGINUSER = root
		    VLXOBJECT = cust.png
		   VLXOWNERID = 5F7AB10DADC9EDA6EE7D2034B5545E18
			 VLXOWNER = o=Tarantella System Objects/cn=Administrator
		VLXOWNERSHORT = Administrator
	  		  VLXPATH = /opt/visulox
			VLXPOLICY = POL-FT-Passon
		  VLXREMOTEIP = 172.17.5.1
		VLXREPOSITORY = DATASTORE
			VLXSCRIPT = SCRIPT.1758172170411.log
	   VLXSESSIONHOST = vT1OL9
		   VLXSURNAME = root
	   VLXUSERPROFILE = o=Tarantella System Objects/cn=Administrator
  VLXUSERPROFILESHORT = Administrator
			  VLXUTIL = /opt/visulox/lib/utils

Passon rejected variables

CODE
  VLXAPPROVALMODE = rejected
    VLXAPPROVEDBY = CN=Tom Meyer,OU=Mitarbeiter,OU=ToolBox,DC=tbsol,DC=de
VLXAPPROVEDBY_FMT = Tom Meyer
    VLXCREATETIME = 1591725924
VLXCREATETIME_FMT = 2020-06-09 20:05:24
         VLXEVENT = rejected
     VLXEVENTINFO = Rejected because project is freezed.
      VLXFILEPATH = /tmp/vlx.dump
     VLXGROUPLIST = o=organization/cn=foo
 VLXGROUPLIST_FMT = foo
           VLXLOG = /globalhome/tbasien/vsx30/var/tab-dev1/log
        VLXOBJECT = data_ok.png
         VLXOWNER = o=organization/cn=foo
    VLXOWNERSHORT = foo
          VLXPATH = /globalhome/tbasien/vsx30
        VLXPOLICY = PASSON
      VLXREMOTEIP = 192.168.3.166
          VLXUTIL = /globalhome/tmeyer/vsx30/lib/utils

Configuration of a passon Transit Policy

In VISULOX Cockpit / Policies / Transit Policy a new policy has to be created.

Select policy mode Passon or Passed on after approval:



Set the Transit Policy filter for user / group and/or access point:



Enter filename and/or filetype of the files, that will be passed on (wildcards are possible):


Select the Passon event script:


A file that is uploaded via Passon Policy is shown in the Transit Zone. It can not be downloaded with VLX Transit Web or VISULOX File Exchange.

→ passon enforces direction: in

Files transferred via Passed on with approval have to be approved or rejected by a supervisor in VISULOX Cockpit / Online / Transit Zone.
(warning) Approval is done and processed on the server of the supervisor!

Command Line Interface

The visulox transit command can be used to copy files into the Transit Zone of another user. A standard Transit Policy is applied.

Available commands and their options

approval

Approve or reject pending files in Transit Zone

  • -state <value>         Approve / true / 1
                                     Reject / false / 0

import

Import file into a users Transit Zone

  • -owner <value>       Unique owner <>
  • -path <value>          Path to readable file <>
  • -asreport                   Allows to inject a file as a report file for the user
                                     For example a report can be created via cron and sent to the Checkout Zone of the user automatically

  • -rtime <value>         Retention time in Transit Zone in seconds <default>
listList user's with files in the Transit Zones
delete

Delete files in Transit Zone

  • -owner <value>       Unique owner <>
  • -file <value>            File in Transit Zone <>
  • -all                            All files in Transit Zone

Example to import a file for download into the Transit Zone

CODE
visulox transit import -path <path to file> -owner <unique owner> -rtime <retention time in sec>


  • Import command needs a standard Transit Policiy with the direction both or out, size, pattern, etc.
  • The retention time maximum is limited to the lifetime in archive
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.