TMan
Newcomer
Hey all!
I have recently migrated from an AIX TSM instance to Windows TSM. I'm now converting all my AIX scripts to TSM scripts where possible, but can't find a lot of documentation on how to apply logic within TSM scripts.
So, on my daily maintenance script, I'd like to backup storage pools, run a DB backup, run a prepare and then eject DRM tapes on weekdays. Something like:
if (??day of week is Saturday or Sunday??) goto expire
q drm t* wherestate=mountable > /path/file
move drm t* wherestate=mountable remove=bulk tostate=vault
expire: expi i
exit
Can anyone show how to accomplish the ??day of week is Saturday or Sunday?? part of this? Any pointers to better docs/guides for TSM scripting would also be much appreciated!
Otherwise, I figure I'll just have to have a script scheduled for Mon-Fri and a script without the DRM statements scheduled for Sat-Sun.
Thanks in advance,
TMan
I have recently migrated from an AIX TSM instance to Windows TSM. I'm now converting all my AIX scripts to TSM scripts where possible, but can't find a lot of documentation on how to apply logic within TSM scripts.
So, on my daily maintenance script, I'd like to backup storage pools, run a DB backup, run a prepare and then eject DRM tapes on weekdays. Something like:
if (??day of week is Saturday or Sunday??) goto expire
q drm t* wherestate=mountable > /path/file
move drm t* wherestate=mountable remove=bulk tostate=vault
expire: expi i
exit
Can anyone show how to accomplish the ??day of week is Saturday or Sunday?? part of this? Any pointers to better docs/guides for TSM scripting would also be much appreciated!
Otherwise, I figure I'll just have to have a script scheduled for Mon-Fri and a script without the DRM statements scheduled for Sat-Sun.
Thanks in advance,
TMan