Adding SNMP trap destinations via script

Discussion in 'Scripting' started by Mark, Jul 25, 2003.

  1. Mark

    Mark Guest

    I am trying to compose a script that will allow me to add
    two new trap destinations to a community string. I have
    been able to determine that this would be done in:

    HKLM\system\controlset001
    \services\snmp\parameters\trapconfiguration\<communitystrin
    g>

    I am simply having a brain cramp on how to accomplish this
    so that it is applied to every server then stops and
    restarts the SNMP service to activate the
    new destinations...

    For the record, this will be applied to both NT 4.0 and
    W2k servers.

    Any help is appreciated!
    Mark
     
    Mark, Jul 25, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.