Copied from http://www.cyberciti.biz/files/tw_cli.8.html

NAME


c0 7500-12 12 8 3 1 2 - -


c0 Geroni133/Ap 4 2 1 0 4 4 -


e0 4 2 1 1 1

to being in a particular location in a file system and requesting a listing of the current directory.



  1. p0 OK

  2. p1 OK

  3. p2 OK

  4. p3 OK

  5. p4 OK

  6. p5 OK

  7. p6 OK

  8. p7 OK

  9. p8 OK

  10. p9 NOT-PRESENT

  11. p10 OK u1

  12. p11 OK u1 . 149.05 GB 149.05 GB 149.05 GB 149.05 GB 149.05 GB 149.05 GB 149.05 GB 149.05 GB 149.05 GB -

    • 149.05 GB 149.05 GB
    • 312581808 312581808 312581808 312581808 312581808 312581808 312581808 312581808 312581808 - 312581808 312581808 WD-WCANM1771318 WD-WCANM1757592 WD-WCANM1782201 WD-WCANM1753998 WD-WCANM1766952 WD-WCANM1882472 WD-WCANM1883862 WD-WCANM1778008 WD-WCANM1770998 - WD-WCANM1869003 WD-WCANM1762464
    • Unit
      • Size Blocks Serial
      u0 u0 u0 u0 u2 u3 u0 u3 - - -- 64K 596.004 ON OFF -- 64K 298.002 ON OFF
      • -- - 149.042 - OFF

  1. -- - 149.001 ON OFF . Name OnlineState BBUReady Status Volt Temp


bbu On Yes OK OK OK 241 22-Jun-2004

/cx show Attribute Attribute ...

This command reports the number of units currently managed by the specified controller /cx. This report does not include off-line units (or removed units). Example:

/cx show memory

/c0 Memory Installed = 112MB

/c0 Controller Bus Width = 64 bits /c0 Controller Bus Speed = 133 Mhz . /cx show autorebuild (9KSX/SE only) This command shows the Auto-Rebuild policy. If the policy is enabled, the firmware will choose following drives in order to find a candidate for rebuild operation on a degraded unit. 1. Smallest usable capacity spare.

This command presents a list of units, their types, capacity and status currently managed by the specified controller /cx.


  1. u0 RAID-5 OK

  2. u1 RAID-0 OK . u2 SPARE OK u3 RAID-1 OK

    • - - 64K 596.004 ON OFF - - 64K 298.002 ON OFF - - - 149.042 - OFF - - - 149.001 ON OFF
    • /cx show allunitstatus

This command presents a count of Total and Not Optimal units managed by the specified controller /cx. See Shell Object Messages for more on Not Optimal definition.

This command presents a list of drives, port assignment, vendor signature, size, status, and unit membership/affiliation.


This command shows the current setting of all attributes. . /cx add type=<RaidType> disk=<p:-p> [stripe=Stripe] [noscan] [group=<3|4|5|6|7|8>] [nocache] [autoverify] [noqpolicy] [ignoreECC] [name=string] [storsave= <protect|balance|perform>]

attribute is not applicable to the spare unit. Specifying the noqpolicy attribute returns an error.


+


+


+


+


+


+


+


+


+


+ 7K/8K | Y | Y | Y | Y | Y | Y | N | N | N |


+


+


+


+


+


+


+


+


+


+ 9K | Y | Y | Y | Y | N | Y | Y | Y | N |


+


+


+


+


+


+


+


+


+


+ 9650SE|Y|Y|Y| Y|N|Y| Y|Y |Y|


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+ 7K/8K| 64 | N/A| 64 | 64 |N/A|N/A| N/S| N/S|N/S|


+


+


+


+


+


+


+


+


+


+ 9K |16 |N/A|16|16 |N/A|N/A|16|N/A| | | 64 | | 64 | 64 | | | 64 | | | | 256 | | 256 | 256 | | | 256 | | |


+


+


+


+


+


+


+


+


+


+ 9650SE| 16 | N/A| 16 | 16 |N/A|N/A| 16 | N/A| | |64| |64|64| | |64| |64| | 256 | | 256 | 256 | | | 256 | | |


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+ 7K/8K|N|N|N| N|N|N| N|N |


+


+


+


+


+


+


+


+


+ 9K | N | Y | Y | Y | N | N | Y | N |


+


+


+


+


+


+


+


+


+

This command instructs the controller to commit its dirty DCBs to persistent storage (ie disks). While controller is processing I/O requests against underlying disks, an in-transaction bit is set. If a failure (such as power failure) is experienced, subsequent read from the disks, will inform the controller that an un-clean shutdown took place. This command allows the end user to complete all pending I/Os on disks and clear the in-transaction bit. . Typical application of this feature is when an application is using a given unit in raw mode (such as databases) and user would like to shutdown the host (Including UPS post failure automations). This command can then expedite the process by instructing the controller to finish pending requests, clear DCB's in-transaction flag as we are going down. Note that block devices (cooked devices) do not require this and clients of block devices (such as file systems) will send its own shutdown request to the devices. This command only applies to Windows operating system.

This command allows you to flush the write cache on all units associated with the /cx controller

This command allows the download of the specified firmware image to the corresponding controller. This command is for 9000 series controllers only. . fw=filename_with_path attribute allows user to specify the firmware image file name along with its path. The new image specified by this filename_with_path will be checked for compatibility with the current controller, current driver and current application versions. Subsequently a recommendation is given to the user followed by a prompt to continue. Once the user decides to proceed, the image will be downloaded to the controller. However, a reboot is required for the new image to take effect. Example:

a copy of current firmware image for rollbacks. . Examining compatibility data from firmware image and /c2 ... Done.


FE9X 3.05.00.005 FE9X 3.05.00.005 2.26.04.007 2.01.00.008

Asynchronous events are originated by firmware and captured by their respective device drivers. These events are kept in a finite queue inside the kernel, awaiting extraction by user space programs such as CLI and/or 3DMPlus. These events reflect warning, debugging and/or informative messages for end user. . Alarms generated on 7000/8000 models do not have dates, as such you'll see a '-' (read not-applicable) in Date column. Also on 7000/8000 models, the alarm message, contain the severity as well, hence the Severity column is showing a '-' as well.


/cx show diag

/cx show rebuild


  1. 1 Mon 2:00pm 10 hr(s) disabled

  2. 2 Thu 7:00pm 18 hr(s) disabled . 3


4


5


  1. 6 Mon 1:00am 4 hr(s) disabled

  2. 7 Sun 12:00am 1 hr(s) disabled . Status disabled indicates that the controller will not use the tabled schedules.

Note: The rebuild schedules are also applicable to initialization and migration processes. For example: If a unit is in the initialization state at noon on Wed, the tabled schedule above is show in the following: . $ tw_cli /c1 show rebuild


  1. 1 Mon 2:00pm 10 hr(s) disabled

  2. 2 Thu 7:00pm 18 hr(s) disabled . 3


4


5


  1. 6 Mon 1:00am

  2. 7 Sun 12:00am . $ tw_cli /c1 show


u0 RAID-5 INITIALIZING 0 - 64K 521.466 ON OFF


  1. p0 NOT-PRESENT -

  2. p1 OK u0

  3. p2 NOT-PRESENT -

  4. p3 OK u0

  5. p4 NOT-PRESENT -

  6. p5 OK u0

  7. p6 NOT-PRESENT -

  8. p7 OK u0

  9. p8 OK u0

  10. p9 OK u0

  11. p10 OK u0

  12. p11 OK u0 . -

76.33 GB - 76.33 GB - 76.33 GB - 76.33 GB 74.53 GB 74.53 GB 74.53 GB 74.53 GB . - 160086528 - 160086528 - 160086528 - 160086528 156301488 156301488 156301488 156301488 - Y2NXL7FE - Y2NXLB9E - Y2NXQPZE - Y2NXM4VE 3JV3WTSE 3JV3WRHC 3JV3WQLQ 3JV3WQLZ


bbu On Yes OK OK OK 0 xx-xxx-xxxx


  1. 1 Mon 2:00pm 10 hr(s) enabled

  2. 2 Thu 7:00pm 18 hr(s) enabled . 3


4


5



u0 RAID-5 INIT-PAUSED 0 - 64K 521.466 ON OFF


  1. p0 NOT-PRESENT -

  2. p1 OK u0

  3. p2 NOT-PRESENT -

  4. p3 OK u0

  5. p4 NOT-PRESENT -

  6. p5 OK u0

  7. p6 NOT-PRESENT -

  8. p7 OK u0

  9. p8 OK u0

  10. p9 OK u0

  11. p10 OK u0

  12. p11 OK u0 . -

76.33 GB - 76.33 GB - 76.33 GB - 76.33 GB 74.53 GB 74.53 GB 74.53 GB 74.53 GB . - 160086528 - 160086528 - 160086528 - 160086528 156301488 156301488 156301488 156301488 - Y2NXL7FE - Y2NXLB9E - Y2NXQPZE - Y2NXM4VE 3JV3WTSE 3JV3WRHC 3JV3WQLQ 3JV3WQLZ

  1. 3 Tue 12:00am

  1. 4 Wed 12:00am

  2. 5 Thu 12:00am

  3. 6 Fri 12:00am

  4. 7 Sat 12:00am . 24 hr(s) 24 hr(s) 24 hr(s) 24 hr(s) 24 hr(s) disabled disabled disabled disabled disabled

    1. 1 Sun 12:00am

  1. 2 Mon 12:00am

  2. 3 Tue 12:00am

  3. 4 Wed 12:00am

  4. 5 Thu 12:00am

  5. 6 Fri 12:00am

  6. 7 Sat 12:00am . enabled enabled enabled enabled enabled enabled enabled enabled enabled enabled enabled enabled enabled enabled

    • 4 hr(s) enabled 1 hr(s) enabled %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy

      Name OnlineState BBUReady Status Volt Temp


bbu On Yes OK OK OK 0 xx-xxx-xxxx


1 Mon 2:00am 4 hr(s) disabled 2



For example:

/cx set verify=enable|disable|1..5

For verify background task description, see command /cx show verify.

Setting Auto-Carving Policy on /c0 to on ... Done. . /cx set carvesize=[1024..2048] (9000 series)

disk=<p:-p>|all attribute specifies one or many disks (i.e., drives or ports). If a port is empty (i.e., no drive inserted), the echo message of the command refers to a port, and if there is already a drive inserted the message refers to a disk. The example below shows that auto detect has been set to off to initiate stagger spin-up during hot-plug, where port 3 was empty and ports 5 and 6 had drives inserted.

Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB)


  1. u0-0-1 DISK

  2. u0-0-2 DISK . u0-1 RAID-5

    1. u0-1-0 DISK

  1. u0-1-1 DISK

  2. u0-1-2 DISK . OK OK OK OK OK OK OK OK OK

    • - - - 64K - - - 64K - - p0 -

- - p2 - . - - p3 - - - - 64K - - p4 - - - p5 - - - p6 - . Unit UnitType Status


//localhost> /c0/u0 show status /c0/u5 status = OK

/c0/u5 Serial Number = 12345678901234567890

/cx/ux show cache



+


+


+


+


+


+


+


+


+ 7K/8K|No |Yes|Yes|Yes |N/A |N/A |No |No |


+


+


+


+


+


+


+


+


+ 9K |Yes|Yes|Yes|Yes |Yes |Yes |Yes|Yes |


+


+


+


+


+


+


+


+


+

next scheduled timeslot.


+


+


+


+


+


+


+


+


+ 7K/8K|No |Yes|Yes|Yes |N/A |N/A |No |No |


+


+


+


+


+


+


+


+


+ 9K |Yes|Yes|Yes|Yes |Yes |Yes |Yes|Yes |


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+


+ 7K/8K|Yes|Yes|Yes|Yes |N/A |N/A |Yes|No |


+


+


+


+


+


+


+


+


+ 9K |Yes|Yes|Yes|Yes |Yes |Yes |Yes|No |


+


+


+


+


+


+


+


+


+

Sending Identify request for unit /c0/u0 to [on] ... Done.

Setting Command Queuing Policy for unit /c0/u5 to [on] ... Done.

Setting Command Storsave Policy for unit /c0/u5 to [protect] ... Done.


+


+


+


+


+


+


+


+


+


+ Raid0 | Y | N | Y | Y | Y | N | N | N | Y |


+


+


+


+


+


+


+


+


+


+ Raid1 | Y | N | Y | Y | Y | Y | N | N | Y |


+


+


+


+


+


+


+


+


+


+ Raid5 | Y | N | Y | Y | Y | N | N | N | Y |


+


+


+


+


+


+


+


+


+


+ Raid10|Y|N|Y| Y| Y|N |N|N|Y|


+


+


+


+


+


+


+


+


+


+ Raid50|Y|N|Y| Y| Y|N |N|N|Y|


+


+


+


+


+


+


+


+


+


+ Single|Y|Y|Y| Y| Y|N |N|N|Y|


+


+


+


+


+


+


+


+


+


+ JBOD | N | N | N | N | N | N | N | N | N |


+


+


+


+


+


+


+


+


+


+ Spare | N | N | N | N | N | N | N | N | N |


+


+


+


+


+


+


+


+


+


+ Raid6 | Y | N | Y | Y | Y | N | N | N | Y |


+


+


+


+


+


+


+


+


+


+

group=3|4|5|6|7|8 is only applicable to type=raid50 which consists of a number of disks per group. Recall that a RAID-50 is a multi-tier array. At the most bottom layer, N number of disks per group are used to form the RAID-5 layer. These RAID-5 arrays are then integrated into a RAID-0. This option allows you to specify the number of disks in the RAID-5 level. Valid values are 3, 4, 5 and 6. For example group=3 indicates 3 disks of RAID-5 at the bottom layer of RAID-50.


+


+


+


+


+


+


+


+


+ 9K |16 |N/A|16|16 |N/A|N/A|16|N/A|


+


+


+


+


+


+


+


+


+



  1. p0 OK u0

  2. p1 OK u0

  3. p2 OK u0

  4. p3 OK u0

  5. p4 OK u2

  6. p5 OK u3

  7. p6 OK u0

  8. p7 OK u3

  9. p8 OK -

  10. p9 NOT-PRESENT -

  11. p10 OK u3

  12. p11 OK u3 . 3ware CLI> /c0/u0 show


  1. su3-1 DISK OK - . su3/v0 Volume - - du3 RAID-10 OK - du3-0 RAID-1 OK -

    1. du3-0-0 DISK OK -

  1. du3-0-1 DISK OK - . du3-1 RAID-1 OK -

    1. du3-1-0 DISK OK -

  1. du3-1-1 DISK OK - . du3/v0 Volume - -

    • 39 - -
      • - - - - p5 - - p7 - - - - - - 16K - - -

- p5 - - p7 - . - - - - p10 - - p11 - - - -

The above report indicates that /c0/u3 is a migrating unit with 39% completion. The report also indicate that Source Unit su0 is of type RAID-1 and Destination Unit du0 is of type RAID-10.


Example:

Setting Port Identify on /c0/p5 to [on] ... Done.


bbu On No Testing OK OK 72 01-Jul-2004

BBU board to fix the problem as soon as possible so that the write cache will be enabled again.

The battery failed a test. At this state, the BBU is not capable of backup operation and the write cache is disabled. We recommend you to replace the battery and/or the

= Engineering Sample. =On = Yes =OK =OK =OK = 241 Hours = 22-Jun-2004 = 20-Jun-2004 = BBU 0.02.00.002 =65

/cx/bbu disable [quiet]

Encl Controllers


e0 /c0


fan0 OK


temp0 24~C(75~F)


Temperature

Slot Status Port Identify



fan0 OK

TempSensor Temperature


temp0 24~C(75~F)


slot1 OK /c0/p1 Yes


fan0 OK


temp0 24~C(75~F)

all

/cx add rebuild=ddd:hh:duration /cx add verify=ddd:hh:duration /cx add selftest=ddd:hh

/cx commit (** Windows only **) (previously 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.

//localhost>

all

Copyright(c) 2004-2006 Applied Micro Circuits Corporation(AMCC). All rights reserved. AMCC/3ware CLI (version 2.00.04.007) . Commands Description



Primary Command Syntax


(9000 series) (9000S only) (9000 series) (9000 series) (9000 series) (9000 series) (9KSX/SE only) (9000 controllers only) (9KSX/SE only) raid6 . (9650SE only) }

or $ tw_cli '/c0 ?' . Note: Some of the OS shell does not have this problem such as bash. Reporting Style