{"id":22480,"date":"2023-02-13T18:00:00","date_gmt":"2023-02-13T17:00:00","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=22480"},"modified":"2023-02-13T18:00:01","modified_gmt":"2023-02-13T17:00:01","slug":"control-m-em-run-same-command-on-multiple-jobs-using-hostgroup","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/","title":{"rendered":"Control-M\/EM : Run same command on multiple jobs using hostgroup"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction:<\/h2>\n\n\n\n<p>For a specific use case , it was asked to create jobs running same script on 30 agents ,each one defined on its dedicated server.<\/p>\n\n\n\n<p>Also depending on the server list ,we had to start jobs with specific users.<\/p>\n\n\n\n<p>So is there a way avoid to create 30 individual jobs?<\/p>\n\n\n\n<p>Maybe we can find an optimal solution and guess it is by using Control-M hostgroup feature!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Name your host groups and add the Control-M agents inside <\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go on CCM and create your first hostgroup:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png\" alt=\"\" class=\"wp-image-22491\" width=\"1001\" height=\"122\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png 933w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1-300x37.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1-768x94.png 768w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add the server to each hostgroup:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB2ADDSERVERTOHSTGRP-1.png\" alt=\"\" class=\"wp-image-22493\" width=\"1000\" height=\"717\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB2ADDSERVERTOHSTGRP-1.png 665w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB2ADDSERVERTOHSTGRP-1-300x215.png 300w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Repeat the task for each of the hostgroups ( example <strong>HOSTGROUP1 <\/strong>I have added <strong>SERVER4<\/strong>,<strong>SERVER7 <\/strong>and removed SERVER1 ),<strong>HOSTGROUP2<\/strong>,<strong>HOSTGROUP3 <\/strong>and so on.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Define your jobs using dedicated host groups <\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>So for our example we have 4 jobs, each one referring to a specific Hostgroup in that way:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"156\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOBtab.png\" alt=\"\" class=\"wp-image-22536\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOBtab.png 792w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOBtab-300x59.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOBtab-768x151.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB-1024x446.png\" alt=\"\" class=\"wp-image-22490\" width=\"993\" height=\"432\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB-1024x446.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB-300x131.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB-768x334.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB.png 1210w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Add the corresponding hostgroups and user to the corresponding jobs <\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME-1024x392.png\" alt=\"\" class=\"wp-image-22494\" width=\"995\" height=\"380\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME-1024x392.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME-300x115.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME-768x294.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME-1536x588.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME.png 1561w\" sizes=\"auto, (max-width: 995px) 100vw, 995px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Important note:<\/strong><\/h4>\n\n\n\n<p>Don&#8217;t forget to tick the box &#8220;<strong>Run job on all Hosts in the group<\/strong>&#8220;<\/p>\n\n\n\n<p>This will have for effect to execute the command on all of the hostname in the hostgroup instead of sending command to the first server available<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedALLJOBSORDER-1024x210.png\" alt=\"\" class=\"wp-image-22496\" width=\"1004\" height=\"206\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedALLJOBSORDER-1024x210.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedALLJOBSORDER-300x61.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedALLJOBSORDER-768x157.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedALLJOBSORDER-1536x315.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedALLJOBSORDER.png 1561w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Order your job<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Right click on the job and select order:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"581\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order2.png\" alt=\"\" class=\"wp-image-22498\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order2.png 970w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order2-300x180.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order2-768x460.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We will order it on hold status for this test:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"565\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order1-1024x565.png\" alt=\"\" class=\"wp-image-22499\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order1-1024x565.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order1-300x165.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order1-768x423.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB5order1.png 1092w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When your job is ordered you will see that a job is ordered for each of the agent defined in the hostgroup ( here we have two jobs: one for <strong>SERVER4 <\/strong>and one for <strong>SERVER7 <\/strong>with same name <strong>but different order ID<\/strong> ) <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB3jobs_ordered-2-1024x507.png\" alt=\"\" class=\"wp-image-22503\" width=\"867\" height=\"428\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB3jobs_ordered-2-1024x507.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB3jobs_ordered-2-300x149.png 300w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When we check the job properties we can see that &#8220;Host group&#8221;  field <strong>HOSTGROUP1 <\/strong>is replaced directly by the hostname <strong>SERVER4<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"436\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_SERVER4-1-1024x436.png\" alt=\"\" class=\"wp-image-22506\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_SERVER4-1-1024x436.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_SERVER4-1-300x128.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_SERVER4-1-768x327.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_SERVER4-1-1536x654.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_SERVER4-1.png 1563w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For the second job it will be <strong>SERVER7 <\/strong>as expected:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"439\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME8-1-1024x439.png\" alt=\"\" class=\"wp-image-22507\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME8-1-1024x439.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME8-1-300x129.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME8-1-768x329.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME8-1-1536x659.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB4jobs_orderedHISTNAME8-1.png 1558w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can repeat this action for each of the hostgroup created and update the job definition with the specific user.<\/p>\n\n\n\n<p>In example <strong>HOSTGROUP2 <\/strong>will run the job created for <strong>SERVER3\/5\/6<\/strong> with user <strong>USR2<\/strong><\/p>\n\n\n\n<p>You will have as a result as many jobs as you have defined agent in the hostgroup \ud83d\ude42<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>We can see that you can create a simple job to run it on multiple hosts ,that will ease your life if you need to manage this specific use case . \ud83d\ude42<\/p>\n\n\n\n<p>Don&#8217;t forget to visit <a href=\"https:\/\/www.dbi-services.com\/blog\/\">dbi bloggers<\/a> to have more and more valuable tips and trick on your favorite software \ud83d\ude42<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: For a specific use case , it was asked to create jobs running same script on 30 agents ,each one defined on its dedicated server. Also depending on the server list ,we had to start jobs with specific users. So is there a way avoid to create 30 individual jobs? Maybe we can find [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1256],"tags":[],"type_dbi":[],"class_list":["post-22480","post","type-post","status-publish","format-standard","hentry","category-control-m"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Control-M\/EM : Run same command on multiple jobs using hostgroup - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Control-M\/EM : Run same command on multiple jobs using hostgroup\" \/>\n<meta property=\"og:description\" content=\"Introduction: For a specific use case , it was asked to create jobs running same script on 30 agents ,each one defined on its dedicated server. Also depending on the server list ,we had to start jobs with specific users. So is there a way avoid to create 30 individual jobs? Maybe we can find [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-13T17:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-13T17:00:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Control-M\/EM : Run same command on multiple jobs using hostgroup\",\"datePublished\":\"2023-02-13T17:00:00+00:00\",\"dateModified\":\"2023-02-13T17:00:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/\"},\"wordCount\":392,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png\",\"articleSection\":[\"Control-M\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/\",\"name\":\"Control-M\/EM : Run same command on multiple jobs using hostgroup - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png\",\"datePublished\":\"2023-02-13T17:00:00+00:00\",\"dateModified\":\"2023-02-13T17:00:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png\",\"width\":933,\"height\":114},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Control-M\/EM : Run same command on multiple jobs using hostgroup\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Control-M\/EM : Run same command on multiple jobs using hostgroup - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/","og_locale":"en_US","og_type":"article","og_title":"Control-M\/EM : Run same command on multiple jobs using hostgroup","og_description":"Introduction: For a specific use case , it was asked to create jobs running same script on 30 agents ,each one defined on its dedicated server. Also depending on the server list ,we had to start jobs with specific users. So is there a way avoid to create 30 individual jobs? Maybe we can find [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/","og_site_name":"dbi Blog","article_published_time":"2023-02-13T17:00:00+00:00","article_modified_time":"2023-02-13T17:00:01+00:00","og_image":[{"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png","type":"","width":"","height":""}],"author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Control-M\/EM : Run same command on multiple jobs using hostgroup","datePublished":"2023-02-13T17:00:00+00:00","dateModified":"2023-02-13T17:00:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/"},"wordCount":392,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png","articleSection":["Control-M"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/","url":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/","name":"Control-M\/EM : Run same command on multiple jobs using hostgroup - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png","datePublished":"2023-02-13T17:00:00+00:00","dateModified":"2023-02-13T17:00:01+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/02\/HGJOB1.png","width":933,"height":114},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/control-m-em-run-same-command-on-multiple-jobs-using-hostgroup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Control-M\/EM : Run same command on multiple jobs using hostgroup"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/22480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=22480"}],"version-history":[{"count":21,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/22480\/revisions"}],"predecessor-version":[{"id":22546,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/22480\/revisions\/22546"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=22480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=22480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=22480"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=22480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}