Application Perf Mgmt (BAC / BSM) Support and News Forum
Showing results for 
Search instead for 
Do you mean 

Sitescope cannot connect a Windows Remote Server (unknown error (-996))

Advisor

Sitescope cannot connect a Windows Remote Server (unknown error (-996))

Hi,
I try to connect a Windows Server 2003 on Remote Servers ( Sitescope 11.20 32 bits / Linux).

On the Windows Server 2003, I installed cygwin app. When I check the ssh connection on the Sitescope Linux, its OK:

[root@usdc1svpua002 ~]# ssh sshd@10.52.0.15
sshd@10.52.0.15's password:
Last login: Mon Jan 13 15:01:22 2014 from usdc1svpua002.latam1.prosegur.local
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\cygwin\var\empty>


The error ocurre when I try the "Test" connection on Remote Servers Section:
Returns the following error:
Sitescope was unable to connect to the remote server. Reason: unknown error (-996)

Runmonitor.log:
2014-01-13 15:51:39,256 [http-8080-Processor22] (RemoteCommandLine.java:130) ERROR - <-- list of SSH retries
2014-01-13 15:58:33,508 [http-8080-Processor22] (RemoteCommandLine.java:263) INFO - rem: mxdc1srp00007.prosegur.net.mx <--SSHV2Connector: Attempting SSH V2 connect.
2014-01-13 15:58:34,770 [http-8080-Processor22] (RemoteCommandLine.java:263) INFO - rem: mxdc1srp00007.prosegur.net.mx -->perfex -timeout 120 =238
2014-01-13 15:59:34,969 [http-8080-Processor22] (RemoteCommandLine.java:263) INFO - rem: mxdc1srp00007.prosegur.net.mx <--Connection timed out(V2)
2014-01-13 15:59:34,973 [http-8080-Processor22] (SSHV2Connector.java:1108) ERROR - Connection timed out(V2) com.mercury.sitescope.util.ssh.exception.SSHV2TimedOutException: Reading from server timed out. Time spent on reading = 59890 threshold = 59887 Reading from server timed out. Time spent on reading = 59890 threshold = 59887
2014-01-13 15:59:35,171 [http-8080-Processor22] (RemoteCommandLine.java:263) INFO - rem: mxdc1srp00007.prosegur.net.mx -->close ssh connection
2014-01-13 15:59:35,174 [http-8080-Processor22] (SSHRemote.java:367) ERROR - SSHRemote Error: failed to execute the command: perfex -timeout 120 =238 on remote: 10.52.0.15, timeout
2014-01-13 15:59:35,177 [http-8080-Processor22] (RemoteCommandLine.java:128) ERROR - list of SSH retries -->
2014-01-13 15:59:35,180 [http-8080-Processor22] (RemoteCommandLine.java:129) ERROR -
Mon Jan 13 15:59:34 GMT-05:00 2014 Connection timed out(V2) com.mercury.sitescope.util.ssh.exception.SSHV2TimedOutException: Reading from server timed out. Time spent on reading = 59890 threshold = 59887 Reading from server timed out. Time spent on reading = 59890 threshold = 59887
2014-01-13 15:59:35,183 [http-8080-Processor22] (RemoteCommandLine.java:130) ERROR - <-- list of SSH retries
2014-01-14 08:15:37,301 [http-8080-Processor16] (RemoteCommandLine.java:263) INFO - rem: mxdc1srp00007.prosegur.net.mx <--SSHV2Connector: Attempting SSH V2 connect.
2014-01-14 08:15:43,290 [http-8080-Processor16] (RemoteCommandLine.java:263) INFO - rem: mxdc1srp00007.prosegur.net.mx -->perfex -timeout 120 =238
2014-01-14 08:16:43,465 [http-8080-Processor16] (RemoteCommandLine.java:263) INFO - rem: mxdc1srp00007.prosegur.net.mx <--Connection timed out(V2)
2014-01-14 08:16:43,469 [http-8080-Processor16] (SSHV2Connector.java:1108) ERROR - Connection timed out(V2) com.mercury.sitescope.util.ssh.exception.SSHV2TimedOutException: Reading from server timed out. Time spent on reading = 59871 threshold = 59869 Reading from server timed out. Time spent on reading = 59871 threshold = 59869
2014-01-14 08:16:43,602 [http-8080-Processor16] (RemoteCommandLine.java:263) INFO - rem: mxdc1srp00007.prosegur.net.mx -->close ssh connection
2014-01-14 08:16:43,607 [http-8080-Processor16] (SSHRemote.java:367) ERROR - SSHRemote Error: failed to execute the command: perfex -timeout 120 =238 on remote: 10.52.0.15, timeout
2014-01-14 08:16:43,610 [http-8080-Processor16] (RemoteCommandLine.java:128) ERROR - list of SSH retries -->
2014-01-14 08:16:43,613 [http-8080-Processor16] (RemoteCommandLine.java:129) ERROR -
Tue Jan 14 08:16:43 GMT-05:00 2014 Connection timed out(V2) com.mercury.sitescope.util.ssh.exception.SSHV2TimedOutException: Reading from server timed out. Time spent on reading = 59871 threshold = 59869 Reading from server timed out. Time spent on reading = 59871 threshold = 59869
2014-01-14 08:16:43,615 [http-8080-Processor16] (RemoteCommandLine.java:130) ERROR - <-- list of SSH retries

Does anybody knows what is the error ?

Best Regards,.

4 REPLIES
HPE Expert

Re: Sitescope cannot connect a Windows Remote Server (unknown error (-996))

Hi,

 

Did you try to connect to your Windows server using the Mindterm application located on SiteScope\WEB-INF mindterm.jar?

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Advisor

Re: Sitescope cannot connect a Windows Remote Server (unknown error (-996))

When I try to use the Mindterm app on the Sitescope Linux console, returns an error:

[root@usdc1svpua002 bin]# export DISPLAY=:0.0


[root@usdc1svpua002 bin]# /opt/HP/SiteScope/java/bin/java -jar /opt/HP/SiteScope/WEB-INF/lib/mindterm.jar
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
at java.awt.Window.initGC(Window.java:466)
at java.awt.Window.init(Window.java:486)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at com.mindbright.application.MindTerm.initGUI(MindTerm.java:667)
at com.mindbright.application.MindTerm.run(MindTerm.java:230)
at com.mindbright.application.MindTerm.main(MindTerm.java:136)

How Mindterm works? It has relation about SSH Key File Authentication method?
HPE Expert

Re: Sitescope cannot connect a Windows Remote Server (unknown error (-996))

You can use it to set up a key basd authentication.

 

If the connections via Mindterm fails, then the connection on SiS will fail too. This seems to be an environmental issue.

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Highlighted
Respected Contributor

Re: Sitescope cannot connect a Windows Remote Server (unknown error (-996))

Hi maxpund


It might be worth starting with checking whether your Windows target machine is listening on port 22 (SSH default). If it is, check whether you can connect to port 22 from your Linux machine.

If you can't, it's likely a firewall issue. If you can connect through, it will be a bit harder to resolve.

I suspect it is either a case of your Windows machine either using some other port besides 22 for SSH connections, or port 22 is simply blocked, especially as you're getting a lot of timeout errors.