Hide Forgot
The JS scripts and wrapper.sh script in the CLI docs[1] need to be pulled out and included in the samples/ directory for the CLI so that they can be run and tested directly, rather than having to copy-and-paste them from the docs. [1] http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/100/html/Running_JON_Command-Line_Scripts/Control_Grouped_Servers_via_the_CLI.html
(3:46:58 PM) dchia: ccrouch: ping, do you know if we can access anywhere the scripts that are used as examples in the product doco http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/100/html/Running_JON_Command-Line_Scripts/Control_Grouped_Servers_via_the_CLI.html ? ... (4:22:56 PM) dchia: ccrouch1: yeah, but those are just snippets....UHG hoping to get a hold of the real scripts so they can test and build their customized scripts based off that....
Here is the full wrapper.sh file, with the associated *.js files. The list: * create (group.js, tested successfully) * addMember (addMember.js, tested successfully) * status (status.js, tested successfully) * restart (restart.js, not tested) * deploy (deploy.js, not tested) * avail (avail.js, tested successfully) * metrics (metrics.js, tested successfully) I didn't check restart because I only had the JON server installed. I also didn't have a package handy, so I didn't check deploy. (These worked back when I tested them for bug fixing in 3.0.1, but since I just copied and pasted from the docs, there could be oddities.) I will go back and check the other two scripts, but I wanted to kick this over to QE since they're beginning CLI automation.
I should mention, I tested this using the 3.0.1 GA bits. The original jboss.org examples were based on 2.3, and the examples aren't doing anything exotic, so my guess is this would work on 2.4 or 3.0 as well, but I haven't tested that.
Oh, other notes. 1. Just unzip the wrapper.zip anywhere and then set the groupcontrol.conf file to point to the CLI directory. 2. This is run as a regular user, not root. 3. That user must have write access to the CLI logs/ directory.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: ?
Deleted Technical Notes Contents. Old Contents: ?
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: This is a test.