Pre-release CLI Utility for GoGrid

Looking for volunteers to help evaluate & give feedback on pre-release GoGrid CLI tool that talks to the GoGrid API. This is BETA code, but stable & functional. Send an e-mail to randyb {#} gogrid.com. I’ll send you instructions and a location to get the tool. If you want to test it, but don’t have a GoGrid account just let me know and I’ll supply you a one-time $100 service credit for when you signup.

It’s a Java .jar file. You’ll need a JRE/JDK of 1.5+. I have not tested 1.6, but there isn’t anything special here so it should work. I have not tried Windows or Linux either, but again it should work.

To get command line usage:

% java –jar cloudcontrol.jar -h

This is a simple wrapper around the API functionality and doesn’t have any particular logic of it’s own.

Again, it’s pre-release, so don’t expect oodles of documentation, but I think this tool is simple enough to not need much.

An example of usage and output:

# java -jar cloudcontrol.jar -key KEY -secret SECRET -api api.gogrid.com -list ips -state assigned -type public
Id         IP                   Subnet                         Public
1345       218.111.97.64        218.111.97.64/255.255.255.240  true
1346       218.111.97.65        218.111.97.64/255.255.255.240  true
1351       218.111.97.70        218.111.97.64/255.255.255.240  true
1352       218.111.97.71        218.111.97.64/255.255.255.240  true
1353       218.111.97.72        218.111.97.64/255.255.255.240  true
1360       218.111.97.79        218.111.97.64/255.255.255.240  true

Update: There is currently a little quirk in the way the backend of GoGrid and the API work together. The result is that it isn’t obvious when a server is finished being provisioned. Here’s how you know. When the ‘Id’ returned is no longer a ‘0′, then your server is ready.

For example when it’s not ready.

% java -jar cloudcontrol.jar -key KEY -secret SECRET -api api.gogrid.com -list servers
Id         Name                 Description
0          test1                Test Box

When it’s good to be started:

% java -jar cloudcontrol.jar -key KEY -secret SECRET -api api.gogrid.com -list servers
Id         Name                 Description
18321      test1                Test Box

Post to Twitter

blog comments powered by Disqus

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.