Skip to main content
Skip table of contents

Modify VISULOX PORTAL Datastore via CLI

With the tool /opt/visulox/tools/migration/buildEditDatastore.tcl entries can be read and edited from the datastore.

It is also possible to use a created datstore file.

buildEditDatastore.tcl options

OptionDescription
-examplePrint examples
-iIgnore case distinctions in all masks / regexp
-print <value>Print objects or attributes <>
-dsFile <value>Path to datastore CSV dump file or use local portal connector <>
-contentmask <value>Regexp into objects string <>
-valuemask <value>Regexp on value <>
-attribute <value>Name or name mask of attribute to change <>
-newvalue <value>New value for attribute <>
-ttaChangeScript <value>

File for 'tarantella object edit --file' </tmp/ttaChange.tta>

-aslistvaluenewValue treaded as a list: scottamemberusers scottahosts scottamembergroups
-addlistvaluenewValue added to list: scottamemberusers scottahosts scottamembergroups
-format <value>Format of output (text,xml, csv, json, tcl) <text>

-verbose

More messages on stdout
--Forcibly stop option processing
-helpDisplay commands
-?Display commands

For example:

List all objects

CODE
./buildEditDatastore.tcl -print o


List all attributes

CODE
./buildEditDatastore.tcl -print a

Useful to find attribute names.


List all attributes and content

CODE
./buildEditDatastore.tcl -print v

Useful to find attribute names and content.


Using a datastore file

CODE
./buildEditDatastore.tcl -dsFile <filename>


Datastore files are created with the following program:

Create datastore file

CODE
/opt/visulox/lib/utils/sgd.tcl datastore -format csv -raw > /tmp/ds

With this program a VISULOX PORTAL Object edit script is created.


Show all application with -pos set

CODE
./buildEditDatastore.tcl -contentmask scottafilepath=vlxgui -attribute scottaarguments -valuemask "-pos"  -print v


Remove “-pos”

CODE
./buildEditDatastore.tcl -contentmask scottafilepath=vlxgui -attribute scottaarguments -valuemask "-pos" -newvalue ""


Example for tta change script command:  

CODE
--name "o=applications/ou=TestingApps/cn=@xterm(R:OCR:RESOURCE)" --scottamembergroups "cn=allowedusers,cn=group,dc=corp,dc=cyta" "cn=arieso-admin,cn=group,dc=corp,dc=cyta" -addlistvalue


JavaScript errors detected

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

If this problem persists, please contact our support.