cli for interacting with UFM API
snap|brew install go
You can also install using upstream tarball etc.
go mod init ufmctl
go mod tidy
go build ufmctl
./ufmctl -h
./ufmctl --endpoint https://10.0.0.1 --insecure --username root --password s3cr3t pkeys list
./ufmctl --endpoint https://10.0.0.1 --insecure --username root --password s3cr3t ports list
./ufmctl --endpoint https://10.0.0.1 --insecure --username root --password s3cr3t systems list
This will create a file (by default ufm-cookies.txt
) in local dir. Once this cookies file is there, you don't need to supply user and pass and it will prevent re-authing, but the cookies file will not be auto deleted! fairly insecure if you don't delete the cookie after use, but loosely based on what nvidia has documented here https://docs.nvidia.com/networking/display/ufmenterpriserestapiv6152/rest+api+complementary+information ... a work in progress.