Delete or rename the calendar if it already exists.Now we have exported calendar we can use it on another Control M server to schedule jobs.īelow we will describe the task to do and the prerequisites to check: tmp]$ Importing calendar to another control M server Writing calendars to file /tmp/CALENDAR_EXAMPLE_1_exported.xmlĪs result you have a new file generated named CALENDAR_EXAMPLE_1_exported.xml you can verify if it is corresponding to the file calendar we wanted to export: tmp]$ cat /tmp/CALENDAR_EXAMPLE_1_exported.xml tmp]$ emdef exportdefcal -u emuser -p "N********DBI" -s CTMSRVCENTOS -arg "/tmp/caltmp.xml" -out "/tmp/CALENDAR_EXAMPLE_1_exported.xml" Second step :Use the « emdef » utility to get the file exported: emdef exportdefcal -u controlm_username -p " controlm_username_passwd" -s ctmserver_name -arg "/tmp/caltmp.xml" -out "/tmp/CALENDAR_NAME_exported.xml" xml file containing the informations below : cat /tmp/caltmp.xml Tip on Unix : You can have the datacenter name by typing this command: tmp]$ ps -eaf | grep gtwĮmuser 21889 1 0 févr.09 ? 00:00:00 /bin/sh /home/emuser/ctm_em/bin/em gtw -dc CTMSRVCENTOSĮmuser 21944 21889 0 févr.09 ? 00:00:27 emgtw -dc CTMSRVCENTOSĮmuser 28556 26207 0 13:51 pts/4 00:00:00 grep -color=auto gtwįirst step : Create a. You have to open a command prompt and proceed like below : In the following example we want to export a calendar named CALENDAR_EXAMPLE_1 from my controlm server named ctmservercentos in a file named /tmp/ CALENDAR_EXAMPLE_1_ the way the datacenter name is also named ctmservercentos The purpose is to perform an export of an existing calendar in order to backup it or to use it on another Control M server (it must be imported for that and this will be explained further) Exporting a calendar : You can also get further by consulting David’s blog explaining some interesting functions of the emdef utility with calendars extractions but also with folders extractions following this other blog. We will have to connect to a shell and use the emdef utility.īelow a quick description of possible actions on Calendar definitions using emdef utility (you can use the help option of Control M Gui to get more infos) CONTROL M BACKUP SCHEDULER UPDATEYou can find your defined calendars following tools and selecting calendars tab,then you can perform some actions like duplicating or update them but sadly there is no way to import or export them from here: You can see that the job is scheduled following the calendars rules (by selecting View schedule)Īlso you can list the calendars available in the tools tab of the GUI: A Control M calendar is used to schedule Control M jobs that are assigned to him:įor example the job named JOB_TEST will be executed depending of the days and rules defined in the calendar named CALENDAR_EXAMPLE_1 :
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |