
Overview
18
HP StorageWorks NAS 8000 Command Reference
Scripting
The HP NAS 8000 text command interface is based on Tcl 8.0
(
http://www.scriptics.cXom/software/tcltk/8.0.html
), which allows for powerful scripting
commands such as the following example.
Table 2: Example Command Script
% for each i [getNetworkCardList] {
% puts “Network Card Info: $i”
% puts “ip address = [getNetworkCardIpAddress $i]”
% puts “subnet mask = [getNetworkCardSubnetMask $i]”
% }
Network Card Info: bond0
ip address = 0.0.0.0
subnet mask = 0.0.0.0
Network Card Info: bond1
ip address = 0.0.0.0
subnet mask = 0.0.0.0
Network Card Info: eth0
ip address = 10.10.0.1
subnet mask = 255.255.255.0