How to removing "Integer Overflow in packer.pm" Messages from Perl scripts using Smarts InCharge modules
search cancel

How to removing "Integer Overflow in packer.pm" Messages from Perl scripts using Smarts InCharge modules

book

Article ID: 304044

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


How to remove "Integer overflow" warning messages from Perl scripts when using the SMARTS Perl API.

Error msg: Integer overflow in hexadecimal number at packer.pm line 114

Environment

VMware Smart Assurance - SMARTS

Cause

When a Perl script uses one of the InCharge::* modules, warning messages of the following form may appear on stdout.

Integer overflow in hexadecimal number at packer.pm line 72.
Integer overflow in hexadecimal number at packer.pm line 106.
Integer overflow in hexadecimal number at packer.pm line 113.
Integer overflow in hexadecimal number at packer.pm line 114.

Resolution

To resolve this issue, modify the file packer.pm by adding the line "no warnings;" near the top of the file.  This will suppress the warning messages.