Operational Defect Database

BugZero updated this defect 58 days ago.

VMware | 360210

Use of InvokeSync with Smarts Perl API

Last update date:

3/22/2024

Affected products:

Smart Assurance - SMARTS

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Symptoms

What parameters are needed to use invokeSync command?invokeSync command is being used from a Perl script as follows: my $resultString=$action1->invoke("invokeSync",$notif_ref,$notif_ref,$templist);templist being a 2-element array the following error is shown when running the script: [6] Reference to 2-element array expected for argument to InCharge primitive 'invokeOperation', stopped at /opt/InCharge6/SAM/smarts/local/actions/server/remoteTool.pl line 87

Resolution

A two-dimensional array, with two rows in it is needed as the parameter. For example: my $resultObj = $action1->invokeSync($obj, $obj, [ [ "ANYVALARRAY", [ [ "STRING", "1" ], [ "STRING", "1" ] ] ] ] );

Related Information

invokeSync is a command that belongs to ICS_Action Class. From the dmctl --help command the following can be seen: <structure set> invokeSync <object>target <object>translated_target <structure set>parameters.

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Unavailable

Learn More

Search:

...