VMWare Smart Assurance SAM: How can I modify the timestamp format on the Global Console?
search cancel

VMWare Smart Assurance SAM: How can I modify the timestamp format on the Global Console?

book

Article ID: 332199

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

How can I modify the timestamp format on the VMWare Smart Assurance SAM Global Console?

Environment

VMware Smart Assurance - SMARTS

Resolution

The com.smarts.timestampFormat Java property can be used to modify and override the default formatting of timestamps in the SAM/Smarts SAM Global Console. Setting the timestamp format using this property overrides the default formatting of timestamps in the SAM Global Console such as the First Notify, Last Notify, and LastChange fields in the notification view.

The SAM Global Console default timestamp format is as follows:

dd MMM HH:mm:ss

You can change it to another format such as yyyy-dd-MM HH:mm:ss in one of two ways:

  • Using the sm_gui command
  • Editing the properties.conf configuration file

The following sections explain how to make this change using either method. 

Using the sm_gui command
The sm_gui command to specify a non-default timestamp format for the Global Console such as yyyy-dd-MM HH:mm:ss is as follows:

sm_gui D com.smarts.timestampFormat="yyyy-dd-MM HH:mm:ss"

Editing the properties.conf configuration file
The properties.conf configuration file is found in the /conf/console directory. Using sm_edit, open the file and add the following line:

com.smarts.timestampFormat="yyyy-dd-MM HH:mm:ss"



Additional Information

For more information on this topic, see Command syntax for the -D option