Quantcast
Channel: TSMAdmin
Viewing all 85 articles
Browse latest View live

HBA Info Script

$
0
0
I thought I would pass this script along for anyone needing a way to out HBA info on Linux in a nicely formatted table.

#!/bin/bash
echo "FC_HOST     |   PortID   |    WWN             | State      | Speed    "
echo "------------+------------+--------------------+------------+----------"
for hba in `ls -d /sys/class/fc_host/host*`;do
  FC_HOST=`basename $hba`
  PortID=`cat $hba/port_id`
  wwpn=`cat $hba/port_name`
  state=`cat $hba/port_state`
  speed=`cat $hba/speed`
  hba=`cat $hba/symbolic_name`
  echo "$FC_HOST| $PortID | $wwpn | $state| $speed" | awk 'BEGIN{OFS=FS="|"}{for(i=1;i<=NF;i++){$i=sprintf("%-12s",$i)};print}'
done #|sort -k3n,6
echo "------------+------------+--------------------+------------+----------"


The output looks like this


FC_HOST     |   PortID   |    WWN             | State      | Speed    
------------+------------+--------------------+------------+----------
host0       | 0xffffffff | 0x20003890a540876c | Linkdown   | unknown  
host11      | 0xffffffff | 0x20003890a540876d | Linkdown   | unknown  
host12      | 0x640000   | 0x100000109b1bbe00 | Online     | 32 Gbit  
host13      | 0xffffffff | 0x20003890a5803461 | Linkdown   | 40 Gbit  
host14      | 0xffffffff | 0x20003890a5803462 | Linkdown   | 40 Gbit  
host15      | 0x640000   | 0x100000109b1bbe01 | Online     | 32 Gbit  
host16      | 0x03eac0   | 0x100000109b1b9a77 | Online     | 16 Gbit  
host17      | 0x04eac0   | 0x100000109b1b9a78 | Online     | 16 Gbit  
------------+------------+--------------------+------------+----------

If you would like more detail I added a couple more columns to show make, model, firmware, and driver version. This is a fixed width column layout and the minimum column width can be adjusted for your needs.

#!/bin/bash
echo "FC_HOST         |   PortID       |    WWN             | State          | Speed          | Make           | Model          | Firmware       | Driver"
echo "----------------+----------------+--------------------+----------------+----------------+----------------+----------------+----------------+---------------"
for hba in `ls -d /sys/class/fc_host/host*`;do
  FC_HOST=`basename $hba`
  PortID=`cat $hba/port_id`
  wwpn=`cat $hba/port_name`
  state=`cat $hba/port_state`
  speed=`cat $hba/speed`
  hba=`cat $hba/symbolic_name`
  hba_make=`echo $hba | cut -f1 -d '' `
  hba_model=`echo $hba | cut -f2 -d '' `
  hba_fw=`echo $hba | cut -f3 -d '' `
  hba_driver=`echo $hba | cut -f4 -d '' `
  echo "$FC_HOST| $PortID | $wwpn | $state| $speed | $hba_make | $hba_model | $hba_fw | $hba_driver " | awk 'BEGIN{OFS=FS="|"}{for(i=1;i<=NF;i++){$i=sprintf("%-16s",$i)};print}'
done #|sort -k3n,6

echo "----------------+----------------+--------------------+----------------+----------------+----------------+----------------+----------------+---------------"

The output looks similar to this:




Finally - A Universal Backup Agent!

$
0
0

I was contacted by a representative of Spictera about their SPFS tool for Spectrum Protect. This product allows you to use a local mount on your Linux server as a place to save your backup or application dump that is a direct connection to the IBM Spectrum Protect backend storage. It uses Spectrum Protect API calls and allows you to implement versioning and retention policies just as you would normal file system backups or archives. This product can solve your issues with proprietary applications that IBM does not, and probably never will, support. Now you can backup your MongoDB or SAP HANA a lot easier by using the native backup process built into your application. Currently it only supports the following OS's.


Supported operating systems are:
  • CentOS 6 for x86_64
  • CentOS 7 for x86_64
  • CentOS 8 for x86_64
  • Debian 8 for x86_64
  • Debian 9 for x86_64
  • Red Hat 6 for x86_64, ppc64 be, s390x (zLinux)
  • Red Hat 7 for x86_64, ppc64 le, s390x (zLinux)
  • Red Hat 8 for x86_64, ppc64 le, s390x (zLinux)
  • SuSE 11 for x86_64, ppc64 be, s390x (zLinux)
  • SuSE 12 for x86_64, ppc64 le, s390x (zLinux)
  • SuSE 15 for x86_64, ppc64 le, s390x (zLinux)
  • Ubuntu 14.04 for x86_64, ppc64 le, s390x (zLinux)
  • Ubuntu 18.04 for x86_64, ppc64 le, s390x (zLinux)
I would assume if it support CentOS x86_64 you should have no trouble with it on Red Hat. I'll let Spictera confirm that though. I've provided a presentation on the product for your review.


New Version of TSMExplorer

$
0
0


There is a new version of TSMExplorer available and it has added support for Spectrum Protect Plus. See can download a trial version of 5.2.3 here.  TSMExplorer has a load of features and provides a great central management console when you have multiple TSM/Spectrum Protect Servers. With the added support of managing Spectrum Protect Plus it's even easier to manage your environment.
No alternative text description for this image

























Here is a video of an older version of TSMExplorer so you can get a feel for the product.




Here is a video of the client agent and how it works with the TSMExplorer console to allow access to the client options files and logs for easier management.


TSMAdmin Update

$
0
0

 I was laid off from work as of July 1st and in the process of looking for new employment I had to make the hard choice and give up the backup/TSM/Spectrum Protect area and branch out to other avenues due to limited opportunities being available. I applied for many TSM positions with companies who either wanted me to move or didn't even end up hiring. I tried getting back on with IBM but was never considered for interview with any of their Spectrum Protect positions. I won't lie, the Spectrum Protect opportunities appear to be drying up as IBM continues to fall in marketshare in the backup world. My previous employer laid me off as they switched to Commvault and there seemed to be more opportunities with Commvault or various cloud solutions.

What I did end up doing is passing the AWS Architect Associate certification and applying with various companies for cloud and related openings. I had a friend with a large online corporation inform me of an opening with his company so I applied and through a series of interviews was able to secure a position. This opportunity is as a Site Reliability Engineer and it has NOTHING to do with backups. So as I start my new phase of work I wish you all success and if anyone would like to take over this site please contact me and we can discuss a possible transition.  Thank you all for 15+ years of backup/TSM conversation.

Restoring TSM Without A Volhist

$
0
0
Someone in the comments to an old post just asked for directions/instructions on restoring TSM without a volume history or devconfig file. Well, I got some bad news and some not so bad but not fun news. We will start with the not so bad news. If you don't have a devconfig, don't panic! You can recreate the devconfig. That's fairly simple, just a pain. TSM has to have a devconfig file to initialize its devices so if the devconfig is not present you'll have to create one. Typically you do this when you rebuild a TSM instance. For example at a DR site you install TSM on the DR server, define the dsmserv.opt, and then you define base devices on the new install. Once that has been done you can bring down TSM and attempt a restore using the newly defined device(s). 

Now for the bad news. Without the volhist, if you don't know what volume(s) were used for DBBAckup your kind of screwed. The old DSMSERV DISPLAY DBBACKUPVOLUME command has been removed/deleted and IBM now says the following

DSMSERV DISPLAY DBBACKUPVOLUME - Information about volumes used for database backup is available from the volume history file. The volume history file is now required to restore the database. 

You can find a list of TSM Server deleted commands, utilities, and options at the following link.


Viewing all 85 articles
Browse latest View live