Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. SNMPSet

SNMPSet

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 15.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    AB3AI
    wrote on last edited by
    #1

    GE All,

    I have a reset OID that i want to send to a node. The node sits behind a server with an agent running on it. All the DCIs are working fine. How would I send SNMPSet OID to the node to reset (or any other Set command)? I've searched this forum and Google. I've tried different Object Tools and Server Scripts and I can get it to work. Any help would be greatly appreciated.

    Thanks!

    1 Reply Last reply
    0
    • T
      T
      Tursiops
      wrote on last edited by
      #2

      You can create a script, which can then be called via Object Tools.
      For example the following works to reboot Cisco routers:

      snmpTransport = CreateSNMPTransport($node);
      if ( snmpTransport == null ) return "Unable to connect";
      returnValue = SNMPSet(snmpTransport,"1.3.6.1.4.1.9.2.9.9.0","2","INTEGER");
      if ( returnValue == null ) return "No response. Something went wrong.";
      if ( returnValue == 0 ) return "Unable to initiate reload. No SNMP Write Access?";
      if ( returnValue == 1 ) return "Reload triggered.";
      

      In the Object Tools configuration, you create a new Tool of type Server Script and call the script you saved by name. So if the above was called "ReloadCisco" in your Script Library, then that's what you'd call.
      You will probably also want to filter the Object Tool to ensure it doesn't show against systems that can't handle it.
      And of course you have to have SNMP Set/Writes enabled on the device and have that community configured on the node in NetXMS.

      1 Reply Last reply
      0
      • A
        A
        AB3AI
        wrote on last edited by
        #3

        Tursiops,

        Thanks for the reply! I had a chance to try your script. I followed the instructions to implement the script and I all received was a message that it executed successfully. The camera did not reset and I also tried it on a switch. I double checked the write community string. I'm going to have to double check again and make sure I have everything set up correctly.

        Thanks!!

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups