Absent Member.. ROCKETBOY_1 Absent Member..
Absent Member..
7996 views

SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution
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.
Labels (1)
Tags (1)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution
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.

View solution in original post

12 Replies
Micro Focus Expert
Micro Focus Expert

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution
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.

View solution in original post

uob22 Absent Member.
Absent Member.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

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,

0 Likes
Sergey Popov Absent Member.
Absent Member.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

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 Absent Member.
Absent Member.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

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.

0 Likes
Highlighted
Absent Member.. Wes Kaufmann Absent Member..
Absent Member..

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

Try using plink instead of internal java libraries

 

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

eitanr Absent Member.
Absent Member.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

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.

0 Likes
Sergey Popov Absent Member.
Absent Member.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

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
0 Likes
AlexeyGlukhov
Visitor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

Sergey's method has helped ! Excellent !

Best regards,
Alexey
0 Likes
Absent Member.. asnk Absent Member..
Absent Member..

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

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

 

Thanks,

Nandha

0 Likes
474240 Trusted Contributor.
Trusted Contributor.

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

Thats great..It fixed my issue.Thanks you

0 Likes
Honored Contributor.. HPRocks Honored Contributor..
Honored Contributor..

Re: SiteScope 11.10 Remote HPUX SSH Connection failures

Jump to solution

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,

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.