hansbol
4th September 2002, 12:18
I changed the bshell in the bwconfig for the name of an script.

Now I ran into the "problem" that i cannot determine what pcname belongs to the login name anymore.

Normaly I did an ps -ef |grep bshell and the I found something like :

bsph 22398 5140 0 10:17:11 - 0:00 gshell (bsph@RI70901:504/SOCKET) -1 545 5 6

The RI70901 is the pc name.

Now is use a script so everybody can login only once. But now the bsp@RI70901 is gone :-)

Unfortunate it still happens that somebody loggs in under a wrong loginname.
The real user give us then a call but I want to know from what pc the wrong user did log in.

Does anybody now if there is a alternative on AIX for the nbtstat on NT?

Thanx in advance.

Hans Bol

patvdv
4th September 2002, 12:37
Hans,

The closest thing would be 'netstat'. I am surprised your 'ps' doesn't show the socket information anymore? The only thing I can think of is that your 'ps' is cutting off the extra information because it doesn't fit on one line. If the 'ps' on AIX supported the '-w' parameter then you could check this.

hansbol
4th September 2002, 13:29
With netstat i cannot see what proces id belongs to the ip adres.

I will see if there are more options to use.

The ps command does not cut off the lines. I tested it with the berkeley standard "ps lg |grep bshel"

Unfortunately it still only give the command without socket info.

I don't understand why, but it is the situation.

It seems that the bshell6.1 binary has something in itself that produces the socket info????? Or am I totaly wrong on that?

patvdv
4th September 2002, 14:21
Hans,

See if you have the public domain utility lsof (List Open Files) on your AIX system. I don't know if AIX comes with lsof packaged but if not I am sure you can find a version for it on the Internet. 'lsof' will list all files opened by process including UNIX s ockets and TCP/IP ports.