Check Hitachi Export Tool functionality
Find out the version of Export Tool
There are two version of Export Tool:
- Export Tool
- Export Tool 2
Note: You have to work with the correct Export Tool for your VSP microcode version
cat /opt/hds/<microcode_version>/Readme.txt 2>&1 | grep "Export Tool 2" | wc -l
Output:
- equal to 0 = Export Tool 1
- greater than 0 = Export Tool 2
Export Tool 1
-
Find out SVP serial number
You can skip this step if the keyword 'svpip' is used in the file /opt/hds/<microcode_version>/command.txt
There are 3 possible ways how to find VSP serial number:
- Using CCI
raidqry -l -I<identification_number>
No Group Hostname HORCM_ver Uid Serial# Micro_ver Cache(MB)
1 --- ip10sys2rrdmm02 01-53-03/00 0 410501 83-05-37/10 88320
- Using REST API
curl -k -X GET "https://<host>:443/ConfigurationManager/v1/objects/storages" -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive'
{
"data" : [
{
"ctl1Ip" : "192.168.0.1",
"ctl2Ip" : "192.168.0.2",
"model" : "VSP F700",
"serialNumber" : 448034,
"storageDeviceId" : "886000448034"
}
]
}
- Using HCM REST API
curl -k -X GET "https://<HCM HOST>:<HCM PORT>/ConfigurationManager/v1/objects/storages" -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive'
{
"data" : [ {
"storageDeviceId" : "800000011061",
"model" : "VSP F1500",
"serialNumber" : 11061,
"svpIp" : "192.168.0.1"
}, {
"storageDeviceId" : "800000011179",
"model" : "VSP F1500",
"serialNumber" : 11179,
"svpIp" : "192.168.0.2"
}
]
- Prepare 'command_test.txt'
cd /opt/hds/<microcode_version>
cat command.txt | grep svpip | wc -l
Output is:
- greater than 0
cat << EOF > command_test.txt
svpip <IP>
login "<username>" "<password>"
show
group Port
shortrange -0100:
outpath "<outpath>"
option nocompress
apply
EOF
Where:
<IP> = SVP IP adress
<username> = username
<password> = password
<outpath> = path to directory where output files will be stored
- equal to 0
cat << EOF > command_test.txt
ip <IP>
dkcsn <serial number>
login "<username>" "<password>"
show
group Port
range -0100:
outpath "<outpath>"
option nocompress
apply
EOF
Where:
<IP> = SVP IP adress
<serial number> = SVP serial number
<username> = username
<password> = password
<outpath> = path to directory where output files will be stored
- Run Export tool
-
Add HDS_EXPORT_TOOL_JAVAPATH from /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg to PATH
. /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg
export PATH="$HDS_EXPORT_TOOL_JAVAPATH:$PATH"
-
Get Export Tool command
cd /opt/hds/<microcode_version>
cat runUnix.bat
if runUnix.bat does not exist:
cat runUnix.sh
Example:
java -classpath "./lib/JSanExportLoader.jar" -Del.tool.Xmx=536870912 -Dmd.command=command.txt -Del.logpath=log -Dmd.rmitimeout=20 sanproject.getexptool.RJElMain
-
Replace command.txt with command_test.txt and run the command
Example:
java -classpath "./lib/JSanExportLoader.jar" -Del.tool.Xmx=536870912 -Dmd.command=command_test.txt -Del.logpath=log -Dmd.rmitimeout=20 sanproject.getexptool.RJElMain
Logs are stored in the lod directory
Export Tool 2
cd /opt/hds/<microcode_version>
chmod a+x runUnix.sh
./runUnix.sh export data -ip <NODE_IP> -login <username> <password> -outpath <outpath> -range <YYYYMMDDHHMM>:<YYYYMMDDHHMM> -group Port -option nocompress";
Where:
<NODE_IP> = IP address of SVP controller
<username> = username
<password> = password
<outpath> = path to directory where output files will be stored
<YYYYMMDDHHMM>:<YYYYMMDDHHMM> = time range - use 1 hour range
The logs are stored in the log directory