Script to monitor managed servers
I am trying to figure out how to write a script to monitor the Weblogic managed server. I started out by trying this command at the command prompt:
./admanagedsrvctl.sh status oacore_server1 < $ADMIN_SCRIPTS_HOME/weblogicpwd.txt
It returns the status but it also returns "stty: standard input: Inappropriate ioctl for device". How can I get rid of this error message and minimize the result? All I am really looking for is "oacore_server1 is running."
./admanagedsrvctl.sh status oacore_server1 < $ADMIN_SCRIPTS_HOME/weblogicpwd.txt
You are running admanagedsrvctl.sh version 120.14.12020000.11
stty: standard input: Inappropriate ioctl for device