程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> NBU日志清除辦法

NBU日志清除辦法

編輯:關於PHP編程

NBU日志清除辦法


更改日志文件的位置
統一日志記錄文件會占用大量的磁盤空間。 如果需要,可以將其定向至其他位置。
要將統一日志定向至其他文件系統,請輸入以下命令:
■ 在 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對應關系



  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved