NetWorker: Change Date format in mminfo output (Linux)
Sammanfattning: 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.
Den här artikeln gäller för
Den här artikeln gäller inte för
Den här artikeln är inte kopplad till någon specifik produkt.
Alla produktversioner identifieras inte i den här artikeln.
Instruktioner
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:
- 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
- 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.
Berörda produkter
NetWorkerArtikelegenskaper
Artikelnummer: 000233402
Artikeltyp: How To
Senast ändrad: 29 okt. 2024
Version: 3
Få svar på dina frågor från andra Dell-användare
Supporttjänster
Kontrollera om din enhet omfattas av supporttjänster.