顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


主題 - TWASA

頁: [1]
1
Linux 討論版 / 關於Linux virt-top參數問題
« 於: 2012-12-06 11:25 »
各位好,我在Linux KVM使用virt-top的指令效能數據蒐集,不過遇到了些問題就是使用--end-time參數
在man virt-top得到說明可以使用--end-time參數如下
引用
       --end-time time
           The program will exit at the time given.

           The time may be given in one of the following formats:

           YYYY-MM-DD HH:MM:SS
               End time is the date and time given.

           HH:MM:SS
               End time is the time given, today.

手動執行
virt-top -o id -d 10 --end-time 10:56:00 --block-in-bytes --script --csv /tmp/test.csv
可以正確執行並於指定時間結束

但執行
virt-top -o id -d 10 --end-time 2012-12-06 10:56:00 --block-in-bytes --script --csv /tmp/test.csv
卻出現錯誤如下
引用
Fatal error: exception Invalid_argument("2012-12-06 does not match the format %i
 %T")

用man date得到資訊%T
引用
%T     time; same as %H:%M:%S
可是卻找不到%i 這個參數

目前在google還找不到相關資訊,請問這是甚麼原因呢?
Linux 相關資訊如下
Distribution:Scientific Linux release 6.3 (Carbon) 64bit
virt-top-1.0.4-3.13.el6.x86_64
libvirt-0.9.10-21.el6_3.4.x86_64

頁: [1]