IT Consultant Everyday Notes

Just some problems/solutions storage

Tag Archives: SCOM

SCOM: SNMP Configuration

Truesec company sends useful newsletters.

One of the latest (Sept 25th, 2014) contains an advice related to SNMP monitoring with SCOM (by Kare):

The right way of Network Monitoring in SCOM 2012R2

Monitoring Network devices in SCOM 2012R2 is plain simple but unfortunately have a kind of bad reputation. Let me try to clear things out.

You do NOT have to install any SNMP features from Microsoft nor start any SNMP trap service.

This is a common misunderstanding, and unfortunately even in a lot of blogs and books around state you should install SNMP = Don’t. Please just create a discovery and then your Microsoft Monitoring Service (Healthservice.exe) begin listening and using port UDP: 161, 162 (bi-dir) and ICMP as well. This work without installing anything else than SCOM 2012 R2.

Monitoring Netapp, HP and Dell with Windows SNMP

In some situations of HW monitoring the Monitor agent/Proxy only works with Microsoft Windows SNMP, then you need to install Microsoft SNMP on the box that communicate with Netapp/HP/Dell. In this case, either dedicate a Management Server to a Resource Pool and let this Pool take care of the HW SNMP or dedicate a “Machine” to act as a proxy. Otherwise, you end up having two SNMP/ICMP interfaces receiving information not exactly knowing who is taking care of what.

So two things to remember – Do not install any SNMP and if monitoring HW that needs Windows SNMP – keep it away from the Management Server or create a dedicated Resource Pool.

//Kare

Advertisements

SCOM 2012 R2: Prerequisites installation script

Inspired by this script  by Richard Qi I created a modified version for SCOM 2012 R2 on Windows Server 2012. The difference is Report Viewer 2012 (and its prerequisite – SQL Control Types)

Here is the script content (copy it to .ps1 file and run from Power Shell)

NOTE: ReportViewer URL is updated April 14th 2014

#This section installs the .NET and IIS Prereqs for Windows Server 2012#
Import-Module ServerManager
Add-WindowsFeature NET-Framework-Core,AS-HTTP-Activation,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Request-Monitor,Web-Filtering,Web-Stat-Compression,AS-Web-Support,Web-Metabase,Web-Asp-Net,Web-Windows-Auth –restart#This section will download SQL System CLR and the Report Viewer 2012 Runtime Prereq for Windows Server 2008 or Windows Server 2012#
#to a folder called C:\SCOM2012SP1Prereqs. Once the file has been downloaded it will automatically install       #

$dwnld = “C:\SCOM2012SP1Prereqs”
if (!(Test-Path -path $dwnld))
{
New-Item $dwnld -type directory
}
$object = New-Object Net.WebClient

$RPTurl = ‘http://go.microsoft.com/fwlink/?LinkID=239644&clcid=0x409′
$object.DownloadFile($RPTurl, “$dwnld\SQLSysClrTypes.msi”)
Start-Process -FilePath “msiexec.exe” -ArgumentList ” -i $dwnld\SQLSysClrTypes.msi /qb” -Wait

$RPTurl = ‘http://download.microsoft.com/download/F/B/7/FB728406-A1EE-4AB5-9C56-74EB8BDDF2FF/ENU/x86/ReportViewer.msi
$object.DownloadFile($RPTurl, “$dwnld\ReportViewer.msi”)
Start-Process -FilePath “msiexec.exe” -ArgumentList ” -i $dwnld\ReportViewer.msi /qb” -Wait

System Center: SQL installation guide

I was always a bit upset because of missing SQL installation guide for System Center (and other products using SQL as a back—end). Usually a product manual says – install SQL as per SQL installation guide. I guess SQL should be install customly for a specific front-end though.

 

I finally found a white paper prepared by Paul Kelly from Infront describing the process in greater details: http://paulkeely.blogspot.ca/2013/02/sql-server-guide-for-system-center-2012.html

Thank you, Paul!

How to add a Product key to expired evaluation version of SCOM 2012

I have a SCOM 2012 in my lab and one day I found I cannot connect to its management console. I  got a famous error saying about service inner exception Smile

I digged logs and found my evaluation version is expired. Looks like I did not add my MSDN key at the very beginning for some reasons.

Microsoft has an article http://support.microsoft.com/kb/2699998 saying how to add the key to Eval version. Unfortunately, when I tried to run SCOM PowerShell as admin I received:

"The term ‘.\OperationsManager\Functions.ps1’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:67 + Import-Module OperationsManager; .\OperationsManager\Functions.ps1 <<<< ; .\OperationsManager\Startup.ps1
+ CategoryInfo : ObjectNotFound: (.\OperationsManager\Functions.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

The term ‘.\OperationsManager\Startup.ps1’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:100 + Import-Module OperationsManager; .\OperationsManager\Functions.ps1; .\OperationsManager\Startup.ps1 <<<”

PowerShell did not want to connect anyhow to an expired eval version.

Resolution:

1. I had time sync with my VSphere host – I DISABLED the sync

2. DIsabled network adapter (to avoid time sync with DC)

3. Changed time to be in a grace period

4. Followed http://support.microsoft.com/kb/2699998 This time PowerShell connected just fine

5. Changed time back and reenabled the NIC.

Now my SCOM is up and properly activated.

image