예제 #1
0
def collect_debug(dispatcher):
    yield AttachCommandOutput('uptime', ['/usr/bin/uptime'])
    yield AttachCommandOutput('date', ['/bin/date'])
    yield AttachCommandOutput('process-list', ['/bin/ps', 'auxww'])
    yield AttachCommandOutput('mountpoints', ['/sbin/mount'])
    yield AttachCommandOutput('df-h', ['/bin/df', '-h'])
    yield AttachCommandOutput('swapinfo', ['/usr/sbin/swapinfo', '-h'])
    yield AttachCommandOutput('kldstat', ['/sbin/kldstat'])
    yield AttachCommandOutput('dmesg', ['/sbin/dmesg', '-a'])
    yield AttachCommandOutput('procstat', ['/usr/bin/procstat', '-akk'])
    yield AttachCommandOutput('vmstat', ['/usr/bin/vmstat', '-i'])
    yield AttachData('version', dispatcher.call_sync('system.info.version'))
예제 #2
0
def collect_debug(dispatcher):
    yield AttachFile('rc.conf', '/etc/rc.conf')
    yield AttachCommandOutput('servicectl-list',
                              ['/usr/local/sbin/servicectl', 'list'])
    yield AttachData(
        'service-query',
        dumps(list(dispatcher.call_sync('service.query')), indent=4))
예제 #3
0
def collect_debug(dispatcher):
    yield AttachFile('smb4.conf', '/usr/local/etc/smb4.conf')
    yield AttachCommandOutput('net-conf-list', ['/usr/local/bin/net', 'conf', 'list'])
    yield AttachCommandOutput('net-getlocalsid', ['/usr/local/bin/net', 'getlocalsid'])
    yield AttachCommandOutput('net-getdomainsid', ['/usr/local/bin/net', 'getdomainsid'])
    yield AttachCommandOutput('net-groupmap-list', ['/usr/local/bin/net', 'groupmap', 'list'])
    yield AttachCommandOutput('net-status-sessions', ['/usr/local/bin/net', 'status', 'sessions'])
    yield AttachCommandOutput('net-status-shares', ['/usr/local/bin/net', 'status', 'shares'])
    yield AttachCommandOutput('wbinfo-users', ['/usr/local/bin/wbinfo', '-u'])
    yield AttachCommandOutput('wbinfo-groups', ['/usr/local/bin/wbinfo', '-g'])
예제 #4
0
def collect_debug(dispatcher):
    yield AttachFile('hosts', '/etc/hosts')
    yield AttachFile('resolv.conf', '/etc/resolv.conf')
    yield AttachCommandOutput('ifconfig', ['/sbin/ifconfig', '-v'])
    yield AttachCommandOutput('routing-table', ['/usr/bin/netstat', '-nr'])
    yield AttachCommandOutput('arp-table', ['/usr/sbin/arp', '-an'])
    yield AttachCommandOutput('arp-table', ['/usr/sbin/arp', '-an'])
    yield AttachCommandOutput('mbuf-stats', ['/usr/bin/netstat', '-m'])
    yield AttachCommandOutput('interface-stats', ['/usr/bin/netstat', '-i'])

    for i in ['ip', 'arp', 'udp', 'tcp', 'icmp']:
        yield AttachCommandOutput('netstat-proto-{0}'.format(i), ['/usr/bin/netstat', '-p', i, '-s'])
예제 #5
0
def collect_debug(dispatcher):
    yield AttachFile('rc.conf', '/etc/rc.conf')
    yield AttachCommandOutput('servicectl-list',
                              ['/usr/local/sbin/servicectl', 'list'])
    yield AttachRPC('service-query', 'service.query')
예제 #6
0
def collect_debug(dispatcher):
    yield AttachCommandOutput('dmidecode', ['/usr/local/sbin/dmidecode'])
    yield AttachCommandOutput('pciconf', ['/usr/sbin/pciconf', '-lv'])
    yield AttachCommandOutput('devinfo', ['/usr/sbin/devinfo', '-rv'])
예제 #7
0
def collect_debug(dispatcher):
    yield AttachCommandOutput('dsprinttask',
                              ['/usr/local/sbin/dsprinttask', '--last', '100'])
예제 #8
0
def collect_debug(dispatcher):
    yield AttachCommandOutput('beadm-list', ['/usr/local/sbin/beadm', 'list'])
예제 #9
0
def collect_debug(dispatcher):
    yield AttachDirectory('textdumps', '/data/crash')
    yield AttachCommandOutput('dsprinttask',
                              ['/usr/local/sbin/dsprinttask', '--last', '100'])
예제 #10
0
def collect_debug(dispatcher):
    yield AttachFile('rc.conf', '/etc/rc.conf')
    yield AttachCommandOutput('enabled-services', ['/usr/sbin/service', '-e'])
예제 #11
0
def collect_debug(dispatcher):
    yield AttachFile('krb5.conf', '/etc/krb5.conf')
    yield AttachCommandOutput('klist', ['/usr/bin/klist'])