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'))
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('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 AttachRPC('service-query', 'service.query')
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'])
def collect_debug(dispatcher): yield AttachCommandOutput('dsprinttask', ['/usr/local/sbin/dsprinttask', '--last', '100'])
def collect_debug(dispatcher): yield AttachCommandOutput('beadm-list', ['/usr/local/sbin/beadm', 'list'])
def collect_debug(dispatcher): yield AttachDirectory('textdumps', '/data/crash') yield AttachCommandOutput('dsprinttask', ['/usr/local/sbin/dsprinttask', '--last', '100'])
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'])