- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Solaris "ifconfig -a" equivalent command in HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2008 04:19 AM
тАО03-17-2008 04:19 AM
Solaris "ifconfig -a" equivalent command in HP-UX
Can any body tell me solaris "ifconfig -a" equivalent command in HP-UX to see all interfaces configuration.
Thanks
Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2008 04:41 AM
тАО03-17-2008 04:41 AM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
ifconfig is also available in HPUX. chk man pages for details. Also, mapping for solaris and HPUX commands documents is attched herewith for your future reference.
-=ShRi=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2008 04:58 AM
тАО03-17-2008 04:58 AM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
for other command mappings check this:
http://h20331.www2.hp.com/Hpsub/cache/288622-0-0-225-121.html
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2008 05:17 AM
тАО03-17-2008 05:17 AM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2008 05:27 AM
тАО03-17-2008 05:27 AM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
To answer your specific question, hpux doesn't have the ifconfig -a; you can ifconfig each interface and get the same information, but you can't do them all in one swell foop w/o writing an inline script:
netstat -ain | awk '$1 ~ /^lan/ && $1 !~ /:/ {print $1}' | sort | \
while read i
do
ifconfig $i
done
lan1: flags=1843
inet 135.3.14.111 netmask fffffe00 broadcast 135.3.15.255
lan2: flags=1843
inet 135.3.16.17 netmask fffffe00 broadcast 135.3.17.255
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2008 07:47 AM
тАО03-17-2008 07:47 AM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
# cat /usr/local/bin/lancards
#!/usr/bin/sh
# script to check speed and settings of lan cards
PATH=/usr/sbin:/usr/bin
#ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`
ppas=`lanscan | awk '{print $3}'|egrep -v "Crd|In" | xargs`
for i in $ppas
do
printf "Card at PPA %s - " $i
ipa=`ifconfig lan${i} 2>/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assigned")}else{printf("%s ",ip)}}'`
netm=`ifconfig lan${i} |grep netmask |awk '{print $4}'`
printf "IP Address: %15s- " "$ipa"
#lanadmin -x $i 2>/dev/null | awk '{$1="";printf("%s",$0)}'
lanadmin -x $i 2>/dev/null | awk '{printf("%s",$0)}'
printf " - Netmask: %d.%d.%d.%d\n" `echo $netm | sed 's/../ 0x&/g'`
echo ""
done
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 08:15 PM
тАО03-18-2008 08:15 PM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
With this i am not able to entire ip configuration of all LAN cards.
I want to see all LAN interfaces configuration with single command like "ifconfig -a" in solaris. Can any body help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2008 12:02 AM
тАО03-19-2008 12:02 AM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
use lanscan to get all interfaces then use ifconfig lanX
for lan in $(lanscan | grep lan | awk '{print $5}') ; do
echo $lan
ifconfig $lan
done
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2008 01:27 AM
тАО03-19-2008 01:27 AM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
It is working......
Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2008 01:58 AM
тАО03-19-2008 01:58 AM
Re: Solaris "ifconfig -a" equivalent command in HP-UX
This is not working, if we have assigned multiple IP address for same interface.
Ex:lan0:1 and lan1:1
Thanks
Kumar