06-13-2013 06:45 AM - edited 03-01-2019 09:01 AM
I was wondering if anyone happened to know the flag in CLI to switch "Load URL" in runbook on and off in 5.3. In the CLI manual I can see -r able to update the runbook text, but I don't see anything to flag the load URL as on or off.
Thanks!
Solved! Go to Solution.
06-13-2013 07:03 AM
I am not sure what manual you are refering too but with 5.3.1 it loads URL automatically example:
SACmd modrule -i 123456 -b http://yrunbooklocation/runbook123456.aspx
(make sure you put in quotes if you have spaces)
I have done this many times with a batch file
one think i don't understand is why Tidal Dev only allowed you to leverage a few variables for the runbook area. Wouldn't it make sense to allow use of global variables so you can use a base url path so you can use
06-13-2013 07:03 AM
I am not sure what manual you are refering too but with 5.3.1 it loads URL automatically example:
SACmd modrule -i 123456 -b http://yrunbooklocation/runbook123456.aspx
(make sure you put in quotes if you have spaces)
I have done this many times with a batch file
one think i don't understand is why Tidal Dev only allowed you to leverage a few variables for the runbook area. Wouldn't it make sense to allow use of global variables so you can use a base url path so you can use
06-13-2013 07:06 AM
That's simple.
The "flag" that turns the URL on or off is actually a hex(01) appended to the end of the text string in the database. The below MS SQL query can be used to turn off the flag. Enter a unique portion of the job name where you see
The "select" statement is used to verify you have selected the correct job. The "update" statement will uncheck the 'Load URL' field. The "update" statement can be easily modified to check the 'Load URL' field.
As always, directly modifying the database is not supported by Tidal/Cisco, you assume all risk, etc.
/* Clean up corrupt Runbook entries */
/* Identify corrupt runbook entries */
from jobmst
where jobmst_name like '%
and substring(jobmst_runbook, datalength(jobmst_runbook),1) = char(01)
order by jobmst_name
/* Uncheck 'Load URL' field for corrupt runbook entries */
update jobmst
set jobmst_runbook = substring(jobmst_runbook,1, datalength(jobmst_runbook)-1)where jobmst_name like '%
and substring(jobmst_runbook, datalength(jobmst_runbook),1) = char(01)
select jobmst_name, jobmst_runbook
06-13-2013 07:25 AM
Tracy, thank you for your response and the detailed information! Unfortunately, they don't give me direct access to run SQL queries against the database. I can only make updated through the product or using the CLI. It would definitely be easier to do it directly.
06-13-2013 07:23 AM
There's my problem! I was just putting in the URL without the http:// as soon as I added that to my batch file it worked perfectly. Thank you!!!!
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