• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

db2 query only if backup_end (yesterday)

pzzl321

Active Newcomer
#1
[email protected],

is it possible to run this db2 query, only to get failed filespaces (date-1)?
select node_name, filespace_name, backup_start, backup_end from filespaces where node_name='SSS_DC' OR node_name='CCC_DC' ORDER BY backup_end ASC

And how can i group up some datamover-filespaces like contact field in nodesview?

regards
 

pzzl321

Active Newcomer
#4
My colleagues would like to get an email from me only if their backup did not work. currently you get the notification every day which leads to the fact that you do not check it correctly.

select node_name, filespace_name FROM nodesview where CONTACT = 'XX'

.. works only with normal FileBA, since CONTACT on filespace is not settable. where could one deposit information to the operator and then search for it?
 

RecoveryOne

ADSM.ORG Senior Member
#5
Sorry could you elaborate a bit more?
Are you trying to get information out of VM Backups?
Or information from a say a Windows machine with C:\ D:\ E:\ F:\ where E:\ belongs to person Y while everything else is for person X?
Or want a simple report that says NodeA, NodeB, NodeZ missed/failed?
 

pzzl321

Active Newcomer
#6
Okay i ll try. there are two things they i wantet:
- trigger report mail only if a daily schedule backup failed (e.g. BACKUP_END = yesterday)
- group the filespacename from VMs easy to a contact

I use TDP4VE to Backup VMs. Every VM got a uniqe filespacename under the datacenter Node like:
select node_name, filespace_name, backup_start, backup_end from filespaces where node_name='AAA_DC'
output:
NODE_NAME: AAA_DC
FILESPACE_NAME: \VMFULL-vm.virtual-machine.de
BACKUP_START: 2019-03-21 00:56:49.000000
BACKUP_END: 2019-03-21 00:58:39.000000

I hope I expressed myself this time clear, sorry >.<

edit: the way i group today is with massive OR ENTITYNAME='XX' conditions
 

RecoveryOne

ADSM.ORG Senior Member
#7
Ok, this is a quick, dirty and likely not a 'best' way to go about but what I've come up with 10 seconds of thinking.
Spin up multiple datamovers, each datamover processes vm's related to a customer.
datamover_custA for example has these 10 VM's.
Then you could do something like:
Code:
select SUB_ENTITY,ACTIVITY_TYPE,SUCCESSFUL,BYTES from SUMMARY_EXTENDED where END_TIME>current_timestamp - 24 -
 hours and ENTITY like 'DATAMOVER_CUSTA' and SUB_ENTITY IS NOT NULL and SUCCESSFUL='NO'
Results:
SUB_ENTITY: spctest
ACTIVITY_TYPE: Incremental Forever - Incremental
SUCCESSFUL: NO
BYTES: 0

Run that though an external script and mail from there. Could drop in variables like $1 and $2 for datamover name and hours to make calling it easier.


For everything else, I have a KSH script that issues
"q event * * begindate=today-1 enddate=today begintime=`date +%H:%M` endtime=`date +%H:%M` exceptionsonly=yes"
then pipe that to AIX's mail to send to a list of people.

Quick, dirty but functional.
 

pzzl321

Active Newcomer
#8
thanks for the quick reply.
cant use event cause it only show node values and i dont want configure for each customer datamover-nodes .
SUMMARY_EXTENDED is a nice table and there is a CONTACT field in it!

How can i update this?
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 12 15.8%
  • Keep using TSM for Spectrum Protect.

    Votes: 48 63.2%
  • Let's be formal and just say Spectrum Protect

    Votes: 9 11.8%
  • Other (please comement)

    Votes: 7 9.2%

Forum statistics

Threads
31,350
Messages
133,531
Members
21,475
Latest member
sag
Top