Smarts NCM: After upgrading to 9.4.2, Perl API sample script does not work
search cancel

Smarts NCM: After upgrading to 9.4.2, Perl API sample script does not work

book

Article ID: 331307

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - NCM

Resolution

The API Programmer s Guide (page 19) gives an example perl script.
After upgrading to 9.4.2 the location of the voyenceca.crt needs to be added to the perl script to allow secure access to the WDSL definitions:

If the script will be run from the Application Server, add the following lines to the script directly under 'use SOAP:Lite':

$ENV
{HTTPS_CA_FILE}
= '/opt/voyence/conf/CA/voyenceca.crt';
$ENV
{PERL_LWP_SSL_VERIFY_HOSTNAME}
= 0;


If the script will be run from a client, then copy the certificate file from the Application or Combo Server to the client. The certificate location is $VOYENCE_HOME/conf/CA/voyenceca.crt. In the script, you will give the location where you stored the certificate:

$ENV
{HTTPS_CA_FILE}
= '<location>/voyenceca.crt';
$ENV
{PERL_LWP_SSL_VERIFY_HOSTNAME}
= 0;


SampleScript.txt shows the change in context.