Hello (I'm no hard core coder:),
I try to develop a script to do some very basic monitoring on an IBM SVC.
My goal is to get some information about the nodes and my quroum status and then send this information by mail.
here's my code so far (I understood that grep command doesn't "work" on CLI for SVC).
#check nodes of the cluster with lsnodes and parse status ssh admin@SVCName superuser>svcinfo lsnode | while read id name sn wwnn status temp;do echo $name" "$status;done #check quorum status with lsquorum and parse status ssh admin@SVCName superuser>svcinfo lsquorum | while read quorum_index status id name controller_id controller_name active temp; do echo $controller_name" "$active;done
My problem is sending an email from the CLI to designed users. I don't find any valuable information anywhere on the internet.
HINT: this script will be deployed on a jumppoint server (probably a windows server) in production, I cannot allow the installation of any exectution environment such as cigwin or perl or anything).
Could you help me with that ?