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'])
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))
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'])
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')
def collect_debug(dispatcher): yield AttachFile('ctl.conf', '/etc/ctl.conf.shadow')
def collect_debug(dispatcher): yield AttachFile('exports', '/etc/exports') yield AttachFile('zfs-exports', '/etc/zfs/exports')
def collect_debug(dispatcher): yield AttachFile('passwd', '/etc/passwd.json') yield AttachFile('group', '/etc/group.json')
def collect_debug(dispatcher): yield AttachFile('afp.conf', '/usr/local/etc/afp.conf')
def collect_debug(dispatcher): yield AttachFile('rc.conf', '/etc/rc.conf') yield AttachCommandOutput('enabled-services', ['/usr/sbin/service', '-e'])
def collect_debug(dispatcher): yield AttachFile('krb5.conf', '/etc/krb5.conf') yield AttachCommandOutput('klist', ['/usr/bin/klist'])