25 Valid and invalid responses from devices

Editing the Motorola Controller CLI responses properties file

The MotorolaControllerCliResponse.properties file is under the Install_Home\conf\cli directory. Edit the file using a text editor.

You can add a success response between the SUCCESS_RESPONSE_START and SUCCESS_RESPONSE_END tags using the following Unicode regular expressions format.

#Success Map

SUCCESS_RESPONSE_START

^su[port]*\s+s[witchd]*\s+=.*First Failure Data Capture.*enabled.* ^n[o]\s+su[port]*\s+s[witchd]*\s+=.*First Failure Data Capture.*disabled.* ^f[fdc]*=.*First Failure Data Capture.*enabled.* ^n[o]\sf[fdc]*=.*First Failure Data Capture.*disabled.*

SUCCESS_RESPONSE_END

You can add a failure response between the FAILURE_RESPONSE_START and

FAILURE_RESPONSE_END tags using the following Unicode regular expressions format.

#Failure Map

FAILURE_RESPONSE_START ^nt[p]*\s+s[erv]*\s+=.*too many.*

^sn[mp\-serv]*\s+h[ost]*\s+=.*Maximum number of hosts in this version group reached.*

^sn[mp\-serv]*\s+u[ser]*\s+=.*Maximum limit of users in this access group reached.*no

^sn[mp\-serv]*\s+=.*too many.*

FAILURE_RESPONSE_END

The strings on the left and the right side of the equal sign are Unicode regular expressions used for pattern matching. The expression on the left is matched against the command string, while the expression on the right is matched against the messages returned by the command that matches the pattern on the left. For details on the supported Unicode regular expression syntax, refer to “Regular Expressions” on page 1333.

The new response is available to the Management application as soon as you save the file; you do not need to restart the Management application.

Configuration command response validation

Command responses are only validated for configuration deployments. Validation occurs in the following order:

1.Failure Map — Checks the response message against the regex defined in the failure map. If a match is found, it is treated as failure response from the device and stops the validation process.

2.Success Map — Checks the response message against the regex defined in the success map. If a match is found, it is treated as a success response from the device and stops the validation process.

3.General Failure Strings — Checks the response message against the general failure strings. If a match is found, it is treated as a failure response from the device and stops the validation process.

792

Brocade Network Advisor IP User Manual

 

53-1003056-01

Page 844
Image 844
Brocade Communications Systems IP250 Configuration command response validation, Valid and invalid responses from devices