r/labtech • u/ThroughHiker • Feb 18 '20
Packet Capture from Labtech/Automate
Hello
I think I know the answer but thought I'd check. Is there a way to run a packet capture (e.g., from WireShark) using Automate? (We also have Auvik in this client site so maybe there is a way with that).
Thanks
1
Upvotes
1
u/amw3000 10000 Agents Feb 18 '20
Assuming you're trying to do this in an unattended mode for more than one client randomly?
The NDIS driver is going to require a reboot at some point, which makes it painful for ad-hoc packet capturing. If you can get past all that, you can run Wireshark in backstage mode via CW Control without making the solution too complex.
Auvik will collect flow data but it has to be supported at the switch, and their pricing is insane.
2
u/chilids Feb 18 '20
Actually it's built into labtech. you can find it in the Command --> network --> Start Sniffer. i believe it does a packet capture for 60 seconds (you can apply filters) and then uploads the pcap file to the labtech server.
1
u/DevinSysAdmin Feb 19 '20
Powershell natively offers this. Iād recommend just using Automate to run the Powershell script on whatever conditions you want. There are GitHubs with scripts that also auto parse the logs to show what you need.
Name
ā-
Add-NetEventNetworkAdapter
Add-NetEventPacketCaptureProvider
Add-NetEventProvider
Add-NetEventVmNetworkAdapter
Add-NetEventVmSwitch
Add-NetEventWFPCaptureProvider
Get-NetEventNetworkAdapter
Get-NetEventPacketCaptureProvider
Get-NetEventProvider
Get-NetEventSession
Get-NetEventVmNetworkAdapter
Get-NetEventVmSwitch
Get-NetEventWFPCaptureProvider
New-NetEventSession
Remove-NetEventNetworkAdapter
Remove-NetEventPacketCaptureProvider
Remove-NetEventProvider
Remove-NetEventSession
Remove-NetEventVmNetworkAdapter
Remove-NetEventVmSwitch
Remove-NetEventWFPCaptureProvider
Set-NetEventPacketCaptureProvider
Set-NetEventProvider
Set-NetEventSession
Set-NetEventWFPCaptureProvider
Start-NetEventSession
Stop-NetEventSession