08-03-2007
Re: Command to know port no.
Hi,
netstat in Solaris will not show which process is using certain port, do fix that try to use pfiles, this is a cool tool in Solaris which shows you all the files openned by the process, since a connection is a file in Unix , using pfiles is easy. Look the following shell script :
-----
for a in `ps -ef | nawk '{print $2}'`
do
pfiles $a | grep 80 (your port number)
done
-----
Later you can automate an improve this script, this is just to give U a clue how to find your stuff there, hope that helps.
Regarding,
Fernando Ramos.
10 More Discussions You Might Find Interesting
1. Solaris
Can anybody have the command to know the port no using unix command for the weblogic server application. (1 Reply)
Discussion started by: Amit_kolurwar
1 Replies
2. AIX
Hi All,
I wanna know the command to release a particualr port in AIX machine without rebooting it.
# netstat -a | grep 7100
tcp4 0 0 loopback.7100 *.* LISTEN
#
In the above example, how to release the port 7100
Thanks in advance.
-Hemanshu (5 Replies)
Discussion started by: hemanshupatira
5 Replies
3. AIX
Hi,
Can anyone please tell me how to check the status of the serial port ??
for example,in Sun os we use the command pmadm to see the status of the serial port--
So is there any command or method in AIX,So that i can see the serial port status ??
thanks in advance ... (1 Reply)
Discussion started by: smartgupta
1 Replies
4. Solaris
Hi Gurus
I need to know few things related to HBA port & fcinfo command
I have a server where there are 4 HBA ports cards are their. Out of 4 ports 2 are in use & 2 are not in use when I check it physicall. Now I want to know the command through which I can get information about all above... (6 Replies)
Discussion started by: girish.batra
6 Replies
5. Shell Programming and Scripting
Hi,
is there any command to findout that which application is using the particular port.
or whether any port is occupied with the specfic process id ? (4 Replies)
Discussion started by: mail2sant
4 Replies
6. Shell Programming and Scripting
I am a linux newbie and I am learning. I need a script that will monitor a port and if active -- only active, not listening or waiting -- then pipe some commands to the screen as if they were typed on the keyboard. Can a bash or perl script do this and if so, could someone help me out?
Thanks. (0 Replies)
Discussion started by: bulgin
0 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Can someone provide me the Linux command to get the list of all processes running on a particular port.
Thanks,
Sandy (1 Reply)
Discussion started by: sandy8765
1 Replies
8. Shell Programming and Scripting
hi I juts want to know if there is a command that checks if an ethernet port corresponds to a network card.
ex. I have 3 network cards, one is two ports, and the other two 8 ports.
How do I know that eth0 corresponds to the the two-port network card and eth9 corresponds to the first 8-port... (2 Replies)
Discussion started by: h0ujun
2 Replies
9. Shell Programming and Scripting
portsuf=25
port=20925
I need to replace 09 with 25
It should be like 22525.
Can some please help with command or script. (4 Replies)
Discussion started by: bhas85
4 Replies
10. Solaris
please find the below o/p for your reference
bash-3.00# fcinfo hba-port
HBA Port WWN: 21000024ff295a34
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3356-02
Firmware Version: 05.03.02
FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
LEARN ABOUT REDHAT
xvungrabport
XvUngrabPort(3X) XvUngrabPort(3X)
Name
XvUngrabPort - release port grabbed for video operation
Syntax
#include <X11/extensions/Xvlib.h>
XvUngrabPort(dpy, port, time)
Display *dpy;
XvPortID port;
Time time;
Arguments
dpy Specifies the display screen on which the Xv Server is to accept requests from Xv clients. If the display option is not
specified, Xv uses the display screen specified by your DISPLAY environment variable. The display option has the format
hostname:number. Using two colons (::) instead of one (:) indicates that DECnet is to be used for transport.
port Specifies the port to be released. If the port had not been previously grabbed, the request is ignored.
time Specifies the request timestamp.
Description
XvUngrabPort(3X) releases a grabbed port. If time specifies a time before the last XvGrabPort(3X) was executed, the request is ignored.
Returned Values
[Success]
Returned if XvUngrabPort(3X) completed successfully.
[XvBadExtension]
Returned if the Xv extension is unavailable.
[XvBadAlloc]
Returned if XvUngrabPort(3X) failed to allocate memory to process the request.
Diagnostics
[XvBadPort]
Generated if the requested port does not exist.
See Also
XvGrabPort(3X)
XFree86 Version Version 4.3.0 XvUngrabPort(3X)