Accessing protocol settings

When a WhatsConfigured script runs, it executes against a particular device. The script uses the device's SSH or Telnet credentials to login to the device. Sometimes it is necessary for a script to directly access the protocol settings being used in a set of credentials. The protocol settings can be accessed through the variables listed in the following table.

Note: The values of these variables are read-only and cannot be modified by scripts, though scripts are free to reference their values.

Name

Description

Example

Settings.UserName

The SSH or Telnet username.

admin

Settings.Password

The SSH or Telnet password.

secret

Settings.PrivilegedPassword

The enable or privileged mode password.

supersecret

See Also

Using WhatsConfigured Variables

About variables

Using variables with WhatsConfigured templates

Using reserved WhatsConfigured variable names