cancel
Showing results for 
Search instead for 
Did you mean: 

Os command Parameters

former_member206167
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jose,

Hope you are well. Do you able to solve this issue ?

Thanks and Best Regards

Tarmizee