Skip to content

rafalop/ufmctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ufmctl

cli for interacting with UFM API

building

install go (ubuntu|mac)

snap|brew install go

You can also install using upstream tarball etc.

prep module

go mod init ufmctl
go mod tidy

build

go build ufmctl

run examples

./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

notes

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.

About

cli for interacting with UFM API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages