Skip to content

Commit 4f57114

Browse files
committed
Script to build vendor/oui list from web added
1 parent cd16829 commit 4f57114

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#$LatestOUI = Get-Content -Path "$PSScriptRoot\oui_from_web.txt"
2-
$LatestOUI = Invoke-WebRequest -Uri "http://linuxnet.ca/ieee/oui.txt"
2+
$LatestOUI = (Invoke-WebRequest -Uri "http://linuxnet.ca/ieee/oui.txt").Content
33

44
$Output = ""
55

6-
foreach($Line in $LatestOUI)
6+
foreach($Line in $LatestOUI -split '[\r\n]')
77
{
88
if($Line -match "^[A-F0-9]{6}")
9-
{
9+
{
1010
# Line looks like: 2405F5 (base 16) Integrated Device Technology (Malaysia) Sdn. Bhd.
1111
$Output += ($Line -replace '\s+', ' ').Replace(' (base 16) ', '|').Trim() + "`n"
1212
}
1313
}
1414

15-
Out-File -InputObject $Output -FilePath "$PSScriptRoot\oui.txt"
15+
Out-File -InputObject $Output -FilePath (Join-Path -Path (Split-Path $PSScriptRoot -Parent) -ChildPath "Source\NETworkManager\Resources\oui.txt")

0 commit comments

Comments
 (0)