Change the timestamp of console using sm_gui.
search cancel

Change the timestamp of console using sm_gui.

book

Article ID: 332199

calendar_today

Updated On:

Products

VMware Smart Assurance VMware Telco Cloud Service Assurance

Issue/Introduction

Steps To Modify The Timestamp Format On The Global Console

Environment

Smarts 10.1.X / 2.X

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:

Template: sm_gui -Dcom.smarts.timestampFormat="yyyy-dd-MM HH:mm:ss"
Example: sm_gui -Dcom.smarts.timestampFormat="2024-12-18 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"