Menu

#4099 [HHQ-3924] Add agent ping CLI command

Bug
open
None
1
2012-10-09
2010-04-30
No

http://jira.hyperic.com/browse/HHQ-3924


AgentApi has a method to ping an agent. This new feature request is to expose this via the CLI. Currently the CLI's agent command only has one sub-command, list:



~/hyperic/hq-trunk/hqapi/build/hqapi1-3.2(master) $ ./bin/hqapi.sh agent list


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>


<AgentsResponse>


    <Status>Success</Status>


    <Agent id="10100" address="localhost" port="2144" version="4.3.0-EE" unidirectional="false"/>


</AgentsResponse>



The ping command would take one of two arguments:



./bin/hqapi.sh agent ping --address=localhost:2144


or


./bin/hqapi.sh agent ping --id=10100



Alternatively, we could allow the ping to also take the XML listing do to bulk pings.



Output from this command will be 1 result per line: (though this is up for debate)



Successfully pinged agent localhost:2144


or


Failure pinging agent localhost:2144



Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.