ThHi dear Forum,
I'm configuring Os command Adapter in Solman 7.1 SPS08 and it's working, but I need to send parameters to a shell script that send information to a third party monitoring application (Tivoli)
According to guide HOW-TO GUIDE: EXECUTE OS COMMAND
Guide just have one example:
If you need to add Parameters, replace the “-1;NO_PARAMETER” with the Parameters at your convenience, for example:
01;alertID [MAI:ALERT:ID]
02;alertDateTime ‘[MAI:ALERT:DATE] at [MAI:ALERT:TIME]’
03;description ’[MAI:ALERT:DESCRIPTION]’
04;$$ [MAI:ALERT:RATING]
When I see the script:
echo "PRUEBA SCRIPT ZALERTAS1" > /home/smpadm/zalertas1.txt
LOG=/home/smpadm/alert_$3.txt
echo "Cliente: Nutresa, Escalar a: Standby de SAP" > $LOG
echo "Componente: $1" >> $LOG
echo "Criticidad: $2" >> $LOG
echo "Mensaje: $3" >> $LOG
echo "Hostname:$4" >> $LOG
echo $7,$8,$9,$10,$11,$12,$13,$14,$15 >> $LOG
It show this result:
Cliente: Nutresa, Escalar a: Standby de SAP
Componente: alertID
Criticidad: 5208EA3A80291D90E10080000B00026E
Mensaje: alertDateTime
Hostname:
,,,alertID0,alertID1,alertID2,alertID3,alertID4,alertID5
Thanks for your kind help