如何生成MP for SCOM (system center operation manager) via SealMP.exe
来源:互联网 发布:加入农村淘宝什么条件 编辑:程序博客网 时间:2024/06/12 00:30
参照http://blogs.technet.com/b/jonathanalmquist/archive/2008/08/19/seal-a-management-pack.aspx
注意:这个public key 被用了在 unseal.xml,就是publictoken.这个每次都要手工修改。
Sealing a Management Pack is easy. Although, it can be frustrating the first time through. It's a process that requires a few different pieces to interact, so preparation is key. Going through some simple steps now will save time in the future.
- Create a directory somewhere on a workstation where you'll be sealing MP's. For this example, I created the directory c:\MPS
- I also created four directories within c:\MPS
- \Input - this directory will contain the MP to be sealed (the xml file)
- \Output - this directory will contain the sealed MP (the final mp file)
- \MP - this directory will contain all referenced MP’s
- \Key - this directory will contain the pair key file
- Copy MPSeal.exe from the 安装盘下文件夹 "SupportTools" directory to the c:\MPS directory.
- Copy sn.exe to the c:\MPS directory
- If you need a copy, the sn.exe utility comes with .NET Framework SDK
- Copy your unsealed MP (xml file) into the \Input directory
- Copy all the *.mp files from the RMS installation directory into the \MP directory
- Usually "%Program Files%\System Center Operations Manager 2007\"
- Also, copy all *.mp files that you'll be referencing to the \MP directory
- TIP: I'd just keep this directory updated with all available current MP's (ie; Active Directory, Exchange, etc)
- TIP: I'd just keep this directory updated withall available current MP's (ie; Active Directory, Exchange, etc)
Finally, the c:\MPS directorywill look like this.
The two files highlighted:
Command.txt is just a file I created that contains the commands needed to sealthe management pack. The MPResources.resources file is automatically createdwhile sealing management packs. This is not anything you’ll need to copy intothe directory.
Now, we're ready to seal ourManagement Pack.
Open a command prompt andnavigate to your work directory (c:\MPS). Run these commands in sequence.(beware of word wrap with these commands)
- sn -k c:\mps\key\PairKey.snk
- sn -p c:\mps\key\PairKey.snk c:\mps\key\PubKey
- sn -tp c:\mps\key\PubKey
- mpseal c:\mps\input\unsealed_mp.xml /I "c:\mps\mp" /Keyfile "c:\mps\key\PairKey.snk" /Company "Your Company" /Outdir "c:\mps\output"
You should now have your sealedMP in the Output directory. And, you'll have a working directory for later use.Just remember to keep the MP versions in the c:\MPS\MP directory current withyour Management Groups. Otherwise, you'll get version errors while attemptingto run the MPSeal tool.
Hint: Once you've created the key the firsttime around, it's not necessary to create a new key each time you seal a MP.The current key may be reused. So, the only step you'll need to actually doafter the first run is the last step. How's that for easy!
A note todevelopers: I’ve hadsome questions about where theMPResources.resources file mentionedabove is created. Specifically, if two build flavor threads (x64 and x86, forexample), compiles at same time and try to create this file under sources, onebuild thread will break.
To solve that problem, executeMPSeal from a different location. Examples below.
This will create theMPResources.resources file in the users %temp% directory.
This will create theMPResources.resources file in the x86 directory I created.
This will create theMPResources.resources file in the x64 directory I created.
- 如何生成MP for SCOM (system center operation manager) via SealMP.exe
- System Center Operations Manager 简介 【SCOM中文系列之一]
- 關於System Center Operation Manager 2007特性
- System Center Operator Manager 2012 SP1之一 SCOM 2012安装初体验
- System Center Operation Manager 2007 的應用及部署.
- system center operation manager 2007 R2 performance counter viewer
- System Center 2012 Configuration Manager
- System Center Virtual Machine Manager 使用心得
- Mastering System Center Operations Manager 2007
- System Center Operations Manager 2007 Unleashed
- 配置System Center Data Protection Manager 2007
- System Center 2012 Configuration Manager Overview
- 升级 System Center 2012 R2 Configuration Manager
- System center virtual machine manager 2008 R2安装部署
- 数据库的好帮手:Microsoft System Center Operations Manager
- System Center Operations Manager 2012 SP1自定义视图
- System Center Operations Manager 2012 SP1 处理“未监控”对象
- 使用应答文件部署System Center Configuration Manager
- IMP导入数据 出现ORA-01691问题 解决办法
- 根据两点经纬度计算距离
- ejb
- 实现一个冒泡提示的浮点数编辑框
- javascript中Eval()函数用法
- 如何生成MP for SCOM (system center operation manager) via SealMP.exe
- 【Excel服务器】表间公式提数后/数据规范返回值后对用户编辑单元格权限的控制
- 输入摄氏温度值(C),转换为华氏温度值(F)并输出
- label的简单用法
- TCP连接与关闭
- Ubuntu下面安装ssh服务和配置
- Codejock
- GRASP通用职责软件分配模式
- android多媒体框架之流媒体AHandler消息机制----base on jellybean(十)