by lunarg on May 14th 2020, at 12:20
You can force-trigger storage DRS recommendations (and possible subsequent storage vMotions) through PowerCLI.

Run the snippet below, replacing the value of $dscName to match the name of the datastore cluster you wish to trigger the DRS recommendation on:

$dscName = 'DatastoreCluster1'$dsc = Get-View -ViewType StoragePod -Filter @{'Name'=$dscName}$si = Get-View ServiceInstance$storMgr = Get-View -Id $si.Content.StorageResourceManager$storMgr.RefreshStorageDrsRecommendation($dsc.MoRef)$dsc.UpdateViewData()if($dsc.PodStorageDrsEntry.Recommendation){ $dsc.PodStorageDrsEntry.Recommendation | %{ $storMgr.ApplyStorageDrsRecommendationToPod_Task($dsc.MoRef,$_.Key) }}

  ...
by lunarg on May 14th 2020, at 12:17

If the webclient is letting you down, you can also use PowerCLI to expand datastores.

First, as usual, expand the volume on the storage level. Then, fire up PowerCLI, log on to the vCenter/host and run the following script, replacing the name of the datastore you wish to expand:

$name = 'Datastore1'
$datastore = Get-Datastore $name
$esxi = Get-View -Id ($Datastore.ExtensionData.Host | Select -Last 1 | Select -ExpandProperty Key) 
$datastoreSystem = Get-View -Id $esxi.ConfigManager.DatastoreSystem
$expandOptions = $datastoreSystem.QueryVmfsDatastoreExpandOptions($datastore.ExtensionData.MoRef)
$datastoreSystem.ExpandVmfsDatastore($datastore.ExtensionData.MoRef,$expandOptions.spec)
by lunarg on May 13th 2020, at 10:00
This article is a reference guide for updating the firmware on switches. As I handle a broad range of switch vendors and models, I got tired of looking up the commands, and decided to bundle it all here in one place for easy reference.

Note that this document is not a step-by-step guide to update a specific switch but rather a reference for which CLI-commands to use.

First, look up current version and active boot bank. Can be either A: or B:

show boot system stack-unit 1upgrade system tftp://10.0.0.1/FTOS-SK-9.9.0.0P9.bin B:conf tboot system stack-unit 1 primary system://Bendwr memreload

When upgrading from USB-stick, change tftp:// to usbflash://. USB-stick needs to be FAT32.

To do

  ...
by lunarg on May 8th 2020, at 09:30

The certificate for HiveManager NG has expired on October 23, 2019. As a result, Dell N Series switches running an older firmware or an older version of the HiveAgent, can no longer connect or be connected to HiveManager NG after this date.

The solution is to either update the switch firmware to at least 6.6.0.13, or manually update the HiveAgent to 1.1.29.

More information: https://www.dell.com/support/article/en-us/sln319098/dell-emc-networking-hivemanager-site-cloud-aerohive-com-certificate-expiration-how-to-manually-upgrade-hiveagent-on-dell-n-series-switches?lang=en&ref=topsolutions

by lunarg on April 20th 2020, at 09:50
When attempting to add new Remote Desktop Session Hosts (RDSH) to a session host collection, you may run into the following error message:

Error
Unable to retrieve the session collection properties

This error can possibly be accompanied by additional messages.

When checking the logs, you apparently cannot find anything wrong with the collections: they show up correctly in Server Manager and users can still log on to the collection using existing servers.

Sometimes it can happen that the security descriptors of one of the collections get corrupted, in which case it is not possible to add a new session host, whether it's through Server Manager or through Powershell.

The problematic collec  ...
by lunarg on March 27th 2020, at 14:13
It is possible to convert a QSFP or QSFP+ port to an single SFP or SFP+ port using the Quad to Small Form Factor Pluggable Adapter (QSA). However, in order for this to work, you'll need to configure the QSFP+ port into break-out mode to 4x10Gbps, similar like you would when using actual QSFP to 4xSFP break-out cables.

For OS10, the CLI for this action is:

interface breakout 1/1/7 map 10g-4x

This will break out the interface 1/1/7/ to 4 10Gbps links, which translates to these interfaces on the switch: 1/1/7:1, 1/1/7:2, 1/1/7:3 and 1/1/7:4:

show interface status ------------------------------------------------------------------Port Description Status Spe  ...
by lunarg on March 27th 2020, at 11:52
On a Windows DHCP Server, if you have a lot of DHCP reservations in a particular scope on a server, and you have the need to migrate them to another scope (on the same or another server), you can do so quickly through netsh (a "legacy" command-line tool to perform network configuration on a Windows system).

Fire up a command prompt (or Powershell). First dump, the current scope configuration to a text file:

netsh dhcp server <serverIPAddress> scope <scopeAddress> dump > dump.txt

Note that if you run the command on the server where the originating scope is located, you don't need to specify the IP address/hostname of the server.

Open the text file with your favour  ...
by lunarg on March 20th 2020, at 16:02

With the strong increase in hackers targeting Office 365 tenants, it may be useful to see who has Global Administrator access in your tenant. This can be done either via the Office 365 Portal but also through Powershell.

Note: be sure to install the required Powershell cmdlets before attempting this.

Connect to your Office 365 tenant:

Connect-MsolService

To retrieve a list of users with the Global Administrator role, run this:

Get-MsolRoleMember -RoleObjectId $(Get-MsolRole -RoleName "Company Administrator").ObjectId | Select DisplayName,EmailAddress

You can append Export-Csv to export the list to a CSV-file.

 
 
« June 2020»
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930    
 
Links
 
Quote
« Have you tried turning it off and on again? »
The IT Crowd