# gNOI Factory Reset Client

A simple shell binary that performs Factory Reset operations against a gNOI target. The target will then enter bootstrapping mode.

## gNOI Factory Reset Options
*   `-rollback_os` will attempt to roll back the OS to the factory version and reset all certificates on the target.
*   `-zero_fill` will attempt to zero fill the Target’s persistent storage.

## Install
```
go get github.com/google/gnxi/gnoi_reset
go install github.com/google/gnxi/gnoi_reset
```

## Run 
```
./gnoi_reset \
    -target_addr localhost:9339 \
    -target_name target.com \
    -rollback_os \
    -zero_fill \
    -key client.key \
    -cert client.crt \
    -ca ca.crt
```
