6.2

Table Of Contents
VMware, Inc. 61
B
ThisappendixdescribestheADMAPIandexplainshowtoaccessanduseit.Topicsinclude:
“A P I Features”onpage 61
“WebServicesAPI”onpage 63
API Features
TheAPIofADMallowsclientstoqueryitsdatabaseandexportpartsofitbymeansofawebservicesAPI.
Thefollowingcasesareexplainedinthefollowingsections:
WritingthesystemstatusintoanXMLoutputfile;“Insight_control”onpage 61.
SynchronizationofCMDBapplicationswithdataofADM;“A s y n c h API”onpage 62.
PopulationofthirdpartyapplicationswithdataofADM.
DumpingofentiredatabasetablesanduploadingtoanFTPserver;“DumpAPI”onpage 62.
Accesstofiltereddatabybulk(paginated);“BulkAPI”onpage 63.
YoucandividetheAPIintothreesections,wheretwoarededicatedtoqueryingtheADM(DumpandBulk),
andthethirdisinchargeoftrackingthosequeries(Asynch).
Insight_control
TheInsight_controlutilitywritesthesystemstatusintoanXMLoutputfile.
To run Insight_control utility
1Logintotheapplianceasuserroot.
2 Changethedirectorybytyping:
cd /home/nlayers/Seneca/management/APIs
3Typethefollowingcommandtogenerateasystemstatusoutputfile:
./InSight_control.sh systemstatus --get --output /tmp/systemstatus
Service Status
Servicestatuscanbe:
Running:Theserviceisrunning.
Disabled:TheADMintentionallystopstheservice.
NotRunning(PurposelyStopped):Theservicewasstoppedintentionally,forexample,aservicewas
manuallystoppedbytheadm_control.pl --stopcommand.
ADM API Tutorial
B
NOTEYoucansubstituteadifferentfileandpathfor /tmp/systemstatus.