Manual notification creation using sm_ems command line utility.
search cancel

Manual notification creation using sm_ems command line utility.

book

Article ID: 327653

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

Steps, and command, to create a notification using the Smarts command line.

Environment

All Supported Smarts releases

Resolution

Run the following command from <Basedir>/smarts/bin file:

sm_ems -b <Broker name>:<Port for broker> -s <SAM Server name> notify <Class Name> <Instance name> <Event> <Source> <Event Type> <Clear Mode> <Severity>  [<attr>=<val> ...]  <User defined field> <User defined field>

 

Example Command: 

./sm_ems --server=TEST-OI notify Host DummyRouter Down CLI DURABLE 3600 Severity=1 UserDefined1=TEST1 UserDefined2=TEST1 EventText="Test"