AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  TTY Reconnaissance for remote users

    Posted Wed October 28, 2009 10:13 PM

    Originally posted by: JoelDavis


    I'm trying to create an automated script, which (I feel) needs to be able to map local processes of a certain program with certain remote hosts. The script will know which remote host and local program it will be looking for during the mapping. Essentially the goal is to programmatically pull which programx's computerX is running on the server. A PS reveals the tty, but try as I might, I can't seem to find an AIX command that gets the PID/TTY/Username on the same line (or some other relationship) with the remote host's name. My thinking is if that b the case I can take the register name, map it to one of those and then be able to give the admins some more tools on repetitive tasks.

    Essentially the set up is an AIX server with thin clients running applications which connect through ssh.

    If the description is unclear somehow, I'd be happy to add more clarification.

    TIA.
    #AIX-Forum


  • 2.  Re: TTY Reconnaissance for remote users

    Posted Thu October 29, 2009 03:24 AM

    Originally posted by: Montecarlo


    "who" provides that info - at least on my system.
    Regards, Simon
    #AIX-Forum


  • 3.  Re: TTY Reconnaissance for remote users

    Posted Thu October 29, 2009 05:59 AM

    Originally posted by: Kosala


    What do you mean by "TTY Reconnaissance". Are you interested in looking at what a particular TTY is doing or you need to find the TTY for a PID.
    #AIX-Forum