Sunday, May 16, 2010

CPU 정보보기, CPU 몇비트인지 보기, 열린포트와 연결된 프로그램 보기

CPU 정보보기, CPU 몇비트인지 보기, 열린포트와 연결된 프로그램 보기 리눅스

[root@domain ~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU X3220 @ 2.40GHz
stepping : 11
cpu MHz : 2400.086
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc pni ssse3
bogomips : 6001.58

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU X3220 @ 2.40GHz
stepping : 11
cpu MHz : 2400.086
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni ssse3
bogomips : 6001.58


[root@domain ~]# getconf WORD_BIT
32

OS별로 자주 쓰이는 CPU, Memory등의 정보확인 방법에 대한 비교이다.
일부 command는 Root 권한으로 수행되어야 한다.


1. CPU 정보
AIX lsdev -Cc processor
HP-UX ioscan -fnC processor
SOLARIS psrinfo -v
Tru64 psrinfo -v
LINUX cat /proc/cpuinfo

2. Physical RAM
AIX bootinfo -r
HP-UX grep -i Physical /var/adm/syslog/syslog.log
SOLARIS Prtconf
Tru64 uerf | grep memory
LINUX free

3. Kernel Bits
AIX bootinfo -K
HP-UX getconf KERNEL_BITS
SOLARIS isainfo -kv
Tru64 64
LINUX getconf WORD_BIT

4. Service Switch
AIX /etc/netsvc.conf
HP-UX /etc/nsswitch.conf
SOLARIS /etc/nsswitch.conf
Tru64 /etc/svc.conf
LINUX /etc/nsswitch.conf

5. NIC
AIX ifconfig -a
HP-UX lanscan -v
SOLARIS ifconfig -a
Tru64 ifconfig -a
LINUX ifconfig -a

6. Administrator
AIX smit
HP-UX sam
SOLARIS admintool
Tru64  
LINUX linuxconf


[root@domain ~]# lsof -i :1723
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
pptpd 14830 root 6u IPv4 13995991 TCP *:pptp (LISTEN)
pptpctrl 14832 root 0u IPv4 13996056 TCP 208.20.225.210:pptp->222.107.133.132:aises (ESTABLISHED)

No comments: