Archives for: November 2008

Update MOM Agent Settings

21/11/08 | by Paullo [mail] | Categories: MOM

Introduction:

If MOM global settings have been modified, you may want to update MOM agent settings for all computers.

Procedures:

1. Move server from Unmanaged Computers to Agent-managed Computers

Open MOM Administrator Console, go to Unmanaged Computers, delete all entries that you would like to monitor by MOM. Currently I am leaving all the UPS, AGEE, and Windows NT servers in the Unmanaged Computers folder.

2. Approve manually installed agent in Pending Actions

Refresh Pending Actions, and approve entries with “Approve manual agent installation”. If you are not able to finish this process for some servers, please check that MOM account momacc having access to the servers.

3. Change Control Level from None to Full

After approval, the servers will be in Agent-managed Computers folder, but with Control Level None. We need to change the control level to FULL before we are able to update the agent settings from the Administrator Console.

delete from configuration where
idcomputer=(select idcomputer from computer where name = ’servername’)
and DataCategory=’Management’ and DataName= ‘ManageType’
and DataValue=’Group’

This script has been transformed into Stored Procedure in OnePoint, called Z_ControlLevelNoneToFull (as below). Add coma delimited string as input to change the control level. Example: exec Z_ControlLevelNoneToFull ‘srv1,srv2’.

Code:

ALTER PROCEDURE [dbo].[Z_ControlLevelNoneToFull]
(  @ServerList varchar(500)) AS
BEGIN
  declare @spot smallint, @str varchar(30)
    while @ServerList <> ''
      begin
    set @spot = charindex(',', @ServerList)
    if @spot>0
      begin
        set @str=rtrim(ltrim(left(@ServerList, @spot-1)))
    set @ServerList = right(@ServerList, LEN(@ServerList)-@spot)
            end
          else
      begin
        set @str = rtrim(ltrim(@ServerList))
             set @ServerList = ''
            end
    Print @str
      delete from configuration where idcomputer=
      (select idcomputer from computer where name = @str)
      and DataCategory='Management' and DataName= 'ManageType'
            and DataValue='Group'
  end
END

a. For computers having more than one entry in MOM database

Some servers have two entries in MOM, which may have been caused by installing MOM agent before joining to domain. I use the following script to remove the old entry, then we can use the above store procedure to change the control level for this server.

select name, idcomputer, * from computer where name = ‘SRV’
delete from computer where name = ‘SRV’ and domain != ‘DomainName’

4. Update MOM Agent Settings

In Administrator Console, Agent-managed Computers, select all computers with control level FULL, right click and click “Update Agent Settings”.

Ozzy Citrix Noobs

Hi We call us Citrix Noobs, because we are noobs. We are a group of noobs that is heckless and restless. We are not fearing of anything, and we tend to do the best in daily noobing. Join us if you are also noobs, and will keep noobing.

November 2008
Mon Tue Wed Thu Fri Sat Sun
 << < Current> >>
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Misc

XML Feeds

What is RSS?

powered by b2evolution free blog software