-l option

This option specifies the user authentication information for IBM® Cognos®. It supplies the signon information needed to authenticate users in one or more security namespaces.

The -l option provides an alternative to storing the information in the Signons list.

The syntax for using the -l option is as follows:

cogtr -lsignon=userid/
password -pfilename.py?|-m
filename.mdl

The following example opens the Field3.mdl file and grants access to the required namespace using the signon named field, user ID CarlosR, and password pw462. Assuming that the signon matches what is defined in the model, the process runs in batch mode, creating the cubes as defined in the model.

cogtr -n -lfield=CarlosR/pw462 -mField3.mdl

IBM Cognos can be configured to use authentication to an external namespace where users are prompted for credentials as part of the logon process.

You can create signons to build cubes in batch mode in the IBM Cognos environment. Those signons maintain the user ID, password, and the associated namespace name. You can create as many signons as the number of namespaces that your users need to log on to in IBM Cognos Analytics. For Cognos Transformer to use the signon automatically, enable the Set As Auto Logon property.

If multiple signons with the Set As Auto Logon property checked exist in a saved model, when using the command line you do not need to specify the –l option because Cognos Transformer will authenticate against all existing signons by default.

When you use this command, the user ID and password appear in plain text. For information about how to avoid plain text passwords, see the topic Avoiding Plain Text Passwords When Using the -k or -l Option.