List all IP addresses and the interfaces that implement them
This query retrieves all interfaces on all main node devices. For each interface, the query lists the IP addresses that the interface implements. An interface can implement multiple IP addresses.
In addition to using information from the entityData table to list the interfaces on each device, this query lists the IP addresses implemented by each interface identified. If an interface does not implement an IP address, that interface is not returned by this query.
Example
1] SELECT eInterface.entityId Interface_Entity_ID,
2] eMainNode.entityName Main_Node_Name,
3] eInterface.entityName Interface_Entity_Name,
4] ip.address IP_Address
5] FROM entityData eInterface
6] INNER JOIN entityData eMainNode ON eMainNode.entityId =
7] eInterface.mainNodeEntityId
8] INNER JOIN protocolEndPoint p ON p.implementingEntityId = eInterface.entityId
9] INNER JOIN ipEndPoint ip ON ip.entityId = p.endPointEntityId
10] WHERE eInterface.entityType = 2
11] ORDER BY eInterface.entityId
Description
The table below describes this query.
|
Line numbers |
Description |
|---|---|
|
1-4 |
Specify the data to show in the results, as follows:
|
|
5 |
Use the |
|
6-7 |
Identify the containing main node device for each of the entities retrieved in the preceding line. Do this by joining the |
|
8-9 |
Identify the IP addresses implemented by each of the entities identified in line 5 of the query. Do this by performing an Then perform a second |
|
10 |
Limit the components of the device to interfaces only. Do this by filtering the components to retrieve only components with an
entity type of |
|
11 |
To facilitate readability of the results, order first by the unique entity ID of the interface. |
Results
The table below shows the results of this query.
|
Interface Entity ID |
Main Node Name |
Interface Entity Name |
IP Address |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|