Results 1 to 3 of 3
  1. #1
    Member droach's Avatar
    Join Date
    Jan 2008
    Location
    Cut and Shoot, Texas
    Posts
    152
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default 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.

  2. #2
    Moderator moon-buddy's Avatar
    Join Date
    Aug 2005
    Location
    Somewhere in the US
    Posts
    5,909
    Thanks
    4
    Thanked 231 Times in 226 Posts

    Default

    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

  3. The Following User Says Thank You to moon-buddy For This Useful Post:

    droach (12-06-2012)

  4. #3
    Member droach's Avatar
    Join Date
    Jan 2008
    Location
    Cut and Shoot, Texas
    Posts
    152
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply Moon-buddy. That did help reduce the fluff in my logs.

Similar Threads

  1. Issuing dsmadmc commands without -pass= ?
    By AreEss in forum Scripting
    Replies: 2
    Last Post: 07-11-2008, 11:09 AM
  2. Commands.
    By TSM_junior in forum Administrative Client
    Replies: 1
    Last Post: 07-04-2006, 06:39 AM
  3. Replies: 0
    Last Post: 05-25-2006, 04:43 AM
  4. Export / Import directly to a TSM Server pipe using ADSMPIPE...
    By alorca in forum TDP/Application Layer Backup
    Replies: 1
    Last Post: 12-12-2005, 10:15 PM
  5. How to see total GB backed up and pipe it to a text file.
    By TSMJay in forum Capacity Planning
    Replies: 6
    Last Post: 01-11-2005, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •