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.

how to get no lengthy output

Discussion in 'Scripting' started by renever, Dec 30, 2008.

  1. renever

    renever New Member

    Joined:
    Jan 5, 2004
    Messages:
    32
    Likes Received:
    0
    Occupation:
    IT Specialist/Consultant
    Location:
    NL
    running commands in interactive mode give a nice overview (line bij line)

    e.g. q devclass * f=d

    If i run this from a script (in combination with other queries (for documentation purposes))
    the output is just a few lines, but these are long. I cannot use this in a document.

    Is there a way to reduce the lengthy lines and get the output as it was started manually


    The output of ISC is huge, lot of lines and not realy readable
     
  2.  
  3. rore

    rore Senior Member

    Joined:
    Nov 27, 2005
    Messages:
    642
    Likes Received:
    15
    Occupation:
    SysAdmin
    Location:
    Montreal, CA
    Hi,
    Post your script.
    What scripting tool are you using?

    Rudy
     
  4. renever

    renever New Member

    Joined:
    Jan 5, 2004
    Messages:
    32
    Likes Received:
    0
    Occupation:
    IT Specialist/Consultant
    Location:
    NL
    I've a TSM script which contains a lot, but
    q status

    will display normally (manually entered)
    Server Name ServerXXX
    Server Host name or IP address 1.1.1.1
    server tcp/ip port 1500

    etc

    if i run it and redirect it

    run script > c:/xxxx

    it will show
    Server Name Server Host name or IP address server tcp/ip port

    ------------------- ------------------------------- -------------------
    ServerXXX 1.1.1.1 1500 ------> etc
     
  5. rore

    rore Senior Member

    Joined:
    Nov 27, 2005
    Messages:
    642
    Likes Received:
    15
    Occupation:
    SysAdmin
    Location:
    Montreal, CA
    Hi,
    Add -DISPLaymode=LISt to your dsmadmc command statements in your script.

    OR

    Use -OUTfile=c:\xxxx instead of > c:\xxxx

    Rudy
     
  6. renever

    renever New Member

    Joined:
    Jan 5, 2004
    Messages:
    32
    Likes Received:
    0
    Occupation:
    IT Specialist/Consultant
    Location:
    NL
    Thanks

    Rudy, Thanks for your answer, just had the time to implement it. Rene
     

Share This Page