1IFDATA(1)                          moreutils                         IFDATA(1)
2
3
4

NAME

6       ifdata - get network interface info without parsing ifconfig output
7

SYNOPSIS

9       ifdata [options] {iface}
10

DESCRIPTION

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

OPTIONS

18       -h
19           Print out a help summary.
20
21       -e
22           Test to see if the interface exists, exit nonzero if it does not.
23
24       -p
25           Prints out the whole configuration of the interface.
26
27       -pe
28           Prints "yes" or "no" if the interface exists or not.
29
30       -pa
31           Prints the IPv4 address of the interface.
32
33       -pn
34           Prints the netmask of the interface.
35
36       -pN
37           Prints the network address of the interface.
38
39       -pb
40           Prints the broadcast address of the interface.
41
42       -pm
43           Prints the MTU of the interface.
44
45       Following options are Linux only.
46
47       -ph
48           Prints the hardware address of the interface.
49
50       -pf
51           Prints the flags of the interface.
52
53       -si
54           Prints out all the input statistics of the interface.
55
56       -sip
57           Prints the number of input packets.
58
59       -sib
60           Prints the number of input bytes.
61
62       -sie
63           Prints the number of input errors.
64
65       -sid
66           Prints the number of dropped input packets.
67
68       -sif
69           Prints the number of input fifo overruns.
70
71       -sic
72           Print the number of compressed input packets.
73
74       -sim
75           Prints the number of input multicast packets.
76
77       -so
78           Prints out all the output statistics of the interface.
79
80       -sop
81           Prints the number of output packets.
82
83       -sob
84           Prints the number of output bytes.
85
86       -soe
87           Prints the number of output errors.
88
89       -sod
90           Prints the number of dropped output packets.
91
92       -sof
93           Prints the number of output fifo overruns.
94
95       -sox
96           Print the number of output collisions.
97
98       -soc
99           Prints the number of output carrier losses.
100
101       -som
102           Prints the number of output multicast packets.
103
104       -bips
105           Prints the number of bytes of incoming traffic measured in one
106           second.
107
108       -bops
109           Prints the number of bytes of outgoing traffic measured in one
110           second.
111

AUTHOR

113       Benjamin BAYART
114
115
116
117moreutils                         2006-03-07                         IFDATA(1)
Impressum