NetWorker: Change Date format in mminfo output (Linux)

Summary: mminfo gives a default date output depending on the locale settings of the NetWorker server. To change the date format, the locale of the server can be changed.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

The mminfo date output depends on the server Locale. To see the locale, enter the following command:

locale | grep -i LC_TIME

This gives you the LC_TIME format which is in use. LC_TIME format describes which date format is shown. For example MM/DD/YYYY or DD/MM/YYYY.

To check all locale available on the Linux system, run the following command.

locale -a

The locale of the host can be changed temporarily or permanently as outlined below:

Temporarily:

  1. From an elevated prompt on the NetWorker server, set the locale to the wanted locale (see locale -a output). For example:
export LC_TIME=en_US.UTF-8
  1. Run mminfo:
mminfo -avot
 

Permanent:

There are different methods for permanently changing the locale. The method can vary depending on the Linux distribution of the system and its installed utilities. 

Using update-locale:

sudo update-locale LC_TIME=en_US.UTF-8

Using localectl:

sudo localectl set-locale LC_TIME=en_US.UTF-8

Edit Locale Configuration Files:

  • For Ubuntu/Debian, edit /etc/default/locale
  • For CentOS/RHEL, edit /etc/locale.conf

Add or modify the line for LC_TIME:

LC_TIME=en_US.UTF-8

Verify Changes:

locale | grep -i LC_TIME
NOTE: These changes typically take effect immediately for new terminal sessions. Existing sessions may need to be restarted or logged out and back in to see the changes. If the above processed do not change the locale, see operating system vendor documentation for changing locale.

Affected Products

NetWorker
Article Properties
Article Number: 000233402
Article Type: How To
Last Modified: 29 Oct 2024
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.