Bug 784699

Summary: JON 3.0.1 RC#1: Error with doc example 2.9, "-s" and "-t" command line options
Product: [Other] RHQ Project Reporter: Mike Foley <mfoley>
Component: CLIAssignee: Ian Springer <ian.springer>
Status: CLOSED WORKSFORME QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 3.0.1CC: ccrouch, hrupp, ian.springer
Target Milestone: ---   
Target Release: JON 3.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-01 14:58:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 782579    

Description Mike Foley 2012-01-25 20:21:21 UTC
Description of problem:  Error with doc example 2.9,  "-s" and "-t" command line options


Version-Release number of selected component (if applicable):


How reproducible: 100%


[mfoley@foleymonsterbox1 bin]$ ./rhq-cli.sh -u rhqadmin -p rhqadmin -s 192.168.0.2 -t 16163
RHQ - RHQ Enterprise Remote CLI 4.2.0.JON.3.0.1.GA
Login failed: Can not connect http client invoker. No route to host.
Usage: login username password [host port [transport]]
unconnected$ quit

Comment 1 Mike Foley 2012-01-30 16:26:00 UTC
12/30/2012 BZ triage meeting mfoley, ccrouch, loleary, asantos

Comment 2 Ian Springer 2012-01-31 22:23:30 UTC
Why are you using port 16163? That's the default Agent port. The CLI connects to the Server, so typically the port should be 7080.

Comment 3 Mike Foley 2012-02-01 11:20:10 UTC
same behavior on 7080

[mfoley@foleymonsterbox1 bin]$ ./rhq-cli.sh -u rhqadmin -p rhqadmin -s 192.168.0.2 -t 7080
RHQ - RHQ Enterprise Remote CLI 4.2.0.JON.3.0.1.GA
Login failed: Can not connect http client invoker. No route to host.
Usage: login username password [host port [transport]]
unconnected$

Comment 4 Ian Springer 2012-02-01 14:22:42 UTC
It works for me (using master):

[ips@jetengine bin]$ ./rhq-cli.sh -u rhqadmin -p rhqadmin -s 127.0.0.1 -t 7080
Listening for transport dt_socket at address: 9787
RHQ Enterprise Remote CLI 4.3.0-SNAPSHOT
Remote server version is: 4.3.0-SNAPSHOT (47aff46)
Login successful
rhqadmin.0.1:7080$ 


Are you sure 192.168.0.2 is the correct IP address for the Server?

Comment 5 Mike Foley 2012-02-01 14:58:45 UTC
[mfoley@foleymonsterbox1 bin]$ ./rhq-cli.sh -u rhqadmin -p rhqadmin -s 127.0.0.1 -t 7080
RHQ - RHQ Enterprise Remote CLI 4.2.0.JON.3.0.1.GA
Remote server version is: 3.0.1.GA (784c8ce:5cde182)
Login successful
rhqadmin.0.1:7080$