DOKK / manpages / debian 12 / plc-utils-extra / nics.1.en
nics(1) Qualcomm Atheros Open Powerline Toolkit nics(1)

nics - Host Network Interface Enumerator

nics

Search host for Ethernet interfaces and display the interface index, hardware address, IP address, interface name and interface description on stdout. This provides a simple, consistent, cross-platform format for presenting interface information to scripts and user applications.

This program illustrates use of basic Atheros Ethernet interface C functions. See program ifs for an alternative C++ implementation.

-?,--help
Print program help summary on stdout. This option takes precedence over other options on the command line.

-!,--version
Print program version information on stdout. This option takes precedence over other options on the command line. Use this option when sending screen dumps to Intellon Technical Support so that they know exactly which version of the Linux Toolkit you are using.

None.

The following example searches a Linux host and displays information about available interfaces.


# nics
2 00:50:04:A5:D8:98 000.000.000.000 eth4 eth4
3 00:0F:EA:4B:98:CB 192.168.172.239 eth3 eth3

The following example searches a MacOSX host and displays information about available interfaces. Observe that interface names are varied.


# nics
4 00:26:BB:52:DD:A8 192.168.172.149 en0 en0
6 04:1E:64:F0:FB:EC 000.000.000.000 en1 en1

amp(1), ifs(1), nics(1), pcapdevs(1), plcnets(1)


Charles Maier

November 2013 open-plc-utils-0.0.3