Chinaunix首页 | 论坛 | 博客
  • 博客访问: 78489
  • 博文数量: 15
  • 博客积分: 1431
  • 博客等级: 上尉
  • 技术积分: 190
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-20 13:43
文章分类

全部博文(15)

文章存档

2010年(2)

2009年(2)

2008年(11)

我的朋友

分类: 服务器与存储

2008-09-17 11:29:50


设置VxUL日志的收集级别为最大(5),设置信息保存在/usr/openv/netbackup/nblog.conf文件中
/usr/openv/netbackup/bin/vxlogcfg -a --prodid NB --orgid All -s DebugLevel=5 -s DiagnosticLevel=5
/usr/openv/netbackup/bin/vxlogcfg -l --prodid NB --orgid default
日志目录为/usr/openv/logs   文件的命名格式为----.log
 
指定时间段日志
vxlogview -p 51216 -b "07/21/05 1:30:00 PM" -e "7/21/05 2:32:00 PM"
 
指定jobid的日志
vxlogview -p 51216 -X "jobid=12345"
 
指定更多条件的日志
vxlogview --where "((sev = ERR) || (sev = CRIT) || (sev = EMERG)) && (stdate >= '10/18/2005 00:00:00 AM')"

VxUL配置和管理命令:
[root@dong logs]# vxlogcfg ?
vxlogcfg version 1.2.12.0
VERITAS Software Corporation
Copyright 2005 VERITAS Software Corporation. All rights reserved.
vxlogcfg - A command line tool to add/remove product log configuration.
Usage: vxlogcfg -a -p -c -n [-q]
       vxlogcfg -a [-p ] [-o ] -s [-q]
       vxlogcfg -r [-p ] [-o ] [-s ] [-q]
       vxlogcfg -l [-p ] [-o ][-q]
       vxlogcfg [-h]
       vxlogcfg [-v]
options:
   -a,--add                 Create the product log configuration settings.
                            The existing settings will be overwritten.
   -r,--remove              Remove the product log configuration settings.
   -l,--list                Display configuration settings.
   -p,--prodid      Modify/add configuration settings for given productID.
   -o,--orgid        Modify/add log configuration settings for the given
                            originator ID. Originator ID can be passed as either
                            a valid originator ID (a number) or it can be "Default.
                            If originator ID is "Default" then the configuration
                            setting given by -s will be considered as default setting.
                            If originator ID is "ALL" then the configuration
                            setting given by -s will be considered
                            for all the originators of given product ID.
   -c,--config Provide the configuration path configpath from which
                            product log configuration settings should be read.
                            For example, on Windows, the absolute path to the
                            registry settings is SOFTWARE\\VERITAS\\PRODUCTA
                            On UNIX, the absolute path to the configuration file
                            is /opt/vrts/ProductA/log.conf.
   -n,--names        Specify abbreviated or short names for the product.
                            Multiple names should be separated by a comma.
   -s,--setting Set individual configuration setting.
          OR               "keyname" is the configuration settings name
                           and "value" is the value for that setting.
                            Multiple settings can be added by providing
                            multiple -s options.
   -s,--setting    While removing a configuration setting, provide
                            only "keyname" with -r option.
                            Multiple settings can be removed by providing
                            multiple -s options.
   -q,--quiet               Do not display error messages; quiet mode.
   -v,--version             Display the version of the vxlogcfg command.
   -h,--help                Display vxlogcfg usage information.
  
  
  
========================================================
[root@dong logs]# /usr/openv/netbackup/bin/vxlogmgr ?
V-1-3-9 An unknown argument ? was passed.
Usage: vxlogmgr {-d|-c|-m|-s} [-a] [-f dir] [-q] [-z] [-v] [-h]
       vxlogmgr {-d|-c|-m|-s} [-p prodid] [-o orgid] [-n days] [-t time] [-b date] [-e date] [-f dir] [-q] [-z] [-v] [-h]
       vxlogmgr {-d|-c|-m|-s} [-w query] [-f dir] [-q] [-z] [-v] [-h]
actions:
   -d,--del                 Delete the log files from the folder configured by the product.
   -c,--cp                  Copy the log files from the log folder to the specified folder.
   -m,--mv                  Move the log files from the log folder to the specified folder.
   -s,--vw                  View the log files.
options:
   -n,--days          Retrieve the log files that were created within the last number of days specified.
   -t,--tail
   -b,--stdate        Retrieve the log files that were created at the given date.
                            Date should be in format '12/29/06 4:42:26 PM'
   -e,--endate        Retrieve the log files that were created up to the given date.
                            Date should be in format '12/29/06 4:42:27 PM'
   -w,--where Query string. Example: "((prodid = 'NB') && (stdate >= '12/29/06 4:42:27 PM'))"
   -v,--version             Display the version of the vxlogmgr command.
   -h,--help                Display vxlogmgr usage information.
阅读(1767) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~