- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- No ifconfig -a in 11.11 v1?
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
Forums
Discussions
Discussions
Discussions
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
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
04-13-2007 06:27 AM
04-13-2007 06:27 AM
Does anyone know how to look at all of your ethernet settings with one command?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 06:37 AM
04-13-2007 06:37 AM
Re: No ifconfig -a in 11.11 v1?
ifconfig too, but no -a switch
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 06:40 AM
04-13-2007 06:40 AM
Re: No ifconfig -a in 11.11 v1?
#!/usr/bin/sh
for NIC in $(lanscan | awk '{print $5}')
do
ifconfig ${NIC}
done
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 06:41 AM
04-13-2007 06:41 AM
Re: No ifconfig -a in 11.11 v1?
#!/usr/bin/sh
for NIC in $(lanscan -i | awk '{print $1}')
do
ifconfig ${NIC}
done
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 08:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 10:46 PM
04-15-2007 10:46 PM
Re: No ifconfig -a in 11.11 v1?
But if it helps you could define a shell func like this:
ifconfig() { if [[ $1 = "-a" ]];then /usr/sbin/lanscan -i|cut -f1 -d\ |xargs -n1 /usr/sbin/ifconfig;else /usr/sbin/ifconfig $*;fi; }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 12:32 AM
04-16-2007 12:32 AM
Re: No ifconfig -a in 11.11 v1?
#lanscan
Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr
Path Address In# State NameUnit State ID Type Support Num
0/28.1 0x097000D36E 1 UP lan1 UP 4 ETHER Yes 185
0/44.1 0x097009D0DC48 0 UP lan0 UP 5 ETHER Yes 185
Look for the NameUnit column
lan0, lan1, lan2 ,etc.
Then do;
ifconfig lan0
ifconfig lan1
ifconfig lan2
, etc. ...
This is the HP way of (ifconfig -a).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 12:38 AM
04-16-2007 12:38 AM
Re: No ifconfig -a in 11.11 v1?
try the script in the last post here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=946574&admit=-682735245+1176726999874+28353475
Could be helpful.
Adjust if needed.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 04:48 AM
04-16-2007 04:48 AM