def enable_ssh():
 _current = global_settings()
 if (_current['Global Settings']['SSH_STATUS']['VALUE'] == 'Y'):
  return True
 _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <RIB_INFO MODE="write">\n                    <MOD_GLOBAL_SETTINGS>\n                      <SSH_STATUS value="Yes"/>\n                    </MOD_GLOBAL_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>'
 return __execute_cmd('Enable_SSH', _xml)

def enable_ssh ( ) : _current = global_settings ( ) if ( _current [ 'Global Settings' ] [ 'SSH_STATUS' ] [ 'VALUE' ] == 'Y' ) : return True _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <RIB_INFO MODE="write">\n                    <MOD_GLOBAL_SETTINGS>\n                      <SSH_STATUS value="Yes"/>\n                    </MOD_GLOBAL_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>' return __execute_cmd ( 'Enable_SSH' , _xml )
enable the ssh daemon cli example: .