Smarts IP: How do you change the logging level on a running Smarts IP domain?
search cancel

Smarts IP: How do you change the logging level on a running Smarts IP domain?

book

Article ID: 304196

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


How do you change the logging level on a running Smarts IP domain?
How can I change the logging level for a Smarts IP domain without restarting the domain.

How can I remove SNMP errors due to agent issues from the Smarts IP domain log?


Smarts IP domain log is filling up with SNMP errors due to agent issues

Environment

VMware Smart Assurance - SMARTS

Resolution

In Smarts IP, you can change the errlevel or loglevel settings for a running Smarts IP domain. The errlevel is the setting for the domain log, and loglevel is the setting for the system log (syslog or Windows Event Viewer).

Command syntax
The errlevel and loglevel are attributes of the SM_System class and therefore the following commands can be used to change the errlevel and loglevel settings for a Smarts IP domain. The dmctl command syntax used to set the errlevel or loglevel for a running domain is as follows:

dmctl -s <domain> put SM_System::SM-System::logLevel <loglevel>

dmctl -s <domain> put SM_System::SM-System::errLevel <errlevel> 

Command example
The following command example sets the errlevel to Critical, which means the message must be Critical or higher to be printed to the domain log:

./dmctl -s INCHARGE-AM-PM put SM_System::SM-System::errlevel Critical

Command setting options
The available options for errlevel and loglevel settings as documented in the Smarts IP System Administration Guide are as follows:

  • None
  • Emergency
  • Alert
  • Fatal
  • Critical
  • Error
  • Warning
  • Notice
  • Informational
  • Debug

Note that Fatal is equivalent to Emergency, Alert, or Critical. The default setting for errlevel is Warning, while the default setting for loglevel is Error.