Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

cloudbreak shell process cmdfile output

avatar

Does cloudbreak shell provide a mechanism for automation i.e on executing below -- is it possible to "echo" the response to stdout ?

java -jar /tmp/cloudbreak-shell.jar [email protected] --sequenceiq.password=passowrd --identity.address=https://XX.XX.XX.XX/identity --cloudbreak.address=https://XX.XX.XX.XX --cert.validation=false --cmdfile /tmp/cmdfile

This is what I am trying to achieve via automation

1] Send cmdfile with "credential list" -- This should return me the list of credentials

2] If my credential is not present send another cmdfile for "credential create"

The problem here is when I am running cloudbreak-shell via --cmdfile , the response of command is not re-directed to the stdout so unable to go this route.

1 ACCEPTED SOLUTION

avatar
Super Collaborator
@Santhosh B Gowda

echo "credential list " | java -jar cloudbreak-shell.jar --sequenceiq.user=${cloudbreak-user} --sequenceiq.password=${cloudbreak-passwrod} --identity.address=https://${cloudbreak-ip}/identity --cloudbreak.address=https://${cloudbreak-ip} --cert.validation=false >> /tmp/output.log

Br,

R

View solution in original post

2 REPLIES 2

avatar
Super Collaborator
@Santhosh B Gowda

echo "credential list " | java -jar cloudbreak-shell.jar --sequenceiq.user=${cloudbreak-user} --sequenceiq.password=${cloudbreak-passwrod} --identity.address=https://${cloudbreak-ip}/identity --cloudbreak.address=https://${cloudbreak-ip} --cert.validation=false >> /tmp/output.log

Br,

R

avatar

@rdoktorics thanks , this works !