Perform smartctl on disk behind 3ware controller

As I notice that one of my box is having slight issues with the 3ware controller, it has been doing soft reset of the controller for the past week. One of the test I am running is smartctl, as the disk is behind a hardware raid controller, I need to invoke differently.

smartctl -d 3ware,0 -a /dev/twa0

3ware,0 means disk 0
twa0 is the controller number

Looks like both my disk is fine, moving on to do other tests.

Hope this helps.