
VMware, Inc. 59
B
ThisappendixdescribestheADMAPIandexplainshowtoaccessanduseit.Topicsinclude:
“A P I Features”onpage 59
“WebServicesAPI”onpage 61
API Features
TheAPIofADMallowsclientstoqueryitsdatabaseandexportpartsofitbymeansofawebservicesAPI.
Thefollowingcasesareexplainedinthefollowingsections:
WritingthesystemstatusintoanXMLoutputfile;“Insight_control”onpage 59.
SynchronizationofCMDBapplicationswithdataofADM;“A s y n c h API”onpage 60.
PopulationofthirdpartyapplicationswithdataofADM.
DumpingofentiredatabasetablesanduploadingtoanFTPserver;“DumpAPI”onpage 60.
Accesstofiltereddatabybulk(paginated);“BulkAPI”onpage 61.
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
NOTEYoucansubstituteadifferentfileandpathfor /tmp/systemstatus.
Commenti su questo manuale