1. Community Tip: Please Give Thanks to Those Sharing Their Knowledge.
    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.
  2. Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)
    Click the link above 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 notice will disappear after you have made at least 3 posts.

Automating TSM-Export by Script

Discussion in 'Scripting' started by dcz01, Aug 2, 2017.

  1. dcz01

    dcz01 ADSM.ORG Member

    Joined:
    Feb 18, 2014
    Messages:
    41
    Likes Received:
    2
    Occupation:
    IT-Administrator
    Location:
    Germany
    Hello,

    i'm searching for an method to automate my exports in tsm.
    does anyone know an option to implement an current_date variable in my tsm script?

    define script Export_Node desc='Automatischer Export der wichtigen Nodes auf USB-Festplatte'
    update script Export_Node 'export node <Servername> filedata=allactive devclass=export_usb volume=$1-<Servername>'
    update script Export_Node 'export node <Servername>_DOMINO filedata=allactive devclass=export_usb volume=$1-<Servername>_DOMINO'

    run export_node 2017-08-02


    i would like to have the substitue varibale automatically set by the system so that i can use an administrative schedule to do the export on sundays.
     
  2.  
  3. moon-buddy

    moon-buddy ADSM.ORG Moderator

    Joined:
    Aug 24, 2005
    Messages:
    6,805
    Likes Received:
    358
    Occupation:
    Electronics Engineer, Security Professional
    Location:
    Somewhere in the US
    I would script this outside of the TSM Server; on the host server or any workstation that can connect to the TSM Server.
     
  4. dcz01

    dcz01 ADSM.ORG Member

    Joined:
    Feb 18, 2014
    Messages:
    41
    Likes Received:
    2
    Occupation:
    IT-Administrator
    Location:
    Germany
    Well that would be an good idea and i think it will work great.
    But then i must have an extra admin id on the server with system rights and i must enter that admin id with password in cleartext in the script on the host server or an workstation...
    No other option to do that?
     
  5. moon-buddy

    moon-buddy ADSM.ORG Moderator

    Joined:
    Aug 24, 2005
    Messages:
    6,805
    Likes Received:
    358
    Occupation:
    Electronics Engineer, Security Professional
    Location:
    Somewhere in the US
    If you execute the script on the local HOST server, then all things are contained within. You will not be traversing any network. You can hide the password by compiling the script be it DOS or UNIX. There are lots of free batch or script compilers on the Internet.

    You only need Operator rights to pull data out for reporting purposes.
     
  6. dcz01

    dcz01 ADSM.ORG Member

    Joined:
    Feb 18, 2014
    Messages:
    41
    Likes Received:
    2
    Occupation:
    IT-Administrator
    Location:
    Germany

Share This Page