[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

rmsock Command

Purpose

Removes a socket that does not have a file descriptor.

Syntax

rmsock Address TypeofAddress

Description

The rmsock command removes a socket that does not have a file descriptor. It accepts a socket, tcpcb, inpcb, ripcb, or rawcb address and converts it to a socket address. All opened files in every process are then checked to find a match to the socket. If a match is not found, an abort action is performed on that socket regardless of the existence of the socket linger option. The port number held by the socket is released. If a match is found, its file descriptor and status of the owner process are displayed to the user. The results are passed to syslogd and recorded in the /var/adm/rmsock.log file.

Examples

  1. To remove a socket from its socket address, type:

    rmsock 70054edc socket

    You do not need to specify the type of the socket. It can be a tcpcb, udp, raw, or routing socket.

  2. To remove a socket from its inpcb address, type:

    rmsock 70054edc inpcb
  3. To remove a socket from its tcpcb address, type:

    rmsock 70054ecc tcpcb

Files

/usr/sbin Directory where the rmsock command resides.
/var/adm/rmsock.log Contains the rmsock.log file.

Related Information

The syslogd daemon.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]