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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
aimingoo的专栏
aimingoo的专栏
IT之家
IT之家
N
Netflix TechBlog - Medium
MyScale Blog
MyScale Blog
雷峰网
雷峰网
T
Tailwind CSS Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
The Blog of Author Tim Ferriss
S
Schneier on Security
C
CERT Recently Published Vulnerability Notes
Help Net Security
Help Net Security
云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
I
InfoQ
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
G
GRAHAM CLULEY
Blog — PlanetScale
Blog — PlanetScale
G
Google Developers Blog
I
Intezer
大猫的无限游戏
大猫的无限游戏
AWS News Blog
AWS News Blog
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
Spread Privacy
Spread Privacy
博客园_首页
宝玉的分享
宝玉的分享
量子位
T
Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Security Latest
Security Latest
C
Cybersecurity and Infrastructure Security Agency CISA
SecWiki News
SecWiki News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - Franky
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
The Exploit Database - CXSecurity.com
T
Tenable Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
The Register - Security
The Register - Security
V2EX - 技术
V2EX - 技术
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Last Week in AI
Last Week in AI
L
LangChain Blog
T
Tor Project blog
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客

博客园 - 大智弱驴

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