lextudio / sharpsnmplib

Sharp SNMP Library- Open Source SNMP for .NET
https://sharpsnmp.com
MIT License
356 stars 152 forks source link

SNMP get on Windows Server 2008 R2 powershell #446

Closed lextudio-support closed 5 hours ago

lextudio-support commented 5 hours ago

Hi all.

I was wondering if there are any powershell users out using this toolset.

I am able to get the "snmpget" to work on my windows 7 x64 PC in powershell using the add-type and pointing the dll but the same does not work on server 2008 r2. It doesn't throw an error when I perform the add-type but when I reference snmpget powershell doesn't know of it.

Any ideas?

thanks

Original Reported Date: 2010-07-27T15:50:51.567-07:00 Original CodePlex Discussion Thread ID: 221620

lextudio-support commented 5 hours ago

Copied from CodePlex without authors:

Powershell is almost another world, so by far no plan to support it.

You may try to see if any Powershell experts can help you diagnose the script, as #SNMP is open source.

Regards,

Lex

Original Posted Date: 2010-07-30T05:56:30.367-07:00

lextudio-support commented 5 hours ago

Copied from CodePlex without authors:

It is a powershell issue not a code issue but thanks for the reply.

I'm using the exe for now and that's working fine.

Thanks Lex.

Original Posted Date: 2010-08-03T10:43:02.657-07:00

lextudio-support commented 5 hours ago

Copied from CodePlex without authors:

An old thread, but for anyone trying to run with PowerShell on Win2008...

Win2008 doesn't have .NET 3.5 (or 4) installed by default, so #SNMP can't run, you need to add it via the Server Manager roles wizard.

For further info see my Wiki page - http://vwiki.co.uk/SNMP_and_PowerShell

Cheers Simon

Original Posted Date: 2012-11-19T15:38:37.62-08:00

lextudio-support commented 5 hours ago

Copied from CodePlex without authors:

Hi Simon,

I did not know you were the author of that Wiki page.

Thank you for showing the tips.

Lex

Original Posted Date: 2012-11-19T18:50:03.943-08:00

lextudio-support commented 5 hours ago

Marked as Answer Date: 2013-10-06T21:30:53.727-07:00