- SMC : SNMP 지원하는 NMS툴 http://www.sun.com/sunmanagementcenter (HP는 openview)
netstat
-
> netstat -i (interface)
- 보낸 패킷수
- 받은 패킷수
- Collison 수
- > netstat -nr (routing table정보)
-
> netstat -a (세션 정보)
- 클리이언트:port# 서버:port#
ifconfig
- sun191[/] # ifconfig bge1 plumb <--드리이버 구동
sun191[/] # ifconfig bge1
bge1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 0.0.0.0 netmask 0
ether 0:14:4f:80:e0:45
sun191[/] # ifconfig bge1 192.168.0.19
sun191[/] # ifconfig bge1 up
sun191[/] # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 122.199.186.191 netmask ffffff00 broadcast 122.199.186.255
ether 0:14:4f:80:e0:44
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.0.19 netmask ffffff00 broadcast 192.168.0.255
ether 0:14:4f:80:e0:45
sun191[/] # ifconfig ce0 plumb
sun191[/] # ifconfig ce1 plumb
sun191[/] # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 122.199.186.191 netmask ffffff00 broadcast 122.199.186.255
ether 0:14:4f:80:e0:44
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.0.19 netmask ffffff00 broadcast 192.168.0.255
ether 0:14:4f:80:e0:45
ce0: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
inet 0.0.0.0 netmask 0
ether 0:14:4f:66:f7:bf
ce1: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 5
inet 0.0.0.0 netmask 0
ether 0:14:4f:66:f7:c0
sun191[/] # netstat -i
Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue
lo0 8232 loopback localhost 16386 0 16386 0 0 0
bge0 1500 sun191 sun191 74075 0 23234 0 0 0
bge1 1500 192.168.0.0 192.168.0.19 210 0 5 0 0 0
ce0 1500 default 0.0.0.0 0 0 0 0 0 0
ce1 1500 default 0.0.0.0 0 0 0 0 0 0 - sun191[/] # zoneadm list -cp
0:global:running:/
-:web-zone:installed:/web-zone
-:oracle-zone:installed:/oracle-zone
-:mail-zone:installed:/mail-zone
-:ftp-zone:installed:/ftp-zone
sun191[/] # zoneadm -z web-zone boot&
sun191[/] # zoneadm -z oracle-zone boot&
sun191[/] # zoneadm -z mail-zone boot&
sun191[/] # zoneadm -z ftp-zone boot& - sun191[/] # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone web-zone
inet 127.0.0.1 netmask ff000000
lo0:2: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone oracle-zone
inet 127.0.0.1 netmask ff000000
lo0:3: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone mail-zone
inet 127.0.0.1 netmask ff000000
lo0:4: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone ftp-zone
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 122.199.186.191 netmask ffffff00 broadcast 122.199.186.255
ether 0:14:4f:80:e0:44
bge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone web-zone
inet 192.168.0.11 netmask ffffff00 broadcast 192.168.0.255
bge0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone oracle-zone
inet 192.168.0.12 netmask ffffff00 broadcast 192.168.0.255
bge0:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone mail-zone
inet 192.168.0.16 netmask ffffff00 broadcast 192.168.0.255
bge0:4: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone ftp-zone
inet 192.168.0.13 netmask ffffff00 broadcast 192.168.0.255
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.0.19 netmask ffffff00 broadcast 192.168.0.255
ether 0:14:4f:80:e0:45
ce0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
inet 192.168.0.18 netmask ffffff00 broadcast 192.168.0.255
ether 0:14:4f:66:f7:bf
ce1: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 5
inet 192.168.0.17 netmask ffffff00 broadcast 192.168.0.255
ether 0:14:4f:66:f7:c0
sun191[/] # ping -s 122.199.186.255 1000 <-- 255 는 broadcast - sun191[/] # netstat -i -I bge0 1 <-- 1초 간격으로 bge0 인터페이스의 in/out 출력
sun191[/] # zoneadm -z oracle-zone halt <-- halt는 shutdown 명령어 임
sun191[/] # zoneadm -z mail-zone halt
ip_multidata_outbound
- sun191[/] # ndd /dev/ip \? | grep multi
ip_respond_to_echo_multicast (read and write)
ip_strict_dst_multihoming (read and write)
ip6_respond_to_echo_multicast (read and write)
ip6_strict_dst_multihoming (read and write)
ip_multirt_resolution_interval(read and write)
ip_multirt_ttl (read and write)
ip_multidata_outbound (read and write)
sun191[/] # ndd /dev/ip ip_multidata_outbound <-- 많은 양의 bulk data전송이 true이면 영향이 있음. sol9까지는 false. sol10 true
1 - sun191[/] # kstat -p bge:0:bge0:*
bge:0:bge0:brdcstrcv 34375
bge:0:bge0:brdcstxmt 4587
bge:0:bge0:class net
bge:0:bge0:collisions 0
bge:0:bge0:crtime 90.88749985
bge:0:bge0:ierrors 0
bge:0:bge0:ifspeed 1000000000
bge:0:bge0:ipackets 422947
bge:0:bge0:ipackets64 422947
bge:0:bge0:multircv 2489
bge:0:bge0:multixmt 0
bge:0:bge0:norcvbuf 0
bge:0:bge0:noxmtbuf 0
bge:0:bge0:obytes 21522496
bge:0:bge0:obytes64 21522496
bge:0:bge0:oerrors 0
bge:0:bge0:opackets 63654
bge:0:bge0:opackets64 63654
bge:0:bge0:rbytes 423179009
bge:0:bge0:rbytes64 423179009
bge:0:bge0:snaptime 13266.7398845
bge:0:bge0:unknowns 39
이 글은 스프링노트에서 작성되었습니다.