/Storage-Administration

A collection of storage administration scripts

Primary LanguageShell

Storage-Administration

A collection of storage administration scripts

health_and inventory_visualization

  • Code List.xlsx - Microcode inventory
  • sce+xiv_info.xlsx - XIV inventory with additional info with one site per tab - long format
  • SCE+XIV_Inventory.xlsx - XIV inventory for all sites, one tab - short format
  • XIV_Current_Issues_04042018.xlsx - worksheet for listing and monitoring all HW issues and following them until resolution; history repository for all previous issues

tsm_backup_scripts

  • tsm_offsite.ksh - The script runs on each of multiple TSM servers. It checks randomly for the token on other servers in the loop and if it does not see the token, it creates the token itself and starts ejecting tapes. Once all tapes are ejected, it deletes the token and allows other servers to take the token and eject their tapes. A dummy TSM script represents a token.

xiv_health_scripts

  • HealthCheck.ksh – health check script
  • SaveConfigs.ksh – configuration saving script
  • SaveConfigs_mXIV.ksh – configuration saving script for one or multiple XIVs
  • PreChangeBackup.ksh – pre change backup script
  • PreChangeBackup_mXIV.ksh – pre change backup script for one or multiple XIVs
  • xcli_comm.ksh – executing an xcli command for all XIVs in one site
  • xcli_comm_mXIV.ksh – executing an xcli command for one or multiple XIVs
  • xcli_start.ksh – starting xcli session
  • XIV Scripts for Linux.docx

Note: SaveConfigs scripts are using HAK (IBM Storage Host Attachment Kit) for Linux and xiv_save_config, a python script developed by Gil Sharon (gil@us.ibm.com). They should be installed in the folder TOOLS.

xiv_report_scripts

  • Device list script.docx
  • Device List Script.mov
  • device_list.ksh - lists all devices, IPs and serial numbers for the chosen site in a second
  • xcli_comm.ksh – executing an xcli command for all XIVs in one site
  • xcli_comm_mXIV.ksh – executing an xcli command for one or multiple XIVs
  • xcli_ups.ksh - running an XIV ups_list with custom parameters on all XIVs in one site
  • xcli_ups_mXIV.ksh - running an XIV ups_list with custom parameters for one or multiple XIVs
  • XIV Report Scripts.mov

Note: The xcli_comm scripts will ask you to enter the command and then they will process it. This is good for simple and short commands. The xcli_ups scripts can be used as templates. This is good for long commands or set of commands that need to be executed more frequently. For a particular activity you create the script by hard coded the commands in the basic script template. The scripts could be easily adapted for different commands and for other devices. For XIVs only part where the commands are listed need to be changed, and for other devices few more things.

xiv_setup_scripts

  • hostdefinition_xiv_svc.ksh
  • misc_config.ksh
  • volume_creation.ksh
  • volume_mapping.ksh
  • XIV setup scripts.docx

Note: These scripts are mostly a list of numerous cli commands. In scripts for logical add of storage I am using a preview mode to make sure that everything is correct. The script will substitute all variables and list all commands exactly the same way they will be executed. This is a good way to check the scripts before real execution. The same idea could be used for other devices as well.

xiv_wiki

  • XIV Wiki Pages.docx
  • XIV Wiki.mov