Skip to content

Administrate Additional Printer Configurations


Additional printer configurations in an Output Engine system can be administrated via PLOSSYS CLI. An example of additional printer configurations are PPD files specified by the ppd printer key.

Hint - case-insensitive and overwriting

The printer configurations are stored using case-insensitive names and overwrite existing printer configurations with the same names.


Requirements

For the requirements for using PLOSSYS CLI, refer to PLOSSYS CLI.


Command Overview

Usage: plossys printer-config [options] [command]

Options:
  -V, --version                   output the version number
  --server <value>                server url (https://localhost:8080) (default: "https://localhost:8080")
  --insecure                      accept invalid https certificate from server
  --user <name>                   user name for authentication
  --pass <password>               password for authentication
  --bearer <token>                JSON Web Token (JWT) for authentication
  --credential <credentialsfile>  file containing user name and password or bearer (JWT) token.
  --auth <auth_type>              Auth Type "basic" or "oidc", default is "oidc" with fallback "basic"
  -h, --help                      display help for command

Commands:
  get <configName>                get config.

    required arguments:
       configName: name of the config
  set <configName> <content>      set config.

    required arguments:
      configName: name of the config
      content: configuration content
        use '-' for pipe
  import [options] <filename>     import new printer configuration

    required arguments:
      filename: the path and name of the printer configuration file
  export [options] <filename>     export printer configuration

    required arguments:
      filename: the path and name of a file to write one printer configuration or the path of a directory to write all printer configurations
  list [options]                  list printer configurations
  remove <confignames...>         removes printer configurations

    required arguments:
      confignames: the list of printer configurations, separated by whitespace or newline
        use '-' for pipe
  help [command]                  display help for command

Options

--insecure

Specify the --insecure option to avoid that the certificate will be checked by the client.

plossys printer-config <command> --insecure

--server

For administrating the additional printer configurations of a specific Output Engine server, specify the --server <plossys_server> option. Default is https://localhost:8080.

plossys printer-config <command> --server https://<plossys_server>:8080

Example - list all additional printer configurations of the plossys.server1.com server

plossys printer-config list --server https://plossys.server1.com:8080

User Authentication

Depending on the type of user authentication activated for the seal-rest service, you have to specify the user and the password with PLOSSYS CLI. By default, the specified user is first checked via OpenID Connect. Basic authentication is used as fallback.

plossys printer-config <command> --auth <auth_type> --user <user> --pass <password>

Example - list all additional printer configurations as user test authenticated via OpenID Connect

plossys printer-config list --auth oidc --user test --pass test

Using OpenID Connect, you can alternatively specify a JSON Web token (JWT) instead of a user and his password.

plossys printer-config <command> --auth oidc --bearer <jwt>

Example - list all additional printer configurations as a user authenticated via JSON Web token

plossys printer-config list --auth oidc --bearer eyJ0eXAiOiJKV1QiLCJhbG...

The credentials, that means user and password or the token, can also be contained in a credential file which is specified with PLOSSYS CLI.

plossys printer-config <command> --auth oidc --credential <credential_file>

Commands

export

The command exports additional printer configurations to a file or a directory.

plossys printer-config export [options] <filename>

required arguments:

  • filename: the path and name of a file to write one printer configuration or the path of a directory to write all printer configurations

options:

  • --configname <configname>: name of one printer configuration to be exported

Example - export the additional printer configuration <config_name> to a file with the same name

plossys printer-config export <config_name>

Example - export the additional printer configuration <config_name> to the file <file_name>

plossys printer-config export <file_name> --configname <config_name>

Example - export all additional printer configurations to a directory

Each additional printer configuration is written to a file with the same name as the configuration.

plossys printer-config export <directory_name>

get

The command gets the additional printer configuration <configName> and outputs it to stdout for further processing.

plossys printer-config get <configName>

required arguments:

  • configName: name of the config

import

The command imports additional printer configurations from a file or a directory.

plossys printer-config import [options] <filename>

required arguments:

  • filename: the path and name of the printer configuration file

options:

  • --configname <configname>: name of configuration in database

Example - import an additional printer configuration under the name of the file

plossys printer-config import <config_name>

Example - import an additional printer configuration from the file <file_name> under the name <config_name>

plossys printer-config import <file_name> --configname <config_name>

Example - import all additional printer configurations from a directory

The printer configurations are stored under the same name as the corresponding file.

plossys printer-config import <directory_name>

list

The command lists the additional printer configurations.

plossys printer-config list [options]

options:

  • --short: list configuration names only

remove

The command removes additional printer configurations.

plossys printer-config remove <config_name_1> <config_name_2> ... <config_name_n>

required arguments:

  • confignames: the list of printer configurations, separated by whitespace or newline; use - for pipe

Example - remove the additional printer configurations whose names are read from stdin

plossys printer-config remove -

set

The command stores the configuration content as additional printer configuration <configName>.

plossys printer-config set <configName> <content>

required arguments:

  • configName: name of the config
  • content: configuration content; use - for pipe

Example - store an additional printer configuration whose content is read from stdin

plossys printer-config set <config_name> -

Back to top