Operating System - HP-UX
1833777 Members
2025 Online
110063 Solutions
New Discussion

Where the HP-UX stored the MAC information of the logged on users

 
renx
Occasional Advisor

Where the HP-UX stored the MAC information of the logged on users

how can I get the MAC information of the logged on users.
rx
7 REPLIES 7
Mark Grant
Honored Contributor

Re: Where the HP-UX stored the MAC information of the logged on users

Onw whay to do this would be

who -R

This will give you the host name the user is logged on from and then do

arp hostname

Hope this helps.
Never preceed any demonstration with anything more predictive than "watch this"
Sundar_7
Honored Contributor

Re: Where the HP-UX stored the MAC information of the logged on users

I believe HP-UX ARP implementation will only cache the MAC address if the interested machines are in the same subnet as the server.

ARP cache is a kernel data structure and can be displayed using arp -a command.
Learn What to do ,How to do and more importantly When to do ?
Stanimir
Trusted Contributor

Re: Where the HP-UX stored the MAC information of the logged on users

Hi!
Not for logged users,but the mashines cards,
connected to your server:

#arp -a

After that you can use who -R to
see user-mashine relationships
and to find needed information.


Regards, Stan
Thierry Poels_1
Honored Contributor

Re: Where the HP-UX stored the MAC information of the logged on users

hi,

"who -T" or "who -R" show user's network n?? or name
ping
arp

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Sridhar Bhaskarla
Honored Contributor

Re: Where the HP-UX stored the MAC information of the logged on users

Hi,

HP-UX does not store the MAC information for the users. The best you have is only arp cache and if the remote system is not on your network, what you see is only the MAC address of the router interface.

The login information is stored under /etc/utmp* and /var/adm/wtmp* files. You can retrieve it by last, who and finger commands.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
renx
Occasional Advisor

Re: Where the HP-UX stored the MAC information of the logged on users

thanks.
I want to find out who has logged on to do something.The recorded ip not is not active.
rx
Mark Grant
Honored Contributor

Re: Where the HP-UX stored the MAC information of the logged on users

If the user is no longer logged on, you can use "last -R" instead of "who -R" to get the host names. If you get too many lines output but you can limit it with the "-number" option to the "last" command.
Never preceed any demonstration with anything more predictive than "watch this"