コード例 #1
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'])
コード例 #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
ファイル: SMBPlugin.py プロジェクト: jceel/middleware
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('rc.conf', '/etc/rc.conf')
    yield AttachCommandOutput('servicectl-list',
                              ['/usr/local/sbin/servicectl', 'list'])
    yield AttachRPC('service-query', 'service.query')
コード例 #5
0
def collect_debug(dispatcher):
    yield AttachFile('ctl.conf', '/etc/ctl.conf.shadow')
コード例 #6
0
def collect_debug(dispatcher):
    yield AttachFile('exports', '/etc/exports')
    yield AttachFile('zfs-exports', '/etc/zfs/exports')
コード例 #7
0
def collect_debug(dispatcher):
    yield AttachFile('passwd', '/etc/passwd.json')
    yield AttachFile('group', '/etc/group.json')
コード例 #8
0
ファイル: AFPPlugin.py プロジェクト: jceel/middleware
def collect_debug(dispatcher):
    yield AttachFile('afp.conf', '/usr/local/etc/afp.conf')
コード例 #9
0
def collect_debug(dispatcher):
    yield AttachFile('rc.conf', '/etc/rc.conf')
    yield AttachCommandOutput('enabled-services', ['/usr/sbin/service', '-e'])
コード例 #10
0
def collect_debug(dispatcher):
    yield AttachFile('krb5.conf', '/etc/krb5.conf')
    yield AttachCommandOutput('klist', ['/usr/bin/klist'])