At my workplace, we have a number of Linux machines on an isolated network, and I occasionally need to determine which of them I am logged in to. This can be a pain because I usually have a large number of multi-tab terminal windows strewn across two monitors, four gnome workspaces, and sometimes multiple login sessions.
I do have a list of most of the machines I use and something like
$(rsh $M ps -wef | grep username | wc -l) usually works, but it is slow and not robust. I am hoping there is some Unix utility or directory service that keeps track of all network logins and that I can simply check that and
grep for my username. I am surprised that I have not been able to find this by searching on Google and I suspect that no such utility exists, but I hope I am wrong.