ttulmgr
The command ttulmgr' is the utility to export and import the update log. It is useful to filter the update log with such text utilities as grep‘ and upath‘ specifies the update log directory.sed'. This command is used in the following format.
ttulmgr export [-ts num] [-sid num] upath- Export the update log as TSV text data to the standard output.
ttulmgr import upath- Import TSV text data from the standard input to the update log.
Options feature the following.
This command returns 0 on success, another on failure.
注意:
1. 指定 sid 的作用不是说只查看sid产生的日志,而是说不要查看sid产生的日志,源码(ttulmgr.c,procexport函数)中是这么写的:

2. 通过上图的189行可以知道,输出只能是16进制的个数,不能是ascii码的
3. 输入格式说明:
1306566730093092 3101:3101 put C8 10 00 00 00 43 00 00 00 4E 54
其中:
1306566730093092 是微妙级时间戳
3101:3101 分别是 sid:mid 即: serverid ,masterid; 如果masterid没有,则为0
put: 是指令的文本描述
c8…: 这些就是指令参数的16进制表示了