Unsolved
This post is more than 5 years old
37 Posts
0
1967
March 4th, 2010 03:00
How data is passed to a tool script
How data is passed to a tool script
I was trying to display the attributes of a notification using a server tool. Here is my tool script.
The issue is that, it is displaying only the SM_OBJ_Name. Other attributes are not getting displayed and no error thrown.
Could somebody please help here?
#!/bin/sh
echo "script started"
echo $SM_OBJ_Name
echo $SM_OBJ_Active
echo $SM_OBJ_ClassName
echo $SM_OBJ_InstanceName
echo "Finished"
No Events found!
ArunDeva
37 Posts
0
March 8th, 2010 00:00
Could somebody help here please?
Thanks
Arun
ArunDeva
37 Posts
0
March 9th, 2010 02:00
Hi,
I got this resolved.
The issue was that, we need to give the proper Set Criteria->Context and Status, for each tool. I have given the default, "UnitaryComputerSystem" for the tool I wrote and for this reason, instead of fetching the notification properties, it was fetching the UnitaryComputerSystem attributes of the device.
When I set the Criteria like
Context = ICIM_Notification
Status = ICIM_Notification
The tool started fetching the notification properties and displayed all the SM_OBJ_ attributes of the alert.
I know that, these information might be known to everybody, but still pasting these info for new-comers to Smarts like me.
Thanks
Arun