Category Archives: Tips & tricks

Online command-line reference for scripting

SS64.com is a Command line reference – Web, Database and OS scripting. I have found this brilliant site, while trying to learn PowerShell in a day for writing the script which fetches hosts to LDEVs relationships from Hitachi Command Suite. … Continue reading

Posted in Tips & tricks | Tagged , , , , , | Leave a comment

Setting memory size for Hitachi Command Suite CLI (HICommandCLI)

When running CLI for Hitachi Command Suit (HICommandCLI.sh in UNIX or HICommandCLI.bat in Windows) we sometimes get this type of error: KAIC90574-E The memory for the CLI became insufficient while this operation was being performed Command Suite CLI is actually … Continue reading

Posted in Storage, Tips & tricks | Tagged , , , , , , , | Leave a comment

How can you find out which process is listening on a port on Windows?

If you can start cmd as an Administrator, simple run: netstat -nab which will give you the list of open sockets along with the names of processes. In other case you can try to find it by process-id manually. For … Continue reading

Posted in Tips & tricks | Tagged , , , , | Leave a comment

Quick reference for adding and attaching drives in VirtualBox CLI

Recently VirtualBox Manager GUI running on my Windows box, began to crash without any known reason when creating new or attaching existent virtual drives to any of the virtual machines. So I have to do all the things using CLI now and definitely I enjoy the … Continue reading

Posted in Storage, Tips & tricks | Tagged , , , | Leave a comment

Quick check for Command Devices mapped from Hitachi arrays

In CCI, under HORCM/etc run: raidscan -x findcmddev 0-100 If Tuning Manager Agents are installed: INSTALLATION-PATH/jp1pc/tools/jpctdlistraid In MS Windows it’s better to specify Command devices like \\.\CMD-12345 instead of \\.\PhysicalDriveX where possible to avoid occasional drive mix after reboot.

Posted in Storage, Tips & tricks | Tagged , , , , , , , , , , , | Leave a comment

How to expand LDEVs on Hitachi storage systems using CCI

For USP-V and earlier systems: raidvchkset -I1234 -g GROUP_TO_EXPAND –d LDEV_TO_EXPAND -vext 20G This command adds 20 GB to the LDEV_TO_EXPAND in GROUP_TO_EXPAND using 1234 HORCM instance. A valid entry for the GROUP_TO_EXPAND/LDEV_TO_EXPAND must be present in horcm1234.conf. Starting with … Continue reading

Posted in Storage, Tips & tricks | Tagged , , , , , , , , , | Leave a comment

Grouping commands in the Bourne Shell (sh)

Parentheses are used to run commands in a subshell: $ foo=bar $ echo $foo bar $ (foo=superbar; echo $foo) superbar $ echo $foo bar Curly braces are for grouping commands into a list to run in the current shell. But … Continue reading

Posted in Tips & tricks | Tagged , , , , | Leave a comment