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.

Send messages to the TSM console

Discussion in 'Command Line Administrator Client' started by Sabine-Salbei, May 26, 2011.

  1. Sabine-Salbei

    Sabine-Salbei New Member

    Joined:
    Jan 18, 2011
    Messages:
    13
    Likes Received:
    0
    Hello NG.
    Is ist possible to send messages to the TSM console? -TSM console means the programm which is started by tsmcon-

    For example: at the end of a sql query,started by a perl script, a message should be displayed on the TSM console.

    Greetings
    Sabine
     
  2.  
  3. Sunhillow

    Sunhillow Senior Member

    Joined:
    Oct 27, 2003
    Messages:
    355
    Likes Received:
    6
    Location:
    Stuttgart, Germany
    Hi Sabine,

    do you want this message to see when the sql query is finished?
    I always do such queries with the command embedded in `...` to read the result into a buffer.

    Nevertheless, i don't know a way to send a message to an dsmadmc console
     
  4. Sabine-Salbei

    Sabine-Salbei New Member

    Joined:
    Jan 18, 2011
    Messages:
    13
    Likes Received:
    0
    Hi.
    In general, I want to send messages to the dsmadmc console.
    For example: "Program x endet today at 10 o clock. There has no error occourded"

    Greetings and thanks for helping
    Sabine
     
  5. yuki

    yuki New Member

    Joined:
    Jun 30, 2004
    Messages:
    79
    Likes Received:
    3
    Location:
    Finland
    Hi,

    I also don't know how to send message to console, but issue message will do that to activity log.
    Here's script example from TSM admin reference guide (can be downloaded here: http://publib.boulder.ibm.com/infoc....itsm.srv.ref.doc/b_srv_admin_ref_windows.pdf)

    issue message i "Starting backup"
    define clientaction nodename action=command objects="c:\backupscript" wait=yes
    if (101) goto qfail
    if (102) goto qwarn
    if (103) goto backupf
    if (104) goto restartf
    issue message i "Backup of database complete"
    exit
    qfail: issue message e "Quiesce of database failed"
    exit
    qwarn: issue message w "Quiesce of database failed, taking fuzzy backup"
    exit
    backupf: issue message e "Backup of database failed"
    exit
    restartf: issue message s "Database restart failed"
    exit
     
  6. Sabine-Salbei

    Sabine-Salbei New Member

    Joined:
    Jan 18, 2011
    Messages:
    13
    Likes Received:
    0
    Hi.
    Thank you very much. If I find a way to send messages to the console, I will write it.

    Greetings
    Sabine
     
  7. Sunhillow

    Sunhillow Senior Member

    Joined:
    Oct 27, 2003
    Messages:
    355
    Likes Received:
    6
    Location:
    Stuttgart, Germany
    yukis proposal is good.
    Just run dsmadmc -tcpservername=xxx -id=yyy -pa=zzz issue message i "message"

    and with "console" i think you mean another dsmadmc process running in console mode?
     
  8. Sabine-Salbei

    Sabine-Salbei New Member

    Joined:
    Jan 18, 2011
    Messages:
    13
    Likes Received:
    0
    I mean dsmcon. But the solution showed by yukis have solved my problem.
     

Share This Page