sm_snmp utility fails to send a trap and generates error when trying to send sm_snmp trap with specific value greater than 2147483647
search cancel

sm_snmp utility fails to send a trap and generates error when trying to send sm_snmp trap with specific value greater than 2147483647

book

Article ID: 303897

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

  • Getting error when trying to send sm_snmp trap with specific value greater than 2147483647 as in the following example:

sm_snmp -d localhost trap ##.##.##.##  <trap_details> 6 2147483648 0

  •  Smarts sm_snmp utility reports the following error when specifying a specific value greater than 2147483647:

sm_snmp: Invalid number for <specific>: <value>

Environment

All supported releases of Smarts

Cause

This issue is not specific to Smarts sm_snmp. The trap limitation is due to the 32-bit signed integer maximum value of 2,147,483,647.

Resolution

To resolve this issue, specific values specified for traps must be no greater than 2147483647, the 32-bit signed integer maximum.