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. Access denied when using nxpush

Access denied when using nxpush

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 79.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.
  • V
    V
    victrola
    wrote on last edited by
    #1

    Hi,

    I'm trying to use nxpush (NetXMS 1.0.5) to update a DCI value manually but I am getting an Access Denied error. 

    Here is the command running on Windows Server 2003:

    C:\Program Files\NetXMS\bin>nxpush -vv -H 10.166.149.132 -u admin -p <password> SV078102:71=0
    AddValuePair: dciID="71", nodeName="SV078102", dciName="71", value="0"
    Connecting to "10.166.149.132" as "guest"; encryption is disabled
    NXCL: SendMsg("CMD_GET_SERVER_INFO", id:0)
    NXCL: RecvMsg("CMD_REQUEST_COMPLETED", id:0)
    NXCL: SendMsg("CMD_LOGIN", id:1)
    NXCL: RecvMsg("CMD_LOGIN_RESP", id:1)
    NXCL: Network receiver thread stopped
    Unable to connect to the server: Access denied

    I can log into the console with the username and password that I am using for nxpush.

    Any ideas?

    Thanks,
    vic

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      Command line options are case-sensitive, so you should use -P instead of -p for giving password.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • V
        V
        victrola
        wrote on last edited by
        #3

        So far, so good... can log in now but am getting this message:

        Push failed at record #1 (#1 in batch): DCI data source is not a push agent.

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          When you configure DCI to receive values via nxpush, you should set it's "Origin" attribute to "Push Agent", like on attached screenshot.

          Best regards,
          Victor


          push_dci.png

          1 Reply Last reply
          0
          • V
            V
            victrola
            wrote on last edited by
            #5

            So there is no way I can use nxpush to update a DCI which is not set as a Push Agent?

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              No. But why you need that?

              1 Reply Last reply
              0
              • V
                V
                victrola
                wrote on last edited by
                #7

                @victor said in Access denied when using nxpush:

                No. But why you need that?

                I was trying to run a conditional report and SSRS data-driven subscriptions weren't working out for me.
                Now I've sorted it out, thanks for your help!

                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