Application Perf Mgmt (BAC / BSM) Practitioners Forum
cancel

SiteScope 11.10 Remote HPUX SSH Connection failures

SOLVED
Go to solution
Highlighted
ROCKETBOY_1
Super Contributor.

SiteScope 11.10 Remote HPUX SSH Connection failures

I keep getting this error in SiteScope 11.10 when trying to perform a Test from Remote Unix Servers area in SiteScope:

remote command error out reading (-996)

I have tried many different options based on the Knowledge Base.

Any information greatly appreciated.
Points given.

Thanks.
11 REPLIES
Dmitry Shevchenko
Micro Focus Expert
Solution

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Select "Trace" checkbox in the problematic UNIX server definition, run the test again and check relevant error messages in RunMonitor.log. It may give you a hint on what's going wrong with connection to the server.
uob22
Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

We are experiencing connection issues to CentOS/VM clients from our Sitescope host server. We are receiving error "remote command error timed out reading (-996)" on our Sitescope console and the connection is dropped.

 

The client receives a connection request and allows the connection yet the Sitescope host only has a waiting hour glass. After about a minute or so the client receives a  disconnect. We have verified that the host in fact does get logged on to the client with the ID and that the host gets disconnected after some time. We are unclear as to what Sitescope is requesting and or what it is doing during the wait period.

 

Any help to resolve connectivity issues from Sitescope host to CentOS/VM is greatly appreciated.

Thanks,

Sergey Popov
Outstanding Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Hi.

 

Are you running SiteScope on Windows?

Does your issue have any resemblance to http://h30499.www3.hp.com/t5/ITRC-Business-Availability/SSH-problem-connecting-to-Linux-server-v11/td-p/4667992 ?

 

Thank you.

Sergey.

_______________
This thread is now 20% cooler
uob22
Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Yes I am running Sitescope on Windows and yes it seems to be related to the link you provided. I looked in the logs and found "Reading from server timed out. Connection timed out".

 

But the user gets logged on to the client. The clients are Linux and I have verified the "messages" logs.

 

Thanks.

Wes Kaufmann
Honored Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Try using plink instead of internal java libraries

 

For the remote server Check under the advanced settings and ssh connection Method.

eitanr
Trusted Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Do the connection credentials you inserted in SiteScope belong to a user that is defined on the VM as a ksh shell user? In that case the shell might take longer to respond to SiteScope's connection than the designated connection timeout.

 

Please try to check 'Wait for SSH connection prompt' checkbox and enlarge the 'SSH prompt timeout' as required (both parameters are in Preferences > Infrastructure > General).

 

Remember to restart SiteScope after updating values in the Infrastructure Preferences.

Sergey Popov
Outstanding Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Personally, not as a SiteScope engineer but as a SiteScope user, I'd discourage using ksh as shell for SiteScope at all.

 

Running SiteScope user with bash is much less troublesome.

 

Thank you.

Sergey.

_______________
This thread is now 20% cooler
AlexeyGlukhov
Honored Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Sergey's method has helped ! Excellent !

Best regards,
Alexey
asnk
New Member.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

This is great. Eitanr's advice has helped in fixing this issue

 

Thanks,

Nandha

474240
Valued Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Thats great..It fixed my issue.Thanks you

HPRocks
Honored Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Hello Sergey,

Need your insights on our scenario.

We are trying to monitor Cisco IP Telephony service's in Sitescope. Cisco IP Telephony has a customized RHEL. Although, we can access remote Linux server via Putty, directly from Sitescope server. However, connecting to Linux server from Sitescope GUI, gives a prompt "remote command error unable to connect to server (-998)".

We enabled tracing, and it says;

2017-10-10 11:59:36,882 [http-bio-8080-exec-678] (SSHRemote.java:375) ERROR - SSHRemote Error: failed to execute the command: echo testing connection on remote: 10.101.11.10, status code: -998

2017-10-10 11:59:36,882 [http-bio-8080-exec-678] (RemoteCommandLine.java:128) ERROR - list of SSH retries -->

2017-10-10 11:59:36,882 [http-bio-8080-exec-678] (RemoteCommandLine.java:129) ERROR -

Tue Oct 10 11:59:36 AST 2017 Connection Dropped(V2) com.mercury.sitescope.util.ssh.exception.SSHV2ReadFailedException: Unknown error while reading from server, returned from reading without readComplete flag being true. Unknown error while reading from server, returned from reading without readComplete flag being true.

2017-10-10 11:59:36,882 [http-bio-8080-exec-678] (RemoteCommandLine.java:130) ERROR - <-- list of SSH retries

2017-10-10 12:01:19,886 [http-bio-8080-exec-688] (RemoteCommandLine.java:263) INFO  - rem: cucm-pub <--internalConnect: Attemting SSH v1 connect

2017-10-10 12:01:21,304 [http-bio-8080-exec-688] (RemoteCommandLine.java:263) INFO  - rem: cucm-pub <--internalConnectV1: Failed SSH V1 connect

2017-10-10 12:01:21,304 [http-bio-8080-exec-688] (SSHV1Connector.java:126) ERROR - internalConnectV1: Connection error occurred(V1): com.mercury.sitescope.util.ssh.SSHConnectionException: Couldn't start terminal!, Couldn't start terminal! connecting to host 10.101.11.10

2017-10-10 12:01:21,304 [http-bio-8080-exec-688] (RemoteCommandLine.java:263) INFO  - rem: cucm-pub <--internalConnectV1: Failed SSH V1 connect Couldn't start terminal!

2017-10-10 12:01:21,413 [http-bio-8080-exec-688] (RemoteCommandLine.java:263) INFO  - rem: cucm-pub -->close ssh connection

2017-10-10 12:01:21,413 [http-bio-8080-exec-688] (RemoteCommandLine.java:263) INFO  - rem: cucm-pub <--SSHV2Connector: Attempting SSH V2 connect.

2017-10-10 12:01:21,569 [http-bio-8080-exec-688] (RemoteCommandLine.java:263) INFO  - rem: cucm-pub -->echo sitescope-command-begin; echo testing connection; echo sitescope-command-end

2017-10-10 12:02:29,607 [http-bio-8080-exec-688] (RemoteCommandLine.java:263) INFO  - rem: cucm-pub <--Connection Dropped(V2)

2017-10-10 12:02:29,607 [http-bio-8080-exec-688] (SSHV2Connector.java:1093) ERROR - Connection Dropped(V2) com.mercury.sitescope.util.ssh.exception.SSHV2ReadFailedException: Unknown error while reading from server, returned from reading without readComplete flag being true. Unknown error while reading from server, returned from reading without readComplete flag being true.

2017-10-10 12:02:29,826 [http-bio-8080-exec-688] (RemoteCommandLine.java:263) INFO  - rem: cucm-pub -->close ssh connection

Below is some more additional info on above;

  1. The remote server is a customized RHEL 5 32 bit.
  2. Cisco IP Telephony Application is install on this remote server.
  3. We can execute the following command on this customized RHEL server.
    Delete
    File
    Help
    license
    quit
    run
    set
    show
    unset
    utils
  4. As we ought to monitor Cisco IP Telephony service on this remote server. The IP Telephony service status can only be checked with the command "utils service list".

Any insights, How can we monitor this service on this remote customized RHEL server. Of-course, we need to overcome connectivity from SItescope GUI first or if there's any oher way out!

Cheers,