Escape Codes
Some properties support C-style escape codes.
You can use C-style escape codes in the following properties:
- ChatinString
- ChatoutString
This allows you to easily define whether or not to send escape
code sequences after commands. For example, the following ChatinString
sends a carriage return character (\r) after the username and password:
ChatinString : ".*: user\r .*: passwd\r .*:" The following character sequences are recognized.
| Escape code | Character |
|---|---|
| \b | Backspace |
| \f | Form-feed |
| \n | New-line |
| \r | Carriage return |
| \t | Tab |
| \\ | Backslash |
| \' | Single quote |
| \" | Double quote |
Note:
- The escape sequences for backslash, single quote, and double quote should be double-escaped. For example, to send a backslash character (\) use \\\\.
- In Netcool/OMNIbus 3.6 and above, double escape sequences are required for the regular expression properties (NT_ECORE_regexp, NT_STD_regexp, and SCC2_regexp). In Netcool/OMNIbus 3.5 and below, only a single escape sequence is required.