Smarts SAM: How to use a different perl version, instead of the one included with SMARTS
search cancel

Smarts SAM: How to use a different perl version, instead of the one included with SMARTS

book

Article ID: 331923

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


How to use a perl api (ActivePerl for example) that is not dependent on the built-in perlĀ perl with SAM?

It is not possible to use the Perl remote API modules using native perl, since the I18NWrapper module is linked to the Perl shipped by Smarts.

Environment

VMware Smart Assurance - SMARTS

Resolution

Smarts SAM 9.3 introduced a new environment variable called SM_DISABLE_I18N_WRAPPER, which when set to 1, prevents the loading of the I18NWrapper module.

This variable is also present in later versions of the code.

To use this variable, modify the runcmd_env.sh, add this variable and set the value to 1

Example:
./sm_edit ../local/conf/runcmd_env.sh
.....
SM_BROKER_DEFAULT=localhost:426
SM_SNMP_BUG_COMPATIBLE=TRUE
SM_INCOMING_PROTOCOL=1,0
SM_OUTGOING_PROTOCOL=1,0
......
SM_DISABLE_I18N_WRAPPER = 1


Additional Information

EMC only support the problems on the bundled version of perl. This also causes any remote API errors to not get rendered properly.