1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

strange result running command in scripts

Discussion in 'Command Line Administrator Client' started by pfviv, Jul 27, 2012.

  1. pfviv

    pfviv New Member

    Joined:
    Nov 24, 2011
    Messages:
    36
    Likes Received:
    0
    Hi.

    On our library manager I am running this command. all:query process and I'l get answer from all 7 servers

    When I doing it from a console [root@sym0 adm]# dsmadmc -id=user -password=passwd all:query process I'l
    get answer from all 7 servers.

    My problem is when I am doing this from inside a script I am only geting result from 2 servers. The command is

    PROCESSES_ACTIVE=`dsmadmc -id=$TSM_ADMIN -password=$TSM_PASSWORD all:query process`

    ANS8000I Server command: '\''all:query process'\''
    ANR1699I Resolved ALL to 2 server(s) - issuing command QUERY PROCESS against server(s).

    Anny idea's?

    Need more info: Please ask.

    Sorry for my terrible English

    Ivan
     
  2.  
  3. pfviv

    pfviv New Member

    Joined:
    Nov 24, 2011
    Messages:
    36
    Likes Received:
    0
    Hi.

    Anyone?
    The error is in our TSM Disaster Recovery script, so I'm only getting raport from 2 of 7 tsmservers.

    Ivan
     
  4. rmazzon

    rmazzon Senior Member

    Joined:
    Dec 6, 2004
    Messages:
    206
    Likes Received:
    17
    Occupation:
    TSM Managed Services Lead
    Location:
    NC
    I see when you run it via the console you are "root". When you run it as a script is it also root and/or does it have the same TSM environment variable values as when you run it manually? If not you might be connecting to a different TSM server that also has a servergroup called "all", but with only two members.
     
    pfviv likes this.
  5. pfviv

    pfviv New Member

    Joined:
    Nov 24, 2011
    Messages:
    36
    Likes Received:
    0
    Hi

    Tanks for the replay.

    You are right, it did connect to the wrong server. Changed some options in "dsm.sys" and it works fin now.

    Ivan
     

Share This Page