- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX 11.0: Collecting Multiple LAN Card Infomatio...
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
03-03-2003 07:54 PM
03-03-2003 07:54 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 08:02 PM
03-03-2003 08:02 PM
Solutionfor card in `lanscan|sed -e '1d' -e '2d'|awk '{print $5}'`;do
ifconfig $card >>laninfo.txt
done
or something along those lines....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 08:07 PM
03-03-2003 08:07 PM
Re: HPUX 11.0: Collecting Multiple LAN Card Infomation
Attached is a script that I recently wrote. This can be run as a user.
It will create a "|" seperated file called result.nic in the current directory. It can be easily imported into Excel.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 08:09 PM
03-03-2003 08:09 PM
Re: HPUX 11.0: Collecting Multiple LAN Card Infomation
for i in `lanscan|grep lan|awk '{print $5}'`
> do
> ifconfig $i
> done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 09:39 PM
03-03-2003 09:39 PM
Re: HPUX 11.0: Collecting Multiple LAN Card Infomation
ifconfig is a built in command, you can use this in a shell script.
machine=`uname -a|awk '{print $2}'`
for i in `lanscan|grep -i lan|awk '{print $5}'`
do
echo "Machine name">laninfo
echo "------------">>laninfo
echo $machine >> laninfo
ifconfig $i >> laninfo
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 01:38 AM
03-05-2003 01:38 AM
Re: HPUX 11.0: Collecting Multiple LAN Card Infomation
it's not more than the other answer but it's in one line an it gives the speed too
lanscan | awk '/lan/ { printf "echo %s\n ifconfig %s \n lanadmin -x %s\n", $0, $5, $3} ' | sh
you can test it without the "|sh"