WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new

Get yourself a moving buddy - composer rename

5/26/2020

0 Comments

 
Picture
If you have ever had to move, you know exactly how painful it can be, for sure. 
Carefully packing all of your belongings, each of them in the right boxes, is the first mandatory step. 
Keeping track of all the boxes, and all the stuff in each box is hard but necessary: you don’t want to lose your favorite mug or teddy bear. 
Moving tens or hundreds of boxes requires a huge effort, maybe a moving van and an extra pair of hands to help. ​
You need someone you can trust, who will take care of your most valuable items during the transfer, just like you would do yourself. After all, most of those items have a long-standing history behind them, that only you know. 
And upon arrival at the destination, you will need to place each box in the right room. 
And finally, unpacking and finding just the right spot for your beloved belongings in their new home.. 
 
No one should have to go through this all alone. Even Woody in the first Toy Story movie warns you about that: “Has everyone picked a moving buddy? […] I don't want any toys left behind. A moving buddy—if you don't have one, get one!” 
 
For your Workload Automation migration toward folders, everything has been taken care of! 
The composer rename will be your perfect moving buddy. Let’s see how it can help you to move all your workload definitions in a few steps to the final destination. 
 
If you have hundreds of jobs, job streams, workstations, resources and so on, that you have meticulously arranged according to a specific naming convention, you will need to create the folders and subfolder structure to match that organization. 
 
This is the first step and you can perform it from the Dynamic Workload Console or from the composer command line.  ​
Picture
Once you have created all the destination folders, you can start the actual moving. 
 
All of your soldiers can be moved at one time directly under their commander SARGE, that of course, is part of the original TOY_STORY. 
 
You just need to run  
composer rename jd @#TS1_SAR_BOS@ @#/TOY_STORY/SARGE/BUCKET_O_SOLDIERS@;preview 
 
This will let you check how your soldiers will be moved into their bucket without actually moving them.  ​
Picture
Picture
Now that you have checked that the wildcard you are using matches the right object selection, and the results are what you expect, you can run the command again without the ;preview option and let your moving buddy do the job and rename your definitions with a longer and more user-friendly name. 
 
Remember: If you want to be sure you don’t leave any definitions behind… “A moving buddy—if you don't have one, get one!”. 
 
Syntax 
Let’s go deeper into the command syntax: 
  • composer rename is the main command 
  • then you need to specify the object type you want to move (see the full list below) 
  • then you need to specify the matching rule to match the existing names with the new ones 
  • eventually, you can add the optional parameter ;preview to check before the actual execution ​​

Let’s see how the matching rule works: 
You can use either the @ or ? wildcard to match the exact names and they will be considered in positional order. 
 
So, in the previous example, the order of the two @ will be respected after the rename:  
@#TS1_SAR_BOS@ @#/TOY_STORY/SARGE/BUCKET_O_SOLDIERS@ 
 
You can use the composer rename command to move all the following objects by using the long or short keyword ​
Picture
Another example 
For example, in case you need to move your workstations AAA_BBB_WKS1 and AAA_BBB_WKS2 to the folder /AAA/BBB and rename them at the same time with a more user-friendly name (workstation_1 instead of WKS1 and so on). 
 
Here’s what you need to do: 
  • create folder /AAA 
  • create folder /AAA/BBB 
  • run composer rename ws @_@_WKS? /@/@/workstation_?;preview 
  • check that the results are /AAA/BBB/workstation_1 and /AAA/BBB/workstation_2 as expected 
  • run composer rename ws @_@_WKS? /@/@/workstation_? to apply the changes 
 
Note that now that you can move part of the naming convention used in the workload definition names into folder names, you save space and free up characters in the workload definition names. 
 
Remember that, if you are using a Db2 database, in case of massive changes on your workload definitions, it’s recommended to run a dbreorg and dbrunstats. You can find these scripts under the <installation_dir>/TWS/dbtools/db2/script directory. ​

References 
For a complete reference see the “Organizing scheduling objects into folders” topic in the User’s Guide and Reference. ​

Author's BIO
Picture
Eliana Cerasaro, Technical Lead  
​
Eliana Cerasaro has worked in the Workload Automation area since 2006. In 2016, she moved from IBM to HCL Technologies and is currently part of the distributed development team of Workload Scheduler as a Technical Lead. She specializes in design and development of backend applications and databases.  
View my profile on LinkedIn
Picture
Enrica Pesare, User eXperience Designer – Workload Automation 
​
Enrica
 is a Computer Scientist highly focused on Human Centered Design and User Experience. After completing a PhD at the University of Bari (Italy) she joined the HCLSoftware Rome Lab as a Software Engineer in the Quality Assurance team of Workload Automation and as the owner of the Workload Automation production environment.Since 2018, she is part of the UX design team for Workload Automation. 
View my profile on LinkedIn
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Azure
    Business Applications
    Cloud
    Data Storage
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2019 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new