Wednesday, 26 February 2014

Portmir

portmir (short for Port Mirror) is an AIX utility that allows you to monitor, share, or take over another user’s terminal session on the same system.

The tty command shows which terminal (pseudo-terminal or TTY device) you are currently connected to.
Here, your terminal is /dev/pts/8.

# tty
/dev/pts/8

You can use the who command to see all users currently logged into the server along with their terminal numbers.
For instance, if the oracle user is connected through pts/9, you can monitor their terminal session remotely using:

# portmir -t /dev/pts/9


To disconnect the session
# portmir -o /dev/pts/9

No comments:

Post a Comment