Skip to content

Instantly share code, notes, and snippets.

@orimanabu
Created November 28, 2012 06:51
Show Gist options
  • Save orimanabu/4159486 to your computer and use it in GitHub Desktop.
Save orimanabu/4159486 to your computer and use it in GitHub Desktop.
SMcli examples
#!/bin/sh
SMCLI=/opt/IBM_DS/client/SMcli
contA="IP address of Controller A"
contB="IP address of Controller B"
${SMCLI} ${contA} ${contB} -c "show storagesubsystem profile;"
${SMCLI} ${contA} ${contB} -c "show allControllers;"
${SMCLI} ${contA} ${contB} -c "show allHostPorts;"
${SMCLI} ${contA} ${contB} -c "show allDrives;"
${SMCLI} ${contA} ${contB} -c "show allDriveChannels stats;"
${SMCLI} ${contA} ${contB} -c "show allLogicalDrives summary;"
# every 3 seconds, 20 times
${SMCLI} ${contA} ${contB} -c "set session performanceMonitorInterval=3 performanceMonitorIterations=20; save storageSubsystem performanceStats file=\"perf.csv\";"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment