We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConnectionOptions options = new ConnectionOptions(); options.set(ADDRESS, "ec2-54-211-254-21.us-west-2.compute.amazonaws.com"); options.set(USERNAME, ""); options.set(PASSWORD, "<password"); options.set(OPERATING_SYSTEM, WINDOWS); options.set(CONNECTION_TYPE, WINRM_INTERNAL); options.set("winrmEnableHttps", true); System.out.println("Establishing Windows server Connection..."); OverthereConnection connection = Overthere.getConnection(ParserConstants.CIFS_PROTOCOL, options);
try { OverthereFile appHostFile = connection.getFile("C:/Windows/System32/inetsrv/config/applicationHost.config"); BufferedReader r = new BufferedReader(new InputStreamReader(appHostFile.getInputStream())); String line; while ((line = r.readLine()) != null) { System.out.println(line); }
r.close(); } catch (Exception ex) { }
-----------------error:------------------------ 12:34:35.396 [main] INFO com.xebialabs.overthere.OverthereConnector - Connecting to cifs:winrm_internal://Administrator@ec2-54-213-254-210.us-west-2.compute.amazonaws.com:445:5986 12:34:35.442 [main] DEBUG com.xebialabs.overthere.cifs.CifsFile - Opening CIFS input stream for \ec2-54-211-254-21.us-west-2.compute.amazonaws.com\C$\Windows\System32\inetsrv\config\applicationHost.config com.xebialabs.overthere.RuntimeIOException: Cannot open \ec2-54-211-254-21.us-west-2.compute.amazonaws.com\C$\Windows\System32\inetsrv\config\applicationHost.config for reading: jcifs.smb.SmbException: Failed to connect: ec2-54-211-254-21.us-west-2.compute.amazonaws.com/54.211.254.21 jcifs.util.transport.TransportException: Connection timeout at jcifs.util.transport.Transport.connect(Transport.java:174)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ConnectionOptions options = new ConnectionOptions();
options.set(ADDRESS, "ec2-54-211-254-21.us-west-2.compute.amazonaws.com");
options.set(USERNAME, "");
options.set(PASSWORD, "<password");
options.set(OPERATING_SYSTEM, WINDOWS);
options.set(CONNECTION_TYPE, WINRM_INTERNAL);
options.set("winrmEnableHttps", true);
System.out.println("Establishing Windows server Connection...");
OverthereConnection connection = Overthere.getConnection(ParserConstants.CIFS_PROTOCOL, options);
try {
OverthereFile appHostFile = connection.getFile("C:/Windows/System32/inetsrv/config/applicationHost.config");
BufferedReader r = new BufferedReader(new InputStreamReader(appHostFile.getInputStream()));
String line;
while ((line = r.readLine()) != null) {
System.out.println(line);
}
-----------------error:------------------------
12:34:35.396 [main] INFO com.xebialabs.overthere.OverthereConnector - Connecting to cifs:winrm_internal://Administrator@ec2-54-213-254-210.us-west-2.compute.amazonaws.com:445:5986
12:34:35.442 [main] DEBUG com.xebialabs.overthere.cifs.CifsFile - Opening CIFS input stream for \ec2-54-211-254-21.us-west-2.compute.amazonaws.com\C$\Windows\System32\inetsrv\config\applicationHost.config
com.xebialabs.overthere.RuntimeIOException: Cannot open \ec2-54-211-254-21.us-west-2.compute.amazonaws.com\C$\Windows\System32\inetsrv\config\applicationHost.config for reading: jcifs.smb.SmbException: Failed to connect: ec2-54-211-254-21.us-west-2.compute.amazonaws.com/54.211.254.21
jcifs.util.transport.TransportException: Connection timeout
at jcifs.util.transport.Transport.connect(Transport.java:174)
The text was updated successfully, but these errors were encountered: