Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Issuing a snmpwalk from powershell

2,601 views
Skip to first unread message

contr...@gmail.com

unread,
May 7, 2013, 8:44:35 AM5/7/13
to
Hi,
I´m a newbie in Powershell, and I´m looking
for any way to issue a snmpwalk command against Ip addresses
that script will read from a file.
Anything like:
snmpwalk -v2c -c public 213.20.20.59
snmpwalk -v2c -c public 213.20.10.59
snmpwalk -v2c -c public 213.20.3.110
and write output to a file
Thanks.

J�rgen Exner

unread,
May 7, 2013, 8:46:53 AM5/7/13
to
On Tue, 7 May 2013 05:44:35 -0700 (PDT), contr...@gmail.com wrote in
microsoft.public.windows.powershell:

>I�m looking
>for any way to issue a snmpwalk command against Ip addresses
>that script will read from a file.
>Anything like:
>snmpwalk -v2c -c public 213.20.20.59
>snmpwalk -v2c -c public 213.20.10.59
>snmpwalk -v2c -c public 213.20.3.110
>and write output to a file

Which part of this task do you have problems with?

jue

Jürgen Exner

unread,
May 12, 2013, 2:30:50 PM5/12/13
to
On Tue, 07 May 2013 05:46:53 -0700, Jürgen Exner <jurg...@hotmail.com>
wrote in microsoft.public.windows.powershell:
As you are not forthcoming with more information the best anyone can do
is point you to some very generic help. Of course these are just samples
and there are other ways to achive the same goal, whatever that may be:

Read from file: get-help get-content
Loop through addresses: get-help foreach
Run command: get-help invoke-command (although this is most likely
overkill)
Write output to file: get-help set-content
get-help add-content

jue
0 new messages