This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

duplicate object for logical disk

 I am running this query to search for NTFS

Select objects of type LogicalDisk from the "(Default)" datasource (of type foglight-5)
    from Root of (foglight-5:default)/HostModel/hosts/storage/logicalDisks
    where:
            (/name like "%NTFS%" And
            /queueLength/period/count greater "0")

When I try to place the information into views for names I get duplicate names. Is there a way to use Distinct function like what i have used in SQL?

Parents
  • Hello Ray,

    But Logical Disks can have the same name. What is the reason you want to do this?

    Do you just need a general List of all possible Names of Drives?

    You can also use the method ".unique{it.name}" from groovy on a list of objects.

    Jan
Reply
  • Hello Ray,

    But Logical Disks can have the same name. What is the reason you want to do this?

    Do you just need a general List of all possible Names of Drives?

    You can also use the method ".unique{it.name}" from groovy on a list of objects.

    Jan
Children
No Data