News:

We really need your input in this questionnaire

Main Menu

Access denied when using nxpush

Started by victrola, January 28, 2011, 01:38:48 PM

Previous topic - Next topic

victrola

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

Victor Kirhenshtein

Hi!

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

Best regards,
Victor

victrola

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.

Victor Kirhenshtein

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

victrola

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

Victor Kirhenshtein


victrola

Quote from: Victor Kirhenshtein on February 01, 2011, 09:26:17 AM
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!