# gpsupport packcore 

This tool collects all the necessary files and generates a script that runs the `gdb` command to create a core file readable by an external host. Use this command when VMware Support needs to collect core files generated by the Greenplum processes.

## <a id="usage"></a>Usage 

```
gpsupport packcore collect -core <corefile> [-binary <binary> ] 
[-keep_tmp_dir] [-ignore_missing] 
```

## <a id="opts"></a>Options 

-core
:   Corefile name.

-binary
:   Binary name that generated the core file.

-keep\_tmp\_dir
:   Do not delete the temporary directory.

-ignore\_missing
:   Ignore missing libraries.

## <a id="exs"></a>Examples 

Collect core info for `core.1234` for binary `/usr/local/greenplum-db/bin/postgres`.

```
gpsupport packcore -cmd collect -core core.1234 -binary /usr/local/greenplum-db/bin/postgres
```

