vShield Edge Version Discovery with PowerCL

June 12, 2013

Table of Contents

It has become clear that when upgrading your vShield manager, the shield edge devices will not be upgrade until you restart them. Sometimes we are caught in a situation where you need to do manual  scheduled upgrades , then you are in good luck this little script will assist you keep track of all the old versions running in your environment. This script is a vSphere PowerCLI script but should work with both vCloud Director or regular vShield installs.

 $report = @()

$VSEs = Get-View -ViewType virtualmachine -Filter @{“name”=”vse”}

foreach ($vSE in $vSEs)

{

$vSEObject = New-Object PSObject

 Add-Member -MemberType NoteProperty -Name “Name” -Value $VSE.name -InputObject $vSEObject

 Add-Member -MemberType NoteProperty -Name “Version” -Value $VSE.config.vappconfig.product[0].version -InputObject $vSEObject

 Add-Member -MemberType NoteProperty -Name “Network0” -Value (Get-View -id $VSE.network[0].tostring()).name -InputObject $vSEObject

 Add-Member -MemberType NoteProperty -Name “Network1” -Value (Get-View -id $VSE.network[1].tostring()).name -InputObject $vSEObject

$report += $vSEObject

}

$highVer = ($report | Sort-Object -Property version -Descending)[0].version

$oldvSEs = $report | where {$_.version -ne $highVer}

$oldvSEs | Export-Csv $HOMEDesktopoldvSEs.csv -NoTypeInformation

Share on
Facebook
Twitter
LinkedIn
Pinterest
More posts

Dedicated Servers Quick Guide

What is a Dedicated Servers? Why bother using a dedicated server over a VPS or Shared Hosting?A dedicated server is a server 100% dedicated to your website/project or business needs.

Nakivo backup & replication v4.0 released

Nakivo announced the release of their fourth version for backup & replication. Nakivo backup & replication is build for handling virtual infrastructures and is certified by VMware. The product works

vCloud API 5.1 Metadata

Over the years there has been a lot of changes in metadata in vCloud director,so am going to give te difference between the metadata in vCloud director 5.1 and the

Get 90% Discount

First 3 People gets the Bonus!
Don't Miss Out Our Big Sale

Get 0-90% On All
247Rack Services

247Rack

The Sale Is Until The End Of March