Re: nice one liner to get mac addreses

From: Andrew Townsend (Andrew.Townsend_at_BISYS.COM)
Date: 01/28/05

  • Next message: Yard, John: "wuftpd and ssl"
    Date:         Fri, 28 Jan 2005 11:49:30 -0500
    To: aix-l@Princeton.EDU
    
    

    Nice!

                          Robert Binkley
                          <leebinkley@YAHOO To: aix-l@Princeton.EDU
                          .COM> cc:
                          Sent by: IBM AIX Subject: nice one liner to get mac addreses
                          Discussion List
                          <aix-l@Princeton.
                          EDU>

                          01/28/2005 11:35
                          AM
                          Please respond to
                          IBM AIX
                          Discussion List

    ONe Liner Mac Address
    lscfg|awk '{print $2}'|grep ^ent|while read MAC;do
    printf $MAC;printf " --> ";lscfg -vpl $MAC | awk -F. '
    /Network Address/ {print $14

    }';print " ";done

    =====
    Robert Lee Binkley leebinkley@yahoo.com
     IBM AIX Specialist Certified
     HP-UX System Administration Certified
    Work It's Nice To Be Important But It's More Important To Be Nice

    This email is confidential and intended solely for the use of the
    individual or entity to whom it is addressed. If you have received this
    email in error please notify the system manager at mailadmin@bisys.com and
    delete the email immediately.


  • Next message: Yard, John: "wuftpd and ssl"