# tw_cli help Copyright(c) 2004, 2005 Applied Micro Circuits Corporation(AMCC). All rights reserved. AMCC/3ware CLI (version 2.00.03.011) Commands Description ------------------------------------------------------------------- info Displays information about controller(s), unit(s) and port(s). maint Performs maintenance operations on controller(s), unit(s) and ports. alarms Displays current AENs. set Displays or modifies controller and unit settings. sched Schedules bachground tasks on controller(s) (9000 series) quit Exits the CLI. ---- New Command Syntax ---- show Displays information about controller(s), unit(s) and port(s). flush Flush write cache data to units in the system. rescan Rescan all empty ports for new unit(s) and disk(s). commit Commit dirty DCB to storage on controller(s). (Windows only) /cx Controller specific commands. /cx/ux Unit specific commands. /cx/px Port specific commands. /cx/bbu BBU specific commands. (9000 only) Type help to get more details about a particular command. For more detail information see tw_cli's documentation. ------ # tw_cli help /cx /cx show /cx show Attribute [Attribute ...] where Attribute is: achip|allunitstatus|autocarve(9000 series)|autorebuild(9550SX only) bios|carvesize(9000 series)|driver|drivestatus|exportjbod|firmware memory|model|monitor|numdrives|numports|numunits ondegrade(9000S only)|pcb|pchip|serial|spinup|stagger|unitstatus /cx show all where all means Attributes and configurations. /cx show diag /cx show alarms [reverse] /cx show rebuild (9000 series) /cx show verify (9000 series) /cx show selftest (9000 series) /cx add type= disk= [stripe=] [noscan] [nocache] [group=<3|4|5|6|7|8>] [autoverify] [ignoreECC] [name=string (9000 series)] [storsave= (9550SX only)] RaidType = { raid0, raid1, raid5, raid10, raid50, single, spare, JBOD (7000/8000 only)} /cx add rebuild=ddd:hh:duration (9000 series) /cx add verify=ddd:hh:duration (9000 series) /cx add selftest=ddd:hh (9000 series) /cx del rebuild=slot_id (9000 series) /cx del verify=slot_id (9000 series) /cx del selftest=slot_id (9000 series) /cx set exportjbod=on|off (9000 series) /cx set ondegrade=cacheoff|follow (9000S only) /cx set spinup=nn (9000 series) /cx set stagger=nn (9000 series) /cx set autocarve=on|off (9000 series) /cx set carvesize=[1024..2048] (9000 series) /cx set rebuild=enable|disable|<1..5> (enable|disable for 9000 series) /cx set verify=enable|disable|<1..5> (enable|disable for 9000 series) /cx set selftest=enable|disable [task=UDMA|SMART] (9000 series) /cx set autorebuild=on|off (9550SX only) /cx flush /cx commit (Windows only) (Also known as shutdown) /cx start mediascan (7000/8000 only) /cx stop mediascan (7000/8000 only) /cx rescan [noscan] NOTE: Does not import non-JBOD on 7000/8000 models. ------ # tw_cli help /cx/ux /cx/ux show /cx/ux show Attribute [Attribute ...] where Attribute is: initializestatus|name(9000 series)|qpolicy(9550SX Only) rebuildstatus|serial(9000 series)|status storsave(9550SX Only)|verifystatus|volumes(9000 series). /cx/ux show all /cx/ux start rebuild disk= [ignoreECC] /cx/ux start verify /cx/ux pause rebuild (7000/8000 only) /cx/ux resume rebuild (7000/8000 only) /cx/ux stop verify /cx/ux flush /cx/ux del [noscan] [quiet] /cx/ux set autoverify=on|off (9000 series) /cx/ux set cache=on|off [quiet] /cx/ux set ignoreECC=on|off (9000 series) /cx/ux set name=string (9000 series) /cx/ux set qpolicy=on|off (9550SX Only) /cx/ux set storsave=protect|balance|perform [quiet](9550SX Only) /cx/ux export [noscan] [quiet] /cx/ux migrate type= [disk=] [group=<3|4|5|6|7|8>] [stripe=] [noscan] [nocache] [autoverify] RaidType = { raid0, raid1, raid5, raid10, raid50, single} (9000 series) ------ # tw_cli help /cx/px /cx/px show /cx/px show Attribute [Attribute ...] where Attribute is: capacity|firmware|identify(9550SX only)|lspeed(9550SX only) model|ncq(9550SX only)|serial|smart|status /cx/px show all /cx/px export [quiet] /cx/px set identify=on|off (9550SX only) ------ # tw_cli help /cx/bbu /cx/bbu show (9000S only) /cx/bbu show Attribute [Attribute ...] where Attribute is: batinst|bootloader|cap|fw|lasttest|pcb|ready|serial|status temp|volt /cx/bbu show all (9000S only) /cx/bbu test [quiet] (9000S only) /cx/bbu enable (9000S only) /cx/bbu disable [quiet] (9000S only) ------ # tw_cli /c0 show all /c0 Driver Version = 2.26.02.005 /c0 Model = 9550SX-4LP /c0 Memory Installed = 112MB /c0 Firmware Version = FE9X 3.01.01.028 /c0 Bios Version = BE9X 3.01.00.024 /c0 Monitor Version = BL9X 3.01.00.006 /c0 Serial Number = L20905A5460362 /c0 PCB Version = Rev 032 /c0 PCHIP Version = 1.60 /c0 ACHIP Version = 1.70 /c0 Number of Ports = 4 /c0 Number of Units = 1 /c0 Number of Drives = 2 /c0 Total Optimal Units = 0 /c0 Not Optimal Units = 1 /c0 JBOD Export Policy = off /c0 Disk Spinup Policy = 1 /c0 Spinup Stagger Time Policy (sec) = 2 /c0 Auto-Carving Policy = off /c0 Auto-Carving Size = 2047 GB /c0 Auto-Rebuild Policy = on Unit UnitType Status %Cmpl Stripe Size(GB) Cache AVerify IgnECC ------------------------------------------------------------------------------ u0 RAID-1 REBUILDING 21 - 465.651 OFF OFF OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 NOT-PRESENT - - - - p1 OK u0 465.76 GB 976773168 KRVN65ZAGR3VXF p2 DEGRADED u0 465.76 GB 976773168 KRVN65ZAGRKBJF p3 NOT-PRESENT - - - - Name OnlineState BBUReady Status Volt Temp Hours LastCapTest --------------------------------------------------------------------------- bbu On No Charging OK OK 0 xx-xxx-xxxx ------ # tw_cli /c0/u0 show all /c0/u0 status = REBUILDING /c0/u0 is rebuilding with percent completion = 21 /c0/u0 is not verifying, its current state is REBUILDING /c0/u0 is not initialized. /c0/u0 volume(s) = 1 /c0/u0 name = mainraid /c0/u0 serial number = ZAGR3VXF161917000000 /c0/u0 Storsave Policy = balance /c0/u0 Command Queuing Policy = on Unit UnitType Status %Cmpl Port Stripe Size(GB) Blocks ----------------------------------------------------------------------- u0 RAID-1 REBUILDING 21 - - 465.651 976541696 u0-0 DISK DEGRADED - p2 - 465.651 976541696 u0-1 DISK OK - p1 - 465.651 976541696 ------ # tw_cli /c0/p1 show all /c0/p1 Status = OK /c0/p1 Model = HDS725050KLA360 /c0/p1 Firmware Version = K2AOA51A /c0/p1 Serial = KRVN65ZAGR3VXF /c0/p1 Capacity = 465.76 GB (976773168 Blocks) /c0/p1 Identify Status = N/A /c0/p1 SATA Link Speed Supported = 1.5 Gb/s /c0/p1 SATA Link Speed = 1.5 Gb/s /c0/p1 NCQ Supported = No /c0/p1 NCQ Enabled = No /c0/p1 Belongs to Unit = u0 /c0/p1 Drive Smart Data: 10 00 01 0B 00 64 64 00 00 00 00 00 00 00 02 05 00 64 64 00 00 00 00 00 00 00 03 07 00 64 64 26 02 00 00 0D 00 00 04 12 00 64 64 08 00 00 00 00 00 00 05 33 00 64 64 00 00 00 00 00 00 00 07 0B 00 64 64 00 00 00 00 00 00 00 08 05 00 64 64 00 00 00 00 00 00 00 09 12 00 64 64 9F 00 00 00 00 00 00 0A 13 00 64 64 00 00 00 00 00 00 00 0C 32 00 64 64 08 00 00 00 00 00 00 C0 32 00 64 64 0E 00 00 00 00 00 00 C1 12 00 64 64 0E 00 00 00 00 00 00 C2 02 00 94 94 25 00 16 00 2A 00 00 C4 32 00 64 64 00 00 00 00 00 00 00 C5 22 00 64 64 00 00 00 00 00 00 00 C6 08 00 64 64 00 00 00 00 00 00 00 C7 0A 00 C8 FD 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B3 28 01 5B 03 00 01 00 01 AE 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F7 ------ # tw_cli /c0/bbu show all /c0/bbu Firmware Version = BBU: 2.00.00.003 /c0/bbu Serial Number = L021902B6060068 /c0/bbu Online State = On /c0/bbu BBU Ready = No /c0/bbu BBU Status = Charging /c0/bbu Battery Voltage = OK /c0/bbu Battery Temperature = OK /c0/bbu Estimated Backup Capacity = 0 Hours /c0/bbu Last Capacity Test = xx-xxx-xxxx /c0/bbu Battery Installation Date = 21-Mar-2006 /c0/bbu Bootloader Version = BBU 0.02.02.001 /c0/bbu PCB Revision = 65 ------ # tw_cli /c0/u0 set cache=on Setting Write Cache Policy on /c0/u0 to [on] ... Done.