SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Add a new server to Central Management Servers's group/subgroup.


Add a new server to Central Management Servers's group/subgroup.

Author
Message
Minnesota - Viking
Minnesota - Viking
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1223 Visits: 564
I have a CMS setup on my Monitoring server that can talk to all other servers.
It looks like this

I would like to know if there is a way(scripting) to add a new server to this monitoring group. I know I can rt click and register a new server but I want to run a SP rather than using the GUI. Coz when ever a new serve is created I want to run this SP that adds new server to this group.

Please advise. Also does anyone know if we can query the metadata associated with CMS

Ex:

SELECT ServerName, RegisteredGroup FROM master/msdb.SomeTableThatSavesCMSData




Today is the tomorrow you worried about yesterday:-)

J Good
J Good
Mr or Mrs. 500
Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)Mr or Mrs. 500 (563 reputation)

Group: General Forum Members
Points: 563 Visits: 1075
I don't know if this is what you are looking for, but I've always used powershell to do this. If you have a master list of your servers in a table somewhere, then it is really easy to grab those with powershell and register them in the CMS.

Here is a good article to get you started with doing this in powershell:

http://www.mssqltips.com/sqlservertip/2658/using-powershell-to-register-all-sql-instances-into-central-management-server/

Twitter: @SQL_JGood
Blog: sqljgood.wordpress.com/
Minnesota - Viking
Minnesota - Viking
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1223 Visits: 564
I do not know too , I will experiment with it tomorrow and will let you know.


Today is the tomorrow you worried about yesterday:-)

the_SQL
the_SQL
SSC-Addicted
SSC-Addicted (438 reputation)SSC-Addicted (438 reputation)SSC-Addicted (438 reputation)SSC-Addicted (438 reputation)SSC-Addicted (438 reputation)SSC-Addicted (438 reputation)SSC-Addicted (438 reputation)SSC-Addicted (438 reputation)

Group: General Forum Members
Points: 438 Visits: 526
Mr. Factor wrote a really good article on administering SQL Servers with CMS. In the article, he writes of the tables that you can use to manage your registered servers:

https://www.simple-talk.com/sql/sql-tools/registered-servers-and--central-management-server-stores/

I have used these tables to automate registration. I also have an email delivered to me when a server is added, so that I can investigate and categorize.

Karl Lambert
SQL Server Database Administration
Business Intelligence Development
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search