Uninett / zino

Zino 2.0 - Network state monitor for research networks
Apache License 2.0
3 stars 5 forks source link

Cli utillity connecting to zino server socket. #264

Open runborg opened 3 months ago

runborg commented 3 months ago

The original zino code includes a cli utility that connects you to zino, authenticates using your stored credentials and gives you a direct shell for running the legacy api. It would be nice to get this tool converted to the new codebase

the original code is located inside the original zino1 repo in zino/ritz/cli.tcl

runborg commented 3 months ago

This utility does not need to be a direct copy of the original, but coould be eg. a more interactive python shell that gives you access to the data.. even also maybe zinolib? but the user needs to be able to execute arbitrary commands on the server and get the data before any processing is done on it.

stveit commented 3 months ago

I recently made a simple Expect script that automates connecting to the legacy API (the whole hashing thing) then hands over control to interact with the API normally. It currently takes hostname, port, username and password as arguments. What you describe already existing in original zino sounds very similar :stuck_out_tongue:

Not sure if theres any benefit to using my script over the original one, but its atleast easy to give arguments. I could send you the script if youre interested