Skip to main content

1E 23.7 (SaaS)

Nomad.FindBestPkgCache

Method

FindBestPkgCache

Module

Nomad

Library

1E

Action

Find the device that has the greatest percentage of the specified content in its Nomad cache.

Parameters

ContentId (string): The ID of the content to search for.

Return values

MachineName (string): The hostname (not FQDN) of the device that has the most content, or one such device if more than one have the maximum available content.

Percent (float): The percentage of the content cached on the named device.

ContentVersion (int): The version of the content on the named device.

Example

What device, if any, has the greatest percentage of content "Content_7f368e5f-4dbe-4027-ba81-c5463e372a0c"?

Nomad.FindBestPkgCache(ContentId : "Content_7f368e5f-4dbe-4027-ba81-c5463e372a0c");

Platforms

  • Windows

Notes

No data is returned if no device has the requested content.

"Pkg" appears in the method name for historical reasons - the method works for any content in a Nomad cache.