Results 1 to 3 of 3
Thread: Can I pipe commands to dsmadmc?
-
12-06-2012, 10:41 AM #1Member
- Join Date
- Jan 2008
- Location
- Cut and Shoot, Texas
- Posts
- 122
- Thanks
- 4
- Thanked 0 Times in 0 Posts
Can I pipe commands to dsmadmc?
I need to delete a few thousand objects from the TSM database with the command "delete object 0 nnnnnnnn". Is there a way that I can open dsmadmc once and pipe the list of commands to it?
My current script (below) works, but requires a login every time and clutters up the log file
dsmadmc %LOGINPARAMS% %tsmhost% "delete object 0 nnnnnnn1"
dsmadmc %LOGINPARAMS% %tsmhost% "delete object 0 nnnnnnn2"
dsmadmc %LOGINPARAMS% %tsmhost% "delete object 0 nnnnnnn3"
.
.
.
I am running bat files on a Windows TSM installation.
-
12-06-2012, 01:32 PM #2Moderator
- Join Date
- Aug 2005
- Location
- Somewhere in the US
- Posts
- 5,300
- Thanks
- 2
- Thanked 137 Times in 135 Posts
If the TSM header is your problem, do this:
dsmdmc /tcpserveraddress=<TSM_Server> /tcpport=<TSM_Port> /id=<admin> /pa=<password> /noc /dataonly=yes "Delete ...."Ed
-
The Following User Says Thank You to moon-buddy For This Useful Post:
droach (12-06-2012)
-
12-06-2012, 04:39 PM #3Member
- Join Date
- Jan 2008
- Location
- Cut and Shoot, Texas
- Posts
- 122
- Thanks
- 4
- Thanked 0 Times in 0 Posts
Thanks for the reply Moon-buddy. That did help reduce the fluff in my logs.
Similar Threads
-
Issuing dsmadmc commands without -pass= ?
By AreEss in forum ScriptingReplies: 2Last Post: 07-11-2008, 11:09 AM -
Commands.
By TSM_junior in forum Administrative ClientReplies: 1Last Post: 07-04-2006, 06:39 AM -
Does anyone know if its possible to run HOST OS commands from within a dsmadmc session ?
By billbo_b in forum Administrative ClientReplies: 0Last Post: 05-25-2006, 04:43 AM -
Export / Import directly to a TSM Server pipe using ADSMPIPE...
By alorca in forum TDP/Application Layer BackupReplies: 1Last Post: 12-12-2005, 10:15 PM -
How to see total GB backed up and pipe it to a text file.
By TSMJay in forum Capacity PlanningReplies: 6Last Post: 01-11-2005, 09:38 AM


Reply With Quote