简体   繁体   English

Orion基本功能与IPAM之间是否存在正式联系

[英]Are there formal linkages between base Orion functionality and IPAM

I'm attempting to understand how SolarWinds Orion IPAM tables relate to the Orion ones. 我试图了解SolarWinds Orion IPAM表与Orion表之间的关系。 I know there are entries on the IPAM side that need some attention and/or cleanup. 我知道IPAM端有一些条目需要注意和/或清理。 So I've written various queries like the following where the IP Address was the key: 因此,我编写了如下各种查询,其中IP地址是关键:

SELECT DISTINCT
       I.IPAddress
     , I.DnsBackward
     , O.Caption
     , O.IP_Address
FROM IPAM.IPNode AS I
LEFT OUTER JOIN Orion.Nodes AS O ON I.IPAddress = O.IP_Address
WHERE I.Status = 1
AND ( I.DnsBackward LIKE '' OR I.DnsBackward IS NULL)

I get lots of mismatches when I attempt to link using IP Address. 尝试使用IP地址链接时,出现很多不匹配的情况。 So several questions: 有几个问题:

  1. Is there any formal linkage (key) between these two tables? 这两个表之间是否有正式的链接(键)?
  2. If there is no formal linkage, is there a better join key to use? 如果没有正式的链接,是否有更好的联接键可以使用?
  3. Is there some place I can see linkages (keys) between Orion and IPAM tables? 我可以在Orion和IPAM表之间找到链接(键)的地方吗?

The query above is directed at finding entries that are missing DNS A record and PTR entries. 上面的查询旨在查找缺少DNS A记录和PTR条目的条目。 So I can add them using the SDK powershell interface: 因此,我可以使用SDK Powershell界面添加它们:

Invoke-SwisVerb $swis IPAM.IPAddressManagement AddDnsARecordWithPtr @("QQQ.TestZone.", "10.11.78.25", "10.199.7.82", "TestZone")

The reason you are struggling is that the tables are unrelated. 您苦苦挣扎的原因是表是不相关的。

The Orion.Nodes table will only contain managed devices in IPAM, this is typically the DHCP and DNS servers that are configured (with suitable credentials) to be polled by IPAM. Orion.Nodes表将仅包含IPAM中的受管设备,通常是配置为具有IPAM轮询的DHCP和DNS服务器(具有适当的凭据)。 This table uses the NodeID as its unique reference. 该表使用NodeID作为其唯一参考。 If you can see the device from http://--IPAM-Server--/ui/manage/nodes then it will be in the Nodes table. 如果您可以从http://-IPAM-Server-/ ui / manage / nodes看到该设备,则它将位于“节点”表中。

IPAM.IPNode table is for the devices found from the IPAM scans, this is a non-related table and you will find matching node names and IP addresses, but not a matching NodeID. IPAM.IPNode表用于从IPAM扫描中找到的设备,这是不相关的表,您将找到匹配的节点名称和IP地址,但找不到匹配的NodeID。

This table uses IpNodeId as its unique reference. 该表使用IpNodeId作为其唯一引用。

SELECT IpNodeId,IPAddress, 
       CASE
           WHEN ISNULL(sysname, '') <> '' THEN sysname
           WHEN ISNULL(DnsBackward, '') <> '' THEN DnsBackward
           WHEN ISNULL(Alias, '') <> '' THEN Alias
           ELSE ''
       END AS Hostname
FROM  IPAM.IPNode
WHERE Status = 1 --IP Address Used

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM