Profile picture for user emitnaas
Hello, I'm working to write a wrapper script to bridge the gap between our server monitoring software and ARIS Cloud Controller. The attached script is able to STDIN pipe in commands (ie exit, stopall, startall). However, the only STDOUT output the script reads is the initial "ACC+ localhost>" prompt and nothing more. I'm not sure if something is blocking the STDOUT pipe or what. In my research I've found that redirecting a STD pipe without actually interacting with it can lead to blocking when the buffer gets full on that pipe, such is why I'm not redirecting STDERR. If I attempt to read from both STDOUT AND STDERR both it freezes on the first $stream.Peek() for the STDERR pipe. The script being able to probe the status of all the components within ARIS would at least allow it to provide a better preliminary report when the automation creates a support ticket/notification because the overall system went offline for whatever reason. Thank you in advance, Paul
File attachments
by Paul Taylor Author
Posted on Thu, 01/29/2015 - 20:22

I found the answer to my own question after some tinkering: 

Modify the line:

$p.StartInfo.Arguments="-Djava.library.path=""\lib\*;"" -classpath ""\lib\*;"" com.aris.prov.macc.MultiAgentCommandLineCloudController -u userName -pwd passWord -h localhost -p 12345 {INSERT COMMANDS HERE}"

 

Commands such as list, list external services, show external service [serviceID] will produce the expected output. Sadly consuming the single STDOUT message as the result of a single command run takes away the concept of an interactive shell. Therefore I won't dispute there's probably a better way to accomplish this wrapper concept.

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock