mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-22 07:40:10 +00:00
gcloud: Tue Mar 1 21:43:54 UTC 2022
This commit is contained in:
parent
c1c3b75313
commit
21878eea72
1018 changed files with 4838 additions and 3409 deletions
|
|
@ -37,43 +37,39 @@ EXAMPLES
|
|||
installed, run:
|
||||
|
||||
$ gcloud alpha compute instances os-inventory list-instances \
|
||||
--package-name="google-cloud-sdk" \
|
||||
--package-version="235.0.0-0"
|
||||
--package-name="google-cloud-sdk" --package-version="235.0.0-0"
|
||||
|
||||
To list all instances with package name matching a regex ^google-cloud
|
||||
available for update through apt, run:
|
||||
|
||||
$ gcloud alpha compute instances os-inventory list-instances \
|
||||
--inventory-filter="\
|
||||
PackageUpdates.apt[].Name~^google-cloud*"
|
||||
--inventory-filter="PackageUpdates.apt[].Name~^google-cloud*"
|
||||
|
||||
To list all instances with package update google-cloud-sdk of version
|
||||
greater than or equal to 235.0.0-0 available through apt, run:
|
||||
|
||||
$ gcloud alpha compute instances os-inventory list-instances \
|
||||
--inventory-filter="\
|
||||
PackageUpdates.apt[].['google-cloud-sdk'].Version>=235.0.0-0"
|
||||
--inventory-filter="PackageUpdates.apt[].['google-cloud-sdk'].Ve\
|
||||
rsion>=235.0.0-0"
|
||||
|
||||
To list all instances missing the Stackdriver monitoring package
|
||||
stackdriver-agent, run:
|
||||
|
||||
$ gcloud alpha compute instances os-inventory list-instances \
|
||||
--inventory-filter="\
|
||||
NOT(InstalledPackages:stackdriver-agent)"
|
||||
--inventory-filter="NOT(InstalledPackages:stackdriver-agent)"
|
||||
|
||||
To list all Windows instances with an installed qfe hotfix whose ID equals
|
||||
KB4462930, run:
|
||||
|
||||
$ gcloud alpha compute instances os-inventory list-instances \
|
||||
--inventory-filter="\
|
||||
InstalledPackages.qfe[].HotFixID=KB4462930"
|
||||
--inventory-filter="InstalledPackages.qfe[].HotFixID=KB4462930"
|
||||
|
||||
To list all Windows instances with a wua update whose description contains
|
||||
the word Security, run:
|
||||
|
||||
$ gcloud alpha compute instances os-inventory list-instances \
|
||||
--inventory-filter="\
|
||||
InstalledPackages.wua[].Description:Security"
|
||||
--inventory-filter="InstalledPackages.wua[].Description:Security\
|
||||
"
|
||||
|
||||
FLAGS
|
||||
--inventory-filter=INVENTORY_FILTER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue