通过检查所发现的设备和实例,确认您的初始发现过程是成功的。
遵循这些步骤:
GET http://da_hostname:port/rest/discoveryprofiles
指定 Data Aggregator 主机名和端口号。
默认端口:8581
发现配置文件的列表和它们的实例 ID 即被返回。
示例:
<DiscoveryInstanceIDList relatesURL="relatesto/instances"
rootURL="discoveryinstances">
<ID>236</ID>
</DiscoveryInstanceIDList>
GET http://da_hostname:port/rest/discoveryinstances/instance_ID
实例 XML 返回新设备和现有设备及已测试的 SNMP 配置文件的信息。
示例:
<?xml version="1.0" encoding="UTF-8"?>
<DiscoveryInstance version="1.0.0">
<ID>236</ID>
<IPSweepTotalSuccess>5</IPSweepTotalSuccess>
<CompletionTime>Thu Apr 12 12:36:35 CDT 2012</CompletionTime>
<ExistingFoundDevicesList>
<ExistingFoundDevices>241</ExistingFoundDevices>
<ExistingFoundDevices>239</ExistingFoundDevices>
<ExistingFoundDevices>240</ExistingFoundDevices>
<ExistingFoundDevices>238</ExistingFoundDevices>
</ExistingFoundDevicesList>
<IPSweepCompletionTime>Thu Apr 12 12:36:35 CDT 2012</IPSweepCompletionTime>
<ExistingFoundManageableDevicesList>
<ExistingFoundManageableDevices>241</ExistingFoundManageableDevices>
<ExistingFoundManageableDevices>239</ExistingFoundManageableDevices>
<ExistingFoundManageableDevices>240</ExistingFoundManageableDevices>
<ExistingFoundManageableDevices>238</ExistingFoundManageableDevices>
</ExistingFoundManageableDevicesList>
<StartTime>Thu Apr 12 12:36:31 CDT 2012</StartTime>
<NewlyCreatedDevicesList>
<NewlyCreatedDevices>383</NewlyCreatedDevices>
</NewlyCreatedDevicesList>
<TestedCommProfilesList>
<TestedCommProfiles>199</TestedCommProfiles>
<TestedCommProfiles>198</TestedCommProfiles>
</TestedCommProfilesList>
<IPSweepStartTime>Thu Apr 12 12:36:31 CDT 2012</IPSweepStartTime>
<ProgressPercentage>100</ProgressPercentage>
<IPSweepTotal>7</IPSweepTotal>
<ProfileID>235</ProfileID>
<NewlyCreatedManageableDevicesList>
<NewlyCreatedManageableDevices>383</NewlyCreatedManageableDevices>
</NewlyCreatedManageableDevicesList>
<PingResponseDeviceCount>5</PingResponseDeviceCount>
<CompletionStatus>SUCCESS</CompletionStatus>
<Item version="1.0.0">
<CreateTime>Thu Apr 12 12:36:31 CDT 2012</CreateTime>
</Item>
</DiscoveryInstance>
GET http://da_hostname:port/rest/devices/device_ID
指定引用端点的 ID。 使用您先前找到的 ID。
GET http://da_hostname:port/rest/profiles/profile_ID
您会看到发现的所有设备和实例。
|
版权所有 © 2014 CA Technologies。
保留所有权利。
|
|