Cannot Get Switch Responses Using TelnetConnection Class If Exception Occurs

(Doc ID 836626.1)

Last updated on MARCH 07, 2011

Applies to:

Oracle Communications ASAP - Version: 5.2.4 and later   [Release: 5.2 and later ]
Information in this document applies to any platform.

Goal

Using Java interpreter to send commands to devices (NE's), when using TelnetConnection.waitfor() method there is no possibility to get device response if an exception like TelnetException or IOException occurs.

TelnetConnection class simply prints response to the JNEP log.

Is it possible to extract the device response from the caught exception?
There is need to show this message to operator.


Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms