The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: help ip script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-24-2008
gonzo gonzo is offline
Registered User
  
 

Join Date: Jan 2008
Location: Madrid Spain
Posts: 7
help ip script

hi everyone i dont have much experiencie in shell programing i need take/see/print the next stuff from at leas 45 solaris 8 machines

interface name (qfe, hme , etc)
ip address (x.x.x.x)
ether or mac (8:0:20:e8:da:45)

i do the next

# ifconfig -a | awk '{print $1, $2 ;}'|grep -v "lo0"|grep -v "127.0.0"

and work very weel but i net take out some data for example

this is the ouput whit my (script, command)

qfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>
inet 10.64.115.34
ether 8:0:20:e8:da:45
qfe2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>
inet 172.16.1.101
ether 8:0:20:e8:da:45

i net take out all the flags=1000843,UP,BROADCAST,RUNNING..........

thanks a lot

pd: sorry about my english