I am trying to connect via DBACCESS and Informix server to a server on a different computer. When I execute the connect command from dbaccess I get the following message,
Exec format error cannot bind a name to the port.
As far as I know the port is not being used by another client.
How... (1 Reply)
Hi,
is there a way to get information of an annex device connected to port A ? i need to get the I.P address of the annex and the port
it connected to on the annex.
dori (1 Reply)
H,
I want to know the ip of the devices connected to a specific port.
Suppose 2 s/m's are connected to port 3092. I want to get the ip of those system's .
how do i get it? (1 Reply)
I currently access a remote Unix server which has an external modem connected to one of it's serial ports (/dev/cua/b). At times, this server undergoes a hard reset and for some reason this disallows us from making use of the modem any longer. A hard reset of the modem always seems to fix the... (0 Replies)
Hello, I have a service running (ODBC) and every now and then it will hang and I will have to stop and restart the service. The problem is when I stop the service, it indeed stops the service, but netstat reports a tcp port still open with the fin_wait_2 status. Then I must close the client... (1 Reply)
Hello,
One of our developers is asking for a command/script in Solaris similar to "netstat -anp" in Linux. He gave this output as an example:
root@xxx:~# netstat -anp | grep LISTEN
tcp 0 0 0.0.0.0:7937 0.0.0.0:* LISTEN 16082/nsrexecd
tcp 0 ... (7 Replies)
hi i have a sun machine which has one hba 2ports;
out of which one port says it is not connected
# luxadm -e port
/devices/pci@1d,700000/SUNW,qlc@1/fp@0,0:devctl CONNECTED
/devices/pci@1d,700000/SUNW,qlc@1,1/fp@0,0:devctl NOT CONNECTED
but both... (9 Replies)
I have multiple processes running the same program on my linux machine. For each process I want to be able to use a unique (available) TCP port. I have thought of using netstat to check which ports are available for use however, the time-window between checking and selecting might expose some race... (1 Reply)
Hello all,
I am loosing the diameter connection between two servers and when the connection is trying to comes up again i see the following message in the tracer.
and after 1 second the connection resets.
As far i know the connection stay in state TIME_WAIT for a while(60 seconds in my... (1 Reply)
i want to kill a tcp connection by killing its pid
with netstat -an i got the tcp ip connection on port 5914
but when i type ps -a or ps-e there is not such process running on port 5914
is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies
LEARN ABOUT OSF1
fuser
fuser(2) System Calls Manual fuser(2)NAME
fuser - Reports PIDs and UIDs for files, file systems and/or the devices attached to them.
SYNOPSIS
#include <sys/fuser.h>
int fuser(
char *file,
long flag,
struct f_user fuser_array[],
long sizeof_fuser_array );
PARAMETERS
Specifies the file name. Specifies one of the following values. If none of the following are values are specified, the default is to
match open files. Matches only file ids. Provides mount point matching. Matches deleted files on the mount point specified by file.
Specifies the array. Specifies the number of elements in the fuser array.
DESCRIPTION
The fuser function reports a list of PIDs and UIDs that are associated with a specified file, file system, and/or the devices that are
attached to them.
The fuser function can report back additional information about "matches" by ORing one of the following constants that can be passed back
in the member fu_flags: Current directory Current directory Parent of the current directory At least one file open, but the number open is
not known. Executable image. Controlling terminal Trace At least one file is mmapped
RETURN VALUES
On success, the fuser function returns the number of fuser_array elements that were found. The contents of the structure are as follows:
typedef struct f_user {
pid_t fu_pid;
int fu_flags;
uid_t fu_uid; } f_user_t;
If an error has occurred, the fuser function returns -1 and sets errno to indicate the error.
ERRORS
If the fuser function fails, errno may be set to one of the following values: The array is not large enough to hold the number of array
elements returned or the array structure cannot be filled The file parameter specified does not exist
EXAMPLES
Open regular files and special files are matched using the flag parameter set at 0L. Thus, if process 127 and 3220 open the /home/try file
simultaneously and the fuser function is active, the PIDs and UIDs associated with the home/try file are reported as in the following exam-
ple:
fuser("/home/try", 0L, fuser_array,
(long) (sizeof (fuser_array)/sizeof(fuser_array[0])); Similarly, if the special device file /dev/ttyp2 is open by process 32,
then that PID and its associated UID are reported as in the following example:
fuser("/dev/ttyp2", 0L, fuser_array,
(long) (sizeof (fuser_array)/sizeof(fuser_array[0]));
fuser(2)