Category Archives: Tips & tricks

Printing lines side by side in shell

Everybody knows, there is paste command in every *NIX to print two files side by side or join which is obviously used to join text-files by their key-fields. And there are a lot of examples and tutorials over Internet, so the subject is as … Continue reading

Posted in Tips & tricks | Tagged , , , , | 10 Comments

A nice way to return string values from functions in Bash

What can be as trivial as returning a value from a function in a scripting language? For those who has ever dealt with Bash, the answer turns out to be not so obvious. First, there are multiple options to do … Continue reading

Posted in Misc, My projects, Tips & tricks | Tagged , , , , , , , , | Leave a comment

Sorting Tumblrs you are following by their last activity

It seems, migration to GitLab stimulated me to code more in unusual for me languages and environments. First, it pushed me to do something in PowerShell: A short script to change audit rules on a file or a directory in … Continue reading

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

A short script to change audit rules on a file or a directory in Microsoft Windows

Suddenly I have got a lot of work setting audit rules on multiple assorted files on Wintel servers. This short script may help me to do things much quicker. Will check it tomorrow: It requires administrative rights to run. Many thanks https://technochat.in forContinue reading

Posted in My projects, Tips & tricks | Tagged , , , | 1 Comment

Quickly report alive IPv6 addresses on the network

While searching a robust solution to discover all alive hosts on the local IPv6 subnet, I have found the easiest way except, probably, ndp is to ping … no, not each of them, but the multicast address ff02::1 and then … Continue reading

Posted in Misc, My projects, sp_ping, Tips & tricks | Tagged , , , , , , , | Leave a comment

Executing a batch of commands on multiple IBM SVC/Storwize storage systems

Sometimes you have to change several configuration parameters or run multiple commands over a list of IBM SVC storage systems. Here is my small Python 3 script to do the stuff quickly. It requires Paramiko module to handle SSH interactions. Edit … Continue reading

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

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