@@ -1050,6 +1050,32 @@ let rec cmdtable_data : (string * cmd_spec) list =
10501050 ; flags= [Host_selectors ]
10511051 }
10521052 )
1053+ ; ( " host-enable-ssh"
1054+ , {
1055+ reqd= []
1056+ ; optn= []
1057+ ; help=
1058+ " Enable SSH access on the host. It will start the service sshd only \
1059+ if it is not running. It will also enable the service sshd only if \
1060+ it is not enabled. A newly joined host in the pool or an ejected \
1061+ host from the pool would keep the original status."
1062+ ; implementation= No_fd Cli_operations. host_enable_ssh
1063+ ; flags= [Host_selectors ]
1064+ }
1065+ )
1066+ ; ( " host-disable-ssh"
1067+ , {
1068+ reqd= []
1069+ ; optn= []
1070+ ; help=
1071+ " Disable SSH access on the host. It will stop the service sshd only \
1072+ if it is running. It will also disable the service sshd only if it \
1073+ is enabled. A newly joined host in the pool or an ejected host from \
1074+ the pool would keep the original status."
1075+ ; implementation= No_fd Cli_operations. host_disable_ssh
1076+ ; flags= [Host_selectors ]
1077+ }
1078+ )
10531079 ; ( " host-emergency-clear-mandatory-guidance"
10541080 , {
10551081 reqd= []
@@ -3107,6 +3133,28 @@ let rec cmdtable_data : (string * cmd_spec) list =
31073133 ; flags= []
31083134 }
31093135 )
3136+ ; ( " pool-enable-ssh"
3137+ , {
3138+ reqd= []
3139+ ; optn= []
3140+ ; help=
3141+ " Enable SSH access on all hosts in the pool. It's a helper which \
3142+ calls host.enable_ssh for all the hosts in the pool."
3143+ ; implementation= No_fd Cli_operations. pool_enable_ssh
3144+ ; flags= []
3145+ }
3146+ )
3147+ ; ( " pool-disable-ssh"
3148+ , {
3149+ reqd= []
3150+ ; optn= []
3151+ ; help=
3152+ " Disable SSH access on all hosts in the pool. It's a helper which \
3153+ calls host.disable_ssh for all the hosts in the pool."
3154+ ; implementation= No_fd Cli_operations. pool_disable_ssh
3155+ ; flags= []
3156+ }
3157+ )
31103158 ; ( " host-ha-xapi-healthcheck"
31113159 , {
31123160 reqd= []
0 commit comments