Sunday, April 22, 2012

First steps with HQApi command line interface

here instructions on how to create the file.

I do this (my user is pvernet):
cd C:\Users\pvernet\
mkdir ".hq"

I create a client.properties file containing this:

host=localhost
port=7443
secure=true
user=hqadmin
password=hqadmin


and when I do
cd C:\pierre\workspace\Hyperic\lib\hqapi1-client-5.0.0\bin
hqapi agent list

I get a fantastic

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AgentsResponse>
<Status>Success
<Agent id="10003" address="10.16.15.112" port="2144" version="4.6.5" unidirectional="false"/>
</AgentsResponse>


Awesome! This is like the HQApi Hello World!

No comments: