- Data domain file system GC ddcli -host 10.98.xx.xx -user sysadmin -password changeme -x=0
- Data domain restart ddboost ddcli -host 10.98.xx.xx -user sysadmin -password changeme -x=1
- Data domain delete all storage unit ddcli -host 10.98.xx.xx -user sysadmin -password changeme -x=2
- Data domain delete oldest storage unit ddcli -host 10.98.xx.xx -user sysadmin -password changeme -x=3
- Data movement to cloud ddcli -host 10.98.xx.xx -user sysadmin -password changeme -x=4
- Avamar GC ddcli -host 10.98.xx.xx -user admin -password changeme -x=5
Usage of ddcli.exe:
-host string
Remote server host name or ip address
-password string
Remote server password
-user string
Remote server user name
-v prints current version and exits
-x int
0: Data domain file system GC
1: Data domain restart ddboost
2: Data domain delete all storage unit
3: Data domain delete oldest storage unit
4: Data movement to cloud
5: Avamar GC
e.g.
Include those dd commands:
- filesys clean start
- filesys clean watch
ddcli -host=<remote server host> -user=<remote server user name> -password=<remote server password> -x=0
Include those dd commands:
- ddboost disable
- ddboost enable
ddcli -host=<remote server host> -user=<remote server user name> -password=<remote server password> -x=1
Include those dd commands:
- ddboost storage-unit show
- ddboost storage-unit delete (Loop)
ddcli -host=<remote server host> -user=<remote server user name> -password=<remote server password> -x=2
Include those dd commands:
- ddboost storage-unit show
- ddboost storage-unit delete
ddcli -host=<remote server host> -user=<remote server user name> -password=<remote server password> -x=3
Include those dd commands:
- data-movement start to-tier cloud
- data-movement watch
ddcli -host=<remote server host> -user=<remote server user name> -password=<remote server password> -x=4
Include those dd commands:
- avmaint sched stop --ava
- avmaint checkpoint --ava --wait
- avmaint --ava garbagecollect
- avmaint --ava gcstatus
ddcli -host=<remote server host> -user=<remote server user name> -password=<remote server password> -x=5
If you want to build a package yourself, or contribute. Here is a guide for how to do that. You can always find the latest master builds here
- Go 1.21.5
git clone http://github.com/xiak/datadomain.git
# windows
go build -o bin\ddcli.exe pkg\cmd\main.go
.\bin\ddcli.exe
# linux
go build -o bin/ddcli pkg/cmd/main.go
chmod a+x bin/ddcli
./bin/ddcli
The repo will be built and released automatically by github action when you push a tag (format reg: '[0-9]+.[0-9]+.[0-9]+') to github.com
git tag -a 0.0.1 -m '0.0.1 release'
git push origin 0.0.1
If you have any idea for an improvement or found a bug do not hesitate to open an issue. And if you have time clone this repo and submit a pull request and help me make Diablo better that is all we dream about it!
ddcli is distributed under MIT License.