Nick Hilliard wrote:
Does anyone know of any tricks to get the status of ndmpd connections from a Unix shell? I want to make sure connections are available before i launch ndmpcopy processes.
I'm sure that expect would handle this sort of thing. Have you tried poking around with it?
Yes. ndmpcopy exits with an "unknown error" if all the ndmp sessions are in use. I poked around in the code and it's just returning a (-1).
My problem has been solved though, because someone pointed out to me that if the filer is in rc_toggle_basic mode you can rsh to ndmpd.
Thanks for all the responses.
Graham