NetXMS Support Forum

English Support => General Support => Topic started by: victrola on January 28, 2011, 01:38:48 PM

Title: Access denied when using nxpush
Post by: victrola on January 28, 2011, 01:38:48 PM
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
Title: Re: Access denied when using nxpush
Post by: Victor Kirhenshtein on January 28, 2011, 05:13:54 PM
Hi!

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

Best regards,
Victor
Title: Re: Access denied when using nxpush
Post by: victrola on January 31, 2011, 03:47:47 PM
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.
Title: Re: Access denied when using nxpush
Post by: Victor Kirhenshtein on January 31, 2011, 04:26:16 PM
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
Title: Re: Access denied when using nxpush
Post by: victrola on January 31, 2011, 07:31:01 PM
So there is no way I can use nxpush to update a DCI which is not set as a Push Agent?
Title: Re: Access denied when using nxpush
Post by: Victor Kirhenshtein on February 01, 2011, 09:26:17 AM
No. But why you need that?
Title: Re: Access denied when using nxpush
Post by: victrola on February 28, 2011, 05:12:08 PM
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!