RemoteHostAuthenticationRule - addRoutingRule_1


RemoteHostAuthenticationRule - addRoutingRule

Description :

This command adds a Routing Rule to the end of the remote host authentication policy, assigning it the specified Remote Host Authentication.

All Available operator strings are listed below:

  • equals
  • does not equal
  • starts with
  • does not start with
  • ends with
  • does not end with
  • contains
  • is substring of
  • does not contain
  • is not substring of
  • is one of
  • is not one of
  • matches
  • does not match
  • equals (case sensitive)
  • does not equal (case sensitive)
  • starts with (case sensitive)
  • does not start with (case sensitive)
  • ends with (case sensitive)
  • does not end with (case sensitive)
  • contains (case sensitive)
  • is substring of (case sensitive)
  • does not contain (case sensitive)
  • is not substring of (case sensitive)

Note : For operator "is one of" specify the list of values as [value1,value2, . . .,valueN].

For more information about formatting the RHS property value for the various types of LHS properties and operators, see Formats for specifying property values in conditions in the BMC Server Automation online documentation.

For propName, note that the only valid properties for this rule type are:

  • The built-in properties TARGET*.NAME, TARGET*.IP_ADDRESS and TARGET*.FQ_HOST
  • Any custom properties added to the Server class

Return type : java.lang.Object

Command Input :

Variable Name

Variable Type

Description

name

String

Name of the Remote Host Authentication Routing Rule.

description

String

Description of the Remote Host Authentication Routing Rule.

propName

String

Property name to be used in the rule condition.

operator

String

Operator string to be used in the rule condition.

propValue

String

Property value to be used in the rule condition.

remoteHostAuthenticationName

String

Name of the Remote Host Authentication.

Example

The following example adds a Remote Host Authentication Routing Rule with a condition of "TARGET*.NAME" "starts with" "lin", with the Remote Host Authentication myLinuxAuthentication. Note the use of double quotes around "TARGET*.NAME". This is to prevent the asterisk * from being interpreted as a wildcard. If you use "TARGET*.IP_ADDRESS" or "TARGET*.FQ_HOST", be sure to enclose them in double quotes as well.

Script

blcli RemoteHostAuthenticationRule addRoutingRule myLinuxRule "rule for linux targets" "TARGET*.NAME" "starts with" lin myLinuxAuthentication



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.7