2014年10月28日 星期二

Getting error event 31565 in the RMS event logs

Symptom
Getting error event 31565 in the RMS event logs 

Cause
This event was for the Windows server reports MP Version 6.0.6958.0.

This MP works only With SQL 2008 and is not supported with SQL 2005 


Resolution
We need to delete the MP Windows server reports MP.

2014年10月27日 星期一

Remove-SCOMDisabledClassInstance cmdlet times out in OpsMgr 2012

1. The cmdlet needs to be run under the context of a user who is member of the Operations Manager Administrator group.
2. Performance of the SQL server hosting the OperationsManager database needs to be checked and confirmed that it is performing optimally.
3. The objects that you are trying to remove from the Management group are removed after each run of the cmdlet even if it times out. As an alternative, you can run in the cmdlet repeatedly until it completes successfully.

2014年10月7日 星期二

How to manually generate Event ID using EventCreate command

Syntax
========
eventcreate [/s Computer [/u Domain\User [/p Password]] {[/l {APPLICATION|SYSTEM}]|[/so SrcName]} /t {ERROR|WARNING|INFORMATION|SUCCESSAUDIT|FAILUREAUDIT/id EventID /d Description

Parameters

/s   Computer   : Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u   Domain \ User   : Runs the command with the account permissions of the user specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command.
/p   Password   : Specifies the password of the user account that is specified in the /u parameter.
/l { APPLICATION | SYSTEM } : Specifies the name of the event log where the event will be created. The valid log names are APPLICATION and SYSTEM.
/so   SrcName   : Specifies the source to use for the event. A valid source can be any string and should represent the application or component that is generating the event.
/t { ERROR | WARNING | INFORMATION | SUCCESSAUDIT | FAILUREAUDIT } : Specifies the type of event to create. The valid types are ERROR, WARNING, INFORMATION, SUCCESSAUDIT, and FAILUREAUDIT.
/id   EventID   : Specifies the event ID for the event. A valid ID is any number from 1 to 65535.
/d   Description   : Specifies the description to use for the newly created event.
/? : Displays help at the command prompt.

Remarks

·         Custom events cannot be written to the security log.

 

Examples

The following examples show how you can use the eventcreate command:

eventcreate /t error /id 100 /l application /d "Create event in application log"
eventcreate /t information /id 1000 /so winmgmt /d "Create event in WinMgmt source"
eventcreate /t error /id 1000 /so winword /l application /d "new src Winword in application log"
eventcreate /s server /t error /id 100 /l application /d "Remote machine without user credentials"
eventcreate /s server /u user /p password /id 100 /t error /l application /d "Remote machine with user credentials"
eventcreate /s server1 /s server2 /u user /p password /id 100 /t error /so winmgmt /d "Creating events on Multiple remote machines"
eventcreate /s server /u user /id 100 /t warning /so winmgmt /d "Remote machine with partial user credentials"