I have a few systems that are the same operating system (RHEL 5.6) and all have the same version of sar installed (sysstat-7.0.2-3.el5_5.1). On some systems, the time is shown in 12-hour format.
On others, it's shown in 24-hour format.
If I SSH to serverA (who was displaying it in 12-hour format), it shows it in 24-hour now.
What is it reading that determines if it uses 12-hour or 24-hour format? I want to force it to one or the other for scripting reasons. All servers are the same timezones.
Code:
serverA# sar -r | head -4
12:00:01 AM kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad
12:10:01 AM 225116 65763136 99.66 620496 37077276 8385680 240 0.00 0
12:20:01 AM 78044 65910208 99.88 589044 37734804 8385680 240 0.00 0
12:30:01 AM 768460 65219792 98.84 538552 37651404 8385680 240 0.00 0
On others, it's shown in 24-hour format.
Code:
serverB# sar -r | head -4
00:00:01 kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad
00:10:01 79612 65767076 99.88 22732 60181544 8385696 224 0.00 0
00:20:01 101196 65745492 99.85 130632 59343868 8385692 228 0.00 0
00:30:01 110268 65736420 99.83 223936 59000392 8385692 228 0.00 0
If I SSH to serverA (who was displaying it in 12-hour format), it shows it in 24-hour now.
Code:
serverC# ssh serverA sar -r
00:00:01 kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad
00:10:01 193596 73852752 99.74 266448 58820468 16383688 304 0.00 0
00:20:01 1254992 72791356 98.31 272432 58777088 16383688 304 0.00 0
00:30:01 1585748 72460600 97.86 277396 58407776 16383688 304 0.00 0
What is it reading that determines if it uses 12-hour or 24-hour format? I want to force it to one or the other for scripting reasons. All servers are the same timezones.