I had a great time chatting with my vNeighbor Rich Brambley, Marc Farley, and Scott Herold on the Virtumania podcast the other day. Please go check out VIRTUMANIA 20 and be sure to download their other episodes.

From the blog post:

“This week’s discussion focuses on using Powershell in virtual environments instead of a GUI, compares learning scripting to learning the verbs and nouns of a new language such as Latin, and highlights several Powershell sites and tools that every administrator should check out.”

Powershell

Need to determine what the uplink policy is for your DVSwitches? Here is a quick PowerCLI snippet to do that. I’d go into more detail but I don’t have time this moment. Consider this longer than a tweet, but shorter than my normal blog post. Smile

Here is the corresponding screen in the vSphere Client (pardon the font issues, I’m running blind-person-size-font) with the relevant portion highlighted:

vSphere client screenshot

And the code:

PS> $pgName = 'Name of your DV port group'
PS> $pg = Get-View -ViewType DistributedVirtualPortgroup -Filter @{ Name = $pgName }
PS> $pg.Config.DefaultPortConfig.UplinkTeamingPolicy.UplinkPortOrder

ActiveUplinkPort  : {dvUplink1, dvUplink2}
StandbyUplinkPort :
Inherited         : True
DynamicType       :
DynamicProperty   :

2010-7
13

With the release of vSphere 4.1, we also get PowerCLI 4.1! Here’s a taste of the new stuff from the changelog.

Change Type Description
feature Enhanced Get-StatType to retrieve the available counters for real time statistics.
feature Enhanced New-FloppyDrive to create floppy image files.
feature Added the New-VIProperty and Remove-VIProperty cmdlets for customizing cmdlets output objects.
feature Added the ExtensionData property for exposing the View object that corresponds to an output object.
feature Added the Get-VMHostRoute, New-VMHostRoute, Set-VMHostRoute, and Remove-VMHostRoute cmdlets for retrieving, adding, and removing routes from the host route table.
feature Enhanced New-VM and Set-VM to allow specifying the virtual machine version.
feature Added the Get-ErrorReport cmdlet for generating error reports.
feature Added the Get-VMHostPatch cmdlet for retrieving host patches.
feature Enhanced New-VM, New-NetworkAdapter, Set-NetworkAdapter, Set-VMHostNetworkAdapter, and Remove-VMHostNetworkAdapter to support adding and removing virtual machines and network adapters from virtual distributed switches (vDS).

2010-6
24
Powershell

There have been many book releases in the months since PowerShell V2 has been released, and there are several still in the works. It’s also neat to see all of the localized book projects—that really shows how important PowerShell is the entire world over. Here is a list of the books that I’ve heard about lately, in alpha order by title:

Author

Title

Language

Publisher

Release

Ragnar Harper Kom igang med Powershell 2.0 Norwegian IDG  
Jeff Hicks Managing Active Directory with Windows PowerShell: TFM 2nd edition English    
Soós Tibor PowerShell 2.0 Theory and Practice (free ebook) Hungarian Microsoft Magyarország 2010
Don Jones, Jeff Hicks PowerShell 2.0: TFM English SAPIEN Press Jan-10
Bruce Payette PowerShell in Action v2 English Manning Aug 2010 (est.)
Richard Siddaway PowerShell in Practice English Manning Jun-10
Tobias Weltner Scripting mit Windows PowerShell 2.0 – Schritt für Schritt German MS Press Germany Jun-10
Max Trinidad Teach Yourself PowerShell 2.0 in 24 Hours English Sams 2011
Al Renouf, Luc Dekens VMware vSphere PowerCLI Reference: Automating vSphere Administration English Sybex 1Q-2011
Arnaud Petitjean & Robin Lemesle Windows PowerShell (versions 1 et 2): guide référence pour l’administration système French Editions ENI  
Steve Sequis Windows PowerShell 2 For Dummies (note: released before PS v2 was complete) English For Dummies Aug-2009
Lee Holmes Windows PowerShell Cookbook, 2nd Ed. English O’Reilly Aug-10

If you know of any that I have missed, please let me know in the comments.

Powershell

I thought I’d share another slide with you tonight. This is also from my upcoming Train Signal vSphere Pro video. Before tackling a set of PowerCLI cmdlets, I like to give you a good base understanding of the concepts.

image

2010-6
19

I just came across this intro to Chapter 7 of my book recently while looking up some information on PowerCLI. I had not re-read it in a while and I really forgot how *ahem* funny it was. Well, anyway, for your entertainment, a quote from my book:

Chapter 7

Troubleshooting and Problem Resolution

This chapter focuses on the fine art of troubleshooting. I won’t actually be teaching you this vaunted skill, oh no. That would require that you study in an IT Shop as Apprentice for four years (much of that on the helpdesk). Only then can you go out into the world to make your own way as a hard-working JourneyAdmin. Many stop there, never caring to put in the countless hours of after-hours work in lonely datacenters before daring to submit detailed Visio diagrams of the infrastructure they built over the years to the IT Masters for evaluation and much ridicule. It is a long road, I won’t lie to you. Yet, the rewards of attaining a MasterAdmin certification (you get a little trophy for your desk), are great and wondrous. Once you have your little trophy, you get to choose a symbol of your dedication to the IT practice—a totem if you will. Everyone seems to pick a Smartphone, lately, although some still choose the more traditional Commodore 64 Model 1541 5¼ inch floppy disk drive.

This chapter is actually much less glamorous than all that, I’m afraid. I will, however, provide you with a set of tools to assist you in the complicated and often perilous journey down that winding path. You know, stuff like how to read a log file, and how to monitor CPU usage.

I really should make a book to go along with that. :)

Powershell

As evidenced by the slide I’m working on at the moment for the upcoming TrainSignal vSphere Pro Series lesson titled “Performance with PowerCLI”.

I really wanted to use stars for the difficulty level and make them vibrate like they do in the game, but I was spending too much time on this slide as it was. :)

image

Here is a roundup of several shows that I’ve been listening to, in alphabetical order:

Android Atlas Weekly (MP3)

Android Atlas

This is a new show from CNET. In fact, it’s so new, I haven’t listened to yet, so I can’t really comment on the quality. However, they generally run a great studio, and Jason Howell is a known quantity from his tenure on Buzz Out Loud, so I will definitely check it out. Available in audio and video formats.

Android Central

This show is up to 15 episodes, and they have done a great job with recent Froyo and Evo coverage. The show has 2-4 regular hosts. Recommended. Available in audio format.

Phandroid Podcast

I love the content. I can’t stand the audio quality as delivered over BlogTalkRadio (and I’m looking at you too, TalkShoe!). As a podcaster myself, I’m pretty picky about that, so I skip over it unless it’s the last unplayed podcast on my iPod. Guys—please produce a real audio podcast for us! Available in audio format—if you can handle the low-powered AM radio vibe.

The Android App Show

I just love the intro music. This show is great because it’s devoted to app reviews—an idea which which I myself had and haven’t yet capitalized on. Maybe someday…Available in audio and video formats, and they are big about their live stream on Ustream (also something I like to do on my own show.)

The Android Tech Show

Brought to you by the same team as The Android App Show, so if you like one, you’ll like the other. Available in audio and video formats, as well as a live stream.

This Week in Android

This is one of the shows from Jason Calicanis’ new ThisWeekIn studio. It’s professionally produced, and so far, I like it. To be honest, I started listening to this at the same time as a few other Android shows and they have all sort of blended together, so until I get my head straight, I can’t give a solid review. Available in audio and video formats.

2010-5
31

Just thought I’d share this slide (draft) to see if the ‘net peoples have any interesting thoughts to share on the topic. Here’s my opening salvo:

image

Out of all of the above statements, I think the last is the most overlooked. Discuss.

image


XKommunication – (Noun) The process of attempting (and usually failing) to explain an XKCD webcomic to your non-geek friends and family.

I saw this comic a couple of days ago and what was so hilarious was later that day after I returned home from work, my wife was explaining Poe and The Telltale Heart to my 11-year-old son. Naturally, I wanted to share this particular comic, and I got that excited feeling you get when you have something neat to share and you are looking forward to seeing the other person smile or laugh along with you. But then, just a moment later, it hit me. Crap, this is XKCD! There is no chance in hell that my wife will appreciate the joke, and my son won’t either! My face fell with the realization. I had a choice–attempt the xkommunication, or just look at the comic once more by myself and move on.

For some reason, I decided to make the attempt. You can guess the results. It went something like this:

Me: Honey, I overheard you talking to our son about The Telltale Heart. You know what is so funny? I saw a comic today about the same story! Here, check it out! [Hal shows his wife the comic on his phone, smiling tentatively.]

Wife: [long pause] Who is Daft Punk? This doesn’t make sense!

Me: I don’t know, it doesn’t matter, really. See, by the context you can tell they must be a techno band or something. Oh, I forgot to show you the hover text, it gets even funnier! Usher! House/Trance band? [Hal giggles a few times, obviously enjoying the comic all over again.]

Wife: That is the stupidest thing ever.

Hal: [Sighs.] Nevermind, sorry. I though it was funny.

I really should have known better.

Posted via email from halr9000′s posterous

  • Microblog

  • Recent Posts

  • Recent Comments

  • meta

  • PowerShell Blogroll