Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Powershell and SNMP

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-08-2008   #1 (permalink)
CodeTestDummy
Guest


 

Powershell and SNMP

Does anyone have any samples PS script using SNMP?

My System SpecsSystem Spec
Old 05-08-2008   #2 (permalink)
Shay Levi
Guest


 

Re: Powershell and SNMP



Have you checked /n software NetCmdlets?

http://www.nsoftware.com/PowerShell/

It has a get/set-snmp cmdlets for SNMP management capabilities.



---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> Does anyone have any samples PS script using SNMP?
>

My System SpecsSystem Spec
Old 05-08-2008   #3 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Powershell and SNMP

CodeTestDummy wrote:
Quote:

> Does anyone have any samples PS script using SNMP?
Can you be more specific on what you want to achieve?

/\/\o\/\/\/ has this:
http://thepowershellguy.com/blogs/po...an-script.aspx

It could be easily adapted to create a very simply UDP packet that might
look like a SNMP trap.

I had found this years ago:
http://www.ncomtech.com/trapgen.html

I had used the COM version to create SNMP traps from VBScript and that
worked very well.

I could post a sample of using it...

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 05-09-2008   #4 (permalink)
Alex K. Angelopoulos
Guest


 

Re: Powershell and SNMP

<delurk>
Please do post it, Marco. Lots of vendors talk about scripting SNMP still,
but useful available examples are relatively rare. ; )


"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:Ozk1$ZXsIHA.3940@xxxxxx
Quote:

> CodeTestDummy wrote:
Quote:

>> Does anyone have any samples PS script using SNMP?
>
> Can you be more specific on what you want to achieve?
>
> /\/\o\/\/\/ has this:
> http://thepowershellguy.com/blogs/po...an-script.aspx
>
> It could be easily adapted to create a very simply UDP packet that might
> look like a SNMP trap.
>
> I had found this years ago:
> http://www.ncomtech.com/trapgen.html
>
> I had used the COM version to create SNMP traps from VBScript and that
> worked very well.
>
> I could post a sample of using it...
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 05-09-2008   #5 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Powershell and SNMP

Alex K. Angelopoulos wrote:
Quote:

> <delurk>
> Please do post it, Marco. Lots of vendors talk about scripting SNMP
> still, but useful available examples are relatively rare. ; )
I'll blog it.

Nice to see you around Alex... ;-)

Marco
My System SpecsSystem Spec
Old 05-09-2008   #6 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Powershell and SNMP

Quote:

> I had found this years ago:
> http://www.ncomtech.com/trapgen.html
>
> I had used the COM version to create SNMP traps from VBScript and that
> worked very well.
Unfortunately, the COM version does not work properly with PowerShell.

I'll have to embed some VBScript to make it work.

Marco
My System SpecsSystem Spec
Old 05-09-2008   #7 (permalink)
Alex K. Angelopoulos
Guest


 

Re: Powershell and SNMP

It's been a while for me, but I'm back around finally. I'll be kibitzing on
some other posts later. And I absolutely love what everyone's done with the
place while I've been gone! : )


"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:#ORJARcsIHA.484@xxxxxx
Quote:

> Alex K. Angelopoulos wrote:
Quote:

>> <delurk>
>> Please do post it, Marco. Lots of vendors talk about scripting SNMP
>> still, but useful available examples are relatively rare. ; )
>
> I'll blog it.
>
> Nice to see you around Alex... ;-)
>
> Marco
My System SpecsSystem Spec
Old 05-09-2008   #8 (permalink)
Chris Warwick
Guest


 

Re: Powershell and SNMP

On Fri, 9 May 2008 06:46:10 -0400, "Alex K. Angelopoulos"
<aka(at)mvps.org> wrote:
Quote:

><delurk>
:-)

Welcome back!
My System SpecsSystem Spec
Old 05-12-2008   #9 (permalink)
CodeTestDummy
Guest


 

Re: Powershell and SNMP

I would like to do some remote management. Like powering on and off and
some other things.


"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:Ozk1$ZXsIHA.3940@xxxxxx
Quote:

> CodeTestDummy wrote:
Quote:

>> Does anyone have any samples PS script using SNMP?
>
> Can you be more specific on what you want to achieve?
>
> /\/\o\/\/\/ has this:
> http://thepowershellguy.com/blogs/po...an-script.aspx
>
> It could be easily adapted to create a very simply UDP packet that might
> look like a SNMP trap.
>
> I had found this years ago:
> http://www.ncomtech.com/trapgen.html
>
> I had used the COM version to create SNMP traps from VBScript and that
> worked very well.
>
> I could post a sample of using it...
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 05-12-2008   #10 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Powershell and SNMP

CodeTestDummy wrote:
Quote:

> I would like to do some remote management. Like powering on and off and
> some other things.
What's the remote device? Assuming you can share that info...

Marco
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
SNMP Community names on Vista Dee Vista installation & setup 2 02-03-2008 07:13 AM
Configuring an automated SNMP installation using Ocsetup Paul Farnam Vista installation & setup 0 11-02-2007 09:25 AM
Powershell use of SNMP WMI Provider OwenC PowerShell 2 06-02-2007 06:15 PM
Probs trying to use snmp to get info from printer Eddy Steenbergen PowerShell 2 01-01-2007 05:55 PM
Using PowerShell to get SNMP/Memory Usage data, is it possible? DreamweaverN PowerShell 1 10-30-2006 05:36 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008