Solaris

2006/1/20 01:47 PM 更新

初期状態

Solarisをインストールした時点でのサーバの状態。
$ uname -a
SunOS barbara 5.9 Generic_112234-12 i86pc i386 i86pc

$ ps -ef
UID PID PPID C STIME TTY TIME CMD
root 0 0 0 02:08:52 ? 0:09 sched
root 1 0 0 02:08:52 ? 0:00 /etc/init -
root 2 0 0 02:08:52 ? 0:00 pageout
root 3 0 0 02:08:52 ? 0:02 fsflush
root 205 1 0 02:09:13 ? 0:00 /usr/lib/saf/sac -t 300
root 211 158 0 02:10:30 ? 0:00 in.telnetd
root 66 1 0 02:09:06 ? 0:00 /usr/lib/sysevent/syseventd
root 142 1 0 02:09:10 ? 0:00 /usr/sbin/rpcbind
root 125 1 0 02:09:09 ? 0:00 /usr/sbin/in.routed
root 209 205 0 02:09:13 ? 0:00 /usr/lib/saf/ttymon
root 158 1 0 02:09:10 ? 0:00 /usr/sbin/inetd -s
root 178 1 0 02:09:12 ? 0:00 /usr/sbin/cron
root 170 1 0 02:09:11 ? 0:00 /usr/sbin/syslogd
root 206 1 0 02:09:13 console 0:00 /usr/lib/saf/ttymon -g -h -p barbara console login: -T sun-color -d /dev/conso
root 191 1 0 02:09:12 ? 0:00 /usr/lib/utmpd
root 210 1 0 02:09:13 ? 0:00 devfsadmd
root 244 1 0 02:26:50 ? 0:00 /usr/sbin/nscd

$ netstat -anP TCP

TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------- -------------------- ----- ------ ----- ------ ------
*.7 *.* 0 0 65536 0 LISTEN
*.9 *.* 0 0 65536 0 LISTEN
*.13 *.* 0 0 65536 0 LISTEN
*.19 *.* 0 0 65536 0 LISTEN
*.21 *.* 0 0 65536 0 LISTEN
*.23 *.* 0 0 65536 0 LISTEN
*.37 *.* 0 0 65536 0 LISTEN
*.111 *.* 0 0 65536 0 LISTEN
*.7100 *.* 0 0 65536 0 LISTEN
*.32771 *.* 0 0 65536 0 LISTEN
*.32772 *.* 0 0 65536 0 LISTEN
*.* *.* 0 0 65536 0 IDLE

TCP: IPv6
Local Address Remote Address Swind Send-Q
Rwind Recv-Q State If
-------------------------- ---------------- ----- ------ ----- ---- ------
*.7 *.* 0 0 65536 0 LISTEN
*.9 *.* 0 0 65536 0 LISTEN
*.13 *.* 0 0 65536 0 LISTEN
*.19 *.* 0 0 65536 0 LISTEN
*.23 *.* 0 0 65536 0 LISTEN
*.21 *.* 0 0 65536 0 LISTEN
*.37 *.* 0 0 65536 0 LISTEN
*.7100 *.* 0 0 65536 0 LISTEN
*.* *.* 0 0 49152 0 IDLE

$ netstat -anP UDP

UDP: IPv4
Local Address Remote Address State
-------------------- -------------------- -------

*.7 Idle
*.9 Idle
*.13 Idle
*.19 Idle
*.37 Idle
*.111 Idle
*.514 Idle
*.520 Idle
*.32771 Idle
*.32772 Idle
*.32773 Idle
*.* Unbound

UDP: IPv6
Local Address Remote Address State If
----------------------- --------------------------------- ---------- -----
*.7 Idle
*.9 Idle
*.13 Idle
*.19 Idle
*.37 Idle

$ netstat -r

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.1.0 barbara U 1 1 rh0
224.0.0.0 barbara U 1 0 rh0
default 192.168.1.yyy UG 1 0
localhost localhost UH 1 0 lo0

$ df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 1190953 24681 1106725 3% /
/dev/dsk/c1t0d0s6 1190953 64920 1066486 6% /usr
/dev/dsk/c1t0d0p0:boot 11502 1587 9915 14% /boot
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
/dev/dsk/c1t0d0s1 1190953 1378 1130028 1% /var
swap 403816 4 403812 1% /var/run
swap 403812 0 403812 0% /tmp
/dev/dsk/c1t0d0s7 187453 10 168698 1% /export/home