[HPADM] RE: RE: Get network information
- From: "Bob Vance" <bobvance@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 3 Jun 2008 06:46:35 -0400
Here's a one-liner (but not one command :>) that would work
# lanscan |grep -E '^[0-9]'| while read LN ; do \
echo $LN |awk '{print $5}' \
| while read L ; do echo ; ifconfig $L; echo " $LN" ; done ; done
Just keep it in a notepad file and copy/paste when necessary.
--
"The lyf so short, the craft so long to lerne."
- Chaucer
--------------------------------------------------
Bob Vance <mailto:BobVance@xxxxxxxxxxxxxxxxxx>
Sr Technical Consultant
Storage, Networking, HP-UX, Linux, VMware
Cnetics Technologies
7076 Peachtree Ind. Blvd. Office 770-446-0404
Norcross, GA 30071 Fax 801-327-6152
Home Office 770-977-3476
==================================================
-----Original Message-----
From: hpux-admin-owner@xxxxxxxxxxxxx
[mailto:hpux-admin-owner@xxxxxxxxxxxxx] On Behalf Of Shaw, Marco
Sent: Wednesday, May 28, 2008 9:13 AM
To: hpux-admin@xxxxxxxxxxxxx
Subject: [HPADM] Get network information
On HP-UX, is there one command that can list all of this information:
*MAC
*Interface
*IP
Seems my only options is go do lanscan then ifconfig on all the listed
interfaces, but I'm hoping for a single command to make this work more
easily from a remote location.
Marco
<<attachment: winmail.dat>>
- References:
- [HPADM] RE: Get network information
- From: James J. Perry
- [HPADM] RE: Get network information
- Prev by Date: [HPADM] RE: Tentative SUMMARY: L Class and N Class memory
- Next by Date: [HPADM] Backup Question
- Previous by thread: [HPADM] RE: Get network information
- Next by thread: [HPADM] RE: Tentative SUMMARY: L Class and N Class memory
- Index(es):
Relevant Pages
|