edf-hpc / clara

Cluster Administration tools
Other
18 stars 12 forks source link

Ability to pass -j and -f cli flags to conman #41

Closed mehdid closed 9 years ago

mehdid commented 9 years ago

When a session is already started, this kind of message is printed by conman :

clara ipmi connect pocritical2

ERROR: Found console already in use. Console [pocritical2] open R/W by root@localhost on pts/0 (idle 24m25s). Do you want to force (-f) or join (-j) the connection? clara - conman -d poadmin pocritical2

It would be nice to add -j and -f cli flags for use in the "connect" context. So that we will be able to do : clara ipmi connect -j pocritical2 or clara ipmi connect -f pocritical2 or even clara ipmi connect -j -f pocritical2 and clara ipmi connect -f -j pocritical2

Note that those flags are only relevant when running conman. ipmitool doesn't support them.