You could install 'lsof', but if you're running Solaris 8 or higher, theQuote:> How do I determine the TCP port number of a flexlm vendor daemon on
> Solaris?. On Linux netstat -l -p does the trick but the Solaris version
> doesn't support those switches. I tried netstat -a but it doesn't show
> any of the flexlm port numbers.
--
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
> You could install 'lsof', but if you're running Solaris 8 or higher, the
> easiest thing would be to run 'pfiles <PID>' where you give the PID of
> the flexlm daemon.
>> You could install 'lsof', but if you're running Solaris 8 or higher, the
>> easiest thing would be to run 'pfiles <PID>' where you give the PID of
>> the flexlm daemon.
> Tried pfiles, got a permission denied error, do you have to be root to
> run pfiles?
'lsof' would have the same limitations. Of course the machine
administrator could make either utility setuid root.
--
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
1. Determine TCP Port Number for a Telnet Session
Scenario: I have users on dumb terminals telneting to an AIX system
through a (3Com) terminal server. The terminal server has one IP
address and it has 48 ports. I need to find out which physical port on
the terminal server the user is coming from.
The telnet session uses port 23 to communicate with the host but the
host communicates with the terminal server using a different port
number for each physical port. See output of netstat -n -finet below.
The who -m command shows the IP number of the terminal server. How do I
find out which port number the session is using? How do I determine
which line in the netstat -n -finet display refers to me? I can't grep
on the IP number for the terminal server because there may be multiple
sessions with that same IP number, depending on how many terminals are
currently teleneted into this host.
Any ideas?
======================================
# oslevel
4.3.2.0
# who -m
root pts/8 May 11 13:28 (204.115.89.116)
# netstat -n -finet | head -16
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address
(state)
tcp4 0 0 198.179.208.3.23 204.115.89.194.1039
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.89.116.1025
ESTABLISHED
tcp4 0 2 198.179.208.3.23 198.179.208.8.1383
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.89.111.1028
ESTABLISHED
tcp4 0 0 198.179.208.3.23 198.179.208.111.1070
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.90.103.1044
ESTABLISHED
tcp4 0 0 198.179.208.3.23 192.168.128.139.1043
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.92.136.1025
ESTABLISHED
tcp4 0 0 198.179.208.3.23 192.168.100.219.1025
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.89.145.1025
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.88.17.14353
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.89.109.1025
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.89.116.1027
ESTABLISHED
tcp4 0 0 198.179.208.3.23 204.115.88.138.1025
ESTABLISHED
#
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
2. kde/pppd newbie question with RH52
3. Determining a user's IP and port number
4. Can I use the function NAT in a dedicate server that isn't a Router ?
5. How do I determine the port number for a connection?
6. help: Rehat 6.0 Firewall Setup
7. Port Numbers - How to determine vulnerability?
9. How to determine which process uses which tcp/udp port?
10. How to determine daemon's TCP/IP ports?
11. How to determine process bound to a TCP port?
12. ipchains/TCP/UDP, Why should I open UDP ports so that my TCP ports can work?
13. TCP port number and process