GCP: How can I find Instances running for a specific time?

Rabata

I try to identify all instances running in my Google Cloud Plattform environment for longer than a certain time period specified by me. How can I achieve this?

laol

Try:

 gcloud compute instances list --filter="creationTimestamp.date('%s', Z)< $(date -d'5 hours ago' +%s)" --format="csv[no-heading](NAME)" 

This should list you all instances running for e.g. more than 5 hours.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how can i detect running specific applications

From Dev

How can I find out which version of Cassandra a specific DSE is running?

From Dev

Docker - How can i find running container?

From Dev

How can I get multiple instances of GNOME Calculator at same time?

From Dev

How can I set an Instant to a specific time?

From Dev

How can I find all instances of a group in regexp?

From Dev

How can I find a specific element with XPath?

From Dev

How can I find a specific element with XPath?

From Dev

Time and coordinates: how can I find this result?

From Dev

How to find the workflow running instances by JAVA in AEM

From Dev

How can improve this algorithm to optimize the running time (find points in segments)

From Dev

How do I find the total running time of videos in a directory?

From Dev

How can I express a time in a specific time zone?

From Dev

How can I express a time in a specific time zone?

From Dev

How can I find out what distro I am running?

From Dev

I think I may be running two instances of Ubuntu at the same time

From Dev

How can I tell if a specific ProcessName is running without crashing

From Dev

How can I force the use of a specific binary when running a script

From Dev

How can I kill a process running on a specific IP and port?

From Dev

How can I see the running time of the terminal? (Ubuntu user)

From Dev

How can I limit the maximum running time for a unit test?

From Dev

How can I see the running time of the terminal? (Ubuntu user)

From Dev

How can I have tomcat and apache running at the same time?

From Dev

How can I get the wall clock time of a running process?

From Dev

how can I change SLEEP time in a running bash script

From Dev

How can I find which drive my exe is running from?

From Dev

How can I find which version of CoreOS is running on a given machine

From Dev

How can I find out the temperature components are running at in 14.04?

From Dev

How can I find which drive my exe is running from?

Related Related

  1. 1

    how can i detect running specific applications

  2. 2

    How can I find out which version of Cassandra a specific DSE is running?

  3. 3

    Docker - How can i find running container?

  4. 4

    How can I get multiple instances of GNOME Calculator at same time?

  5. 5

    How can I set an Instant to a specific time?

  6. 6

    How can I find all instances of a group in regexp?

  7. 7

    How can I find a specific element with XPath?

  8. 8

    How can I find a specific element with XPath?

  9. 9

    Time and coordinates: how can I find this result?

  10. 10

    How to find the workflow running instances by JAVA in AEM

  11. 11

    How can improve this algorithm to optimize the running time (find points in segments)

  12. 12

    How do I find the total running time of videos in a directory?

  13. 13

    How can I express a time in a specific time zone?

  14. 14

    How can I express a time in a specific time zone?

  15. 15

    How can I find out what distro I am running?

  16. 16

    I think I may be running two instances of Ubuntu at the same time

  17. 17

    How can I tell if a specific ProcessName is running without crashing

  18. 18

    How can I force the use of a specific binary when running a script

  19. 19

    How can I kill a process running on a specific IP and port?

  20. 20

    How can I see the running time of the terminal? (Ubuntu user)

  21. 21

    How can I limit the maximum running time for a unit test?

  22. 22

    How can I see the running time of the terminal? (Ubuntu user)

  23. 23

    How can I have tomcat and apache running at the same time?

  24. 24

    How can I get the wall clock time of a running process?

  25. 25

    how can I change SLEEP time in a running bash script

  26. 26

    How can I find which drive my exe is running from?

  27. 27

    How can I find which version of CoreOS is running on a given machine

  28. 28

    How can I find out the temperature components are running at in 14.04?

  29. 29

    How can I find which drive my exe is running from?

HotTag

Archive