Re: How to script commands at startup
make a script taht starts the TSM server after a reboot and build in a grace period to allow the TSM server to fully start up. Now enter some lines that will give dthe dsmadmc commands and ther you go From: ADSM: Dist Stor Manager [ADSM-L@VM.MARIST.EDU] on behalf of Pagnotta, Pam (CONTR) [pam.pagno...@hq.doe.gov] Sent: Monday, July 18, 2011 5:16 PM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] How to script commands at startup Hello, We are running version 6.2.2.3(0) on an AIX 6.1 server. We are experiencing issues as described in https://www-304.ibm.com/support/entdocview.wss?uid=swg1IC76984 and have been given three commands that need to be issued right after the TSM server is restarted (they are only good for the life of the server). Does anyone know how to write a script, or can point me to something that will issue TSM commands from an administrator session shortly after the server is restarted? Any help would be appreciated. Thank you, Pam Pam Pagnotta EES, LLC, Contractor to the United States Department of Energy 1000 Independence Avenue, SW Washington, DC 20585 Office: 301 903-5508 Mobile: 301 326-7296 Email: pam.pagno...@hq.doe.gov
Re: How to script commands at startup
>> On Mon, 18 Jul 2011 11:16:18 -0400, "Pagnotta, Pam (CONTR)" >> said: > Does anyone know how to write a script, or can point me to something > that will issue TSM commands from an administrator session shortly > after the server is restarted? There are several possibilities, none of them particularly delightful. + You can define an administrative credential which has the power to do the stuff you want done, stick the password in a script file somewhere, and run the command with e.g. dsmadmc -id=[whatever] -password=[whatever] (-server=whatever?) run [SCRIPT NAME] + You can define a schedule inside the server that runs, say, every hour; this schedule will run your script. Call this SCHED-1 Then you define _another_schedule to run every hour. This one does two things: looks to see if it's been less than (say) two hours since the server started. If so, it should activate SCHED-1. If it's been _more_ than two hours, then it should _de_activate SCHED-1. There are probably other ways to handle this too but these are the ones I've contemplated in the past. - Allen S. Rout
How to script commands at startup
Hello, We are running version 6.2.2.3(0) on an AIX 6.1 server. We are experiencing issues as described in https://www-304.ibm.com/support/entdocview.wss?uid=swg1IC76984 and have been given three commands that need to be issued right after the TSM server is restarted (they are only good for the life of the server). Does anyone know how to write a script, or can point me to something that will issue TSM commands from an administrator session shortly after the server is restarted? Any help would be appreciated. Thank you, Pam Pam Pagnotta EES, LLC, Contractor to the United States Department of Energy 1000 Independence Avenue, SW Washington, DC 20585 Office: 301 903-5508 Mobile: 301 326-7296 Email: pam.pagno...@hq.doe.gov