1

I'd like to run htop on a few hosts, using clusterssh. I haven't changed any defaults in .clusterssh/config.

This works fine:

$ clusterssh somehosts -a uptime
...
12:11:30 up 8 days,  4:42,  1 user,  load average: 2.04, 1.74, 1.71

This doesn't:

$ clusterssh somehosts -a htop
...
Error opening terminal: unknown.

If I run without an action, TERM is set:

$ clusterssh somehosts
...
$ echo $TERM
xterm

Can anyone point me toward useful info on this? TIA.

Greg O
  • 11
  • 1

1 Answers1

0

It's not beautiful, but it works:

clusterssh somehosts -a 'export TERM=xterm-256color && htop'

or

cssh somehosts -a 'export TERM=xterm-256color && htop'
AdminBee
  • 21,637
  • 21
  • 47
  • 71
h4km4k
  • 1
  • 1