Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

support utilities

Display all ento interfaces IP settings by MoshiachNow
Posted: 24 Aug 03 (Edited 23 May 05)

This utility displays all IP configurations
This script displays IP settings on all entX interfaces.

Sample output:

Int  IP_address       Mask              DNS               Gateway      Domain                Speed Selected       Type    
---  ----------      ----            ---          -------      ------                --------------       ------  
en0    cil.creo.com          Auto_Negotiation     GIGABIT              
en1                                       cil.creo.com          Auto_Negotiation     GIGABIT              
#                   Written on 1/7/03
#                    Updated April 17, 2005
#                   Version 1.7               
#                    The script  displays IP settings on all ent interfaces

printf "%-4s %-15s %-15s %-14s %-14s %-21s %-20s %-8s\n" "Int" "IP_address" "Mask" "DNS" "Gateway" "Domain" "Speed Selected" "Type"
printf "%-4s %-15s %-15s %-14s %-14s %-21s %-20s %-8s\n" "---" "----------" "----" "---" "-------" "------" "--------------" "------"
for EN in `lsdev -Cs pci| awk '/ent/ { print $1 }'|cut -c 1,2,4`;do
    mktcpip -S $EN 2>&1|awk -F: '$0 !~ /host/  {printf  ("%-4s %-15s %-15s %-14s %-14s %-22s",$4,$2,$3,$5,$7,$6 )}'
    ENT=`echo $EN|cut -c 3`
    SPEED=`lsattr -El ent$ENT | grep -i speed|awk '{print $2}'`
    if [[ -z $SPEED ]] ;then
    lscfg -v -l ent$ENT|grep -iE "gigabit|10/100/1000" >/dev/null
    if [[ $? = 0 ]] ;then
    printf "%-20s %-20s \n" $SPEED $DESCRIPTION

Back to IBM: AIX FAQ Index
Back to IBM: AIX Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close