Need to schedule LDAP commands to run daily
search cancel

Need to schedule LDAP commands to run daily

book

Article ID: 420872

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

We have created an LDAP command and need to schedule to run it automatically to created and/or synchronize the SDM contacts with our Active Directory.

Environment

Service Desk Manager 17.x integrated with LDAP.

Resolution

Out of the box, SDM does not provide a scheduler to run the LDAP command line utilities (pdm_ldap_import and pdm_ldap_sync).

However, you can use the Windows Task Scheduler or a similar scheduler tool (for Linux) to run those command lines on a daily basis at some specific time.

 

Example in Windows:

You would need to create a .bat with the pdm_ldap_import and pdm_ldap_sync command, create a new task with Windows Task Scheduler, and configure the task to run the .bat on a daily basis at a specific time.

References:

Task Schedule Batch

How to Schedule a Batch File to Run in Windows 11/10 Using Task Scheduler

(same applies to Windows Server OS)

 

Note: Please test this in your test environment before applying to production. 

Additional Information

Create Contacts in Batch Mode Using LDAP Data