on 08-12-2013 9:51 PM
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
Hi Jose,
Hope you are well. Do you able to solve this issue ?
Thanks and Best Regards
Tarmizee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.