Generic.Network.InterfaceAddresses

Network interfaces and relevant metadata. This artifact works on all supported OSs.


name: Generic.Network.InterfaceAddresses
description: |
  Network interfaces and relevant metadata. This artifact works on all
  supported OSs.

aliases:
  - Windows.Network.InterfaceAddresses

sources:
  - query: |
        LET interface_address =
           SELECT Index, MTU, Name,
                  HardwareAddr.String AS HardwareAddr,
                  Flags, Addrs
           from interfaces()

        SELECT Index, MTU, Name, HardwareAddr,
           Flags, Addrs.IP as IP, Addrs.Mask.String as Mask
        FROM flatten(query=interface_address)