SUBJECT:   rpcinfo ¸í·É¾î »ç¿ë¹ý


Description :

  o rpcinfo : rpc program¿¡ µî·ÏµÈ Á¤º¸¸¦ º¸¿©ÁÜ

   # /usr/etc/rpcinfo -p mymy [hostname]
    program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100004    2   udp    663  ypserv
    100004    2   tcp    664  ypserv
    100004    1   udp    663  ypserv
    100004    1   tcp    664  ypserv
    100007    2   tcp   1024  ypbind
    100007    2   udp   1027  ypbind
    100007    1   tcp   1024  ypbind
    100007    1   udp   1027  ypbind
    100028    1   tcp    667  ypupdated
    100028    1   udp    669  ypupdated
    100029    1   udp    667  keyserv
    100005    1   udp    712  mountd
    100005    2   udp    712  mountd
    100003    2   udp   2049  nfs
    100024    1   udp    718  status
    100005    1   tcp    717  mountd
    100024    1   tcp    720  status
    100005    2   tcp    717  mountd
    100021    1   tcp    724  nlockmgr
    100021    1   udp   1034  nlockmgr
    100021    3   tcp    728  nlockmgr
    100021    3   udp   1035  nlockmgr
    100020    2   udp   1036  llockmgr
    100020    2   tcp    733  llockmgr
    100021    2   tcp    736  nlockmgr
    100021    2   udp   1037  nlockmgr
    100011    1   udp   1038  rquotad
    100001    2   udp   1039  rstatd
    100001    3   udp   1039  rstatd
    100001    4   udp   1039  rstatd
    100002    1   udp   1040  rusersd
    100002    2   udp   1040  rusersd
    100012    1   udp   1041  sprayd
    100008    1   udp   1042  walld
    100068    3   udp   1043
    100083    1   tcp   1026

  # /usr/etc/rpcinfo -p hyundai2
    program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100004    2   udp    663  ypserv
    100004    2   tcp    664  ypserv
    100004    1   udp    663  ypserv
    100004    1   tcp    664  ypserv
    100007    2   tcp   1024  ypbind
    100007    2   udp   1027  ypbind
    100007    1   tcp   1024  ypbind
    100007    1   udp   1027  ypbind
    100028    1   tcp    667  ypupdated
    100028    1   udp    669  ypupdated
    100029    1   udp    667  keyserv
    100005    1   udp    712  mountd
    100005    2   udp    712  mountd
    100003    2   udp   2049  nfs
    100024    1   udp    718  status
    100005    1   tcp    717  mountd
    100024    1   tcp    720  status
    100005    2   tcp    717  mountd
    100021    1   tcp    724  nlockmgr
    100021    1   udp   1034  nlockmgr
    100021    3   tcp    728  nlockmgr
    100021    3   udp   1035  nlockmgr
    100020    2   udp   1036  llockmgr
    100020    2   tcp    733  llockmgr
    100021    2   tcp    736  nlockmgr
    100021    2   udp   1037  nlockmgr
    100011    1   udp   1038  rquotad
    100001    2   udp   1039  rstatd
    100001    3   udp   1039  rstatd
    100001    4   udp   1039  rstatd
    100002    1   udp   1040  rusersd
    100002    2   udp   1040  rusersd
    100012    1   udp   1041  sprayd
    100008    1   udp   1042  walld
    100068    2   udp   1043
    100068    3   udp   1043
    100083    1   tcp   1026

   ¢Ñ  À§¿¡¼­ ¾ð±ÞµÈ °¢°¢ÀÇ hostÀÇ port number°¡ ´Ù¸§ (ÇÒ´çÀº Ä¿³ÎÀÌ ÇÔ)

  # /usr/etc/rpcinfo -d 100008 1 [prog#] [version#]
    
  # /usr/etc/rpcinfo -u mymy 100008
    rpcinfo: RPC: Program not registered
    program 100008 is not available

  # /usr/etc/rpcinfo -u hyundai2 100008
    program 100008 version 1 ready and waiting

  # /usr/etc/rpcinfo -t hyundai2 100008
    rpcinfo: RPC: Program not registered
    program 100008 is not available

  ¢Ñ -u(udp)¿Í -t(tcp)¸¦ ±¸ºÐÇؼ­ Àß »ç¿ëÇØ¾ß ÇÔ

  # /usr/ucb/netstat -A  ==> activeÀÌ´ø ¾Æ´Ï´ø ¸ðµç listening port¸¦ º¸¿©ÁÜ
    Active UNIX domain sockets
    Address  Type   Recv-Q Send-Q    Vnode     Conn     Refs  Nextref Addr
    ff64c98c stream      0      0        0 ff64cd0c        0        0
    ff64b08c stream      0      0        0 ff64bd8c        0        0 /tmp/.X11-unix/X0
    ff646b0c stream      0      0 ff137fa8        0        0        0 /tmp/.X11-unix/X0
    ff646c0c stream      0      0        0 ff64a40c        0        0
    ff64a70c stream      0      0        0 ff64a58c        0        0 /tmp/.X11-unix/X0
    ff64b50c stream      0      0        0 ff64cc8c        0        0
    ff64b70c stream      0      0        0 ff64c70c        0        0 /tmp/.X11-unix/X0
    ff64600c dgram       0      0 ff13edb8        0        0        0 /dev/log
    ff64a28c stream      0      0        0 ff64a18c        0        0
    ff64a00c stream      0      0        0 ff64be8c        0        0
    ff64bf8c stream      0      0        0 ff64a08c        0        0 /tmp/.X11-unix/X0
    ff64a20c stream      0      0        0 ff64a30c        0        0 /tmp/.X11-unix/X0
    ff64be0c stream      0      0        0 ff64bc0c        0        0
    ff64bc8c stream      0      0        0 ff64a10c        0        0 /tmp/.X11-unix/X0
    ff64ba8c stream      0      0        0 ff64b88c        0        0
    ff64b90c stream      0      0        0 ff64ba0c        0        0 /tmp/.X11-unix/X0
    ff64b98c stream      0      0        0 ff64b60c        0        0
    ff64b68c stream      0      0        0 ff64b78c        0        0 /tmp/.X11-unix/X0
    ff646e0c dgram       0      0        0        0        0        0
    ff648a0c dgram       0      0        0        0        0        0
    ff64808c stream      0      0 ff1334dc        0        0        0 /dev/printer

 £# /usr/ucb/netstat -a  ==> ¸ðµç activeÇÑ portµéÀ» º¸¿©ÁÜ
    Active Internet connections (including servers)
    Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
    udp        0      0  *.865                  *.*
    udp        0      0  *.723                  *.*
    udp        0      0  *.1043                 *.*
    udp        0      0  *.1042                 *.*
    udp        0      0  *.1041                 *.*
    udp        0      0  *.1040                 *.*
    udp        0      0  *.1039                 *.*
    udp        0      0  *.1038                 *.*
    udp        0      0  *.chargen              *.*
    udp        0      0  *.daytime              *.*
    udp        0      0  *.discard              *.*
    udp        0      0  *.echo                 *.*
    udp        0      0  *.time                 *.*
    udp        0      0  *.tftp                 *.*
    udp        0      0  *.talk                 *.*
    udp        0      0  *.biff                 *.*
    udp        0      0  *.746                  *.*
    udp        0      0  *.name                 *.*
    udp        0      0  *.742                  *.*
    udp        0      0  *.736                  *.*
    udp        0      0  *.740                  *.*
    udp        0      0  *.739                  *.*
    udp        0      0  *.1037                 *.*
    udp        0      0  *.1036                 *.*
    udp        0      0  *.1035                 *.*
    udp        0      0  *.1034                 *.*
    udp        0      0  *.718                  *.*
    udp        0      0  *.2049                 *.*
    udp        0      0  *.712                  *.*
    udp        0      0  *.*                    *.*
    udp        0      0  *.700                  *.*
    udp        0      0  *.696                  *.*
    udp        0      0  *.syslog               *.*
    udp        0      0  *.667                  *.*
    udp        0      0  *.669                  *.*
    udp        0      0  *.1027                 *.*
    udp        0      0  *.1033                 *.*
    udp        0      0  *.*                    *.*
    udp        0      0  *.663                  *.*
    udp        0      0  *.sunrpc               *.*
    udp        0      0  *.1025                 *.*
    tcp        0      0  *.6000                 *.*                    LISTEN
    tcp        0      0  *.1026                 *.*                    LISTEN
    tcp        0      0  *.chargen              *.*                    LISTEN
    tcp        0      0  *.daytime              *.*                    LISTEN
    tcp        0      0  *.discard              *.*                    LISTEN
    tcp        0      0  *.echo                 *.*                    LISTEN
    tcp        0      0  *.time                 *.*                    LISTEN
    tcp        0      0  *.finger               *.*                    LISTEN
    tcp        0      0  *.uucp                 *.*                    LISTEN
    tcp        0      0  *.printer              *.*                    LISTEN
    tcp        0      0  *.exec                 *.*                    LISTEN
    tcp        0      0  *.login                *.*                    LISTEN
    tcp        0      0  *.shell                *.*                    LISTEN
    tcp        0      0  *.telnet               *.*                    LISTEN
    tcp        0      0  *.ftp                  *.*                    LISTEN
    tcp        0      0  *.736                  *.*                    LISTEN
    tcp        0      0  *.733                  *.*                    LISTEN
    tcp        0      0  *.728                  *.*                    LISTEN
    tcp        0      0  *.724                  *.*                    LISTEN
    tcp        0      0  *.720                  *.*                    LISTEN
    tcp        0      0  *.717                  *.*                    LISTEN
    tcp        0      0  *.smtp                 *.*                    LISTEN
    tcp        0      0  *.667                  *.*                    LISTEN
    tcp        0      0  *.1024                 *.*                    LISTEN
    tcp        0      0  *.*                    *.*                    CLOSED
    tcp        0      0  *.664                  *.*                    LISTEN
    tcp        0      0  *.sunrpc               *.*                    LISTEN
    Active UNIX domain sockets
    Address  Type   Recv-Q Send-Q    Vnode     Conn     Refs  Nextref Addr
    ff64c98c stream      0      0        0 ff64cd0c        0        0
    ff64b08c stream      0      0        0 ff64bd8c        0        0 /tmp/.X11-unix/X0
    ff646b0c stream      0      0 ff137fa8        0        0        0 /tmp/.X11-unix/X0
    ff646c0c stream      0      0        0 ff64a40c        0        0
    ff64a70c stream      0      0        0 ff64a58c        0        0 /tmp/.X11-unix/X0
    ff64b50c stream      0      0        0 ff64cc8c        0        0
    ff64b70c stream      0      0        0 ff64c70c        0        0 /tmp/.X11-unix/X0
    ff64600c dgram       0      0 ff13edb8        0        0        0 /dev/log
    ff64a28c stream      0      0        0 ff64a18c        0        0
    ff64a00c stream      0      0        0 ff64be8c        0        0
    ff64bf8c stream      0      0        0 ff64a08c        0        0 /tmp/.X11-unix/X0
    ff64a20c stream      0      0        0 ff64a30c        0        0 /tmp/.X11-unix/X0
    ff64be0c stream      0      0        0 ff64bc0c        0        0
    ff64bc8c stream      0      0        0 ff64a10c        0        0 /tmp/.X11-unix/X0
    ff64ba8c stream      0      0        0 ff64b88c        0        0
    ff64b90c stream      0      0        0 ff64ba0c        0        0 /tmp/.X11-unix/X0
    ff64b98c stream      0      0        0 ff64b60c        0        0
    ff64b68c stream      0      0        0 ff64b78c        0        0 /tmp/.X11-unix/X0
    ff646e0c dgram       0      0        0        0        0        0
    ff648a0c dgram       0      0        0        0        0        0
    ff64808c stream      0      0 ff1334dc        0        0        0 /dev/printer
    
Revision History

ÀÛ¼ºÀÏÀÚ : 96.10.17
ÀÛ¼ºÀÚ : ÀÌÁø¼ö