Configuring the Telnet adapter
In addition to targets defined in the adapter configuration, the Telnet adapter can have dynamic targets defined in each adapter request. If a dynamic target is always defined in the Telnet adapter request, a configuration node, <config/> is used in the adapter configuration.
BMC recommends that you do not include unused elements in the adapter configuration because they might cause errors.
Adapter type: ro-adapter-telnet_vv.rr.nn
Default adapter name: TelnetAdapter
To configure the Telnet adapter, see Configuring base adapters.
The following table describes the adapter configuration elements for the Telnet adapter that you can specify by using the form view, XML view, or both. You cannot use the form view to configure elements and attributes that do not have an entry in the "UI label" column.
Configuration node elements for the Telnet adapter
XML template of the Telnet adapter configuration
<target></target>
<port></port>
<user-name></user-name>
<password encryption-type-""></password>
<prompt></prompt>
<timeout-secs></timeout-secs>
<login-prompt></login-prompt>
<password-prompt></password-prompt>
<verify-os></verify-os>
<read-buffer-size></read-buffer-size>
<enable-ssl-mode></enable-ssl-mode>
</config>
XML sample of the Telnet adapter configuration with multiple configs
<config name="host1">
<target>host1</target>
<port>23</port>
<user-name>user1</user-name>
<password encryption-type-"Plain">pass</password>
<prompt>user1$</prompt>
<verify-os>true</verify-os>
<read-buffer-size>1024</read-buffer-size>
</config>
<config name="host2">
<target>host2</target>
<port>23</port>
<user-name>user</user-name>
<password encryption-type-"Plain">pass</password>
<prompt>user2$</prompt>
<verify-os>true</verify-os>
<read-buffer-size>1024</read-buffer-size>
</config>
</configs>
XML sample of the Telnet adapter configuration with CharSet
<target>server1</target>
<user-name>user</user-name>
<password encryption-type-"Plain">test</password>
<prompt>></prompt>
<login-prompt>login:</login-prompt>
<password-prompt>password:</password-prompt>
<verify-os>true</verify-os>
<character-set>Shift_JIS</character-set>
</config>
XML sample of the Telnet adapter configuration when SSL mode is enabled
<config>
<target>10.128.248.118</target>
<port>23</port>
<userName>somename</userName>
<password>password</password>
<login-prompt>login:</login-prompt>
<password-prompt>Password:</password-prompt>
<prompt>$</prompt>
<enable-ssl-mode>true</enable-ssl-mode>
</config>
Enabling custom logging
To enable custom logging for the adapter, you must specify a log file name. You can also provide additional parameters for logging.
- Log File Name: Provide a name for the log file.
This file will be stored in the AO_HOME/tomcat/logs directory. If Log File Max Backup Index value is greater than 0, the log file name is suffixed with the backup index. For example, if the parameter value is a.log, backup log files will have names, such as a.log.1, a.log.2. - Log File Size: Specify a size limit for the log file.
If the value specified for Log File Max Backup Index is greater than 0, when the specified size is reached, the current file is renamed with the suffix .1. Otherwise, the log file will be reset and over-written. The default value is 10MB. The available units are KiloBytes (KB), MegaBytes (MB) or GigaBytes (GB). - Log File Max Backup Index: Enter the maximum number of backup files allowed. The default value is 10.
- Log File Append: Select this option to append new log information to the existing information in the file. If unselected, the file will be overwritten with new log information.
Log Level: Enter the logging level using one of the following choices:
Logging level
Description
DEBUG
The most detailed logging level; logs low-level messages, normal execution, recoverable erroneous conditions, and unrecoverable erroneous conditions
INFO
(default)
Logs normal execution, recoverable erroneous conditions, and unrecoverable erroneous conditions
WARN
Logs recoverable erroneous conditions and unrecoverable erroneous conditions
ERROR
The least detailed logging level; logs only error conditions that are not usually recoverable