UNSOLVED

choefing

updated

14 years ago

C

choefing

1 Rookie

49 Posts

0

1075

June 25th, 2012 13:00

Return values from Server Script

Hi there,

just wondering how it can be achied to return a string/value when invoking a (perl) server script from sm_gui.

The output shows:

ICS-E-ACTION_SUCCESSFUL_WITH_OUTPUT-Execution of the program:

    '/opt/SMARTS/InCharge/SAM/smarts/local/actions/server/resetSite.pl '

    completed successfully, with the output: '

  . '.

In case I use a "die" It only throws exit code 29 in above line, with exit I can only set an exit code.

Somebody can shed a light how to populate the output with self defined information ?

SAM/IP 7.2

Solaris 5.10

Thanks

Christian

  • choefing

    1 Rookie

    49 Posts

    453

    0

    Posted June 25th, 2012 13:00

    To answer myself.. you can just use a

    print "whatever your output should be";

    and it will be shown if you NOT enable TRACE in tool configuration which I had still marked for testing purposes.

    HTH

    Christian

  • 453

    0

    Posted September 17th, 2012 14:00

    Hi Christian,

    I wanted to follow up with you and see if you have any additional questions that perhaps we can answer

    Please let me know,

    Regards,

    TJ

    EMC Technical Support Engineer III,

    VCP, EMCSA, EMCIE

  • choefing

    1 Rookie

    49 Posts

    453

    0

    Posted September 18th, 2012 00:00

    Hi,

    not neccessary but thank you anyway.

    It was just to late for me to recognize that the "trace" was still active for this particular script which prevents script outputs from beeing shown.

    Thanks & regards

    Christian