免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1669 | 回复: 0
打印 上一主题 下一主题

如何使nbpem进程立即更新修改的策略 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-17 11:10 |只看该作者 |倒序浏览

How to update the "nbpem" daemon after making changes to a policy without waiting for the Policy Update Interval to take effect

The Veritas NetBackup (tm) 6.0 System Administrator's Guide describes a new global attribute called Policy Update Interval.  This controls how often the NetBackup Policy Execution Manager (nbpem) daemon will check for new policies or for updates to existing policies.  By default, the value is 10 minutes. This means that new policies or changes to existing policies will not go active immediately.  The nbpemreq command can be used in situations where a change to a policy needs to take effect immediately.
To submit changes to a policy immediately,  run the following command:
# cd /usr/openv/netbackup/bin/admincmd
# ./nbpemreq -updatepolicies
This will cause the nbpem daemon to update with any changes to policies.  A policy that has an open backup window and is scheduled to run will appear in the Activity Monitor.
Unified logging will show entries every ten minutes for JobScheduler::doPolicyChanges.  These messages will appear at a logging level of 5 for nbpem.  Anytime a policy is modified,  additional log messages will appear listing what policy has been updated.  These messages will be logged at a logging level of 2 for nbpem.
To list all policy changes that have occurred over the last twelve hours,  run the command:
# vxlogview -p 51216 -o 116 --who 'doPolicyChanges' -t 12:00:00 -d all
The following messages show a normal check for policy updates that detected no changes.
11/11/05 10:30:57.495 [Debug] NB 51216 nbpem 116 PID:5844 TID:1 [No context] 5 [JobScheduler::doPolicyChanges] +++ ENTERING +++ : obj = ffbff120 (JobScheduler.cpp:5013)
11/11/05 10:30:57.495 [Debug] NB 51216 nbpem 116 PID:5844 TID:1 [No context] 5 [JobScheduler::doPolicyChanges] --- EXITING --- : obj = ffbff120 (JobScheduler.cpp:5013)
The following messages show a normal check for policy updates that occurred ten minutes later.  This check detected one policy in need of updating.
11/11/05 10:40:57.458 [Debug] NB 51216 nbpem 116 PID:5844 TID:1 [No context] 5 [JobScheduler::doPolicyChanges] +++ ENTERING +++ : obj = ffbff120 (JobScheduler.cpp:5013)
11/11/05 10:40:57.459 [Debug] NB 51216 nbpem 116 PID:5844 TID:1 [No context] 2 [JobScheduler::doPolicyChanges] updating policy test-policy(JobScheduler.cpp:5024)
11/11/05 10:40:58.100 [Debug] NB 51216 nbpem 116 PID:5844 TID:1 [No context] 5 [JobScheduler::doPolicyChanges] --- EXITING --- : obj = ffbff120 (JobScheduler.cpp:5013)
The following messages were logged by running the nbpemreq command to update policies immediately.  This detected two policies in need of updating.
11/11/05 10:41:56.560 [Debug] NB 51216 nbpem 116 PID:5844 TID:9 [No context] 5 [JobScheduler::doPolicyChanges] +++ ENTERING +++ : obj = ffbff120 (JobScheduler.cpp:5013)
11/11/05 10:41:56.560 [Debug] NB 51216 nbpem 116 PID:5844 TID:9 [No context] 2 [JobScheduler::doPolicyChanges] updating policy __DSSU_POLICY_disk-stu1(JobScheduler.cpp:5024)
11/11/05 10:41:56.648 [Debug] NB 51216 nbpem 116 PID:5844 TID:9 [No context] 2 [JobScheduler::doPolicyChanges] updating policy __DSSU_POLICY_disk-stu0(JobScheduler.cpp:5024)
11/11/05 10:41:56.717 [Debug] NB 51216 nbpem 116 PID:5844 TID:9 [No context] 5 [JobScheduler::doPolicyChanges] --- EXITING --- : obj = ffbff120 (JobScheduler.cpp:5013)

The logs can be searched for these entries to verify that a change to a policy has been registered with NetBackup 6.0.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1604/showart_2029645.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP