サブメニュー
最近更新したページ
2009-08-20
2007-11-08
2007-06-07
2007-05-10
2007-04-12
2006-08-11
2006-07-20
2006-05-11
2006-05-01
2006-03-28
2006-03-27
2006-03-22
2006-02-26
2006-02-16
最新コメント
Linux by ペニシリン
Linux by Utarias
Linux by bo_garcon
Linux by debuGGer_2k
Linux by Jon
Linux by internet junkie
Linux by stinglin
Linux by tykeal
Linux by coll
Linux by ojms

Solalis

Solalis

  • H/W情報(メモリ、CPUのクロック数)の調べ方

 prtdiag コマンドにて調べる事が可能。

==以下、表示例==


# cd /usr/platform/SUNW,Ultra-5_10/sbin/
↑の部分は、H/Wによって異なる。

# ./prtdiag -v
System Configuration: Sun Microsystems sun4u Sun Fire 280R (2 X UltraSPARC-III )
System clock frequency: 150 MHz
Memory size: 2048 Megabytes

========================= CPUs ===============================================

Run E$ CPU CPU
Brd CPU MHz MB Impl. Mask
      • --- ---- ---- ------- ----
A 0 900 8.0 US-III 2.3 B 1 900 8.0 US-III 2.3

========================= Memory Configuration ===============================

Logical Logical Logical MC Bank Bank Bank DIMM Interleave Interleaved Brd ID num size Status Size Factor with

CA 0 0 1024MB no_status 512MB 2-way 0 CA 0 2 1024MB no_status 512MB 2-way 0

========================= IO Cards =========================




========================= Environmental Status =========================

System Temperatures (Celsius):

cpu0 1

52 48

=================================

Front Status Panel:

Keyswitch position: NORMAL

System LED Status: POWER GEN FAULT
[ ON] [ ON]

=================================

Disk Status:
Presence Fault Value -------- -----------
DISK 0: [PRESENT] [NO_FAULT]
DISK 1: [PRESENT] [NO_FAULT]

=================================

Fan Bank :


Bank Status

FAN [NO_FAULT]

=================================

Power Supplies:

Supply Status PS Type

PS0 [NO_FAULT] [Sun-Fire-280R]
PS1 [DEVICE_FAULT] [Sun-Fire-280R]

=================================


========================= HW Revisions =======================================

System PROM revisions:

OBP 4.5.16 2002/05/01 19:28

IO ASIC revisions:

Port
Model ID Status Version

Schizo 8 ok 5

#


物理メモリ容量の確認==========

# prtconf
System Configuration: Sun Microsystems sun4u
Memory size: 1024 Megabytes
System Peripherals (Software Nodes):

SUNW,Ultra-60
packages (driver not attached) terminal-emulator (driver not attached) deblocker (driver not attached) obp-tftp (driver not attached) disk-label (driver not attached) SUNW,builtin-drivers (driver not attached) sun-keyboard (driver not attached) ufs-file-system (driver not attached) chosen (driver not attached) openprom (driver not attached) client-services (driver not attached) options, instance #0 aliases (driver not attached) memory (driver not attached) virtual-memory (driver not attached) pci, instance #0 ebus, instance #0 auxio (driver not attached) power (driver not attached) SUNW,pll (driver not attached) sc (driver not attached) se, instance #0 su, instance #0 su, instance #1 ecpp (driver not attached) fdthree (driver not attached) eeprom (driver not attached) flashprom (driver not attached) network, instance #0 scsi, instance #0 disk (driver not attached) tape (driver not attached) sd, instance #0 sd, instance #1 sd, instance #2 (driver not attached) sd, instance #3 (driver not attached) sd, instance #4 (driver not attached) sd, instance #5 (driver not attached) sd, instance #6 sd, instance #7 (driver not attached) sd, instance #8 (driver not attached) sd, instance #9 (driver not attached) sd, instance #10 (driver not attached) sd, instance #11 (driver not attached) sd, instance #12 (driver not attached) sd, instance #13 (driver not attached) sd, instance #14 (driver not attached) scsi, instance #1 disk (driver not attached) tape (driver not attached) sd, instance #15 (driver not attached) sd, instance #16 (driver not attached) sd, instance #17 (driver not attached) sd, instance #18 (driver not attached) sd, instance #19 (driver not attached) sd, instance #20 (driver not attached) sd, instance #21 (driver not attached) sd, instance #22 (driver not attached) sd, instance #23 (driver not attached) sd, instance #24 (driver not attached) sd, instance #25 (driver not attached) sd, instance #26 (driver not attached) sd, instance #27 (driver not attached) sd, instance #28 (driver not attached) sd, instance #29 (driver not attached) scsi, instance #2 disk (driver not attached) tape (driver not attached) sd, instance #30 (driver not attached) sd, instance #31 (driver not attached) sd, instance #32 (driver not attached) sd, instance #33 (driver not attached) sd, instance #34 (driver not attached) sd, instance #35 (driver not attached) sd, instance #36 (driver not attached) sd, instance #37 (driver not attached) sd, instance #38 (driver not attached) sd, instance #39 (driver not attached) sd, instance #40 (driver not attached) sd, instance #41 (driver not attached) sd, instance #42 (driver not attached) sd, instance #43 (driver not attached) sd, instance #44 (driver not attached) pci, instance #1 counter-timer (driver not attached) SUNW,UltraSPARC-II (driver not attached) SUNW,UltraSPARC-II (driver not attached) pseudo, instance #0



物理disk容量の確認==========

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@1f,4000/scsi@3/sd@0,0 1. c0t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@1f,4000/scsi@3/sd@1,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]


FORMAT MENU:
disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit
format> partition


PARTITION MENU:
0 - change `0' partition 1 - change `1' partition 2 - change `2' partition 3 - change `3' partition 4 - change `4' partition 5 - change `5' partition 6 - change `6' partition 7 - change `7' partition select - select a predefined table modify - modify a predefined partition table name - name the current table print - display the current table label - write partition map and label to the disk !<cmd> - execute <cmd>, then return quit
partition> print
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 23893 32.92GB (23894/0/0) 69029766 1 swap wu 23894 - 24617 1021.31MB (724/0/0) 2091636 2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180 3 unassigned wm 24618 - 24619 2.82MB (2/0/0) 5778 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0

partition> quit


FORMAT MENU:
disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit
format> quit
#

P.S
パーテーションは8個に割れます。
c0t0d0s0
c0t0d0s1
の後ろのs*はその番号になります。
それは、partition> print の順番で確認できます。


===とりあえず自動で動けスクリプト。。。===

1個ずつ手動でやるのはめんどくさい。。。
でもスクリプトは書けない。そんなときに・・・

コマンドを1個ずつ、テキストに明示的に書く。
それを動かす。
最後に[;]をつけてあげると、1つずづコマンドを実行してくれます。

  • こんな感じでテキストを作る。
#!/use/bin/sh
gunzip -c firewall.log.20050101.gz | grep 192.168.0.1 > /var/log/192.168.0.1/fireall.log.2005101;
gunzip -c firewall.log.20050102.gz | grep 192.168.0.1 > /var/log/192.168.0.1/fireall.log.2005102;
gunzip -c firewall.log.20050103.gz | grep 192.168.0.1 > /var/log/192.168.0.1/fireall.log.2005103;

さらに、、こんなこともしてみる。。。
#!/use/bin/sh
gzip -v /var/log/192.168.0.1/fireall.log.2005101;
gzip -v /var/log/192.168.0.1/fireall.log.2005102;
gzip -v /var/log/192.168.0.1/fireall.log.2005103;

ボク、ダメすぎ・・ごめんなさい。

==================
2005年11月29日(火) 11:20:30 Modified by dj_u_c




スマートフォン版で見る