merci mais quand je veux faire des script en batch j'ai pas besoin de les télécharger je les écris
#!/bin/sh
#
#GNU BSD Darwin Kernel 6.x Plumber
[email protected] ScriptUtils InetInfo
#
getInterfaces=`ifconfig -lu`
echo
for Interface in $getInterfaces; do
getInet=`ifconfig $Interface | sed -n -e "s/^.*inet //g" -n -e "s/ netmask.*//p"`
getEther=`ifconfig $Interface | sed -n -e "s/^.*ether //p"`
getmtu=`ifconfig $Interface | sed -n -e "s/^.*mtu //p"`
echo "interface" $Interface
for inet in $getInet; do
getBcast=`ifconfig $Interface | sed -n -e "s/^.*$inet.*.broadcast//p"`
if [ "${inet}" != "-->" ]; then
echo " inet" $inet
if [ "${getBcast}" != "" ]; then
echo " broadcast" $getBcast
fi
fi
done
if [ "${getEther}" != "" ]; then
echo " mac" $getEther
fi
if [ "${getmtu}" != "" ]; then
echo " mtu" $getmtu
fi
echo
done
exit
#End