GET_LOGIN

Use the GET_LOGIN script function to retrieve login information or the password of a particular entry made in a Login object. For more information, see Login (LOGIN).

Important!

Syntax

GET_LOGIN (Login object, Name, Type, Information)

Parameters

  • GET_LOGIN
    Retrieves login information
  • Login object
    Name of the Login object
    Format: script variable, AE name, or script literal
  • Name
    Agent name entry that is used in the Login object. You can use an asterisk symbol (*) put in single or double quotation marks instead of the name.
    Format: script variable, AE name, or script literal
  • Type
    Type entry that defines the agent type
    Format: script variable, AE name, or script literal
  • Information
    Information that should be retrieved
    Format: AE name
    Allowed values:
    • LOGIN_INFO
      Retrieves the login information such as user and domain
    • PASSWORD
      Retrieves the password

Return codes
This script function returns the relevant information:

  • 20476
    The specified object does not exist or is not of login type
  • 20482
    The specified name could not be found in the Login object.
  • 20493
    Invalid specification of the information that should be read.

Examples

The following example retrieves the login information and the password of the backend system entry SVN from the Login object. It then runs a command through the Job Messenger that defines the login data.

:SET &LOGIN# GET_ATT(LOGIN)
:SET &LI#GET_LOGIN(&LOGIN#,SVN,SVN,LOGIN_INFO)
:SET &PW#GET_LOGIN(&LOGIN#,SVN,SVN,PASSWORD)

&UC_JOBMD CMD="&SVN_CMD# checkout ""&SVN_URI#"" ""&SVN_DIR#"" --username &LI# --password &PW#"

See also:

seealso

GET_ATT