Tag Archives: shell

Scan IBM SVC/Storwize system for “SCSI ID Mismatches”

A small addition to the SAN/Storage CLI Toolbox which shows so called SCSI ID (LUN) mismatches on IBM SVC/Storwize systems. This Bourne shell/awk script shows the list of the same vdisks that are mapped with different SCSI IDs. Should be useful … Continue reading

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

What is the name of a new drive in my FreeBSD box

or a quick way to list GEOM configuration in FreeBSD Drives related information questions, including that one in the title, may be tricky for a new (and sometimes for an experienced) FreeBSD user, and even Handbook advises to see the “dmesg” … Continue reading

Posted in My projects, Storage, Storage Automation | Tagged , , , , , , , | 3 Comments

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

Параллельный запуск команд из shell скрипта в *NIX

Внезапно на сотне *NIX серверов пришлось запустить несколько одинаковых, но долгих по времени выполнения команд. Для того, чтобы ускорить процесс и обрабатывать серверы не последовательно, а параллельно, я написал простенький sh-скрипт, шаблон которого, на всякий случай, оставлю здесь. Изначально я … Continue reading

Posted in My projects, Very old stuff | Tagged , , , , | Leave a comment