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[version]
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
The following figure shows an XML configuration template for the Telnet adapter.
XML template of the Telnet adapter configuration
<config>
<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>
</config>
The following figure shows an XML configuration sample for the Telnet adapter with multiple configs.
XML sample of the Telnet adapter configuration with multiple configs
<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>
The following figure shows an XML configuration sample for Telnet adapter with the CharSet element.
XML sample of the Telnet adapter configuration with CharSet
<config>
<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>