04-27-2012 12:10 PM - edited 03-14-2019 09:46 AM
Hi All!
I'm a novice at scripting and have to edit an advance (for me) script for uccx version 8 and was wondering if anyone had an example script for an emergency script that would edit a status.xml file (changing the text from "open" to"closed for emrgency")? Thank you in advance!!!!
04-27-2012 03:37 PM
This has been discussed several times here.
Check out this thread .. https://supportforums.cisco.com/message/3473481#3473481 It has some sample scripts that you can use.
Brian
04-30-2012 06:33 PM
Thanks for the reply Brian!
Ya I've checked different discussions but having had much luck getting the .xml file "status.xml" to change its text from open to emergency. I've attached the script I've come up with and am most likely missing something since I'm new to .xml file's and scripting. I ran the interactive debug and it flows through the script with no errors and seems like the .xml file should be getting updated but it doesn't. If anyone can point me in the right direction it would be greatly appreciated..
Thanks again!!!
05-01-2012 12:50 AM
Hi
I'm presuming here that your emergency status reads OK?
Regards
Aaron
05-01-2012 06:47 AM
Thanks Aaron! Sorry I forgot to mention that I've only been trying to get the (stat_null == "emergency") 'false' branch working for now. Once I get that working I'll fix/update the 'true' branch as well. I've completely gone astray testing all kinds of things to get things to work..lol I'll do what you say above and see if it works. I also came across a bug and was wondering if I'm hitting it here? I'm running version 8.5 SU2 but am going to try upgrading to SU3 to see if it fix's this potential bug. The bug ID/info is below:
CSCtt28877 | 2 | UCCX: XML document upload fails with "Cannot insert a null into column" |
Thank you.....
05-01-2012 09:16 AM
Hi Aaron!
I've updated the script to reflect what you recommended above and validated/debugged the script which hit all the steps and validates fine however the status.xml file still has a value of "open". Next I'll try that upgrade to see if that works and will post the results..
Thanks again!!
05-01-2012 09:39 AM
Hi
Yes, if the script is correct and it doesn't upload that one is very common (i.e. it always fails to upload on that version).
There was a specific patch issued very soon after the release to address that problem.
You'll only be able to tell by checking the MIVR log for EXCEPTION blocks at the time the upload is attempted.
Aaron
05-01-2012 12:48 PM
Thanks Aaron, sure enough it was that bug. I upgraded to SU3 and it now works fine. And here I thought I was a rookie at this scripting stuff, oh wait I am But that was a really good learning experience...
Thanks again for the replys!!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide