ADSM-L

Re: Unix scripts and dsmc

1999-04-08 20:59:54
Subject: Re: Unix scripts and dsmc
From: Craig Murphy <craigm AT NZ1.IBM DOT COM>
Date: Fri, 9 Apr 1999 12:59:54 +1200
Perhaps should make that a little clearer
I'm trying to run this from the unix command line so I don't get into the
dsmc client prompt. Also, I'm not using id= in the line - I'm stating the
node "node=bla" which I like to do so I enure I get the right node.
(Version 2 !!). I'm not actually having a problem with the "q arc" command.
It's running any ADSM client command from the Unix command line

Cheers
Craig


ANGEL BUGARIN <ANGEL.BUGARIN AT MAIL.SPRINT DOT COM> on 09/04/99 12:25:32

Please respond to "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>

To:   ADSM-L AT VM.MARIST DOT EDU
cc:    (bcc: Craig Murphy/New Zealand/IBM)
Subject:  Re: Unix scripts and dsmc





1. Check your syntax.
2. You don't need id and password in the script to access client
information.
    Try using the following command in your script:
      q arc "*"   <= you need the " before and after the *
      -or-
      q arc /filesystem_name_u_archived

Hope that helps.

Angel Bugarin
Sprint/Hawaii

   -----Original Message-----
   From:       craigm [SMTP:craigm AT NZ1.IBM DOT COM]
   Sent:       Thursday, April 08, 1999 1:08 PM
   To:         ADSM-L
   Cc:         craigm
   Subject:    Unix scripts and dsmc

   Hello

   ADSM Server V2.1.5.18
   Client 2.1.0.2

   I'm trying to create a script using dsmc like the many I have using
   dsmadmc
   but it doesn't work.
   eg.
   dsmadmc -id=bla -password=bla 'q db'  - works fine

   If I try to do similar with dsmc .
   eg
   dsmc -node=bla -password=bla 'q archive * ' - does not look at the
   command.
   I just get the dsmc> prompt.

   I can pipe the command into dsmc
   eg
   echo 'q archive * ' | dsmc -node=bla etc
   but if I get to complicated with the command it doesn't like it - and
   its a
   pretty ugly way of doing it anyway.

   Surely there must be a simple way of doing this that works. Any
   advise out
   there.

   Thanks

   Craig
<Prev in Thread] Current Thread [Next in Thread>