ifdata(1)

NAME
ifdata - get network interface info without parsing ifconfig output

SYNOPSIS
ifdata
[options] {iface}

DESCRIPTION
ifdata can be used to check for the existence of a network interface, or to get information abut the interface, such as its IP address. Unlike ifconfig or ip, ifdata has simple to parse output that is designed to be easily used by a shell script.

OPTIONS

\FC-h\F[]
    Print out a help summary.

\FC-e\F[]
    Test to see if the interface exists, exit nonzero if it does not.

\FC-p\F[]
    Prints out the whole configuration of the interface.

\FC-pe\F[]
    Prints "yes" or "no" if the interface exists or not.

\FC-pa\F[]
    Prints the IPv4 address of the interface.

\FC-pn\F[]
    Prints the netmask of the interface.

\FC-pN\F[]
    Prints the network address of the interface.

\FC-pb\F[]
    Prints the broadcast address of the interface.

\FC-pm\F[]
    Prints the MTU of the interface.

Following options are Linux only.

\FC-ph\F[]
    Prints the hardware address of the interface.

\FC-pf\F[]
    Prints the flags of the interface.

\FC-si\F[]
    Prints out all the input statistics of the interface.

\FC-sip\F[]
    Prints the number of input packets.

\FC-sib\F[]
    Prints the number of input bytes.

\FC-sie\F[]
    Prints the number of input errors.

\FC-sid\F[]
    Prints the number of dropped input packets.

\FC-sif\F[]
    Prints the number of input fifo overruns.

\FC-sic\F[]
    Print the number of compressed input packets.

\FC-sim\F[]
    Prints the number of input multicast packets.

\FC-so\F[]
    Prints out all the output statistics of the interface.

\FC-sop\F[]
    Prints the number of output packets.

\FC-sob\F[]
    Prints the number of output bytes.

\FC-soe\F[]
    Prints the number of output errors.

\FC-sod\F[]
    Prints the number of dropped output packets.

\FC-sof\F[]
    Prints the number of output fifo overruns.

\FC-sox\F[]
    Print the number of output collisions.

\FC-soc\F[]
    Prints the number of output carrier losses.

\FC-som\F[]
    Prints the number of output multicast packets.

\FC-bips\F[]
    Prints the number of bytes of incoming traffic measured in one second.

\FC-bops\F[]
    Prints the number of bytes of outgoing traffic measured in one second.

AUTHOR
Benjamin BAYART