Chinaunix首页 | 论坛 | 博客
  • 博客访问: 666972
  • 博文数量: 128
  • 博客积分: 265
  • 博客等级: 二等列兵
  • 技术积分: 1464
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-27 20:44
个人简介

just do it

文章分类

全部博文(128)

文章存档

2023年(1)

2020年(1)

2019年(1)

2018年(3)

2017年(6)

2016年(17)

2015年(16)

2014年(39)

2013年(34)

2012年(10)

分类: SOLARIS

2016-08-05 08:50:56

更改日志文件的位置
统一日志记录文件会占用大量的磁盘空间。 如果需要,可以将其定向至其他位置。
要将统一日志定向至其他文件系统,请输入以下命令:
■ 在 UNIX 上:
/usr/openv/netbackup/bin/vxlogcfg -a -p NB -o Default -s LogDirectory=new_log_path

“/usr/openv/logs”文件夹不断增长,直到硬盘撑满,造成NBU服务停止。
   “/usr/openv/logs”是NBU默认统一日志记录存放的位置。
bash-3.00# du -sh *
  39K   bmrd
   1K   bmrsetup
   2K   nbars
   6K   nbaudit
 268K   nbdisco
  42K   nbemm
   6K   nbevtmgr
   6K   nbftclnt
   6K   nbim
  13K   nbjm
  13K   nbkms
  49K   nbpem
  12K   nbrb
  18M   nbrmms
 110M   nbsl
   2K   nbstserv
  53K   nbsvcmon
   1K   nbutils
  47K   nbvault
   “/usr/openv/netbackup/logs”是NBU排除日志存放位置。实际上NBU还有很多不常用的日志。

“/usr/openv/netbackup/bin/vxlogcfg -l -o default -p NB”查看当前的日志级别的设置

点击(此处)折叠或打开

  1. bash-3.00# vxlogcfg -l -o default -p NB
  2. Configuration settings for originator 112, of product 51,216...
  3. LogDirectory = /usr/openv/logs/
  4. DebugLevel = 1
  5. DiagnosticLevel = 6
  6. DynaReloadInSec = 0
  7. LogToStdout = False
  8. LogToStderr = False
  9. LogToOslog = False
  10. RolloverMode = FileSize | LocalTime
  11. LogRecycle = False
  12. MaxLogFileSizeKB = 51200
  13. RolloverPeriodInSeconds = 43200
  14. RolloverAtLocalTime = 0:00
  15. NumberOfLogFiles = 3
  16. OIDNames =
  17. AppMsgLogging = ON
  18. L10nLib = /usr/openv/lib/libvxexticu
  19. L10nResourceDir = /usr/openv/resources
  20. SyslogIdent = VRTS-NB
  21. SyslogOpt = 0
  22. SyslogFacility = LOG_LOCAL5
  23. LogFilePermissions = 664
默认设置的情况 “DebugLevel = 1 ”,“DiagnosticLevel = 6”。但如果备份的数据量极大也会造成日志量极大,在这种情况下可以把“DebugLevel”和“DiagnosticLevel”设置为0。
   “./vxlogcfg -a -p 51216 -o ALL -s DebugLevel=0 -s DiagnosticLevel=0”这是把所有的日志的“DebugLevel”和“DiagnosticLevel”都设置为“0”。(51216指的就是NB)


从首图上我们发现只有“nbemm”和“nbsl”的日志量较大,我们也可以只更改他们的设置。
“./vxlogcfg -a -p NB -o 111 -s DebugLevel=0 -s DiagnosticLevel=0”单独更改nbemm的属性。(111针对的是nbemm)


“./vxlogcfg -a -p NB -o 132 -s DebugLevel=0 -s DiagnosticLevel=0”单独更改nbsl的属性。(132针对的是nbsl)
使用命令删除以前的日志(unified log),“/usr/openv/netbackup/bin/vxlogmgr -d”。

点击(此处)折叠或打开

  1. bash-3.00# vxlogmgr -d

  2. Following are the files that were found:

  3. /var/log/VRTSsmf/50936-100-2222671762-091209-0000000000.log
  4. /var/log/VRTSsmf/50936-80-2222671762-091209-0000000000.log
  5. /var/log/VRTSsmf/50936-95-2222671762-091209-0000000000.log
  6. /var/log/SYMClma/50936-24-2222671762-111024-0000000000.log
  7. /var/log/SYMClma/50936-24-2222671762-111128-0000000000.log
  8. /var/log/SYMClma/50936-24-2222671762-111223-0000000000.log
  9. /var/log/SYMClma/50936-24-2222671762-120209-0000000000.log
  10. /var/log/SYMClma/50936-24-2222671762-120315-0000000000.log
  11. /usr/openv/logs/nbdisco/51216-400-3232261163-160708-0000000000.log
  12. /usr/openv/logs/nbrmms/51216-222-3232261163-160708-0000000000.log
  13. /usr/openv/logs/nbsl/51216-132-3232261163-160708-0000000000.log
  14. /usr/openv/logs/nbdisco/51216-400-3232261163-160709-0000000000.log
  15. /usr/openv/logs/nbsl/51216-132-3232261163-160709-0000000000.log
  16. /usr/openv/logs/nbrmms/51216-222-3232261163-160709-0000000000.log
  17. /usr/openv/logs/nbdisco/51216-400-3232261163-160710-0000000000.log
  18. /usr/openv/logs/nbsl/51216-132-3232261163-160710-0000000000.log
  19. /usr/openv/logs/nbrmms/51216-222-3232261163-160710-0000000000.log
  20. /usr/openv/logs/nbdisco/51216-400-3232261163-160711-0000000000.log
  21. /usr/openv/logs/nbsl/51216-132-3232261163-160711-0000000000.log
  22. /usr/openv/logs/nbrmms/51216-222-3232261163-160711-0000000000.log
  23. /usr/openv/logs/nbdisco/51216-400-3232261163-160712-0000000000.log
  24. /usr/openv/logs/nbsl/51216-132-3232261163-160712-0000000000.log
  25. /usr/openv/logs/nbrmms/51216-222-3232261163-160712-0000000000.log
  26. /usr/openv/logs/nbdisco/51216-400-3232261163-160713-0000000000.log
  27. /usr/openv/logs/nbsl/51216-132-3232261163-160713-0000000000.log
  28. /usr/openv/logs/nbrmms/51216-222-3232261163-160713-0000000000.log
  29. /usr/openv/logs/nbdisco/51216-400-3232261163-160714-0000000000.log
  30. /usr/openv/logs/nbsl/51216-132-3232261163-160714-0000000000.log
  31. /usr/openv/logs/nbrmms/51216-222-3232261163-160714-0000000000.log
  32. /usr/openv/logs/nbdisco/51216-400-3232261163-160715-0000000000.log
  33. /usr/openv/logs/nbrmms/51216-222-3232261163-160715-0000000000.log
  34. /usr/openv/logs/nbsl/51216-132-3232261163-160715-0000000000.log
  35. /usr/openv/logs/nbdisco/51216-400-3232261163-160716-0000000000.log
  36. /usr/openv/logs/nbsl/51216-132-3232261163-160716-0000000000.log
  37. /usr/openv/logs/nbrmms/51216-222-3232261163-160716-0000000000.log
  38. /usr/openv/logs/nbdisco/51216-400-3232261163-160717-0000000000.log
  39. /usr/openv/logs/nbsl/51216-132-3232261163-160717-0000000000.log
  40. /usr/openv/logs/nbrmms/51216-222-3232261163-160717-0000000000.log
  41. /usr/openv/logs/nbdisco/51216-400-3232261163-160718-0000000000.log
  42. /usr/openv/logs/nbsl/51216-132-3232261163-160718-0000000000.log
  43. /usr/openv/logs/nbrmms/51216-222-3232261163-160718-0000000000.log
  44. /usr/openv/logs/nbdisco/51216-400-3232261163-160719-0000000000.log
  45. /usr/openv/logs/nbsl/51216-132-3232261163-160719-0000000000.log
  46. /usr/openv/logs/nbrmms/51216-222-3232261163-160719-0000000000.log
  47. /usr/openv/logs/nbdisco/51216-400-3232261163-160720-0000000000.log
  48. /usr/openv/logs/nbsl/51216-132-3232261163-160720-0000000000.log
  49. /usr/openv/logs/nbrmms/51216-222-3232261163-160720-0000000000.log
  50. /usr/openv/logs/nbdisco/51216-400-3232261163-160721-0000000000.log
  51. /usr/openv/logs/nbsl/51216-132-3232261163-160721-0000000000.log
  52. /usr/openv/logs/nbrmms/51216-222-3232261163-160721-0000000000.log
  53. /usr/openv/logs/nbdisco/51216-400-3232261163-160722-0000000000.log
  54. /usr/openv/logs/nbsl/51216-132-3232261163-160722-0000000000.log
  55. /usr/openv/logs/nbrmms/51216-222-3232261163-160722-0000000000.log
  56. /usr/openv/logs/nbdisco/51216-400-3232261163-160723-0000000000.log
  57. /usr/openv/logs/nbsl/51216-132-3232261163-160723-0000000000.log
  58. /usr/openv/logs/nbrmms/51216-222-3232261163-160723-0000000000.log
  59. /usr/openv/logs/nbftclnt/51216-200-3232261163-160723-0000000000.log
  60. /usr/openv/logs/nbevtmgr/51216-231-3232261163-160723-0000000000.log
  61. /usr/openv/logs/nbaudit/51216-293-3232261163-160723-0000000000.log
  62. /usr/openv/logs/nbemm/51216-111-3232261163-160723-0000000000.log
  63. /usr/openv/logs/nbrb/51216-118-3232261163-160723-0000000000.log
  64. /usr/openv/logs/nbjm/51216-117-3232261163-160723-0000000000.log
  65. /usr/openv/logs/nbpem/51216-116-3232261163-160723-0000000000.log
  66. /usr/openv/logs/nbstserv/51216-226-3232261163-160723-0000000000.log
  67. /usr/openv/logs/nbkms/51216-286-3232261163-160723-0000000000.log
  68. /usr/openv/logs/nbim/51216-371-3232261163-160723-0000000000.log
  69. /usr/openv/logs/nbars/51216-362-3232261163-160723-0000000000.log
  70. /usr/openv/logs/bmrd/51216-119-3232261163-160723-0000000000.log
  71. /usr/openv/logs/nbvault/51216-166-3232261163-160723-0000000000.log
  72. /usr/openv/logs/nbsvcmon/51216-163-3232261163-160723-0000000000.log
  73. /usr/openv/logs/nbsl/51216-132-3232261163-160724-0000000000.log
  74. /usr/openv/logs/nbrmms/51216-222-3232261163-160724-0000000000.log
  75. /usr/openv/logs/nbdisco/51216-400-3232261163-160724-0000000000.log
  76. /usr/openv/logs/nbsl/51216-132-3232261163-160725-0000000000.log
  77. /usr/openv/logs/nbrmms/51216-222-3232261163-160725-0000000000.log
  78. /usr/openv/logs/nbdisco/51216-400-3232261163-160725-0000000000.log
  79. /usr/openv/logs/nbsl/51216-132-3232261163-160726-0000000000.log
  80. /usr/openv/logs/nbrmms/51216-222-3232261163-160726-0000000000.log
  81. /usr/openv/logs/nbdisco/51216-400-3232261163-160726-0000000000.log
  82. /usr/openv/logs/nbftclnt/51216-200-3232261163-160726-0000000000.log
  83. /usr/openv/logs/nbevtmgr/51216-231-3232261163-160726-0000000000.log
  84. /usr/openv/logs/nbaudit/51216-293-3232261163-160726-0000000000.log
  85. /usr/openv/logs/nbemm/51216-111-3232261163-160726-0000000000.log
  86. /usr/openv/logs/nbrb/51216-118-3232261163-160726-0000000000.log
  87. /usr/openv/logs/nbjm/51216-117-3232261163-160726-0000000000.log
  88. /usr/openv/logs/nbpem/51216-116-3232261163-160726-0000000000.log
  89. /usr/openv/logs/nbkms/51216-286-3232261163-160726-0000000000.log
  90. /usr/openv/logs/nbim/51216-371-3232261163-160726-0000000000.log
  91. /usr/openv/logs/bmrd/51216-119-3232261163-160726-0000000000.log
  92. /usr/openv/logs/nbsvcmon/51216-163-3232261163-160726-0000000000.log
  93. /usr/openv/logs/nbvault/51216-166-3232261163-160726-0000000000.log
  94. /usr/openv/logs/nbrmms/51216-222-3232261163-160727-0000000000.log
  95. /usr/openv/logs/nbsl/51216-132-3232261163-160727-0000000000.log
  96. /usr/openv/logs/nbdisco/51216-400-3232261163-160727-0000000000.log
  97. /usr/openv/logs/nbrmms/51216-222-3232261163-160728-0000000000.log
  98. /usr/openv/logs/nbsl/51216-132-3232261163-160728-0000000000.log
  99. /usr/openv/logs/nbdisco/51216-400-3232261163-160728-0000000000.log
  100. /usr/openv/logs/nbrmms/51216-222-3232261163-160729-0000000000.log
  101. /usr/openv/logs/nbsl/51216-132-3232261163-160729-0000000000.log
  102. /usr/openv/logs/nbdisco/51216-400-3232261163-160729-0000000000.log
  103. /usr/openv/logs/nbftclnt/51216-200-3232261163-160729-0000000000.log
  104. /usr/openv/logs/nbevtmgr/51216-231-3232261163-160729-0000000000.log
  105. /usr/openv/logs/nbaudit/51216-293-3232261163-160729-0000000000.log
  106. /usr/openv/logs/nbemm/51216-111-3232261163-160729-0000000000.log
  107. /usr/openv/logs/nbrb/51216-118-3232261163-160729-0000000000.log
  108. /usr/openv/logs/nbjm/51216-117-3232261163-160729-0000000000.log
  109. /usr/openv/logs/nbpem/51216-116-3232261163-160729-0000000000.log
  110. /usr/openv/logs/nbkms/51216-286-3232261163-160729-0000000000.log
  111. /usr/openv/logs/nbim/51216-371-3232261163-160729-0000000000.log
  112. /usr/openv/logs/bmrd/51216-119-3232261163-160729-0000000000.log
  113. /usr/openv/logs/nbsvcmon/51216-163-3232261163-160729-0000000000.log
  114. /usr/openv/logs/nbvault/51216-166-3232261163-160729-0000000000.log
  115. /usr/openv/logs/nbrmms/51216-222-3232261163-160730-0000000000.log
  116. /usr/openv/logs/nbsl/51216-132-3232261163-160730-0000000000.log
  117. /usr/openv/logs/nbdisco/51216-400-3232261163-160730-0000000000.log
  118. /usr/openv/logs/nbrmms/51216-222-3232261163-160731-0000000000.log
  119. /usr/openv/logs/nbsl/51216-132-3232261163-160731-0000000000.log
  120. /usr/openv/logs/nbdisco/51216-400-3232261163-160731-0000000000.log
  121. /usr/openv/logs/nbrmms/51216-222-3232261163-160801-0000000000.log
  122. /usr/openv/logs/nbsl/51216-132-3232261163-160801-0000000000.log
  123. /usr/openv/logs/nbdisco/51216-400-3232261163-160801-0000000000.log
  124. /usr/openv/logs/nbftclnt/51216-200-3232261163-160801-0000000000.log
  125. /usr/openv/logs/nbevtmgr/51216-231-3232261163-160801-0000000000.log
  126. /usr/openv/logs/nbaudit/51216-293-3232261163-160801-0000000000.log
  127. /usr/openv/logs/nbemm/51216-111-3232261163-160801-0000000000.log
  128. /usr/openv/logs/nbrb/51216-118-3232261163-160801-0000000000.log
  129. /usr/openv/logs/nbjm/51216-117-3232261163-160801-0000000000.log
  130. /usr/openv/logs/nbpem/51216-116-3232261163-160801-0000000000.log
  131. /usr/openv/logs/nbkms/51216-286-3232261163-160801-0000000000.log
  132. /usr/openv/logs/nbim/51216-371-3232261163-160801-0000000000.log
  133. /usr/openv/logs/bmrd/51216-119-3232261163-160801-0000000000.log
  134. /usr/openv/logs/nbvault/51216-166-3232261163-160801-0000000000.log
  135. /usr/openv/logs/nbsvcmon/51216-163-3232261163-160801-0000000000.log
  136. /usr/openv/logs/nbrmms/51216-222-3232261163-160802-0000000000.log
  137. /usr/openv/logs/nbsl/51216-132-3232261163-160802-0000000000.log
  138. /usr/openv/logs/nbdisco/51216-400-3232261163-160802-0000000000.log
  139. /usr/openv/logs/nbftclnt/51216-200-3232261163-160802-0000000000.log
  140. /usr/openv/logs/nbevtmgr/51216-231-3232261163-160802-0000000000.log
  141. /usr/openv/logs/nbaudit/51216-293-3232261163-160802-0000000000.log
  142. /usr/openv/logs/nbemm/51216-111-3232261163-160802-0000000000.log
  143. /usr/openv/logs/nbrb/51216-118-3232261163-160802-0000000000.log
  144. /usr/openv/logs/nbjm/51216-117-3232261163-160802-0000000000.log
  145. /usr/openv/logs/nbpem/51216-116-3232261163-160802-0000000000.log
  146. /usr/openv/logs/nbkms/51216-286-3232261163-160802-0000000000.log
  147. /usr/openv/logs/nbim/51216-371-3232261163-160802-0000000000.log
  148. /usr/openv/logs/bmrd/51216-119-3232261163-160802-0000000000.log
  149. /usr/openv/logs/nbvault/51216-166-3232261163-160802-0000000000.log
  150. /usr/openv/logs/nbsvcmon/51216-163-3232261163-160802-0000000000.log
  151. /usr/openv/logs/nbsl/51216-132-3232261163-160803-0000000000.log
  152. /usr/openv/logs/nbrmms/51216-222-3232261163-160803-0000000000.log
  153. /usr/openv/logs/nbdisco/51216-400-3232261163-160803-0000000000.log
  154. /usr/openv/logs/nbrmms/51216-222-3232261163-160804-0000000000.log
  155. /usr/openv/logs/nbsl/51216-132-3232261163-160804-0000000000.log
  156. /usr/openv/logs/nbdisco/51216-400-3232261163-160804-0000000000.log
  157. /usr/openv/logs/nbrmms/51216-222-3232261163-160805-0000000000.log
  158. /usr/openv/logs/nbsl/51216-132-3232261163-160805-0000000000.log
  159. /usr/openv/logs/nbdisco/51216-400-3232261163-160805-0000000000.log
  160. /var/log/VRTSpbx/50936-103-3232261163-160805-0000000067.log
  161. /var/log/VRTSpbx/50936-103-3232261163-160805-0000000068.log
  162. /var/log/VRTSpbx/50936-103-3232261163-160805-0000000069.log
  163. /var/log/VRTSpbx/50936-103-3232261163-160805-0000000070.log
  164. /var/log/VRTSpbx/50936-103-3232261163-160805-0000000071.log

  165. Total 162 file(s)

  166. Are you sure you want to delete the file(s)? (Y/N):
  167. y

  168. Deleting /var/log/VRTSsmf/50936-100-2222671762-091209-0000000000.log ...

  169. Deleting /var/log/VRTSsmf/50936-80-2222671762-091209-0000000000.log ...

  170. Deleting /var/log/VRTSsmf/50936-95-2222671762-091209-0000000000.log ...

  171. Deleting /var/log/SYMClma/50936-24-2222671762-111024-0000000000.log ...

  172. Deleting /var/log/SYMClma/50936-24-2222671762-111128-0000000000.log ...

  173. Deleting /var/log/SYMClma/50936-24-2222671762-111223-0000000000.log ...

  174. Deleting /var/log/SYMClma/50936-24-2222671762-120209-0000000000.log ...

  175. Deleting /var/log/SYMClma/50936-24-2222671762-120315-0000000000.log ...

  176. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160708-0000000000.log ...

  177. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160708-0000000000.log ...

  178. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160708-0000000000.log ...

  179. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160709-0000000000.log ...

  180. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160709-0000000000.log ...

  181. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160709-0000000000.log ...

  182. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160710-0000000000.log ...

  183. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160710-0000000000.log ...

  184. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160710-0000000000.log ...

  185. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160711-0000000000.log ...

  186. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160711-0000000000.log ...

  187. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160711-0000000000.log ...

  188. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160712-0000000000.log ...

  189. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160712-0000000000.log ...

  190. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160712-0000000000.log ...

  191. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160713-0000000000.log ...

  192. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160713-0000000000.log ...

  193. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160713-0000000000.log ...

  194. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160714-0000000000.log ...

  195. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160714-0000000000.log ...

  196. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160714-0000000000.log ...

  197. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160715-0000000000.log ...

  198. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160715-0000000000.log ...

  199. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160715-0000000000.log ...

  200. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160716-0000000000.log ...

  201. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160716-0000000000.log ...

  202. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160716-0000000000.log ...

  203. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160717-0000000000.log ...

  204. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160717-0000000000.log ...

  205. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160717-0000000000.log ...

  206. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160718-0000000000.log ...

  207. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160718-0000000000.log ...

  208. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160718-0000000000.log ...

  209. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160719-0000000000.log ...

  210. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160719-0000000000.log ...

  211. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160719-0000000000.log ...

  212. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160720-0000000000.log ...

  213. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160720-0000000000.log ...

  214. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160720-0000000000.log ...

  215. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160721-0000000000.log ...

  216. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160721-0000000000.log ...

  217. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160721-0000000000.log ...

  218. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160722-0000000000.log ...

  219. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160722-0000000000.log ...

  220. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160722-0000000000.log ...

  221. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160723-0000000000.log ...

  222. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160723-0000000000.log ...

  223. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160723-0000000000.log ...

  224. Deleting /usr/openv/logs/nbftclnt/51216-200-3232261163-160723-0000000000.log ...

  225. Deleting /usr/openv/logs/nbevtmgr/51216-231-3232261163-160723-0000000000.log ...

  226. Deleting /usr/openv/logs/nbaudit/51216-293-3232261163-160723-0000000000.log ...

  227. Deleting /usr/openv/logs/nbemm/51216-111-3232261163-160723-0000000000.log ...

  228. Deleting /usr/openv/logs/nbrb/51216-118-3232261163-160723-0000000000.log ...

  229. Deleting /usr/openv/logs/nbjm/51216-117-3232261163-160723-0000000000.log ...

  230. Deleting /usr/openv/logs/nbpem/51216-116-3232261163-160723-0000000000.log ...

  231. Deleting /usr/openv/logs/nbstserv/51216-226-3232261163-160723-0000000000.log ...

  232. Deleting /usr/openv/logs/nbkms/51216-286-3232261163-160723-0000000000.log ...

  233. Deleting /usr/openv/logs/nbim/51216-371-3232261163-160723-0000000000.log ...

  234. Deleting /usr/openv/logs/nbars/51216-362-3232261163-160723-0000000000.log ...

  235. Deleting /usr/openv/logs/bmrd/51216-119-3232261163-160723-0000000000.log ...

  236. Deleting /usr/openv/logs/nbvault/51216-166-3232261163-160723-0000000000.log ...

  237. Deleting /usr/openv/logs/nbsvcmon/51216-163-3232261163-160723-0000000000.log ...

  238. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160724-0000000000.log ...

  239. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160724-0000000000.log ...

  240. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160724-0000000000.log ...

  241. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160725-0000000000.log ...

  242. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160725-0000000000.log ...

  243. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160725-0000000000.log ...

  244. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160726-0000000000.log ...

  245. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160726-0000000000.log ...

  246. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160726-0000000000.log ...

  247. Deleting /usr/openv/logs/nbftclnt/51216-200-3232261163-160726-0000000000.log ...

  248. Deleting /usr/openv/logs/nbevtmgr/51216-231-3232261163-160726-0000000000.log ...

  249. Deleting /usr/openv/logs/nbaudit/51216-293-3232261163-160726-0000000000.log ...

  250. Deleting /usr/openv/logs/nbemm/51216-111-3232261163-160726-0000000000.log ...

  251. Deleting /usr/openv/logs/nbrb/51216-118-3232261163-160726-0000000000.log ...

  252. Deleting /usr/openv/logs/nbjm/51216-117-3232261163-160726-0000000000.log ...

  253. Deleting /usr/openv/logs/nbpem/51216-116-3232261163-160726-0000000000.log ...

  254. Deleting /usr/openv/logs/nbkms/51216-286-3232261163-160726-0000000000.log ...

  255. Deleting /usr/openv/logs/nbim/51216-371-3232261163-160726-0000000000.log ...

  256. Deleting /usr/openv/logs/bmrd/51216-119-3232261163-160726-0000000000.log ...

  257. Deleting /usr/openv/logs/nbsvcmon/51216-163-3232261163-160726-0000000000.log ...

  258. Deleting /usr/openv/logs/nbvault/51216-166-3232261163-160726-0000000000.log ...

  259. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160727-0000000000.log ...

  260. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160727-0000000000.log ...

  261. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160727-0000000000.log ...

  262. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160728-0000000000.log ...

  263. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160728-0000000000.log ...

  264. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160728-0000000000.log ...

  265. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160729-0000000000.log ...

  266. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160729-0000000000.log ...

  267. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160729-0000000000.log ...

  268. Deleting /usr/openv/logs/nbftclnt/51216-200-3232261163-160729-0000000000.log ...

  269. Deleting /usr/openv/logs/nbevtmgr/51216-231-3232261163-160729-0000000000.log ...

  270. Deleting /usr/openv/logs/nbaudit/51216-293-3232261163-160729-0000000000.log ...

  271. Deleting /usr/openv/logs/nbemm/51216-111-3232261163-160729-0000000000.log ...

  272. Deleting /usr/openv/logs/nbrb/51216-118-3232261163-160729-0000000000.log ...

  273. Deleting /usr/openv/logs/nbjm/51216-117-3232261163-160729-0000000000.log ...

  274. Deleting /usr/openv/logs/nbpem/51216-116-3232261163-160729-0000000000.log ...

  275. Deleting /usr/openv/logs/nbkms/51216-286-3232261163-160729-0000000000.log ...

  276. Deleting /usr/openv/logs/nbim/51216-371-3232261163-160729-0000000000.log ...

  277. Deleting /usr/openv/logs/bmrd/51216-119-3232261163-160729-0000000000.log ...

  278. Deleting /usr/openv/logs/nbsvcmon/51216-163-3232261163-160729-0000000000.log ...

  279. Deleting /usr/openv/logs/nbvault/51216-166-3232261163-160729-0000000000.log ...

  280. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160730-0000000000.log ...

  281. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160730-0000000000.log ...

  282. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160730-0000000000.log ...

  283. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160731-0000000000.log ...

  284. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160731-0000000000.log ...

  285. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160731-0000000000.log ...

  286. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160801-0000000000.log ...

  287. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160801-0000000000.log ...

  288. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160801-0000000000.log ...

  289. Deleting /usr/openv/logs/nbftclnt/51216-200-3232261163-160801-0000000000.log ...

  290. Deleting /usr/openv/logs/nbevtmgr/51216-231-3232261163-160801-0000000000.log ...

  291. Deleting /usr/openv/logs/nbaudit/51216-293-3232261163-160801-0000000000.log ...

  292. Deleting /usr/openv/logs/nbemm/51216-111-3232261163-160801-0000000000.log ...

  293. Deleting /usr/openv/logs/nbrb/51216-118-3232261163-160801-0000000000.log ...

  294. Deleting /usr/openv/logs/nbjm/51216-117-3232261163-160801-0000000000.log ...

  295. Deleting /usr/openv/logs/nbpem/51216-116-3232261163-160801-0000000000.log ...

  296. Deleting /usr/openv/logs/nbkms/51216-286-3232261163-160801-0000000000.log ...

  297. Deleting /usr/openv/logs/nbim/51216-371-3232261163-160801-0000000000.log ...

  298. Deleting /usr/openv/logs/bmrd/51216-119-3232261163-160801-0000000000.log ...

  299. Deleting /usr/openv/logs/nbvault/51216-166-3232261163-160801-0000000000.log ...

  300. Deleting /usr/openv/logs/nbsvcmon/51216-163-3232261163-160801-0000000000.log ...

  301. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160802-0000000000.log ...

  302. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160802-0000000000.log ...

  303. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160802-0000000000.log ...

  304. Deleting /usr/openv/logs/nbftclnt/51216-200-3232261163-160802-0000000000.log ...

  305. Deleting /usr/openv/logs/nbevtmgr/51216-231-3232261163-160802-0000000000.log ...

  306. Deleting /usr/openv/logs/nbaudit/51216-293-3232261163-160802-0000000000.log ...

  307. Deleting /usr/openv/logs/nbemm/51216-111-3232261163-160802-0000000000.log ...

  308. Deleting /usr/openv/logs/nbrb/51216-118-3232261163-160802-0000000000.log ...

  309. Deleting /usr/openv/logs/nbjm/51216-117-3232261163-160802-0000000000.log ...

  310. Deleting /usr/openv/logs/nbpem/51216-116-3232261163-160802-0000000000.log ...

  311. Deleting /usr/openv/logs/nbkms/51216-286-3232261163-160802-0000000000.log ...

  312. Deleting /usr/openv/logs/nbim/51216-371-3232261163-160802-0000000000.log ...

  313. Deleting /usr/openv/logs/bmrd/51216-119-3232261163-160802-0000000000.log ...

  314. Deleting /usr/openv/logs/nbvault/51216-166-3232261163-160802-0000000000.log ...

  315. Deleting /usr/openv/logs/nbsvcmon/51216-163-3232261163-160802-0000000000.log ...

  316. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160803-0000000000.log ...

  317. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160803-0000000000.log ...

  318. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160803-0000000000.log ...

  319. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160804-0000000000.log ...

  320. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160804-0000000000.log ...

  321. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160804-0000000000.log ...

  322. Deleting /usr/openv/logs/nbrmms/51216-222-3232261163-160805-0000000000.log ...

  323. Deleting /usr/openv/logs/nbsl/51216-132-3232261163-160805-0000000000.log ...

  324. Deleting /usr/openv/logs/nbdisco/51216-400-3232261163-160805-0000000000.log ...

  325. Deleting /var/log/VRTSpbx/50936-103-3232261163-160805-0000000067.log ...

  326. Deleting /var/log/VRTSpbx/50936-103-3232261163-160805-0000000068.log ...

  327. Deleting /var/log/VRTSpbx/50936-103-3232261163-160805-0000000069.log ...

  328. Deleting /var/log/VRTSpbx/50936-103-3232261163-160805-0000000070.log ...

  329. Deleting /var/log/VRTSpbx/50936-103-3232261163-160805-0000000071.log ...

-d, --del
将日志文件从产品所配置的文件夹中删除。


-a, --add
注册或创建产品日志配置设置。现有的全部日志设置将被覆盖。请不要使用该
选项来向使用统一日志记录的那些日志设置列表添加产品。而是仅将此选项用
于修改现有的统一日志记录设置。(有-a才能更改设置)

-l, --list
列出以下各项之一:
■ 所有配置的产品。
■ 所有产品的创建者 ID 和 logset。
■ 所有为产品 ID 和创建者 ID 对或产品 ID 和 LogSet 对定义的配置设置。
(所以这里51216就是NB,NB就是51216,NB的产品ID(ProductID)为51216)
-o, --orgid OrgID
对指定的创建者 ID 创建或修改日志配置设置。可以为创建者 ID 提供有效的创
建者 ID(一个数字),或者文本字符串 Default 或文本字符串 ALL。如果创建
者 ID 为 Default,则–s 配置设置为默认设置。如果创建者 ID 为 ALL,则 –s
配置设置适用于给定产品 ID 的所有创建者。(这里就是OriginatorID)
-p, --prodid ProductID
创建或修改 productID 的日志配置设置。
-s, --setting keyname=value
当和 -a(添加选项)一起使用时,设置单个配置设置。keyname 是配置设置
的名称,value 是该设置的值。可以在命令行上使用多个 -s keyname=value 参
数。
DebugLevel
设置调试日志消息的详细级别(调试日志供 Symantec 工程人员使用)。有效
值介于 0 到 6 之间。
DiagnosticLevel
设置诊断日志消息的详细级别(诊断日志供 NetBackup 管理员和用户使用)。
有效值为 0 到 6。零 (0) 表示无调试消息。


./nbcplogs --list-products
###列出可以报告的所有可能的日志
./nbcplogs --list-subproducts  log_product
###列出指定日志产品的所有日志子产品。

通过上面命令得出OriginatorID对应关系



阅读(11266) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~