'ping
Ping the SpiderFoot server to ensure it\'s responding.'

def do_ping(self, line):

    d = self.request((self.ownopts['cli.server_baseurl'] + '/ping'))
    if (not d):
        return
    s = json.loads(d)
    if (s[0] == 'SUCCESS'):
        self.dprint((('Server    ' + self.ownopts['cli.server_baseurl']) + '    responding.'))
        self.do_modules('', cacheonly=True)
        self.do_types('', cacheonly=True)
    else:
        self.dprint(('Something    odd    happened:    ' + str(d)))
    if (s[1] != self.version):
        self.edprint((((('Server    and    CLI    version    are    not    the    same    (' + s[1]) + '    /    ') + self.version) + ').    This    could    lead    to    unpredictable    results!'))
