set api and secret keys, read this so you understand how to use it: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI
________________________________________ From: Charles Moulliard [ch0...@gmail.com] Sent: Sunday, December 02, 2012 10:38 PM To: cloudstack-users@incubator.apache.org Subject: Re: CloudMonkey - Connection refused I was not using the good IP address. Now I get : mycloudmonkey>set host 192.168.56.1 mycloudmonkey>list users HTTP Error 401: Unauthorized On Sun, Dec 2, 2012 at 9:24 AM, Rohit Yadav <rohit.ya...@citrix.com> wrote: > The host is the mgmt server host ip. Remember in this way, cloudmonkey is > just another client for CloudStack, a client should never connect to a > hypervisor host to make CS api calls. > Is 56.10 where your mgmt server is running? If yes, are those ports (end > points) accessible? > > Regards. > ________________________________________ > From: Charles Moulliard [ch0...@gmail.com] > Sent: Saturday, December 01, 2012 11:05 PM > To: cloudstack-users@incubator.apache.org > Subject: CloudMonkey - Connection refused > > Hi, > > When I run the following Cloudmonkeys commands, I get this error : > > 🐵 cloudmonkey> set host 192.168.56.10 > 🐵 cloudmonkey> set port 8080 > 🐵 cloudmonkey> set apiKey > > seDi4nzFfadLNmMbtXExs_9CwFMzAMXkdNiy5ttzY44KEV9ltpDryrmfT5NTUS3QMbBQ_PRS_3M1_3R_e57QZQ > 🐵 cloudmonkey> set secretkey > > 5G6G0M5gFfSH4_XkeuLjHloeGiwflfWy95LK0M1GHmN0JiYnm5o9hbg8SukD3BUEcJO6YwL3Gd2pkmnnDlaJ5A > 🐵 cloudmonkey> set prompt mycloudmonkey> > > mycloudmonkey>list users > Connection Error: <urlopen error [Errno 111] Connection refused> > > Is the connection refused because something is not configured on the mngt > server ? > > Regards, > > -- > Charles Moulliard > Apache Committer / Sr. Enterprise Architect (RedHat) > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com > -- Charles Moulliard Apache Committer / Sr. Enterprise Architect (RedHat) Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com