tri_94 Posted November 7, 2019 Posted November 7, 2019 Hi there can anyone please tell me what i require inorder to use the command netlldpagent Ref : https://docs.microsoft.com/en-us/powershell/module/netldpagent/enable-netlldpagent?view=win10-ps Thanks Nick
bald_pig Posted November 7, 2019 Posted November 7, 2019 Hi there can anyone please tell me what i require inorder to use the command netlldpagent Ref : https://docs.microsoft.com/en-us/powershell/module/netldpagent/enable-netlldpagent?view=win10-ps Thanks Nick Powershell? 1
howartp Posted November 7, 2019 Posted November 7, 2019 Hi there can anyone please tell me what i require inorder to use the command netlldpagent Ref : https://docs.microsoft.com/en-us/powershell/module/netldpagent/enable-netlldpagent?view=win10-ps Thanks Nick You and I are on the same task today - i've just discovered LLDP and investigating it with a vengeance! Unfortunately I don't know a helpful answer to your question yet.
David44 Posted November 7, 2019 Posted November 7, 2019 Open Powershell and type it in. If that doesn't work, try... Import-Module netldpagent and then try typing the command in again. If that doesn't work, ask again.
tri_94 Posted November 7, 2019 Author Posted November 7, 2019 Import-Module : The specified module 'netldpagent' was not loaded because no valid module file was found in any module directory.
bald_pig Posted November 7, 2019 Posted November 7, 2019 Import-Module : The specified module 'netldpagent' was not loaded because no valid module file was found in any module directory. shoud be "NetLldpAgent"
tri_94 Posted November 7, 2019 Author Posted November 7, 2019 tried on Windows 10 LTSB 2016, 1809, Server 2016, Server 2019. last pc i tried version of powershell was 5.1.14393.2248 - - - Updated - - - shoud be "NetLldpAgent" Same error
HPlum78 Posted November 7, 2019 Posted November 7, 2019 (edited) Need to have the following Windows features enabled/ installed:- Data Center Bridging DataCenterBridging LLDP Tools Edited November 7, 2019 by HPlum78 1
Arthur Posted November 7, 2019 Posted November 7, 2019 This should work for Windows 10... If (!(Get-WindowsOptionalFeature -Online -FeatureName 'DataCenterBridging').State -eq 'Enabled') { Enable-WindowsOptionalFeature -Online -FeatureName 'DataCenterBridging' } Get-NetAdapter | Where-Object { $_.Name -like "*Ethernet*" -and $_.Status -eq 'Up' } | ForEach { Enable-NetLldpAgent -NetAdapterName $_.Name -Verbose } 2
Netvic Posted June 4, 2020 Posted June 4, 2020 I haven't found much information on Enable-NetLldpAgent anywhere when looking online and i was wondering if you knew anything else about it's parameters. I'm not very proficient with powershell, but i'm hoping that NetlldpAgent can output the computer's hostname under the SysName or ChassisId instead of the Mac Address. I know that $env:computername can be used to parse the hostname, but i don't know how to feed it into the NetLldpAgent. Any idea?
HPlum78 Posted June 5, 2020 Posted June 5, 2020 (edited) So @Netvic I am going to in the first instance say that get-help is your friend here (get-help enable-netlldpagent or get-netlldpagent). But just for you here is the online documentation https://docs.microsoft.com/en-us/powershell/module/netldpagent/enable-netlldpagent?view=win10-ps or https://docs.microsoft.com/en-us/powershell/module/netldpagent/get-netlldpagent?view=win10-ps I am not 100% clear on what your after from the netlldpagent commands but get-computerinfo may help. Edited June 5, 2020 by HPlum78
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now