How to achieve this using a hook script, which can be used to add to a user-defined field that contains the network device related to a Smarts SAM notification.
--server=<SAM domain>. print("groupName=" . groupName);groupList = getInstances(groupName);print("groupList=" . groupList)
[May 22, 2013 11:51:42 AM GMT+02:00 +038ms] t@981464832 RFI-OI_NL-Driver-HyperNotif
ASL_MSG-*-ASLP-ics/sysname2udef-hook.asl: groupName=SelectiveGroup
[May 22, 2013 11:51:42 AM GMT+02:00 +038ms] t@981464832 RFI-OI_NL-Driver-HyperNotif
ASL_MSG-*-ASLP-ics/sysname2udef-hook.asl: groupList={ }
If you want a call/function to be called to the Smarts SAM server, you need to use the self-> command specification. The correct command syntax is:
groupList = self->getInstances("SelectiveGroup");