garmbruster
-
Total Posts
:
14
- Scores: 2
-
Reward points
:
10150
- Joined: 1/31/2011
-
Status: offline
|
Automated Server Naming
Wednesday, May 16, 2012 10:18 PM
( permalink)
Hey all, I'm building out a runbook to provision servers and I'm running into a snag. In our environment, our naming scheme has several different "codes" in a name to identify items like location, server role, and product (fairly standard stuff really) and then the whole thing ends with a two digit number. And example would be: LA-OR-MGMT-P-01 I've built CI's in Service Manager to resolve most of the other fields, so that users will be able to select from the product list in the service catalogue and still end up with "OR" (or whatever) in the orchestrator runbook, but I'm having a hell of a time with the name. What I'd really like is for my runbook to be able to take the part of the name it knows (LA-OR-MGMT-P- in this case), check VMM for what servers already exist, and then determine the next available number and fill it in. I'm having a lot of trouble finding a way to do this. Has anyone else run into this yet? Thanks!
|
|
|
|
garmbruster
-
Total Posts
:
14
- Scores: 2
-
Reward points
:
10150
- Joined: 1/31/2011
-
Status: offline
|
Re:Automated Server Naming
Thursday, May 24, 2012 2:59 PM
( permalink)
Found a solution using a powershell script and the "Run VMM Powershell Script" activity in the 2012 VMM IP.
|
|
|
|