Submit a ticketCall us

WebinarWebinar: A checklist for planning your Network Performance Monitor (NPM) upgrade

Are you ready for your next upgrade? To help you plan smoothly, join this webcast to learn more about, SolarWinds® Orion® Installer, SolarWinds Upgrade Advisor, Upgrades Guides, Training Videos, and other resources available. We’ll share key upgrade planning considerations, lessons learned from customers with practical advice from SolarWinds Product Experts. We’ll also give practical tips to identify the estimated time needed and resources, how to prepare the business and IT staff for changes, ways to plan for required system changes, and more.

Register now.

Home > Success Center > Server & Application Monitor (SAM) > SAM - Knowledgebase Articles > Convert WMI to RPC

Convert WMI to RPC

Table of contents

Overview

The following SQL Script converts the polling method of all existing Windows service component monitors from WMI to RPC.

You can copy the code below, paste it in Notepad, and save it with the .sql extension.

Environment

All SAM versions

Detail

-- Set the below variable as @Value = 'RPC' to update all existing Windows Service and Process
-- components\component templates to use 'RPC (Remote Procedure Call' fetching method setting.
-- And set it as @Value = 'WMI' to update all existing Windows Service and Process
-- components\component templates to use 'WMI (Windows Management Instrumentation' fetching method setting.

DECLARE    @Value NVARCHAR(max)
SELECT @Value = 'RPC' --'WMI'
   
UPDATE 
    APM_ComponentSetting 
SET 
    [Value] = @Value
WHERE 
    [ComponentID] IN 
    (
        SELECT 
            c.ID 
        FROM 
            APM_Component c
        WHERE 
            c.ComponentType IN (1, 9)
    ) AND [Key] = 'FetchingMethod' AND [ValueType] = 5

UPDATE 
    APM_ComponentTemplateSetting 
SET 
    Value = @Value 
WHERE 
    [ComponentTemplateID] IN 
    (
        SELECT 
            ct.ID 
        FROM 
            APM_ComponentTemplate ct
        WHERE 
            ct.ComponentType IN (1, 9)
    ) AND [Key] = 'FetchingMethod' AND [ValueType] = 5
GO

 

Last modified

Tags

Classifications

Public