Automated Server Naming

Author Message
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)
0
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!
 
#1
    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)
    0
    Found a solution using a powershell script and the "Run VMM Powershell Script" activity in the 2012 VMM IP.
     
    #2
      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 2 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2013 ASPPlayground.NET Forum Version 3.9