Scripting Question

Using MySQL within custom K1000 Helpdesk Query to automate monthly/bimonthly K1000 patch jobs

11/13/2013 2986 views

Ok. I am not familiar with MySQL nor am I going to just dive into my K1000 tables and change entries. As of now I am doing more information gathering.

I spoke with a tier 3 engineer while working with other issues and asked the question of "Since CRON is limited in custom date functionality (not possible to schedule a job for say, the third monday of each month), is there a way to use an external server to schedule a custom job that triggers a K1000 patch job?" The answer was no, but there is a potential way to do this by using the Custom Ticket Rule which would have to be created as a new Service Desk Queue.

I was told that to get to the area where I can enter the custom MySQL queries, I would need to:

  1. Go to Service Desk
  2. Configuration (Tab)
  3. Queues
  4. Choose Action (Add New Item)
  5. Name it and enter e-mail info if desired and hit "Save"
  6. Scroll to the bottom of the page and click [Customize] by Custom Ticket Rules
  7. Choose action (Add Ticket Rule)
  8. Under "Define Ticket Rule" just hit Next, then Done
  9. At this point I am where I can supposedly enter my custom query information...

I was told (I believe I have this right) that I would first select the frequency of when this rule would run (monthly), set the next run (first run date), and then using "k1000/adminui" on the patch scheduling page to get the ID of the patch job I want to update, use the Select Query section and the Update Query section (in the attatched picture) to update the necessary tables for the job ID to update to the desired new date for the (then) current month.

Below is just a dummy custom query I made to show where I am referencing in the K1000.

Any information on how this could be accomplished, or if anyone has used this method over the option of creating multiple labels to achieve similar functionality, I would greatly appreciate the help/insight.

Thanks in advance

0 Comments   [ + ] Show comments


Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ