code: def login(self):
          
  
          if self.args.snmp_force:
              # Force SNMP instead of Glances server
              self.client_mode = 'snmp'
          else:
              # First of all, trying to connect to a Glances server
              if not self._login_glances():
                  return False
  
          # Try SNMP mode
          if self.client_mode == 'snmp':
              if not self._login_snmp():
                  return False
  
          # Load limits from the configuration file
          # Each client can choose its owns limits
          logger.debug("Load limits from the client configuration file")
          self.stats.load_limits(self.config)
  
          # Init screen
          if self.quiet:
              # In quiet mode, nothing is displayed
              logger.info("Quiet mode is ON: Nothing will be displayed")
          else:
              self.screen = GlancesCursesClient(config=self.config, args=self.args)
  
          # Return True: OK
          return True
docs: Logon to the server.