Difference between revisions of "SNMP and PowerShell"
Jump to navigation
Jump to search
(→Overview: Added Win2008 needs .NET 3.5 note) |
(Added "Snap-In for PowerShell") |
||
Line 185: | Line 185: | ||
.1.3.6.1.2.1.1.7.0 76 | .1.3.6.1.2.1.1.7.0 76 | ||
</pre> | </pre> | ||
== Snap-In for PowerShell == | |||
This isn't really a Snap-In, its just a PowerShell file that you can download and include in your own script in order to get up and running with my functions. | |||
# Download the file below to a <code>lib</code> sub-folder, underneath where you normally run your scripts from | |||
#* http://dl.sandfordit.com/scripts/SNMP.ps1 | |||
# Download the latest '''BigDipper''' binary from http://sharpsnmplib.codeplex.com/releases/view/78947 and extract | |||
# Copy the <code>SharpSnmpLib.dll</code> file to a <code>LexTmSharpSNMP/</code> folder, underneath the <code>lib</code> folder | |||
#* EG in a <code>/lib/LexTmSharpSNMP/</code> under where you run your scripts from | |||
In your script (or PowerShell console window) add/run the following to include the SNMP library... | |||
<source lang="powershell"> | |||
. .\lib\SNMP.ps1 # Inlcude PowerShell helper functions | |||
Load-SnmpAssembly # Load SNMP .NET assembly | |||
</source> | |||
[[Category:SNMP]] | [[Category:SNMP]] | ||
[[Category:PowerShell]] | [[Category:PowerShell]] |