root@slitaz:~# tazpkg info glibc-dev
Tazpkg information
====================================================================
Package : glibc-dev
Version : 2.13
Category : development
Short desc : The GNU C libraries devel files (Part of SliTaz toolcha
Maintainer : pankso@slitaz.org
Depends : glibc-base
Wanted src : glibc
Web site : http://www.gnu.org/software/libc/
====================================================================
root@slitaz:~# tazpkg info rpcbind
Tazpkg information
====================================================================
Package : rpcbind
Version : 0.2.0
Category : network
Short desc : RPC program numbers to universal addresses converter.
Maintainer : pascal.bellard@slitaz.org
Depends : libtirpc
Build deps : libtirpc-dev
Web site : http://rpcbind.sourceforge.net/
====================================================================
1.
root@slitaz:~# which rpcinfo
/usr/sbin/rpcinfo
root@slitaz:~# tazpkg search-file rpcinfo
Search result for file rpcinfo
======================================================================
Package glibc-dev:
/usr/sbin/rpcinfo
Package rpcbind:
/usr/bin/rpcinfo
======================================================================
2 file(s) found for: rpcinfo
2.
root@slitaz:~# ls -l /usr/bin/rpcinfo /usr/sbin/rpcinfo
-rwxr-xr-x 1 root root 21452 Feb 26 23:29 /usr/bin/rpcinfo
-rwxr-xr-x 1 root root 13736 Feb 24 04:36 /usr/sbin/rpcinfo
3.
root@slitaz:~# echo $PATH
/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:/usr/local/bin
4.
root@slitaz:~# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 3 udp 2049 nfs
100003 3 tcp 2049 nfs
100005 1 udp 2049 mountd
100005 3 udp 2049 mountd
100005 1 tcp 2049 mountd
100005 3 tcp 2049 mountd
100021 1 udp 48911 nlockmgr
100021 3 udp 48911 nlockmgr
100021 4 udp 48911 nlockmgr
100021 1 tcp 35925 nlockmgr
100021 3 tcp 35925 nlockmgr
100021 4 tcp 35925 nlockmgr
root@slitaz:~# /usr/bin/rpcinfo -p
rpcinfo: can't contact portmapper: RPC: Remote system error - No sucrectory
root@slitaz:~# /usr/bin/rpcinfo -p slitaz
program vers proto port service
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 3 udp 2049 nfs
100003 3 tcp 2049 nfs
100005 1 udp 2049 mountd
100005 3 udp 2049 mountd
100005 1 tcp 2049 mountd
100005 3 tcp 2049 mountd
100021 1 udp 48911 nlockmgr
100021 3 udp 48911 nlockmgr
100021 4 udp 48911 nlockmgr
100021 1 tcp 35925 nlockmgr
100021 3 tcp 35925 nlockmgr
100021 4 tcp 35925 nlockmgr
5.
root@slitaz:~# rpcinfo --help
Usage: rpcinfo [ -n portnum ] -u host prognum [ versnum ]
rpcinfo [ -n portnum ] -t host prognum [ versnum ]
rpcinfo -p [ host ]
rpcinfo -b prognum versnum
rpcinfo -d prognum versnum
For bug reporting instructions, please see:
root@slitaz:~# /usr/bin/rpcinfo --help
/usr/bin/rpcinfo: invalid option -- '-'
/usr/bin/rpcinfo: invalid option -- 'h'
/usr/bin/rpcinfo: invalid option -- 'e'
Usage: rpcinfo [-m | -s] [host]
rpcinfo -p [host]
rpcinfo -T netid host prognum [versnum]
rpcinfo -l host prognum versnum
rpcinfo [-n portnum] -u | -t host prognum [versnum]
rpcinfo -a serv_address -T netid prognum [version]
rpcinfo -b prognum versnum
rpcinfo -d [-T netid] prognum versnum
6.
root@slitaz:~# cat /var/run/portmap_mapping
100000 2 6 111 1
100000 2 17 111 1
100003 3 17 2049 1
100003 3 6 2049 1
100005 1 17 2049 1
100005 3 17 2049 1
100005 1 6 2049 1
100005 3 6 2049 1
100021 1 17 48911 1
100021 3 17 48911 1
100021 4 17 48911 1
100021 1 6 35925 1
100021 3 6 35925 1
100021 4 6 35925 1
7.
root@slitaz:~# netstat -nltu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:35925 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
netstat: /proc/net/tcp6: No such file or directory
udp 0 0 0.0.0.0:2049 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:48911 0.0.0.0:*
netstat: /proc/net/udp6: No such file or directory
root@slitaz:~# netstat -ltu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:nfs 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:sunrpc 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:35925 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
netstat: /proc/net/tcp6: No such file or directory
udp 0 0 0.0.0.0:nfs 0.0.0.0:*
udp 0 0 0.0.0.0:sunrpc 0.0.0.0:*
udp 0 0 0.0.0.0:48911 0.0.0.0:*
netstat: /proc/net/udp6: No such file or directory
8.
root@slitaz:~# cat /etc/rpc | head -25
#ident "@(#)rpc 1.11 95/07/14 SMI" /* SVr4.0 1.2 */
#
# rpc
#
portmapper 100000 portmap sunrpc rpcbind
rstatd 100001 rstat rup perfmeter rstat_svc
rusersd 100002 rusers
nfs 100003 nfsprog
ypserv 100004 ypprog
mountd 100005 mount showmount
ypbind 100007
walld 100008 rwall shutdown
yppasswdd 100009 yppasswd
etherstatd 100010 etherstat
rquotad 100011 rquotaprog quota rquota
sprayd 100012 spray
3270_mapper 100013
rje_mapper 100014
selection_svc 100015 selnsvc
database_svc 100016
rexd 100017 rex
alis 100018
sched 100019
llockmgr 100020
nlockmgr 100021
root@slitaz:~#