HP Smart Storage Administrator Scripting Cookbook

Advanced scripting scenarios 18
Advanced scripting scenarios
Scenario 6: Clear the configuration on all internal
controllers
Task
Clear the current configuration on all internal controllers in the system.
Hardware configuration
Unspecified
Script
# hpssascripting -i input.txt -internal
Controller=ALL
ClearConfigurationWithDataLoss=Yes
Summary
By combining the advanced commands to specify -internal controllers first, and then ALL controllers, the
user can clear configurations without affecting external controllers attached externally and without having to
identify the internal controllers by slot or clear them one at a time.
Scenario 7: Add a simple volume on systems with
mixed controller and physical disk configurations
Task
Add a simple, one-disk RAID 0 volume on each system, using one script. However, do not add a new volume
to systems booting from an external controller.
Hardware configuration
The administrator has 500 systems, some with embedded controllers, some with controllers in expansion
slots, and some booting from an external controller, such as an HP StorageWorks MSA1500cs Modular
Smart Array.
Each system has a different physical disk configuration, some disks in an internal drive cage and some in an
external storage box. Each system can have a different number of arrays and volumes.
Script
# hpssascripting -i input.txt -internal
Controller=First
Array=Next
Drive=1