how to get a listing of a script?
I would like to save my KACE scripts to a repository like SVN. What is the best way to get a listing of a script? My current technique is manually intensive:
- edit the script in XML,
- copy the XML and paste it into a txt file,
- go back to the script and grab any script .bat content,
- paste that at the end of the txt file.
Thanks.
-
Just curious, why are you doing this? - Jbr32 10 years ago
Answers (1)
To grab information about scripts you can pull from the KBOTS table:
SELECT * FROM ORG1.KBOT;
If you are using scripts and not kscripts then the text of them can be pulled in a report:
SELECT * FROM ORG1.KBOT_SHELL_SCRIPT;
The information for kscripts is a little more difficult to parse but that is stored in another table:
SELECT * FROM ORG1.KBOT_VERIFY_STEPS;
Using a combination of those tables you could possibly build a report that showed all of the information you're looking to catalog.