Properties modified after upgrading to V5 POwerCLI

Hello

with PowerCLI Version4, I used the following script to analyze the over-provision of my data stores:

$Storage = get-View - ViewType datastore-filter @{"Name"= 'CLUSTER_';" Summary.Type "=" NFS"} | Sort - the property name
$Storage | % { $_. RefreshDatastoreStorageInfo()}
$Storageinfo = $Storage | Select summary - ExpandProperty | Select name, Url, @{N = "CapacityGB"; E = {« {0, 8:f} » -f ($_. (Capacité/1024/1024/1024)}},
@{N = "FreeSpaceGB"; E = {« {0, 8:f} » -f ($_. (FreeSpace/1024/1024/1024)}},
@{N = "ProvisionedGB"; E = {« {0, 8:f} » -f (($_. Capacity - $_. FreeSpace + $_. {{(Non validée) / 1024/1024/1024)}}.
@{N = "UsedGB"; E = {« {0, 8:f} » -f (($_. Capacity - $_. {{(FreeSpace) / 1024/1024/1024)}}.
@{N = "PercentFree"; E = {'{0:P2}' f ($_.)} FreeSpace / $_. Capacity)}},
@{N = "OvercommitRatio"; E = {« {0, 8:f} » -f (($_. Capacity - $_. FreeSpace + $_. Uncommitted) / $_. Capacity)}}
$Storageinfo | Out-GridView-Title 'NFS-use-report '.

in the 3rd line you can see, we use the ExpandPopertySummary - and then we select name, Url...

In version 4, the Url has been like a CLuster_01_01 readable by humans or something else (the name of the appliance-NFS export)

With Version 5, the URL is a path not readable on the ESX itself (I think)...

Is there a way to get the URL, as in version 4?

THX in advance

Chakoe

Try something like this

$Storage = Get-View -ViewType datastore -Filter @{"Name"="CLUSTER";"Summary.Type"="NFS"} | sort -Property Name $Storage | % { $_.RefreshDatastoreStorageInfo() }

$Storageinfo = $Storage | %{
  $urlv4 = $_.Info.Nas.RemoteHost + ":" + $_.Info.Nas.RemotePath  $_ | Select -ExpandProperty Summary | Select Name, @{N="Url";E={$urlv4}},  @{N="CapacityGB";E={"{0,8:f}" -f ($_.Capacity/1024 / 1024 / 1024)}},  @{N="FreeSpaceGB";E={"{0,8:f}" -f ($_.FreeSpace/1024 / 1024 / 1024)}},  @{N="ProvisionedGB"; E={"{0,8:f}" -f (($_.Capacity - $_.FreeSpace + $_.Uncommitted)/1024 / 1024 / 1024)}},  @{N="UsedGB"; E={"{0,8:f}" -f (($_.Capacity - $_.FreeSpace)/1024 / 1024 / 1024)}},  @{N="PercentFree";E={"{0:P2}" -f ($_.FreeSpace/$_.Capacity) }},  @{N="OvercommitRatio";E={"{0,8:f}" -f (($_.Capacity - $_.FreeSpace + $_.Uncommitted)/$_.Capacity)}}
}
$Storageinfo | Out-GridView -Title "NFS-Usage-Report"

Tags: VMware

Similar Questions

  • Time Machine does not work after upgrade to Sierra

    The Time Machine (TM) fail to start backup and there is still "preparing backup...". "for more than an hour. This right after upgrading to Mac OS Sierra.

    Another weird thing happens to the toolbar of the Mac Mail. The Junk button is replaced by another button. trying to put back in place, but remove the button become a button.

    Please help with the backup problem mentioned above. Thank you much in advance.

    How long have you waited? After a new installation, it must be a fair while even with a SSD to prepare the first backup due to the number of modified files.

    Make sure the TM drive is in the list of items excluded from Spotlight indexing. ICloud newsletter and other cloud services.

  • Latitude E5500 Intel GMA pixels problem after upgrade of RAM > 4 GB

    Hello, I use latitude e5500 with the following specifications:

    • Processor: intel core 2 duo
    • graphic: Intel GMA 4500 MHD
    • OS: Windows 7 SP1 64-bit
    • RAM: 6 GB (2 + 4) 800 MHz

    Recently I have upgraded RAM of 4 GB (2 + 2) 6 GB (2 + 4). They are of the same manufacturer, the two 800 MHz I checked the new memory with the Dell diagnostics - it's ok. After upgrade, I have a serious graphics - parts of my get pixelated screen problems. It is irregularly, with different applications ran - see the screenshot.

    I tried to uninstall the graphics driver - it's ok, but I'm not ;) mode 640 x 480 I have tried different drivers - no improvement. Also, I removed a 2 GB - it works very well with my new 4GBs

    Hello

    Yes, I solved the problem. I had to buy an another 4 GB from the same manufacturer with the same properties. With 4 GB + 4 GB, it works perfectly.

    Concerning

    Aleksander

  • Heel of workflow that wfstubbuildingmachine fails after upgrading to 6.1

    After having recently upgraded 6.0.1 to 6.1, we are unable to build machines that call the workflow WFStubBuildingMachine heel. It worked correctly before the upgrade. If we remove this workflow, machines to build then OK, but since we have many elements which occur in vCO (annotations vCenter, created group, new machine name assigned, etc.) which are called by this stubworkflow, construction of machines without it are useless to use.


    Here are the 3 heel workflows that we have configured through custom properties. Note: We have not any assigned value, but never did before the upgrade either. I guess that a value is not required as long as you agree with vCAC pick up the latest rev of the workflow when it is running?

    StubWorkflows.png


    After asking to build a machine that includes the WFStubBuildingMachine call, there eventually times out and the following error appears in the newspapers:

    WFStubBuildingMachine.png

    We tried the following already without success:

    1. We have a ticket open with support. A sev 1 for two weeks now. The ticket is with genius. Substantial quantities of newspapers were provided to support.
    2. We have removed this stubworkflow of plans by removing the custom property and machines very well build.
    3. We left the other stubworkflows in the plans and build machines very well as long as WFStubBuildingMachine is not present.
    4. We also have a problem with the designer after the 6.1 update. I have separately regarding who, as we do not know if it is related or not. It seems that it is maybe not related as the other stubworkflows works fine, but not this one. vCAC Designer (cloudutil.exe) will not start after the upgrade to 6.1
    5. We cannot use designer to crack open the WFStubBuildingMachine workflow, given that the designer is broken (see #4 above).
    6. Everything after upgrading to 6.1 seems to work very well. All of the tabs in the user interface are features. All services that you expect to be running are running on the devices and the server of IaaS. Decommissioning of machine for the "machines" or machines built without WFStubBuildingMachine work correctly, etc.
    7. vCAC 6.1 vCO plugin has been installed/updated. This problem existed before we did the update of the plugin vCO and persists thereafter.
    8. vCAC Workflow Hotfix Package has been applied. This problem existed before we did the update of the plugin vCO and persists thereafter. http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2088838
    9. When the upgrade to 6.1, we chose the option "preserve my latest versions of workflow. The CLI via cloudutil.exe, we can see that it has added a new rev for the workflow of WfStubBuildingmachine 6.1 (8 Rev.), then copied to rev again as the last (rev 9). Our previous rev was 8 before the upgrade. Thus, it seems that it worked as expected.

    We are very down because of this. We would prefer not to roll back even if we have good backups, as if no one else knows this problem then VMware will probably not initially get of it, and we will not be able to upgrade to 6.1 down the road with confidence.

    One thing we're curious to know, is if the workflow of personalization as shown in this post below vCO Mathilde be run after the upgrade from 6.01 to 6.1? We didn't as long as it has not listed in guides upgrade, documentation or blog posts, but just curious if someone else did so. We did not want to do this as it will scan what changes have been made to the stubworkflows before he does. http://www.vmtocloud.com/how-to-extend-Vcac-with-VCO-part-1-installation/

    Has anyone seen this or something similar? Even if you do not, you have any suggestions to try?

    In case someone else runs into this problem, here is what has been done to solve with the help of the support team to the development/vCAC:

    1. Open the designer Client.
    2. Load the workflow with the question, WFStubBuildingMachine in our case. Make sure that the latest rev is loaded.
    3. Find the block in the workflow where the issue is encountered. There should be a red exclamation point.
    4. Take a screenshot of the code block and note all code/functions/variables because you will need to recreate it in a later step.
    5. Right-click on the code block and delete it.
    6. Recreate the block in the workflow and to re - establish links with the rest of the workflow.
    7. Download the workflow of heel.
    8. Leave the customer from the designer.

    It seems than the 6.1 update do not recompile / adjust workflows to heel if they refer to the DLL that are upgraded as part of the upgrade process 6.1. Our workflow to heel was making reference to a dll that has been replaced by a newer version of the 6.1 update. Following the procedure above, recompiled the workflow with the new dll.

    It would be nice if the upgrade process vCAC traveled the workflows of heel and made for you or did you call at least. I hope it's something that will be considered for a future version.

  • vCAC Designer (cloudutil.exe) will not launch after upgrading to 6.1

    After having recently upgraded 6.0.1 to 6.1, we are unable to launch the vCAC GUI Designer (cloudutil.exe). The error stated at the launch of the designer customer is as follows:

    DesignerError.png

    We tried the following already without success:

    1. We have a ticket open with support. A sev 1 for two weeks now. The ticket is with genius. Substantial quantities of newspapers were provided to support.
    2. The designer has been improved in 6.1 installation. We followed the procedure to uninstall the old client of Designer, download a new of the IaaS VAMI and install it.
    3. We get the same error, no matter which client or server is installed on the client of the designer. We tried the IaaS server itself (Windows Server 2008 R2 SP1) and several client machines (WIndows 7 SP1).
    4. We use self-signed certificates. Not that it should matter as it was working before the update 6.1 with self-signed certificates, but we validate the cert is in the store of confidence on all computers where the client attempts to run from.
    5. We tried to remove the client, ensuring that the customer directory no longer exists and reinstall the client.
    6. Also tried running Setup of customer "as an administrator".
    7. Validated the client installation program (DesignCenter - Setup.exe) is not "blocked" by right-clicking on it-> properties-> unlock.
    8. Tried to launch the Designer customer (cloudutil.exe) in different compatibility modes.
    9. We are able to run the query in the CLI commands by using cloudutil.exe. This confirms that he is able to talk to the back end. We can even list of all our stubworkflows and see the various revisions of them, but you can't change/see the stubworkflows using the CLI (this must be attached to a separate... note).

    We noticed the DynamicOps.Repository Assembly in the error references Version 6.0.0.0 after the upgrade. Some assemblies is not upgraded / replaced as part of the upgrade, it appears, so it's possible, it's normal, but it stood out.

    Unrelated to this, we are having a problem with the workflow specific heel after the upgrade as well and you have another position open about it here that Workflow Stub WFStubBuildingMachine fails after upgrading to 6.1

    Because we cannot enter the designer customer, we are not able to solve the problems, which means that we are down hard. We would prefer not to roll back even if we have good backups, as if no one else knows this problem then VMware will probably not initially get of it, and we will not be able to upgrade to 6.1 down the road with confidence.

    Has anyone seen this or something similar? Even if you do not, you have any suggestions to try?

    In case someone else runs into this problem, here is what has been done to work around this problem:

    • Open the cloudutil.exe.config file located in the Design Center directory is installed in.
    • Add the following block of the code highlighted in red between the two lines in black.

    • Save the file and close.
    • Restart the Client to the designer.

    This will tell the designer Client to use only 6.1 assemblies at the launch. The customer refers to 6.0 assemblies during the launch after the upgrade which are not present on the file system longer, so it's the only way known to work around him. The development isn't sure why old assemblies are always referenced, but they are reproduced it in their laboratory.

  • Buttons development missing the bottom screen after upgrade to apex 4.2.2

    Hello

    Emergency!

    After upgrading my apex-environment 4.1 to 4.2, everything seems to work properly.
    But once the connection as a developer, I don't see my development at the bottom of the screen buttons.

    Indicates the State of the Application Properties "available with edit links" and the status of the build is "run and build the application.

    What I'm missing here?

    Reg,
    Chris

    Published by: 1004327 on 6-mei-2013 07:39

    Hi Chris,

    you might have run into the bug #16769040. I already asked David Peake to update the 4.2.2 known issues with an explanation. In short, install the patch group may lead to an inconsistency with an instance parameter (INSTANCE_ID) and cookies from generator, which translates into a missing Developer toolbar. If this is the problem on your instance, it can be corrected by running (as a SYS):

    begin
        apex_040200.wwv_flow_security.set_internal_cookie_name;
        commit;
    end;
    /
    

    Kind regards
    Christian

  • Not able to scan with the preview after upgrade from Mac OS Sierra...

    After upgrading to Mac OS Sierra. I'm unable to use the preview to scan.  Before this upgrade, it worked fine.  The HP scanner software does NOT work something like OS 10.8 or 10.9.  Preview worked perfectly so far.  If anyone knows how to solve this problem, your contribution will be greatly appreciated.  Thanks in advance.

    Have you tried scanning with Capture of Image instead? It worked for me.

  • Projector does not work after upgrade from Sierra

    My projector does not work after upgrade to Sierra. Or search in Outlook (I use outlook for Mac due to having MS 365 for labour) or the search function in the finder. I use this all the time and need this feature back. I tried to reindex spotlight and nothing. Anyone has any ideas.

    Try to rebuild Spotlight rebuild the Spotlight to your Mac - Apple Support index

  • Lost after upgrade ios10 notes

    How is it possible to recover all the local notes that disappeared after upgrade to iOS 10?

    (On the iPhone 6)

    Thanks for help :-)

    Marco!

    If you have backed up your data, as Apple recommends the update to iOS 10 - official Apple Support, you can restore your iPhone, iPad or iPod touch backup - Apple Support

  • I can't print after upgrade to Mac OS Sierra (error "Unable to filter")

    I can't print after upgrade to MacOS Sierra, always shown "cannot filter. I use AirPrint for Epson L355. Tried to reset the printer settings, uninstall and then install the printer, always in vain 'filter '.

    I think it has something to do with MacOS Sierra 10.12.1 Beta (16B2333a). Help, please!

    Update to the Sierra officially released

  • What happened to the flashlight after upgrade to ios10

    What happened to the flashlight after upgrading to IOS 10

    Flashlight is the control center? I swear that I saw on one of these demo phones in an Apple store.

  • Notes, do not sync on the iPhone after upgrade

    After upgrading to IOS10.0.2 on iPhone no matter who has experienced problems with Notes is no longer sync with other devices?

    Hi jimbjazz57,

    I understand that, after the update your iPhone to iOS 10, you had some problems with your notes, do not sync with other devices. I know it's important to have your information available on any device you use, so I'm happy to help you.

    If use you iCloud for synchronize your notes, and then connect to iCloud.com and see if your notes are sync to iCloud at all.

    We want to, on your iPhone, make sure you create notes in the right folder. Open the Notes app, and then tap left arrow in the upper left corner of the app. Make sure that you have the appropriate folder selected here when entering new tickets.

    If your notes are not yet the timing, we will try to switch your Notes and turn it back on. To make this opening settings > iCloud. Disable notes, restart your iPhone, and then turn on again them.

    Thank you for using communities Support from Apple. See you soon!

  • Photostream not working after upgrade to Sierra

    I noticed after upgrading to Sierra, that my photo stream on the Macbook no longer works.

    When I connect to www.icloud.com I see that there are new photos downloaded from my iPhone to the iCloud, but not to my Macbook, no news pictures showed in Photos on my Mac. I tried login/out my iCloud on the Macbook and the iPhone account, but nothing has changed.

    Any ideas on how to solve this problem?

    Start by providing details

    What are your parameters to iCloud every IOS device on your Mac and if you use iCloud library what his status on each device

    Your message is confusing - you cannot see or access MyPhotoStream on the icloud.com - on iCloud.com/Photos see you iCloud photo library photos only - and if a device has not finished to upload to ICPL it downloads pictures

    So to help, we need to know what services you are using and what their status is

    LN

  • Unable to connect on the Messages or FaceTime after upgrading to Sierra

    Good afternoon! After upgrading my MacBook Pro (13-inch, mid 2010) to macOS Sierra (10.12.), I am unable to connect to Messages or FaceTime. They worked fine before the upgrade.

    • Messages: After entering my Apple ID and password, I get the message "Could not sign in iMessage." "Could not sign. Please check your network connection and try again. "or"an error has occurred during authentication. "My network is connected to the network (where this message), and the password is correct. Also, I have generated a password app specific to Messages. Enter just grew the message "your Apple ID or the password is incorrect." Messages is works well with my Google Talk and AIM accounts.
    • FaceTime: After entering my Apple ID and password, the engine just turns and it never connects me. Similarly, I have generated a password app specific but use it just gets the message, "your Apple ID or the password is incorrect."

    No idea how I can regain access to these applications? Thank you!

    Reached out to the Twitter account of Apple Support. He proposed to restart. It worked.

  • Trackpad MacBook Pro late 2011 does not not after upgrade

    I just update the OS in my MacBook Pro (late 2011) which worked perfectly well 'El Capitan' to 'Sierra '. Everything went, smooth and pleasant. but now, the trackpad is completely erratic, is in itself (such as move and open programs like possessed). I tried several suggestions from apple such as checking for updates, check the settings, delete all the gestures, etc. I'm assuming that the material is very well that was perfectly fine yesterday... any suggestions please help.   -Note; I have to use an external mouse, and the latter is very well.

    Hello Med_,

    Thank you for using communities of Apple Support. It is my understanding that after upgrading to Sierra, your MacBook trackpad has become erratic. I know that my trackpad is an important part of my daily use, I can certainly understand your concern. I'm here to help get this resolved with you.

    You did an excellent job so far! Then I recommend the system management controller (SMC) reset. This system can solve some unexpected behaviors. Follow the steps below:

    1. Stop the Mac.
    2. Unplug the MagSafe from Mac power adapter.
    3. Remove the battery. (Learn about removing the battery in the MacBook and MacBook Pro computers).
    4. Press and hold the power button for 5 seconds.
    5. Reconnect the battery and the MagSafe power adapter.
    6. Press the power button to turn on the Mac.

    The LED on the MagSafe power adapters could change State or temporarily disable when you reset the SMC.

    Reset the management system (SCM) controller on your Mac.

    If the problem persists, test this problem in safe mode. This will allow you to exclude the software as the cause. To help get started in safe mode and additional steps, use the steps and the link below:

    1. Start or restart your Mac.
    2. As soon as you hear the startup tone, hold down the SHIFT key.
    3. Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

    Try safe mode if your Mac does not end commissioning

    See you soon!

Maybe you are looking for