Smarts: sm_getinfo is not working after upgrading Smarts from 9.2.2 to 9.3; Error: Must be invoked from sm_perl!; Unable to run the sm_getinfo utility;
search cancel

Smarts: sm_getinfo is not working after upgrading Smarts from 9.2.2 to 9.3; Error: Must be invoked from sm_perl!; Unable to run the sm_getinfo utility;

book

Article ID: 323805

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


sm_getinfo utility no longer running

After we upgraded our SAM from 9.2.2 to 9.3, the sm_getinfo utility will no longer run with the following errors-

[root@host bin]# ./sm_perl sm_getinfo.pl -h

Must be invoked from sm_perl! at /opt/InCharge/SAM/smarts/bin/sm_getinfo.pl line 32.

BEGIN failed--compilation aborted at /opt/InCharge/SAM/smarts/bin/sm_getinfo.pl line 36.


Environment

VMware Smart Assurance - SMARTS

Resolution

In order to get the sm_getinfo tool to run please edit the sm_getinfo.pl script using sm_edit:

  1. cd /opt/InCharge/SAM/smarts/bin
  2. ./sm_edit ./sm_getinfo.pl

By default line #30 in sm_getinfo.pl looks like this:

if ( ! defined($ENV{"SM_PERL_BASE"}) || $Config{prefix} !~ /$ENV{"SM_PERL_BASE"}/ ) {

Please update line #30 to read as:

if ( ! defined($ENV{"SM_PERL_BASE"})) {

Save and run accordingly.

 


Additional Information


For more information on how to run sm_getinfo please see the following documentation:
Collect system information