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

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: reseau,shell</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Récupérer l'adresse ip publique</title>
        <link>http://www.posteet.com/view/216</link>
        <description>
        <![CDATA[<pre>#L'appel à iconv n'est nécessaire que si votre système utilise utf8 comme jeu de caractères par défaut (ce qui devient de plus en plus courant) au lieu d'iso8859-1 (latin-1).
wget -q www.monip.org -O -  | iconv -f iso8859-1 -t utf8 | sed -nre 's/^.* (([0-9]{1,3}\.){3}[0-9]{1,3}).*$/\1/p'</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/ip">[ip]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/reseau">[reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>bobuse</dc:creator>
        <pubDate>Mon, 05 Nov 2007 10:04:56 +0000</pubDate>

            <category>bash</category>
            <category>ip</category>
            <category>linux</category>
            <category>reseau</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Récupérer le nombre total d'octet transféré sur une interface</title>
        <link>http://www.posteet.com/view/135</link>
        <description>
        <![CDATA[<pre>#Remplacez &quot;eth0&quot; par l'interface concernée. 
#Octets reçus :
/sbin/ifconfig eth0 | grep bytes | sed -e &quot;s/TX.*//g&quot; | sed -e &quot;s/.*RX/RX/g&quot;
#Octets envoyés :
/sbin/ifconfig eth0 | grep bytes | sed -e &quot;s/.*TX/TX/g&quot;
#Les deux :
/sbin/ifconfig eth0 | grep bytes | sed -e &quot;s/.*RX/RX/g</pre> <a href="http://www.posteet.com/tags/Bash">[Bash]</a>  <a href="http://www.posteet.com/tags/Linux">[Linux]</a>  <a href="http://www.posteet.com/tags/Reseau">[Reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>daneel</dc:creator>
        <pubDate>Sat, 03 Nov 2007 16:42:05 +0000</pubDate>

            <category>Bash</category>
            <category>Linux</category>
            <category>Reseau</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Récupérer l'adresse ip publique (vue depuis internet)</title>
        <link>http://www.posteet.com/view/134</link>
        <description>
        <![CDATA[<pre>#L'appel à iconv n'est nécessaire que si votre système utilise utf8 comme jeu de caractères par défaut (ce qui devient de plus en plus courant) au lieu d'iso8859-1 (latin-1).
wget -q www.monip.org -O ip.tmp &amp;&amp; cat ip.tmp | iconv -f iso8859-1 -t utf8 | sed -nre 's/^.* (([0-9]{1,3}\.){3}[0-9]{1,3}).*$/\1/p' &amp;&amp; rm -f ip.tmp</pre> <a href="http://www.posteet.com/tags/Bash">[Bash]</a>  <a href="http://www.posteet.com/tags/Linux">[Linux]</a>  <a href="http://www.posteet.com/tags/Reseau">[Reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>daneel</dc:creator>
        <pubDate>Sat, 03 Nov 2007 16:40:14 +0000</pubDate>

            <category>Bash</category>
            <category>Linux</category>
            <category>Reseau</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Récupérer l'ip d'une interface réseau (ou son masque réseau)</title>
        <link>http://www.posteet.com/view/133</link>
        <description>
        <![CDATA[<pre>#Où eth0 est l'interface pour laquelle vous voulez l'ip.
#Remplacer -f2 du premier cut par -f3 pour obtenir le masque du réseau.
/sbin/ifconfig eth0 | head -n 2 | tail -n 1 | cut -d&quot;:&quot; -f2 | cut -d&quot; &quot; -f1</pre> <a href="http://www.posteet.com/tags/Bash">[Bash]</a>  <a href="http://www.posteet.com/tags/Linux">[Linux]</a>  <a href="http://www.posteet.com/tags/Reseau">[Reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>daneel</dc:creator>
        <pubDate>Sat, 03 Nov 2007 16:37:59 +0000</pubDate>

            <category>Bash</category>
            <category>Linux</category>
            <category>Reseau</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Récupérer le nom de l'interface Wifi</title>
        <link>http://www.posteet.com/view/132</link>
        <description>
        <![CDATA[<pre>#Testé sous Fedora
grep -a2 Wireless /etc/sysconfig/hwconf | grep device | cut -d &quot; &quot; -f2</pre> <a href="http://www.posteet.com/tags/Bash">[Bash]</a>  <a href="http://www.posteet.com/tags/Linux">[Linux]</a>  <a href="http://www.posteet.com/tags/Reseau">[Reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>daneel</dc:creator>
        <pubDate>Sat, 03 Nov 2007 16:36:44 +0000</pubDate>

            <category>Bash</category>
            <category>Linux</category>
            <category>Reseau</category>
            <category>shell</category>
    
    </item>


</channel>
</rss>
