- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding a Mac Addy on our HPUX over a network. ??
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
07-03-2001 10:04 AM
07-03-2001 10:04 AM
Finding a Mac Addy on our HPUX over a network. ??
Thanks
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:38 AM
07-03-2001 10:38 AM
Re: Finding a Mac Addy on our HPUX over a network. ??
lanadmin -a 4 (4 = NetMgmtID)
Put this in to the script.
foreach system(SYSTEMS)
remsh system -n lanadmin -a 4
end
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:41 AM
07-03-2001 10:41 AM
Re: Finding a Mac Addy on our HPUX over a network. ??
One method is to simply arp -a.
You could also remsh to each machine and do an arp -a and capture that output.
What you really need is a reverse arp utility.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 11:30 AM
07-03-2001 11:30 AM
Re: Finding a Mac Addy on our HPUX over a network. ??
Do a man arp and you will get the options .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2001 12:26 AM
07-04-2001 12:26 AM
Re: Finding a Mac Addy on our HPUX over a network. ??
lanscan is the best
For network elements other hosts, printers ....
arp
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2001 02:54 AM
07-04-2001 02:54 AM
Re: Finding a Mac Addy on our HPUX over a network. ??
Your script is the following :
#Create a file including all your servers names one per line in /tmp/serversNames for example.
mac=
serversNames=`cat /tmp/serversNames`
for currentServer in $serversNames
do
currentMac=`remsh $currentServer -l root -n "/usr/sbin/lanscan" ? grep $mac`
if [[ $currentMac != "" ]]
then
lan=`awk '{print $5}'`
ip=`remsh $currentServer -l root "/usr/sbin/ifconfig $lan" ? awk '{print $2}' ? grep -v "flags"`
echo "### Mac address : '$mac' is on server '$currentServer' for ip address '$ip'. "
exit 0
fi
done
echo " !!! this mac $mac is not belonging to these servers $serversNames. "
Good luck.
Magdi