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
| Option | Description |
|---|---|
| -example | Print examples |
| -i | Ignore 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> |
| -aslistvalue | newValue treaded as a list: scottamemberusers scottahosts scottamembergroups |
| -addlistvalue | newValue 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 |
| -help | Display commands |
| -? | Display commands |
For example:
List all objects
./buildEditDatastore.tcl -print o
List all attributes
./buildEditDatastore.tcl -print a
Useful to find attribute names.
List all attributes and content
./buildEditDatastore.tcl -print v
Useful to find attribute names and content.
Using a datastore file
./buildEditDatastore.tcl -dsFile <filename>
Datastore files are created with the following program:
Create datastore file
/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
./buildEditDatastore.tcl -contentmask scottafilepath=vlxgui -attribute scottaarguments -valuemask "-pos" -print v
Remove “-pos”
./buildEditDatastore.tcl -contentmask scottafilepath=vlxgui -attribute scottaarguments -valuemask "-pos" -newvalue ""
Example for tta change script command:
--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
Related articles
- Modify VISULOX PORTAL Datastore via CLI
- Migrating from OSGD 5.x / VLX 3.x to VISULOX 4.x
- Migrating from VISULOX 3.x to 4.x
- Migrating from OSGD 5.x / VLX 3.x to VISULOX 4.x
- Modify VISULOX PORTAL Datastore via CLI
- Migrating from VISULOX 3.x to 4.x
- Migrating from VISULOX 3.x to 4.x
- Modify VISULOX PORTAL Datastore via CLI
- Migrating from OSGD 5.x / VLX 3.x to VISULOX 4.x
- Modify VISULOX PORTAL Datastore via CLI
- Migrating from VISULOX 3.x to 4.x
- Migrating from OSGD 5.x / VLX 3.x to VISULOX 4.x
- Migrating from OSGD 5.x / VLX 3.x to VISULOX 4.x
- Migrating from VISULOX 3.x to 4.x
- Modify VISULOX PORTAL Datastore via CLI