Questions tagged [gcutil]

gcutil is a command-line tool that is used to manage your Google Compute Engine resources

gcutil is a command-line tool that is used to manage your Google Compute Engine resources. It is a part of Google Cloud SDK.

30 questions
13
votes
2 answers

List all projects in Google Compute Engine using gcloud

Is it possible to use gcloud or gcutil to list all registered projects for a login? At https://developers.google.com/cloud/sdk/gcloud there is no mention of such an option. Similar to gcloud config list --all, I am looking for something like gcloud…
Hanxue
  • 12,243
  • 18
  • 88
  • 130
6
votes
3 answers

How can I get the GCE instance name where my script is running?

I'm currently trying to manipulate the metadata of my instance from the startup-script. To do that I have to use the following command : gcutil setinstancemetadata --metadata= --fingerprint=
Benoît Sauvère
  • 701
  • 7
  • 23
6
votes
1 answer

Remove user from Google Compute Engine instances

I'm using gcutil to access Google Compute Engine instances. I noticed that when I spin up a new instance, the new instance has a user that I used on a previous machine in this project. I want to remove that user - not just from this machine, which…
user658587
3
votes
2 answers

How do you rename a GCE persistent disk?

This should be easy but ... I have been working on a Google Compute Engine persistent disk image that I'm calling utilserver, and basically now need to build it again from scratch, but I might need the original one to try a few things in case…
2
votes
1 answer

How can I get a specific metadata value of a Google Compute Engine instance?

I was wondering how to get the value of a specific metadata for a given instance in GCE. For now I can view all the instance property with : gcutil getinstance instance-test But it returns all the metadata and I can not find a "filter" option in…
Benoît Sauvère
  • 701
  • 7
  • 23
2
votes
2 answers

exporting files from GCE to my local machine

Is there a reverse command for gcutil push basically what I want to do is have a copy of my python files on my local machine so I'm looking for a way to import the files into my local machine exporting them from my google compute engine instance…
liv a
  • 3,232
  • 6
  • 35
  • 76
2
votes
1 answer

Google Compute Engine gcutil using ssh with internal/private address of an instance

Base on VPN i would like to remove the external ip address of my servers and only ssh using their internal/private ip address. I have a VPN GW in my Google Compute private network and all my servers doesn't have any external ip address. I can open a…
Amir
  • 54
  • 8
1
vote
1 answer

google cloud Batch prediction only supports Tensorflow.FRAMEWORK_CUSTOM_CLASS

I am trying to do some image batch predictions on a custom model prediction routine. I have followed this tutorial for creating the routine wrapper. I have deployed my model as a tar.gz on google cloud ai platform, created a version and so on. Now…
DarioB
  • 1,349
  • 2
  • 21
  • 44
1
vote
2 answers

Asynchronous requests with gcloud command line utility?

gcutil had a --[no]synchronous_mode option, allowing a command to return immediately after posting a request. I can't find a similar feature in gcloud compute, as gcutil is being deprecated. That's particularly unhelpful for scripts doing disk…
tanji
  • 21
  • 4
1
vote
1 answer

gcutil --filter arguments error

Encountered a problem trying to run gcutil listinstances --filter="name eq foo" (for example...) I get the following error: RuntimeError: CommandError: Unknown argument: "eq", "foo" This follows the examples found in the official usage tips. Seems…
1
vote
1 answer

Transfer files from one google compute engine instance to another?

I'm trying to copy files from one GCE instance to another. Instead of using google cloud storage with gsutil (which sometimes hangs for me), I'd like to try using gcutil pull. I'm trying to do: gcutil pull someInstance /some/file/path/here . It…
aloo
  • 5,331
  • 7
  • 55
  • 94
1
vote
1 answer

does gcutil addsnapshot replace existing ones?

The documentation states that gcutil addsnapshot will create a new snapshot. My question is: If a snapshot with the same name already exists, will it replace that snapshot?
jamie
  • 672
  • 1
  • 9
  • 17
1
vote
1 answer

Can you connect to GCE via gcutil using Chrome Secure SSH?

Is it possible to connect to GCE VM instances using Chrome's Secure SSH? If so, how are you all accomplishing this?
1
vote
3 answers

Ssh issues connecting to Google Compute Engine

I've just updated a few servers to the newer version of the gce stack, and I've started having some ssh issues that I'm not quite sure how to fix. I've already looked into issues with the firewall, and the ssh docs aren't a huge help. This is how…
Slater Victoroff
  • 21,376
  • 21
  • 85
  • 144
1
vote
3 answers

Unable to run gcutil from command line

When I try to install gcutil by following steps on https://developers.google.com/compute/docs/gcutil/ here is the bin dir contents of C:\gcutil\google-cloud-sdk\bin : but gcutil does not seem to install correctly. When I attempt to run gcutil I…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
1
2