How to execute ServerSSHTroubleshoot.bat or sh file ?

How to execute ServerSSHTroubleshoot.bat or sh file ?

Solution:
Execute the file ServerSSHTroubleshoot.bat or sh from the <AppManager_home>\bin\troubleshooting folder (<AppManager_home>\bin in older versions of Applications Manager).

Via command Prompt Execute the ServerSSHTroubleshoot.bat or sh file. It will prompt for the details to connect (some prints will come between this prompts which you can ignore)

Below is a working example for the server with IP 192.168.1.10 and key /root/.ssh/id_rsa (user entries are in bold, comments in italic)
Example:

C:\Program Files (x86)\ManageEngine\AppManager11\bin\troubleshooting>ServerSSHTroubleshoot.bat -connection key
(use 'password' instead of 'key' if password is used for authentication, Eg : ServerSSHTroubleshoot.bat -connection password)

Hostname: 
Default port ->  hostname   (example 192.168.1.10)
User-defined port->   hostname:port   (example 192.168.1.10:8844)

Do you want to allow this host key? [Yes|No|Always]: Yes
(enter yes here)
Username: root
(enter remote host's username)
Path to private key file?/root/.ssh/id_rsa
(you can copy the ssh private key and paste it a text file in AppManager server, give that file's local path here. Example:  C:\sshprivatekey.txt )

If you are using password based authentication the syntax is as follows:

C:\Program Files (x86)\ManageEngine\AppManager11\bin\troubleshooting>ServerSSHTroubleshoot.bat -connection password 
You will be prompted to enter the password instead of the path to the private key file.

Wait till the file executes completely and returns to the command prompt.
Now, copy the entire command prompt screen to a text file and send it to us (right click on the top of the command prompt Window->edit->select all). We will update you based on our analysis of the above information.




                New to ADManager Plus?

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to execute runWLSMbean.bat or sh file?

                      Execute the runWLSMbean.bat or sh file from the <AppManager_home>\bin\troubleshooting folder via command prompt or terminal. Eg. ~/Zoho/ManageEngine/ManagedServer/AppManager15/bin/troubleshooting$ ./runWLSMbean.sh It will prompt for the details to ...
                    • How can I execute the GlassFishDebug.bat / GlassFishDebug.sh file?

                      Note: Although the script name mentions GlassFish Server, the script file can be used for troubleshooting any monitor connectivity issues, that comes under JMX mode of monitoring like JMXApplications, Apache Zookeeper, Apache Geronimo etc., This file ...
                    • How can I execute UpdateHostnameandIP.bat/sh ?

                      Here are the steps to execute UpdateHostnameandIP.bat/sh: 1) Execute <AppManager_Home>\bin\troubleshooting\UpdateHostaneandIP.bat/sh file. For example,  updateHostNameAndIp.bat/sh [Previous HostName/IpAddress] [new HostName/IpAddress] ...
                    • How to execute WebsphereMQDebug.bat / WebsphereMQDebug.sh?

                      This file is used to check if the connectivity and the Discovery of the Websphere MQ Server is possible from the Applications Manager server. This standalone program is an excerpt of the same process we use to add the Websphere MQ Server monitor. The ...
                    • How can I execute the popTest.bat / popTest.sh file?

                      This file is used to check if the connectivity and the Discovery of the POP Server is possible from the Applications Manager installed server.  This standalone program is a excerpt of the same process we use to add the POP Server monitor. The usage ...