Bug 807067

Summary: Add doc script examples to the CLI samples/ directory
Product: [JBoss] JBoss Operations Network Reporter: Deon Ballard <dlackey>
Component: CLIAssignee: Deon Ballard <dlackey>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: medium    
Version: JON 3.0.0CC: asantos, ccrouch, dchia, loleary, syeghiay
Target Milestone: GA   
Target Release: JON 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
This is a test.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 11:00:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Deon Ballard 2012-03-26 22:14:56 UTC
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

Comment 1 Charles Crouch 2012-03-26 22:20:51 UTC
(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....

Comment 2 Deon Ballard 2012-03-27 01:04:11 UTC
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.

Comment 3 Deon Ballard 2012-03-27 01:05:39 UTC
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.

Comment 4 Deon Ballard 2012-03-27 18:40:11 UTC
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.

Comment 5 Alan Santos 2012-03-27 19:28:36 UTC
    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:
?

Comment 6 Alan Santos 2012-03-27 19:30:47 UTC
Deleted Technical Notes Contents.

Old Contents:
?

Comment 7 Deon Ballard 2012-03-27 19:35:29 UTC
    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.