Reporting to include custom attributes of Vm and organized through multiple vcenters.

Hello
We are just moving our production test vfoglight solution & have you come across a bit of a weird one. We had a report / discovers that would list all virtual machines in our virtual Center and displays the custom attributes in a nice - good for the management report, form etc. However, we are moving to a new instance of virtual center & we have a test instance too - all are present in vfoglight, but our report draws only the custom of the original vcentre attributes. I'm not wcf script guru, but I gave it a good look & can't see a way forward - the hero of any script out there who could take a look and help out?
Moreover, do you think I could put in a request for support for this one & get any joy?

Hope someone can help - I'll post all the files needed etc.

Kind regards

Jonathan

Thought of it at the end - on the second vcenter vmware foglight agent did not have the ability to collect custom attributes in the service.config file set to true. After true and restart the collector and the connector, everything was fine.

Tags: Dell Tech

Similar Questions

  • Get the custom attribute

    I am creating a report and I need to draw a custom attribute, user name and host name of vcenter.

    I use the following in Ecoshell

    Get - VM | Select name - ExpandProperty CustomFields | Where {$_.key - eq 'Client'}

    He gets me the name of the customer and the custom attribute 'Customer', but I don't know how to get the hostname of vcenter also in this same report. I have another command to extract the name of guets and vcenter name but I'm still learning and I'm not sure how to combine the two to get it as a report / outings, etc.

    See you soon,.

    Bradley sessions

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '.

    Must have misread, I'm sorry.

    Try this

    Get-VM -Server $defaultVIServers | Select Name, @{N="VCHost";E={($_ | Get-View).Client.ServiceUrl.Split("/")[2]}}, @{N="Attr";E={($_ | Get-Annotation | where {$_.Name -eq "Customer"}).Value}}
    

    Note that you first need to make a VIServer-connect to all your vCenters.

    All connected vCenters are in the $deaultVIServers variable.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Include the attribute custom report using the disc

    I'm to customize a script provided by Alan Renouf in his PowerGUI Powerpack.  The script I'm customization in the Powerpack is named 'VM disk sizes.

    His screenplay does everything we need from a point of view of output except that we can also include a custom attribute (Custom Field) VM as well as the information of the disk space.  I have included the below custom script, please note that this is a script/PowerGUI PowerPack we customize but was initially written and provided by Alan Renouf and all credit for this original work must be given to Alan.

    I have included our custom below script and have "in bold Red" line in the script that does not work:

    $AllVMs = get-View - ViewType VirtualMachine. Where {-not $_.} Config.Template}
    $SortedVMs = $AllVMs | Select *, @{N = "NumDisks"; E={@($_. Guest.Disk.Length)}} | Sort-Object-down NumDisks
    {ForEach ($VM to $SortedVMs)
    $Details = new-object PSObject
    $Details | Add-Member-Name name-value $VM.name - Membertype NoteProperty
    $Details | Add-Member - MemberType NoteProperty-name CustomFields-value (($VM.)) CustomFields | %{"$($_. Key) = $($_.) (Value)'}) - join ',')
    $DiskNum = 0
    Foreach ($disk in $VM. Guest.Disk) {}
    $Details | Add-Member-name "drive$ ($DiskNum) path"-MemberType NoteProperty-value $Disk.DiskPath
    $Details | Add-Member-Name "Disk$ ($DiskNum) Capacity (MB)"-MemberType NoteProperty-value ([math]: round ($disk.) Capacity / 1 MB))
    $Details | Add-Member-Name "Disk$ ($DiskNum) FreeSpace (MB)"-MemberType NoteProperty-value ([math]: round ($disk.) FreeSpace / 1 MB))
    $DiskNum ++
    } # end foreach nested
    $Details.PSTypeNames.Clear)
    $Details.PSTypeNames.Add ('Virtu-al'.PowerPack.VMGuestDisks) '
    $Details.PSTypeNames.Add ('Virtu-al'.PowerPack.VM) '
    $Details
    } # end foreach

    When you use the Get view as seen on the first line of the script, it appears the CustomField information not available in the generated view.  How to develop the view to include CustomFields/CustomAttributes for each virtual computer in our environment and then report on their subject?

    Please let me know if I did a poor job explaining the scenario and what I'm after here.  Any help is greatly appreciated!

    Hello, jSun311-

    Yes, you are right - there is no such thing as the "CustomFields" property on a managed object VirtualMachine .  You can always get the names and the corresponding values of the custom fields, you just have a little.  For example, you could change the line to:

    ...## make a comma-separated string that holds the custom field key/value pairs, like "cust0 = myValue0,cust1 = myDateInfo"$Details | Add-Member -MemberType NoteProperty -Name CustomFields -Value (($VM.Value | %{$oCustFieldStrValue = $_; "{0} = {1}" -f ($VM.AvailableField | ?{$_.Key -eq $oCustFieldStrValue.Key}).Name, $oCustFieldStrValue.Value}) -join ",")...
    

    and you should be happy as a clam.

    BTW, this call Get-view on your first line could be optimized a little using the - Filter parameter, like:

    $AllVMs = Get-View -ViewType VirtualMachine -Filter @{"Config.Template" = "false"}
    

    Pretty minimal in this case, but can be very useful in other scenarios of Get-View.  And, you may want to retrieve only the properties of the managed VirtualMachine object that you plan to use, so that the memory usage is reduced to the minimum, speed is optimized, etc. (do you this by using the - Get-mode property param).

    Anyway, how does do for you?

  • Include the attribute custom report (Export-Csv)

    I am writing a script to report on disk / the use of the capacity for each virtual machine in the environment.

    I try to include a column in the generated report (CSV), which includes the CustomField/CustomAttributes for each virtual computer as well as the news of disk capacity.  The report runs fine, but after you export the report to CSV (Export-Csv using) the newly created column just to the custom attribute field displays the following parameters for each line/entry:

    VMware.VimAutomation.ViCore.Impl.V1.Util.ReadOnlyDictionary'2 (System.String, System.String)

    When I use out-file it works, but formatting is very obscured...

    Here's the function/script that I use, I 'bolded in Red' the part of the script which I believe is the origin of the problem:

    Function Get-VMGuestDiskUsage {}
    (param
    [parameter (valuefrompipeline = $true required = $true, HelpMessage = "enter an entity vm")]
    ([VMware.VimAutomation.ViCore.Impl.V1.Inventory.VirtualMachineImpl] $VM)
    {in process
    $ErrorActionPreference = "SilentlyContinue".
    foreach ($disk in $VM. Guest.Disks) {}
    $objDisk = new-Object System.Object
    $objDisk | Add-Member - MemberType NoteProperty-VM name-value $VM. Name
    $objDisk | Add-Member - MemberType NoteProperty-name of Volume-value $disk. Path
    $objDisk | Add-Member - MemberType NoteProperty-CapacityMB name-value ([math]: round ($disk.) Capacity / 1 MB))
    $objDisk | Add-Member - MemberType NoteProperty-FreeSpaceMB name-value ([math]: round ($disk.) FreeSpace / 1 MB))
    $objDisk | Add-Member - MemberType NoteProperty - percent use of name-value ('{0:p2}' f (($disk.))) Capacity - $disk. FreeSpace) / $disk. Capacity))
    $objDisk | Add-Member - MemberType NoteProperty-name CustomFields-value ($VM. CustomFields)
    $objDisk
    }
    }
    }

    Get - VM * | Get-VMGuestDiskUsage | Export-Csv - NoTypeInformation c:\scripts\output\test.csv

    Any help is greatly appreciated!  Also please let me know if I did a poor job explaining the scenario and what I'm after here.

    Hello, jSun311-

    Because the property "CustomFields" itself is an object, and you try to get out of the strings to the CSV format, you must manage the object.  You can replace the line in question by something like:

    $objDisk | Add-Member -MemberType NoteProperty -Name CustomFields -Value (($VM.CustomFields | %{"$($_.Key) = $($_.Value)"}) -join ",")
    

    Which would result in the output for the column that might look like:

    dTestAttrib0 = someValue,dTestAttrib1 = AnotherValue
    

    In other words, there is a list separated by characters of the key/value pairs in the CustomFields property for the virtual machine.

    In addition, if you are interested, you might be able to clean up your code a bit by using the '-property ' New-Object parameter.  As:

    ...foreach ($disk in $VM.Guest.disks) {    New-Object PSObject -Property @{        VM = $VM.Name        Volume = $disk.Path        CapacityMB = [math]::Round($disk.Capacity / 1MB)        FreeSpaceMB = [math]::Round($disk.FreeSpace/1MB)        "Usage%" = "{0:p2}" -f (($disk.Capacity - $disk.FreeSpace) / $disk.Capacity)        CustomFields = ($VM.CustomFields | %{"$($_.Key) = $($_.Value)"}) -join ","    } ## end new-object} ## end foreach...
    

    In this way, you shouldn't bother with calls Add-Member and repetitive cases here.  Enjoy.

  • Create a virtual report machine include: Pool of resources with custom fields

    Hello

    I would like to create a VM report that includes the name of the virtual host computer and Discription, as well as the virtual machine Resource Pool belongs too.

    I would also report to query for custom fields, provide the names, values, and to give it in a format that works with export-csv.

    I have a start on the script and it included as an attachment.

    How should I go about adding custom fieldsvalues?

    How can I add the name of the Resource Pool of the report?

    Thank you in advanced for your help.

    Tim

    The problem with the CustomFields, is that I don't know how they are defined on a guest.

    It's a problem when you want to make an Export-Csv thereafter. The cmdlet can handle variable-length items in the table very well.

    That's why I put 1 CustomField in 1 rank.

    $report = @()
    Get-ResourcePool | %{
         $rpName = $_.Name
         $_ | Get-VM | %{
              $vmName = $_.Name
              $_.CustomFields | %{
                   $report += New-Object PSObject -Property @{
                        ResPool = $rpName
                        VM = $vmName
                        CustomName = $_.Key
                        CustomValue = $_.Value
                   }
              }
         }
    }
    $report | Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture
    

    BTW, the Export-Csv cmdlet is a standard cmdlet. Has nothing to do with Dmitri.

    Note that the script in this format requires PowerShell v2 RTM

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • VC of custom attributes in a report or dashboard

    Hello
    Is there a way to get a specific custom attribute in a report or dashboard?
    I create a query but I do not see how to select a specific attributes of the VC
    Kind regards
    Ronald

    Hello Ronald.
    Are you collecting VC of custom attributes? What does the collector agent configuration file (foglightagent.winservice.exe.config) see flag below the?


    Fake

    If you collect those then below article should help:
    vcommunity.Vizioncore.com/.../Easily-Create-vFoglight-services-based-on-vCenter-Custom-Attributes.aspx
    Concerning

  • Retrieves a custom attribute and store it in a workflow attribute?

    Hello.

    Maybe I'm confused on this subject, but from the looks of it, I can't take the custom attribute that is retrieved using

    com.vmware.library.vc.customattribute.getCustomField)

    and assign it to an attribute of workflow for use later, or even check the value.

    From the looks of the workflow, it records only the value.

    Is it possible to natively in vRO?

    Thank you!

    Anoop

    Are you trying to retrieve the custom attribute using the workflow "toget the attribute custom" (in the folder library/vCenter/Custom attributes )?

    If so, then Yes, this workflow only saves the retrieved attribute and does not return as an output parameter. You have the following options:

    • Write your own workflow to help "get the attribute custom" as a starting point. You can duplicate, then add a new parameter of type string and set it to the value of customAttributeValue.
    • Directly call the com.vmware.library.vc.customattribute.getCustomField () action in your script code and use its return value of string.
  • I get it during the installation of the first elements 13 ' the product you want to install is not a genuine Adobe software and appears to be counterfeit. Please report or contact customer support for assistance'

    I get this message when installing an upgrade of the first elements 13 ' the product you want to install is not a genuine Adobe software and appears to be counterfeit. Please report or contact customer support for assistance'

    Warning: "Adobe software real failure of Validation...". » | Windows

  • Custom attributes of access in a bean managed to webcenter 12 c

    WebCenter Portal: Webcenter 12 c

    How can I access custom attributes in a bean managed to webcenter 12 c.. ?

    I found the following blogpost to 11.1.1.8: http://blog.vassit.co.uk/knowledge/access-global-custom-attributes

    It is said to add libraries:

    • Model of WebCenter spaces
    • WebCenter spaces customer

    Cannot find these libraries in snapshot .ee 12 c.

    Update:

    The class I used in this blog post only works in 11g and it is an internal class that should be avoided to use as it may change in future versions.

    It is an example of change.

    It is offered in the Public Oracle Fusion Middleware Java QAnywhere for Oracle WebCenter Portal class WCApplicationContext that will allow you to access using Java through many steps.

    WCApplicationContext wcAppCtx = WCApplicationContext.getCurrentInstance();
    WCApplication wcApp = wcAppCtx.getApplication();
    WebCenterType wcMeta = wcApp.getApplicationConfig();
    CustomAttributes customAttr = wcMeta.getCustomAttributes();
    ...
    

    This course may not be available in the libraries provided by JDeveloper 12.2.1 and you include library webcenter-core - api .jar manually.

    I don't know why these classes are in the library and not offered public API catalog of libraries of the ADF in the JDeveloper 12.2.1

    Anyway, as suggested by the use of Vinay and his colleagues the EL Expression as he goes to work.

    Note: I'll blog in my personal blog

    Hope this information helps everybody.

    Kind regards.

  • Change the VM with custom attributes defined in a CSV file

    Hi all

    I'm doing something that I think should be simple (but this is the first time I used powercli and am not a good code writer), but I find it hard to tell.

    I created 2 custom attributes (owner and owner of the SSG system) in vCenter for my virtual machines.  I have a list of vm names csv and their associates "owners".  I would use powercli to read the csv file and connect to the VC server and the 'owners' of entry in the appropriate field.

    I borrowed com code from various places on the internet and these forums but I can't seem to make it all work.  I managed at least to read the information in the csv file and is displayed on the screen of my laptop.  What I can't do is get 3 columns in the csv file to be recognized as variables (unless there is some default variables I don't know) I can put in the game-Annotation lines.

    The code I have is:

    # Input range, includes all IBD VM names that are registered.
    $data = import-Csv "C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\vmowners1.csv"-Header ('Hostname', 'Owner', 'SSG owner')
    # $data | Get-Member
    Write-Output $data
    # Loop over all the VMS in vCenter
    ForEach ($row in $data)
    {
    # Create variables for the current virtual and its 'Contact' and 'Description' computer that are custom attribute fields.  Also create a $note string to use Set-VM-Description
    $hostname = get-VM-name $vmname;
    # $contact = $vm | Get-Annotation CustomAttribute - user;
    # $description = $vm | Get-Annotation - CustomAttribute Description;
    # $note = $contact.name + ":'t" + $contact.value + "' not n" + $description.name + ":'t" + $description.value;
    Set Annotation - entity $hostname - CustomAttribute "Business system owner" - value $SSG_owner
    Set Annotation - entity $hostname - CustomAttribute "SSG system owner" - value $system_owner
    # Set - VM - VM $vm - $note Description - confirm: $false;
    }

    The result, I get on my screen is:

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts >.\setvmownership.ps1

    Owner of the company that owns SSG host name

    --------                                              --------------                                       ---------

    ABPPROXY-00-AH

    ACE-01-AH hung Laallmmi hung Laallmmi

    Get - VM: could not validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the AGM of the order

    in.

    To C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:13 char: 29

    + $hostname = get-VM-name < < < < $vmname;

    + CategoryInfo: InvalidData: (:)) [Get - VM], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:17 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "Business system owner" - value $SSG_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:18 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "SSG system owner" - value $system_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Get - VM: could not validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the AGM of the order

    in.

    To C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:13 char: 29

    + $hostname = get-VM-name < < < < $vmname;

    + CategoryInfo: InvalidData: (:)) [Get - VM], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:17 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "Business system owner" - value $SSG_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:18 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "SSG system owner" - value $system_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    The CSV file looks like this (but continues for about 500 VMS):

    I go with the option import-csv because that said something that I read in my troubleshooting efforts would empty columns and error I received and that import-csv correctly would intrepret in empty columns.

    hostname, business_owner, system_owner,

    ABPPROXY-00-AH,

    ACE-01-AH, James Laallmmi, James Laallmmi,

    acrodev-00-ah, tflessa, Bruce Hastings,.

    ACT1DDB00AH, Bill Mancini, Mike Bruni,

    ACT1TDB00AH, Bill Mancini, Mike Bruni,

    What should I do to be able to get this script to work? I don't know that it is related to messages "argument is null." that we see in the output.

    Thank you

    Dan

    Hello, dscottimw-

    You were on the right track.  There were a couple of things to change to make it work as you want:

    1. either remove the "-header" part of the Import-Csv line or delete the actual header of the CSV itself - these are elements in conflict (the "-Header" param names of the columns in the CSV and assumes that the CSV file has already no header row)
    2. you need to access the properties of the $row variable in the ForEach loop - not only call the names of the CSV column headers (this is why you may receive errors on things 'null' - whether you use variables that have no value)

    Try this:

    # Input array, includes all VM names from DCI that are registered.$arrVMsInfo = Import-Csv "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\scripts\vmowners1.csv"#Write-Output $data
    
    ## loop through all VMs listed in the CSV, setting custom attrib values for eachForEach ($row in $arrVMsInfo) {    ## get the VM for this row    $vmThisOne = Get-VM -Name $row.hostname    Set-Annotation -Entity $vmThisOne -CustomAttribute "Business System Owner" -Value $row.business_owner    Set-Annotation -Entity $vmThisOne -CustomAttribute "SSG System Owner" -Value $row.system_owner} ## end foreach
    

    And, to give it a shot without actually play the game on annotations, to make sure things go as you like, you could add a - WhatIf to each line in Set-Annotation in the ForEach loop.

    Which works better for you?

  • Custom attribute editor changes in activating Contributor mode is not the Save"" button.

    We wrote a custom with two boxes attribute editor and save the two values in a single field. The part of the user interface of its works very well. But the problem we have is when you change a value of these custom attributes for an asset in contributor 'Save' mode is not getting activated as expected. To save the values of this custom attribute Editor, must modify any other attribute of asset values and then save the assets to save the values of the modified attributes.  Please find the code for the item below

    <%@ taglib prefix="cs" uri="futuretense_cs/ftcs1_0.tld"
    %><%@ taglib prefix="ics" uri="futuretense_cs/ics.tld"
    %>
    <cs:ftcs>
    <ics:setvar name="doDefaultDisplay" value="no"/>
    <tr>
        <ics:callelement element="OpenMarket/Gator/FlexibleAssets/Common/DisplayAttributeName"/>
        <td></td>
        <td>
      <select name="Integers" id="Integers" onChange="javascript:saveChanges()" dojoType="fw.dijit.UISimpleSelect" showErrors="false" clearButton="true" size="1">
      <option value="1">1</option>
      <option value="2">2</option>
      <option value="3">3</option>
      <option value="4">4</option>
      <option value="5">5</option>
      <option value="6">6</option>
      </select>
      <select name="Units" id="Units" onChange="javascript:saveChanges()" dojoType="fw.dijit.UISimpleSelect" showErrors="false" clearButton="true" size="1">
      <option value="days">Days</option>
      <option value="hours">Hours</option>
      <option value="mins">Mins<option>
      </select>
         
        </td>
    </tr>
    <input type="hidden" id="IntegerUnitsValue" name='<%=ics.GetVar("cs_SingleInputName")%>' value='<%=ics.GetVar("Integers")+"-"+ics.GetVar("Units")%>'/>
     <ics:if condition='<%="true".equals(ics.GetVar("RequiredAttr"))%>'>
      <ics:then>
      <ics:setvar name="RequireInfo" value='<%="*" + ics.GetVar("cs_SingleInputName") + "*" + ics.GetVar("currentAttrName") + "*ReqTrue*" + ics.GetVar("AttrType") + "*text!" %>'/>
      </ics:then>
      <ics:else>
      <ics:setvar name="RequireInfo" value='<%="*" + ics.GetVar("cs_SingleInputName") + "*" + ics.GetVar("currentAttrName") + "*ReqFalse*" + ics.GetVar("AttrType") + "*text!" %>'/>
      </ics:else>
      </ics:if>
       <%
            String value = ics.GetVar("ContentDetails:" +ics.GetVar("cs_SingleInputName"));
            value = value!=null?value:"";
      String[] integerunits=new String[2];
      if(value.length()>0 && value.indexOf("-")>0){
      integerunits=value.split("-");
       %>
      <script language="JavaScript">
      var interunitsSize=<%=integerunits.length%>;
      var integerValue="<%=integerunits[0]%>";
      var unitValue="<%=integerunits[1]%>";
    
      var integersObj = document.getElementById('Integers');
      var unitsObj = document.getElementById('Units');
      for(i=0;i<integersObj.options.length;i++){
      if(integersObj.options[i].value==integerValue){
      integersObj.options[i].selected=true;
      }
      }
      for(i=0;i<unitsObj.options.length;i++){
      if(unitsObj.options[i].value==unitValue){
      unitsObj.options[i].selected=true;
      }
      }
      function saveChanges(){
      var IntegerUnitsValue=document.getElementById("IntegerUnitsValue");
      var integersObj = document.getElementById('Integers');
      var unitsObj = document.getElementById('Units');
       IntegerUnitsValue.value=integersObj.options[integersObj.selectedIndex].value+"-"+unitsObj.options[unitsObj.selectedIndex].value;
       }
      </script>
      <%}%>
     </cs:ftcs>
    
    
    

    Found the answer to this issue of support. I need to include "setTabDirty();" in the javascript function.

  • Update custom attributes - additional Note fields

    I tear my head off with getting a script works, maybe

    You can help

    I'm looking to see if a custom on all machines attribute is

    populated. If not then I would like to fill

    I can't seem to find the way out of the value of the

    attribute.

    The idea of the script would be to review all the VMS on a daily basis - see

    If they are populated with the field "date installation" – if not.

    means that they have been created in the past day. I would check if this field is

    filled, if not, get the date of creation of AD and fill and if the

    the machine is not windows, fill in the date of the day.

    This way I can also follow the old VM's to see if they are still

    necessary.

    Of course also allows to add to a report of all VM

    created by day and many other uses.

    I think it's in the note field

    Thanks a bunch

    Join the code here...

    ==============================================================================================

    This script will scan all the vm to check if the "Date installation" field has a value. Otherwise it will be the Active Directory query for the computer account creation date

    and fill in the field. If the information is not present in AD, then it will set the value for today's date

    ==============================================================================================

    $folder = Read-Host "Please enter the name of the folder:

    $tgtName = "date of installation.

    $today = Get-Date -uformat '% d/%m/%Y '.

    Get-file $folder | Get-VM | ForEach-Object {

    $cdate = Get-QADComputer -name $_. Name

    $vmid = (Get-view $_.ID)

    foreach ($fld in $vmid. Availablefield)

    {

    If ($fld. {Name - eq $tgtName)}

    $tgt = $fld. Key

    }

    foreach ($val in $vm. CustomValue) {}

    If ($val. Key - eq $tgt) {}

    If ($val. Value - eq "") {}

    If ($cdate - eq "") {}

    Get-vm $_. Name | Set-CustomField -name 'Date '.

    Installed" -value $today

    }

    Else {}

    $convertDate = $cdate.whencreated

    Get-vm $_. Name | Set-CustomField -name 'Date '.

    {Installed" -value $convertDate.ToShortDateString ()}

    }

    }

    }

    }

    }

    Thanks in advance...

    Maish

    Director systems & virtualization architect

    http://technodrone.blogspot.com

    The script below should do what you want.

    A few notes:

    • the logic to get the date of installation for Windows and Linux clients has been moved to a separate function

    • to cover all possibilities that I used 2 flags ($tgt and $found). According to these flags the custom attribute will be left alone, created or updated to date.

    • using the cmdlet Get-QADComputer requires the presence of the snap of the Quest.ActiveRoles.ADManagement.

    function Get-DateInstalled($VMname){
         $ADcomp = Get-QADComputer -Name $_.Name
         if($ADcomp -ne $null){
              $convertDate = $ADcomp.whencreated.ToShortDateString()
              return $convertDate
         }
         else{
              $today = Get-Date -uformat "%d/%m/%Y"
              return $today
         }
    }
    
    $folder = "POC"
    $tgtName = "Date Installed"
    $today = Get-Date -uformat "%d/%m/%Y"
    
    Get-Datacenter "ENG" | Get-Folder $folder | Get-VM | ForEach-Object {
         $vmid = (Get-View $_.ID)
         $tgt = (-1)
         foreach ($fld in $vmid.Availablefield) {
              if ($fld.Name -eq $tgtName) {
                   $tgt = $fld.Key
              }
         }
    
         $found = (-1)
         # "Date Installed" found
         if($tgt -ne (-1)){
              # Custom values present
              if($vmid.CustomValue -ne $null){
                   foreach($val in $vmid.CustomValue){
                        if($val.Key -eq $tgt){
                             $found = $val.Value
                        }
                   }
              }
         }
         if($found -eq (-1)){
              if($tgt -ne (-1)){
                   Get-VM $_.Name | Set-CustomField -name "Date Installed" -value (Get-DateInstalled $_.Name)
              }
              else{
                   Get-VM $_.Name | New-CustomField -name "Date Installed" -value (Get-DateInstalled $_.Name)
              }
         }
    }
    
  • Report Generation Toolkit failure with Win 7 and Labview 2013

    Recently, I had my computer updated to Windows 7 and now I see a problem with the generation of reports (version 2013) tool when you work with Excel files.  If I try to launch the new Report.vi with the selected report type Excel I get error-2146777998.  Do the same with the chosen word finally opens Word, even if it takes 10 seconds, but it does not generate an error.  Selection of Standard or HTML report also run without error.

    I studied him this error on line, but I continue to find .NET and c# forums where everything goes over my head. Anyone have any suggestions?

    I found the solution to this error 2146777998 code source. There are two template files located in C:\Program Files (x 86) \National Instruments\LabVIEW 2013\templates\Report by the name of MSOffice_RGT_Template.dot and MSOffice_RGT_Template.xlt.  The problem came down to these models been corrupted somehow in the new facility. As soon as I replaced the versions from another machine, the problem disappeared.

    As a side note, I discovered the problem by kicking off the MS Office report Express vi and out came a much clearer message aimed me models. Not very well why this message is not included in the different Subvi on the pallet, but life is a mystery.

  • Generate the report for the custom period

    I did experiment with Foglight NMS for the past few weeks. I have search in the forums and hunts around the tool, but I've not found a way to generate a report on a custom period. For example, I would like to run a report, see use of bandwidth during opening hours. The only options I see is "last hour", "Last day", "Last week", etc. "." Is this possible? Any help or ideas would be appreciated.

    Hi Michael,

    While we do not have a report which shows the range you're looking for, you can see the use of bandwidth via NetFlow. I know it is not a report, but could be able to show the amount of data sent over the network for a period of time. Lies and must have the feature seen on the road map.

    Mario

  • BGP announcement: How do I remove the attributes "next hop" and "metrics" inherited from OSPF?

    Hello

    I use a router THAT WAN Cisco ASR1001 connected via BGP AS65075 with our ISP.

    This router is connected through OSPF with our Cisco 7206VXR/NPE-G2 firewall.

    Topology:

    ISP <- bgp="" -="">RT 1001 <- ospf="" -="">FW 7206 <->LAN

    On the WAN router, static routes are set to null0 to always announce our class C networks.

    Route IP 192.168.10.0 255.255.255.0 Null0 250

    ...

    Network guidelines are placed in our BGP configuration:

    router bgp 65075

    The log-neighbor BGP-changes

    neighbor EBGP-PEER-IPv4-peer group

    EBGP-PEER-IPv4 neighbor fall-over bfd

    neighbour 192.168.88.138 distance - as 65200

    192.168.88.138 a neighbor EBGP peers PEERS-IPv4

    192.168.88.138 ISP IPv4 neighbor description

    next password 192.168.88.138 7 unknown

    !

    ipv4 address family

    ...

    network 192.168.10.0

    ...

    a neighbor EBGP-PEER-IPv4 soft-reconfiguration inbound

    EBGP-PEER-IPv4 neighbor distribute-list prefix-v4 on

    an EBGP-PEER-IPv4 neighbor prefix-maximum 100

    neighbor EBGP-PEER-IPv4-1 filter list out

    neighbor 192.168.88.138 activate

    neighbor 192.168.88.138 filter-list 2

    output-address-family

    A part of these networs are also learned through OSPF. If these routes are present in the routing table:

    RT-01 #sh ro ip 192.168.10.0

    Routing for 192.168.10.0/24 entry

    Known via "ospf 1", distance 110, metric 20, type extern 2, metric 1 forward

    Published by bgp 65075

    Last update to 192.168.0.79 on Port - channel1.28, 7w0d there is

    Routing descriptor blocks:

    * 192.168.0.79, from 192.168.0.71, 7w0d there is, through Port - channel1.28

    See metric: 20, number of share of traffic is 1

    Because these roads are active in the rounting table. Announcing BGP based on his and attributes "next hop" and "metric" are inherited from OSPF:

    RT-01 #sh ip bgp neighbors 192.168.88.138 announced-routes

    ...

    Network Next Hop path metrics LocPrf weight

    ...

    * > 192.168.10.0 192.168.0.79 20 32768 I

    ...

    Is it possible to remove the legacy of OSPF into BGP attributes?

    How to set the "next hop" to the value 0.0.0.0 and "metric" to 0?

    Thank you

    Best regards

    Jérôme

    Hello Berthier,

    NEXT_HOP is a hill & attribute mandatory path including the eBGP value is the IP address of the BGP peer (specified in the neighbor's remote control) where the router learns the prefix. Thus, your peers (eBGP) will still see the IP 192.168.88.138 in your BGP Next Hop as updates. I agree you the output of the command ' sh ip bgp neighbors 192.168.88.138 roads announced "can be confusing, but not worried about it.

    Metric 20 is cause of path must be acquired by OSPF. Copy in default atributte MED BGP metric. So I see that you have only a peer is very important change this value because MED is not transitive, if this value is not propagated by other ACE access your provider. Anyway, if you want to change, you must:

    1. create a list of prefixes with one or more prefixes that you want to "reset" the MED value:

    list of prefixes prefix-to-reset-MED seq 5 permit 192.168.10.0/24

    list of prefixes prefix-to-reset-MED seq 10 permit X.X.X

    2. create a roadmap

    allowed to reset - MED card route 5

    match of prefix-to-reset-MED IP prefix-list

    the metric value 0

    road map provided to zero-MED allowed 10

    !

    The last road map is necessary to ensure that the rest of the prefixes are sent.

    3. apply the road map

    a neighbor EBGP-PEER-IPv4-roadmap given to zero-MED on

    Concerning

Maybe you are looking for

  • SPDY enabled in FF 12.0 prevents the loading of Gmail

    If I activate SPDY to 12.0 FF I can't connect to Gmail. The connection try but just hold with connection on the tab indicator slowly turning counterclockwise. I can connect to Gmail with Chrome, which I believe has SPDY-enabled by default.

  • Gravity is HARD on my Tecra M1 disk problem?

    I have a Tecra M1, 1.6 GHz, MS Windows Xp sp2.Last week, I posted a message to describe the problem of my computer. He started very slowly every time I restarted the computer. I logged on and there were Windows to notice that my system has problems.

  • clip + and cd mp3

    OK you gurus, I have a problem, I have 6 mp3 disks that have the Bible on this subject, 'all inclusive '. I seem to have trouble loading on the clip +, med windows player load, so my question is? How to make them in the clip +? I tried other players,

  • Cannot configure OfficeJet 6500 e710n-z on Macbook Pro

    Hello. For the last few weeks, I have been unable to print from my MacBook Pro OS X (10.8.5).  This has happened in the past and telephone technical support me delete printers of in meadows of system and update the printer drivers download from hp.co

  • No preview image deployed when you try to import new images, no possible imports all the

    HelloI use Lightroom 5.7.1 on a 'Late 2012 iMac' with Yosemite OS X.I installed Yosemite first and then Lightroom 5.After that I encountered the first problem (no preview images shown the import module when you try to import new images, the central p