Skip to content

Instantly share code, notes, and snippets.

@derekcollison
Created July 13, 2011 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekcollison/1079547 to your computer and use it in GitHub Desktop.
Save derekcollison/1079547 to your computer and use it in GitHub Desktop.
Utilizing crash instance ids for the `vmc files` command
~/Development/vcap/apps/crash_foo> vmc push foo
Would you like to deploy from the current directory? [Yn]:
Application Deployed URL: 'foo.cloudfoundry.com'?
Detected a Sinatra Application, is this correct? [Yn]:
Memory Reservation [Default:128M] (64M, 128M, 256M, 512M, 1G or 2G)
Creating Application: OK
Would you like to bind any services to 'foo'? [yN]:
Uploading Application:
Checking for available resources: OK
Packing application: OK
Uploading (0K): OK
Push Status: OK
Staging Application: OK
Starting Application: .............Error: Application 'foo's state is undetermined, not enough information available.
~/Development/vcap/apps/crash_foo> vmc crashes foo
+-------+----------------------------------+--------------------+
| Name | Instance ID | Crashed Time |
+-------+----------------------------------+--------------------+
| foo-1 | 28c242c3bfcc02b62dc3d368961a4e76 | 07/12/2011 08:06PM |
| foo-2 | 97e6b3a757b7e690a70553c63c59d348 | 07/12/2011 08:06PM |
| foo-3 | 71852941df1808bac4d10de5f0dfe32d | 07/12/2011 08:06PM |
| foo-4 | 889b2cf8b7fa12e39344cd93b43c5cb5 | 07/12/2011 08:06PM |
+-------+----------------------------------+--------------------+
~/Development/vcap/apps/crash_foo> vmc files foo --instance 28c242c3bfcc02b62dc3d368961a4e76 logs/stderr.log
No, really help me!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment