- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Determining which IP using lanscan
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
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
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
тАО12-30-2003 12:57 AM
тАО12-30-2003 12:57 AM
I have run lanscan and 7 cards have been displayed up on the system. I have run ftp using an alias host name and I need to determine which card was used to transfer the data. (HPUX 11.00)
what command can I use.
thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 01:08 AM
тАО12-30-2003 01:08 AM
Re: Determining which IP using lanscan
Do a ping towards the alias name to find the IP address and use the command 'ifconfig lan?' to find the IP address of the lan? card.
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 01:15 AM
тАО12-30-2003 01:15 AM
Re: Determining which IP using lanscan
Changing -in into -i will show them with names instead of IP addresses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 01:16 AM
тАО12-30-2003 01:16 AM
SolutionIn my case, below, it's lan0 at 0/0/0/0:
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x0010837C72B4 0 UP lan0 snap0 1 ETHER Yes 119
1/10/0/0 0x0060B0B3D9CA 1 UP lan1 snap1 2 ETHER Yes 119
# netstat -rn
Routing tables
Dest/Netmask Gateway Flags Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 19458 lo0 4136
172.20.202.103 172.20.202.103 UH 0 1857235 lan0 4136
172.20.205.103 172.20.205.103 UH 0 0 lan1 4136
172.20.202.0 172.20.202.103 U 2 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136
default 172.20.202.1 UG 0 0 lan0 1500
acshps03 (172.20.202.103) at 0:10:83:7c:72:b4 ether permanent published
Current Speed = 100 Full-Duplex Auto-Negotiation-OFF
Now, however, note that I have two IP addresses on two seperate LANs. You have to know which LAN you used to get from here to there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 01:48 AM
тАО12-30-2003 01:48 AM
Re: Determining which IP using lanscan
ipaddy=$(ifconfig $lanid | awk ('print $2'})
You can add a grep to the first statement to filter your ouput and get it for one lan card.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 02:14 AM
тАО12-30-2003 02:14 AM