[ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]

On 19 October 2010 18:19, Ghelani Hinesh <[email protected]> wrote:
>
> Hi Dave hope you are well and many thanks for your prompt reply.
>
> First and foremost in answer to your question
>
> Does the "snmpwalk.exe" command work as expected if run from a command prompt?
>
> The answer is yes.

Good - so the issue is not with the Net-SNMP software.
It's with the Microsoft Windows scripting environment
that you're using.


> ======================================================
>
> However (as the saying goes I would like to hear if from the horses mouth)

If you're looking for information about Windows scripting,
then we are really not the right place to ask.
While there are some Windows people here, the historical
basis of the Net-SNMP project is very much Unix-biased.


> Hence, If I wanted the output from this
>     snmpwalk -v 2c -c dashisto 192.168.12.34 1.3.6.1.2.1.2.2.1.7
>
> Sent to a text file
> Let's say
>      C:\zzz.txt
>
> And if you were performing this from the command prompt on a windows PC
> What would be the correct command line arguments be to achieve the above 
> result?


As far as I know, the command

    snmpwalk -v 2c -c dashisto 192.168.12.34 1.3.6.1.2.1.2.2.1.7  >   C:\zzz.txt

        should do that.


> Could you kindly show me how you would construct the above line so that 
> output is sent to C:\zzz.txt

The command above should work from a command prompt, where the Windows "shell"
will interpret the output redirection appropriately.
   [That's my interpretation, at least - but please bear in mind that
I am very much a
Unix/Linux man.  I lay no claim to any particular expertise with using Windows]

I've no idea how you would get the same effect when using Windows scripting.
The best I can suggest is the web page I mentioned yesterday.


> Also are you aware of any SNMP V2 oids one can interrogate to see how
> a switch is performing,

That's a somewhat vague description.
What do you mean by "how a switch is performing"?

Memory usage?   Network traffic?  Box temperature?
And even those are really just broad categories.
"Network traffic" could encompass things such as average throughput,
peak level, collision or error rates, etc, etc, etc

You need to start by thinking about *EXACTLY* what you are interested
in monitoring.   Only then is it possible to suggest appropriate MIB objects.

Dave

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to