S-Filer Config CLI : User Guide
Note
The S-Filer Config CLI is a command-line utility that allows administrators to manage the configuration parameters of the S-Filer Portal solution.
Concepts
The application requires authentication to access its functions. Once authenticated, users can create, modify or delete the application's various configuration parameters.
The application runs on Windows and Linux operating systems. Simply open a command console and execute the necessary commands. You can use the --help parameter to get help on the commands available.
Each command is made up of several options, some of which are used by all commands.
The general options are :
Options | Required/Optional | Description |
---|---|---|
-l | Optional | username to use to perform the action. |
-p | Optional | The password to authenticate. |
-op | Optional | The obfuscated (hidden) password to authenticate. |
-cf | Optional | The configuration file containing the database URL, driver and hibernate dialect. Can be overridden by the system property "sfiler.config.cli.config.file". |
--dbUrl | Optional | The database URL to use to connect to the database. |
--dbDriver | Optional | The database driver to use to connect to the database. |
--dbHibernateDialect | Optional | The hibernate dialect to use to connect to the database. |
-x | Optional | A script file containing commands to run. Each line should be exactly as would be given on the command line except for the global options which shouldn't be specified. |
-xc | Optional | If present, execution of the script will continue in case of error. |
Obtaining help for a specific command
It is possible to obtain a list of parameters for a specific command. Simply use the “--help” option to obtain specific help. For example, for the “set-config” command:
./sfiler-config-cli.sh --help set-config
Set Configuration
Usage: set-config [options]
Options:
-encrypt
This config value is to be encrypted before storing in the database.
Default: false
-id
Instance Id. (Optional if the instance Name is specify)
* -k
Key.
-n
Instance Name. (Optional if the instance Id is specify)
* -t
Type 1:server 3:Gateway 4:Gui.
Default: 0
* -v
New Value.
The JDBC drivers
The S-Filer Portal application supports the following database drivers:
- Oracle :
oracle.jdbc.OracleDriver
- SQL Server :
com.microsoft.sqlserver.jdbc.SQLServerDriver
- MySQL :
com.mysql.cj.jdbc.Driver
- MariaDB :
org.mariadb.jdbc.Driver
The Hibernate Dialects
The S-Filer Portal application supports the following Hibernate dialects:
- Oracle :
org.hibernate.dialect.Oracle10cDialect
- SQL Server :
org.hibernate.dialect.SQLServer2012Dialect
- MySQL :
org.hibernate.dialect.MySQL5Dialect
- MariaDB :
org.hibernate.dialect.MySQL5InnoDBDialect
Commands
The S-Filer Config CLI supports the following commands :
- add-admin-user
- add-amazon-s3-storage
- add-auth-domain
- add-azure-blob-storage
- add-gateway
- add-gui
- add-local-storage
- add-server
- delete-certificate
- delete-gateway
- delete-gui
- delete-storage
- export-config
- export-server-config
- generate-key-pair
- generate-ssh-key
- import-certificate-file
- import-crypto
- list-auth-configs
- list-auth-domains
- list-certificates
- list-components
- list-configs
- list-storages
- migrate-database
- migrate-system-certificate
- modify-amazon-s3-storage
- modify-azure-blob-storage
- modify-local-storage
- renew-key
- set-auth-config
- set-auth-domain
- set-config
- set-default-storage
- test-access-amazon-s3-storage
- test-access-azure-blob-storage
- test-access-local-storage
- test-connectivity
- trust-certificate
- update-db-schema
- validate-component-config