[HPADM] RE: RE: Get network information



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>>



Relevant Pages

  • Re: Easiest/quickest method for very simple interfaces?
    ... > Michael speaks truth here wrt vim. ... >> thought on handling the interface. ... fool-proof switches instead of a single command line interface. ... I meant offering choices ...
    (comp.os.linux.misc)
  • Re: The Linux Revolution: What Happened?
    ... >> with a good graphic interface. ... even the text command is an ... And these simple commands can be made even more accessible through a GUI, ... > image from camera", but I didn't see the point at all, it was much ...
    (comp.os.linux.misc)
  • Re: The Linux Revolution: What Happened?
    ... >> with a good graphic interface. ... even the text command is an ... And these simple commands can be made even more accessible through a GUI, ... > image from camera", but I didn't see the point at all, it was much ...
    (alt.os.linux)
  • Re: The Linux Revolution: What Happened?
    ... > with a good graphic interface. ... even the text command is an ... from camera; start image viewer" or "copy images from camera to disk; ... photoshop, asks fotoshop to resize the photo, and sends it. ...
    (comp.os.linux.misc)
  • Re: The Linux Revolution: What Happened?
    ... > with a good graphic interface. ... even the text command is an ... from camera; start image viewer" or "copy images from camera to disk; ... photoshop, asks fotoshop to resize the photo, and sends it. ...
    (alt.os.linux)