Command line scripting

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Junkert Ferenc (junkert.ferenc_at_otp-ltp.hu)
Date: 06/28/04


Date: Mon, 28 Jun 2004 15:28:58 +0200


     Hello!

I working with one Windows 2000 server, and i must write one
only-commandline script.

The script view with snmp one switchport state. This state will I store in
one environmental variable.
so:

SET xy = snmp (or any outer) command output

I have seed, the "setx" program but it's no good. I have seed the program
outputs redirect or pipe, but this is bad.
Know anyone how ths work???? Or can I so make this script ?

      Thanks for any help
                                        Frankie



Relevant Pages

  • Re: Slightly [OT] Network Monitoring/Alerting tools
    ... Of course if your server is prone to running out of resources you should also be collecting that data via snmp with thresholds to notify you before you have an outage or at least graphing it so you'll understand the trends. ... We were able to use the monitor to look for ... Most of the common things you would want are already built in so you don't have to script them - or install scripts on all the clients. ...
    (Fedora)
  • SNMP module to query net-snmp
    ... I'm writing a perl script to query linux snmpd daemon (net-snmp) and I'm ... using SNMP module "The Perl5 'SNMP' Extension Module for the Net-SNMP ... correctly ('snmpget' is the client side command of net-snmp package). ...
    (comp.lang.perl.misc)
  • Re: Taint mode piped open problem
    ... I am writing perl script with taint mode. ... command output using command line argument process ID. ...
    (comp.lang.perl.misc)
  • Re: Taint mode piped open problem
    ... command output using command line argument process ID. ... With your script as it stood, ... Perl knows there could be other problems with passing arbitrary data to ...
    (comp.lang.perl.misc)
  • Re: Directory Auditing?
    ... to have file name and redirect this command output to a file like that: ... it's not fantastic but you can base yourself on this to make a better script ...
    (comp.os.linux.security)