Archives April 2014

Using PowerCLI to Shutdown a VM resize vCPU and Memory and Power back on!

You ever been in that situation of “Oh no, I need to modify a VM to increase/decrease the number of vCPUs and Memory, but I can’t do it during normal business hours” Or whatever the situation may be?  Well, fellow #vExpert @BoBolander and I were discussing this recently, and worked together to create this!  This also will apply if you’re doing this to multiple virtual machines!

Well, look no further. :) You can script this, as in to execute it as a script to happen while you’re at home asleep during your maintenance window, but also even if you’re modifying a simple VM and want the LEAST amount of time and effort possible, minimizing the downtime of the VM this will work also!

Shutting down your Virtual Machine via PowerCLI

This will seem simple, that is because it frankly is.  For the purpose of these descriptions I’m going to use a long VM name so you know this works if a VM has a name with quotes or spaces in it.  So for these purposes, the VM in question will be named, “VMware vCenter Log Insight 1.0.4”

Shutdown-VMGuest –VM “VMware vCenter Log Insight 1.0.4” –Confirm:$False

Wow, that was simple! So I run that and my virtual machine is shut down? Yes. Yes it is.

Changing your Virtual Machines vCPU and Memory

There you are, your VM is currently rocking out at 4GB of Memory and 1vCPU and you’re all “I really want this to be 8GB of memory and 2vCPUs! You know, because I did the analysis and notice that it’ll perform better, no I’m not just blindly following some vendors ‘best practices’” Ok, if you’re serious about this, here you go!

Set-VM “VMware vCenter Log Insight 1.0.4” –MemoryGB 8 –NumCPU 2 –Confirm:$False

Whoa, that was it? My VM now has its resources resized just like that? Yes. Just like that. You’re done!

Please Power my VM Back on! I have work to do!

Alright alright, you want to power your VM back on, you’ve made your change and you’re set! Well, here you go just as simply…

Start-VM –VM “VMware vCenter Log Insight 1.0.4”

And poof your VM will start back up and you’ll be set!

You can combine The Set-VM and Start-VM ya know!

Yea, that’s correct! You can instead run the last two components as a single one-liner command like;

Get-VM “VMware vCenter Log Insight 1.0.4” | Set-VM –MemoryGB 8 –NumCPU 2 –Confirm:$False | Start-VM

Unfortunately I’ve yet to find a way to combine the VM Shutdown component and the Set-VM Component without it breaking, thus…

Hey but wait, I thought you said this was scriptable

You’re all like, “I can’t just copy and paste these in sequence because my VM hasn’t shut down in time and I get an error trying to use CPU hot plug, and I can’t power the VM back on because it’s still shutting down!!!”    Yep, you got it, you’re absolutely correct! The initial steps were more to provide the steps of how you can go about modifying all of this from the PowerCLI command line, now if we’re really serious about this, here’s a multi-liner which will perform all of these tasks in sequence! Will this work if you don’t have VMware Tools installed? No. No it will not. Get your tools installed, ya’here! :)

  • $vm_name = Get-VM “VMware vCenter Log Insight 1.0.4”
  • ForEach ($vm in $vm_name){
  • $vm_name | Shutdown-VMGuest –Confirm:$False
  • Sleep 60
  • $vm_name | Set-VM –MemoryGB 8 –NumCpu 2 –Confirm:$False
  • $vm_name | Start-VM
  • }

A few things… I had to do this in a bulleted list because otherwise the spacing between it was ridiculous, and secondly, am I proud of the utter lack of elegance of this code? No. Not in the least. I think this is the ugliest thing I’ve ever seen. Does it work? Yes. It works QUITE well.  I can equally execute this as an Import-CSV to perform this against a whole series of Virtual Machines but that is outside the scope of this particular blog post. :)

If you happen to have a more elegant want to execute a VMGuest Shutdown while ALSO executing a Set-VM within the same command-set, preferably within one line, feel free to include it in the comments, otherwise this will work and can be scripted whether you’re performing against one virtual machine or more.   I personally will use this to script/execute easy modification of resources when I need to grow or shrink a virtual machines allocations without having to go through and ‘right click – wait’ over and over again, and especially so when I’m performing this against more than one virtual machine.

Good luck, I look forward to your comments, thoughts, and any improvements you may have! Hopefully this helps improve your own management!

Free VMware vCenter Log Insight book on Understanding Real-time Log Analytics!

Understanding Real-time Log Analytics

I’ve been meaning to post this blog for a few months now, but hey here it is now!

This little gem was posted some time ago Free eBook: vCenter Log Insight sweet post right?! I mean, I’m sure you’ve played with vCenter Log Insight at this point like VMware Log Insight EXPOSED! Splitting your Syslog with an axe!

But even if you haven’t check it out and get a dive into this cool technology to advance your datacenter!

Click here to get your free copy of Understanding Real-time Log Analytics. You’ll need to fill out a little form but beyond that you’re set! Check it out! <3

The Definitive Guide to the Brocade Distinguished Architect

If you’ve been in the FICON, Data Center SAN, Internetworking or Converged networking tracks at any point in your career then the Brocade Distinguished Architect is the ultimate pursuit available within the Brocade family, and it is by no means easy, frankly quite the opposite!   That said though, hopefully this can help steer you in comfort in the direction of a pursuit of this designation or the tracks leading up to it!

Brocade Distinguished Architect

The Brocade Distinguished Architect is a series of exams. Oh, a series indeed! It is actually achievable by finishing 3 of the 4 tracks listed below.  These tracks are broken down into FICON, Data Center, Internetworking and Converged. 

The Brocade Certified Professional – 3 out of 4 tracks!

Brocade Certified Professional FICON Track

  • Brocade Accredited Data Center Specialist Exam 160-130
    Brocade Accredited FICON Specialist Exam 160-140 
    Brocade Certified Fabric Administrator (BCFA) Exam 143-410
    Brocade Certified Fabric Professional (BCFP) Exam 143-070
    Brocade Certified Architect For FICON (BCAF) Exam 143-120

Brocade Certified Professional Data Center Track

  • Brocade Accredited Server Connectivity Specialist Exam 160-020 
    Brocade Accredited Data Center Specialist Exam 160-130 
    Brocade Certified Fabric Administrator (BCFA) Exam 143-410
    Brocade Certified Fabric Professional (BCFP) Exam 143-070
    Brocade Certified SAN Manager (BCSM) Exam 143-360
    Brocade Certified Fabric Designer (BCFD) Exam 143-260

Brocade Certified Professional Internetworking Track

  • Brocade Accredited Internetworking Specialist Exam 160-120
    Brocade Certified Network Engineer Exam 150-120
    Brocade Certified Layer 4-7 Engineer Exam 150-320
    Brocade Certified Network Professional Exam 150-220
    Brocade Certified Layer 4-7 Professional Exam 150-420 
    Brocade Accredited WLAN Specialist Exam 160-170
    Brocade Certified Network Designer Exam 150-510

Brocade Certified Professional Converged networking Track

  • Brocade Accredited FCoE Specialist Exam 160-160
    Brocade Certified Ethernet Fabric Engineer Exam 150-610
    Brocade Certified FCoE Professional (BCFCoEP) Exam 143-510

You do not have to pursue all 4 tracks to accomplish this, in my particular case I pursued the FICON, Data Center and Internetworking as there was a decent amount of overlap between those, and I have an extensive background in working with Data Centers, Internetworking and experience with FICON which made that particular pursuit significantly easier.   That said though, after I did a cost benefit analysis I also found those three tracks combined to allow for taking only 13 exams to achieve the end result!

Accredited vs Certified

You may notice some of the exams are listed as “Certified” and others listed as “Accredited” The differences of those two is simple; Certified Exams are delivered via a Pearson Vue testing center and cost $150 a piece.  Accredited exams are delivered via Kryterion, are non-proctored and delivered online via a Web Browser.   To be honest, the Certified Exams were SIGNIFICANTLY easier than the Accredited exams, but none of these by any means are a walk in the park, unless you have extensive experience working with the technologies.

How do I even begin to prepare and study?!

Brocade as a family makes it both easy and difficult to prepare as most certification tracks often do.  That is to say, it is not so easy you can go into it without any knowledge, experience or training; But also not such an enduring task that your real world experience and knowledge are discarded in favor of arbitrarily complicated questions!   Each of the Certifications have available in the Brocade Certification Information pages links to reference materials, pre-requisites and Study Guides for each respective track!   In addition to this, each track also has a series of web-based, online and classroom type training to prepare, educate and take you to the next steps!  

Leveraging these tools and some real world experience will prepare you to take these certifications and take your career to the next level!

Making the Honor Roll

As you proceed through the ranks of the many who’ve taken Brocade exams (They hit 30,000 exams taken this past weekend 4/5/2014) once you’ve achieved this rigorous and arduous process though, you make it onto the Brocade Distinguished Architect Honor Roll which is an official list of everyone who has achieved Brocades Highest Certification Credential  Going back as far as January of 2011 until today April of 2014, there have been 88 people who have achieved this credential.   Just like other highest credentials, VMware’s VCDX, Microsoft’s MCM and MCA, and Cisco’s CCIE, this certification track is not for everyone but it is an achievable and reachable target!

 

Brocade Certification and essential links!

Doing your Part

This track may not be for all but this is definitely a way to set you a part from the rest.   Brocade has been a staple of the Data Center for a very long time, and are the market leader in their particular industries.   If you’re looking to enhance your resume portfolio, grow your capabilities and really stand out, this is definitely a good way to do it!  Good luck and good pursuits!

Brocade Banner

Ooh and here I am on the official Brocade Page, awesomeness :)

OMG! Free Brocade Certification Exam and Training (150-810) Good ‘til May 2014!

So there I was going through my Brocade Certification track in pursuit of the Brocade Distinguished Architect (More details in my next post ;)) and I came across this little gem!   Free Voucher, Free Training, free-all to knock out one of these exams! Awesome, right?!?

BCEFP - Brocade Certified Ethernet Fabric Professional

This is broken down into a few key steps;

Ooh, Ooh! So they asked I pull down the code itself because they’d like people to register, get the training and also sign up to win $500 Amazon Gift Card in a drawing held TWICE per month! (Baller, right?!) So I obliged! Be sure to check out these two links!

And then there you go! Free training, Free Voucher and that’s one step done including additional resume building power!

The drawings remaining are running April 14th, April 28th, May 12th and May 30th!!!

Check it out and certifiiiiiiiiiy! :)