惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
量子位
小众软件
小众软件
C
Cybersecurity and Infrastructure Security Agency CISA
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tenable Blog
V
Vulnerabilities – Threatpost
Know Your Adversary
Know Your Adversary
T
Threat Research - Cisco Blogs
Latest news
Latest news
Spread Privacy
Spread Privacy
C
Cyber Attacks, Cyber Crime and Cyber Security
NISL@THU
NISL@THU
T
Tor Project blog
Hacker News: Ask HN
Hacker News: Ask HN
V2EX - 技术
V2EX - 技术
T
The Exploit Database - CXSecurity.com
博客园 - 三生石上(FineUI控件)
K
Kaspersky official blog
Cyberwarzone
Cyberwarzone
博客园 - 叶小钗
博客园 - 聂微东
Last Week in AI
Last Week in AI
爱范儿
爱范儿
腾讯CDC
博客园 - Franky
美团技术团队
J
Java Code Geeks
O
OpenAI News
L
Lohrmann on Cybersecurity
Simon Willison's Weblog
Simon Willison's Weblog
有赞技术团队
有赞技术团队
T
Threatpost
G
GRAHAM CLULEY
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
I
Intezer
N
News and Events Feed by Topic
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
S
Security @ Cisco Blogs
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
Stack Overflow Blog
Stack Overflow Blog
Scott Helme
Scott Helme
H
Hacker News: Front Page
Cloudbric
Cloudbric

博客园 - 大智弱驴

Windows 2008登录日志说明 在Exchange 2003的Windows 2003 AD域改名 如何解决Outlook搜索问题 SCOM 2007配置数据库整理设置 SCOM 2007 Gateway 安装手册 Exchange 2007实施问题集锦 ISA Server 2004 0x80004005错误 解决rendom后客户端改名失败的问题 使用Exchange查看客户端的连接状态 使用PrintMig迁移打印机 关于Hyper-V 如何修改Windows 2008 Core的桌面分辨率 激活Windows 2008 Core Windows Server 2008 Core模式下简单配置命令 限制域中账户在不同计算机上重复登录的脚本 国际信息安全管理标准体系--BS7799 Core IO学习心得 Project中如何设置非标准工作时间 ISA Firewall服务启动报告Error Code 212994
MOM 2005 Maintenance Mode Summary(转载)
大智弱驴 · 2009-10-12 · via 博客园 - 大智弱驴

MOM 2005 Maintenance Mode Summary

来源:http://ianblyth.spaces.live.com/blog/cns!6367F8AACDBE66A1!190.entry

A much requested feature from MOM 2000. But there are quirks with it.

It is recommended that when servers are being worked that they be put into maintenance mode. This prevents the console from receiving new alerts from that server while it is being worked on. The console also shows that the server is in maintenance mode by showing a small spanner by the server’s name.

There are three methods of putting a server into maintenance mode. This can be done via the console gui or via a choice of two command line utilities. These are MOMinfo.exe which is part of the MOM 2005 Resource Kit and MaintenaceModeUtility.exe which is provided as part of the MOM 2005 SDK.

1. Console GUI

In the console right click on the server and click “Put Computer in Maintenance Mode”. In the dialogue box there is a box for the reason and a choice of putting the server into maintenance for a duration in minutes or putting it in maintenance mode until a specific end time. Note that there is no ability to schedule a start time.

Once in maintenance mode the server will display the spanner icon and stay in that mode until the time set. If maintenance is finished early then the server can be right clicked again and chose “Remove Computer From Maintenance Mode”. You will be asked to confirm that.

If the work needs to carry beyond the original end time then right click and chose “Update Maintenance Mode Duration” and you will see the same dialogue box as when you first put the server into maintenance mode.

2. Command Line

The difference between the two utilities is that MOMinfo.exe works at the agent whereas MaintenaceModeUtility.exe works at the MOM server and is generally the preferred method.

2a. MOMINFO

This utility is also used for dumping rules that the agent is running, clearing queues and enable script debugging.

MOMInfo.exe /maintenancemode:<timeout>

The time is in seconds and if no time is set it defaults to -1 which is infinite. Run the utility set to “exit” to remove the server from maintenance mode.

e.g.       MOMInfo.exe /maintenancemode:exit

Optional           /server:<servername> to run it on a remote server.

If no server is chosen then it defaults to the server that it is installed on.

Because this tool initiates the communication from the agent, if the agent cannot contact the MOM server, the agent will not appear to be in maintenance mode in the console.

This is best run as a scheduled task when you know that maintenance work will be done and the length of time.

2b. MaintenaceModeUtility

This is provided as a VB project to compile and also to alter to suit your requirements. However a compiled version exists at

http://www.momsolutions.org/Tools/MaintenanceModeUtility/Maintenance.htm

Version 1.0 is the sample code compiles and version 1.01 has been altered to add a timeflag. Copy the exe and the dll to a directory on the MOM server’s hard disk.

MaintenanceModeUtility -a DOMAIN ServerName 120

The time is in minutes. This is generally more useful that mominfo which is in seconds.

Usage:

MaintenanceModeUtility.exe -l|-g|-a|-r [ComputerGroupName time]|[ComputerDomain ComputerName time]

-l: lists all computers in maintenance mode.

-g: lists available computer groups.

-a: places computers in maintenance mode.

-r: removes computers from maintenance mode.

Examples:

MaintenanceModeUtility.exe -l

MaintenanceModeUtility.exe -g

MaintenanceModeUtility.exe -a ComputerGroupToAdd time

MaintenanceModeUtility.exe -r ComputerGroupToRemove time

MaintenanceModeUtility.exe -a DOMAIN ComputerToAdd time

MaintenanceModeUtility.exe -r DOMAIN ComputerToRemove time

Again this is best run as a scheduled task when you know that maintenance work will be done and the length of time.

Tip 1

As this utility has the ability to run against a computer group you can set these groups up and have a scheduled task for each group if there is always the same maintenance window. Alternatively have the one scheduled task with the computer group and change the date and time to start as required and include a list of servers in the group for that particular work window.

Tip 2

Justin Harter has written a script that will create a scheduled job on the fly and then delete itself when finished.

Info and script at

http://spaces.msn.com/jharter/blog/cns!39CE28DB5474A6C7!293.entry