You can see an example of a script that relies on MOF to add Simple Network Management Protocol
(SNMP) functionality to a computer system at http://msdn2.microsoft.com/en-us/library/
aa393621.aspx. This utility uses the following syntax:
mofcomp [-check] [-N:
] [-class:updateonly|-class:createonly]
[-instance:updateonly|-instance:createonly] [-B:]
[-P:] [-U:] [-A:] [-WMI] [-AUTORECOVER]
[-MOF:] [-MFL:] [-AMENDMENT:]
[-ER:] [-L:]
The following list describes each of the command line arguments.
-check Performs a syntax check of the script only.
-N:path Loads the result into the specified namespace.
-class:updateonly Performs class updates, rather than creating a new class.
-class:safeupdate Performs a class update only when there aren??™t any conflicts.
64 CHAPTER 3 PERFORMING ESSENTIAL MAINTENANCE TASKS
-class:forceupdate Forces the system to update the class by resolving conflicts if possible.
-class:createonly Creates new classes only; the compiler won??™t update existing classes.
-instance:updateonly Performs instance updates, rather than creating new instances.
Pages:
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224