nicolas / debian.moreutils (public) (License: GPL-2, GPL-2+, Expat, BSD-2-Clause, Public Domain) (since 2018-09-25) (hash sha1)
Debian packaging of joeyh's moreutils

/ifdata.docbook (963943ee1bd1ae2ae3b087663a5e1d6cd961f246) (7234 bytes) (mode 100644) (type blob)

<?xml version="1.0" encoding="utf-8"?>

<!--

Copyright 2006 Joey Hess

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

-->

<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
"file:///usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd"
[]>

<refentry>

	<refentryinfo>
		<author>
			<firstname>Joey</firstname>
			<surname>Hess</surname>
		</author>
		<date>2006-03-07</date>
	</refentryinfo>

	<refmeta>
		<refentrytitle>ifdata</refentrytitle>
		<manvolnum>1</manvolnum>
	</refmeta>

	<refnamediv>
		<refname>ifdata</refname> 
		<refpurpose>get network interface info without
		parsing ifconfig output</refpurpose>
	</refnamediv>

	<refsynopsisdiv>
		<cmdsynopsis>
			<command>ifdata</command>
			<arg>options</arg>
			<arg choice="req"><replaceable>iface</replaceable></arg>
		</cmdsynopsis>
	</refsynopsisdiv>
  
	<refsect1>
		<title>DESCRIPTION</title>
	
		<para>
			<command>ifdata</command> 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 <command>ifconfig</command> or
			<command>ip</command>, <command>ifdata</command>
			has simple to parse output that is designed to be
			easily used by a shell script.
		</para>
	
	</refsect1>
  
	<refsect1>
		<title>OPTIONS</title>
	
		<variablelist>
	
		<varlistentry>
			<term><option>-h</option></term>
			<listitem>
				<para>Print out a help summary.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-e</option></term>
			<listitem>
				<para>Test to see if the interface exists,
					exit nonzero if it does not.</para>
			</listitem>
		</varlistentry>
		
		<varlistentry>
			<term><option>-p</option></term>
			<listitem>
				<para>Prints out the whole configuration of
					the interface.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-pe</option></term>
			<listitem>
				<para>Prints "yes" or "no" if the interface
					exists or not.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-pa</option></term>
			<listitem>
				<para>Prints the IPv4 address of the
					interface.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-pn</option></term>
			<listitem>
				<para>Prints the netmask of the
					interface.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-pN</option></term>
			<listitem>
				<para>Prints the network address of the
					interface.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-pb</option></term>
			<listitem>
				<para>Prints the broadcast address of the
					interface.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-pm</option></term>
			<listitem>
				<para>Prints the MTU of the interface.</para>
			</listitem>
		</varlistentry>

		</variablelist>
	
		<para>Following options are Linux only.</para>

		<variablelist>
			
		<varlistentry>
			<term><option>-ph</option></term>
			<listitem>
				<para>Prints the hardware address of the
					interface.</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term><option>-pf</option></term>
			<listitem>
				<para>Prints the flags of the 
					interface.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-si</option></term>
			<listitem>
				<para>Prints out all the input statistics
					of the interface.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sip</option></term>
			<listitem>
				<para>Prints the number of input packets.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sib</option></term>
			<listitem>
				<para>Prints the number of input bytes.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sie</option></term>
			<listitem>
				<para>Prints the number of input errors.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sid</option></term>
			<listitem>
				<para>Prints the number of dropped input
					packets.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sif</option></term>
			<listitem>
				<para>Prints the number of input fifo overruns.</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term><option>-sic</option></term>
			<listitem>
				<para>Print the number of compressed input
					packets.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sim</option></term>
			<listitem>
				<para>Prints the number of input
					multicast packets.</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term><option>-so</option></term>
			<listitem>
				<para>Prints out all the output statistics
					of the interface.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sop</option></term>
			<listitem>
				<para>Prints the number of output packets.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sob</option></term>
			<listitem>
				<para>Prints the number of output bytes.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-soe</option></term>
			<listitem>
				<para>Prints the number of output errors.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sod</option></term>
			<listitem>
				<para>Prints the number of dropped
					output packets.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-sof</option></term>
			<listitem>
				<para>Prints the number of output fifo overruns.</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term><option>-sox</option></term>
			<listitem>
				<para>Print the number of output collisions.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-soc</option></term>
			<listitem>
				<para>Prints the number of output carrier
					losses.</para>
			</listitem>
		</varlistentry>
	
		<varlistentry>
			<term><option>-som</option></term>
			<listitem>
				<para>Prints the number of output multicast
					packets.</para>
			</listitem>
		</varlistentry>
		
		<varlistentry>
			<term><option>-bips</option></term>
			<listitem>
				<para>Prints the number of bytes of
				incoming traffic measured in one second.</para>
			</listitem>
		</varlistentry>
		
		<varlistentry>
			<term><option>-bops</option></term>
			<listitem>
				<para>Prints the number of bytes of
                                outgoing traffic measured in one second.</para>
			</listitem>
		</varlistentry>

	</variablelist>
	</refsect1>
	
	<refsect1>
		<title>AUTHOR</title>
	
		<para>
			Benjamin BAYART
		</para>
	</refsect1>
</refentry>


Mode Type Size Ref File
100644 blob 44 5d425843f23db3bb6970a55c953f345e3a8c8fe1 .gitattributes
100644 blob 17989 b7b5f53df1412df1e117607f18385b39004cdaa2 COPYING
100644 blob 1038 377121d56b79b9fbc42cabe86f4c3bae0d44bd2f Makefile
100644 blob 1106 548acf2240b3ea1ad6276e39ec195133a8b6d4c6 README
100755 blob 806 83a4eed00f82e3bcc81856149b47cffc4091f9aa check-isutf8
100755 blob 2607 a695935b24a5f2789c71a8affc4486859a41f737 combine
040000 tree - d377bb15d8eaac6c3d81cb5ba3d2dad1e5a271f5 debian
100644 blob 13073 2de98a0b19372bff63be861b5adc755fa52fc74d ifdata.c
100644 blob 7234 963943ee1bd1ae2ae3b087663a5e1d6cd961f246 ifdata.docbook
100644 blob 3006 d8ecea9b8bc416154533572e1ce85a0385b7af10 ifne.c
100644 blob 2360 41fa9abe7a23b63f5afd110dcd0b3f78b0e4c531 ifne.docbook
100644 blob 7581 c5f5eeb667c425c3ef02516712c08acb72f3f557 isutf8.c
100644 blob 2986 58355a2cd465fe70dd7722c28c1dc62ed85ef7e8 isutf8.docbook
100644 blob 5471 4925409bd548b058f07defe913724868801040df lckdo.c
100644 blob 3532 effe84d29436f6749b7b0614b6a59c700f287ccf lckdo.docbook
100644 blob 5783 d183d04a5f249072da9be3e1d30d4e205e1be021 mispipe.c
100644 blob 2464 bd8faa8601fe24b72f93985249be2163513f44f7 mispipe.docbook
100644 blob 5318 d283b96101fbc89ef214436bab316cf1092536f9 parallel.c
100644 blob 3598 d3ffcce639cc0880bb1aebb973354d7a6b54dbcd parallel.docbook
100644 blob 1040 6ba38f78da10b61c8670b1c450fa769248ef84c4 pee.c
100644 blob 2225 f6a84414d20579a4a10354ec477b5a2734db9e04 pee.docbook
100644 blob 7301 a53a2cf1906998c91533f5f5435ceeeeb1a7cd59 physmem.c
100644 blob 8583 62b3ab5b21afa5c20838ef3752212781563bbe44 sponge.c
100644 blob 2123 ebdcdea4210d3bea97cf75b9f075f2395a53d548 sponge.docbook
100755 blob 2572 042cc18b8a0b4649874b229c039b7b9d79806bfc ts
100755 blob 4495 a77739f27d8cab6843471de92857fe5064f9ace4 vidir
100755 blob 1402 fd61049c5ce903a1de06870cadf18a7c2b1e4137 vipe
100755 blob 2518 98d1445a5f8106f04be690f85d802a7f6decfd13 zrun
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using git:
git clone git://git.rocketgit.com/user/nicolas/debian.moreutils

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main