# "Invalid arguments"	 can anyone please help me in solving this error

**URL:** <https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236>\
**Category:** Uncategorized\
**Created:** [November 26, 2020, 5:40am UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236 "2020-11-26T05:40:30Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![tang](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tang](https://forum.genieacs.com/u/tang)\
**Post date:** [November 26, 2020, 5:40am UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/1 "2020-11-26T05:40:30Z")

</div>

faultCode: “9003”  
faultString: Invalid arguments  
setParameterValuesFault:

- parameterName: InternetGatewayDevice.ManagementServer.PeriodicInformTime  
faultCode: “9007”  
faultString: Invalid parameter value

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [November 28, 2020, 3:05am UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/2 "2020-11-28T03:05:28Z")

</div>

You didn’t show what value you are trying to set, but values in the 9000 range are all CPE faults. In this case, the CPE is telling you the value you are trying to set is invalid.

---

<div class="post-metadata">

**Author:** ![tang](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tang](https://forum.genieacs.com/u/tang)\
**Post date:** [December 1, 2020, 6:03am UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/3 "2020-12-01T06:03:08Z")

</div>

how to check that range value.?

---

<div class="post-metadata">

**Author:** ![tang](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tang](https://forum.genieacs.com/u/tang)\
**Post date:** [December 1, 2020, 6:54am UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/4 "2020-12-01T06:54:34Z")

</div>

how to check that range value.?  
yes!

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [December 1, 2020, 8:48pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/5 "2020-12-01T20:48:43Z")

</div>

Well, it would probably help if you posted the exact script/preset/provision/data you are trying to send to the CPE.

---

<div class="post-metadata">

**Author:** ![tang](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tang](https://forum.genieacs.com/u/tang)\
**Post date:** [December 3, 2020, 5:23am UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/6 "2020-12-03T05:23:02Z")

</div>

// Device ID as user name  
const username = declare(“DeviceID.ID”, {value: 1}).value[0]

// Password will be fixed a given device because Math.random() is seeded with devcie ID by default.  
const password = Math.trunc(Math.random() \* Number.MAX\_SAFE\_INTEGER).toString(36);

const informInterval = 300;

// Refresh values daily  
const daily = Date.now(86400000);

// Unique inform offset per device for better load distribution  
const informTime = daily % 86400000;

declare(“InternetGatewayDevice.ManagementServer.ConnectionRequestUsername”, {value: daily}, {value: username});  
declare(“InternetGatewayDevice.ManagementServer.ConnectionRequestPassword”, {value: daily}, {value: password});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformEnable”, {value: daily}, {value: true});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformInterval”, {value: daily}, {value: informInterval});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformTime”, {value: daily}, {value: informTime});

declare(“Device.ManagementServer.ConnectionRequestUsername”, {value: daily}, {value: username});  
declare(“Device.ManagementServer.ConnectionRequestPassword”, {value: daily}, {value: password});  
declare(“Device.ManagementServer.PeriodicInformEnable”, {value: daily}, {value: true});  
declare(“Device.ManagementServer.PeriodicInformInterval”, {value: daily}, {value: informInterval});  
declare(“Device.ManagementServer.PeriodicInformTime”, {value: daily}, {value: informTime});

---

<div class="post-metadata">

**Author:** ![tang](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tang](https://forum.genieacs.com/u/tang)\
**Post date:** [December 3, 2020, 5:23am UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/7 "2020-12-03T05:23:22Z")

</div>

const hourly = Date.now(3600000);

// Refresh basic parameters hourly  
declare(“InternetGatewayDevice.DeviceInfo.HardwareVersion”, {path: hourly, value: hourly});  
declare(“InternetGatewayDevice.DeviceInfo.SoftwareVersion”, {path: hourly, value: hourly});  
declare(“InternetGatewayDevice.WANDevice._.WANConnectionDevice._.WANIPConnection._.MACAddress", {path: hourly, value: hourly});  
declare("InternetGatewayDevice.WANDevice._.WANConnectionDevice._.WANIPConnection._.ExternalIPAddress”, {path: hourly, value: hourly});  
declare(“InternetGatewayDevice.LANDevice._.WLANConfiguration._.SSID”, {path: hourly, value: hourly});  
// Don’t refresh password field periodically because CPEs always report blank passowrds for security reasons  
declare(“InternetGatewayDevice.LANDevice._.WLANConfiguration._.KeyPassphrase”, {path: hourly, value: 1});  
declare(“InternetGatewayDevice.LANDevice._.Hosts.Host._.HostName”, {path: hourly, value: hourly});  
declare(“InternetGatewayDevice.LANDevice._.Hosts.Host._.IPAddress”, {path: hourly, value: hourly});  
declare(“InternetGatewayDevice.LANDevice._.Hosts.Host._.MACAddress”, {path: hourly, value: hourly});

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [December 3, 2020, 9:22pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/8 "2020-12-03T21:22:03Z")

</div>

> [@tang](#):
>
> ```auto
> declare("InternetGatewayDevice.ManagementServer.PeriodicInformTime",
> {value: daily}, {value: informTime});
> 
> ```

I’d suggest reading the [specification](https://cwmp-data-models.broadband-forum.org/tr-069-1-0-0.html#D.InternetGatewayDevice:1.InternetGatewayDevice.ManagementServer.PeriodicInformTime). The CPE is correctly throwing a fault given that you sending bad data to the CPE.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [December 3, 2020, 9:28pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/9 "2020-12-03T21:28:57Z")

</div>

> [@tang](#):
>
> // Refresh basic parameters hourly

Umm, your hardware ver, software ver, mac address, etc will not be changing hourly. The parameters in the DeviceInfo struct are sent to the CPE on every inform.

The path value of the second parameter is how old the path can be before GenieACS will refresh the path. This is almost certainly not needed for things like WLANConfiguration. The CPE isn’t adding/removing radios on a whim. You are going to have performance issues if you do this across all the devices in your network.

Is there a need to refresh the Hosts? Especially hourly? I only refresh those values on demand, never preemptively.

---

<div class="post-metadata">

**Author:** ![tang](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tang](https://forum.genieacs.com/u/tang)\
**Post date:** [December 9, 2020, 5:13am UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/10 "2020-12-09T05:13:05Z")

</div>

No there is not the need of the  
// Refresh basic parameters hourly.

---

<div class="post-metadata">

**Author:** ![rudymartin](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rudymartin](https://forum.genieacs.com/u/rudymartin)\
**Post date:** [November 12, 2022, 1:24pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/12 "2022-11-12T13:24:39Z")

</div>

What models are you talking about? Is the bug related to any parameter sent by declare() or just the periodicInform as the names of the variables suggest? We are using three models of HW but so far the only errors we have are (IMHO) related to physical problems (session\_terminated is the most frequent). Also there’s a catch: we don’t use PeriodicInform. Instead I have a bash script process executed once a week, which reads the entire list of CPE and calls them one by one – and it’s just a CONN\_REQUEST.

ty

---

<div class="post-metadata">

**Author:** ![Andre\_Driemeyer](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Andre\_Driemeyer](https://forum.genieacs.com/u/Andre_Driemeyer)\
**Post date:** [November 14, 2022, 6:29pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/13 "2022-11-14T18:29:00Z")

</div>

My bad I confused the model with a similar ZTE CPE. I have both in my plan and both have similar bugs. I cant edit the comment anymore so I deleted it.

About the problem on Huawei’s CPEs I’ve only looked at the surface of it. I’ve tested several values on a Huawei EG8145V5 and still haven’t found a pattern for the bug.

---

<div class="post-metadata">

**Author:** ![Andre\_Driemeyer](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Andre\_Driemeyer](https://forum.genieacs.com/u/Andre_Driemeyer)\
**Post date:** [November 14, 2022, 6:33pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/14 "2022-11-14T18:33:55Z")

</div>

I was getting this problem with ztes CPEs seemly randomly (models: ZXHN H199A and ZXHN H198A). This was a pain because a significant portion of my network was not being balanced.

Manually debugging the value I found out that most of the ZTE CPEs I have in my plant have a bug. When prompted with a timestamp with a 0 at any position past the decimal point the CPE will return an invalid value error.

I wrote a small function to get rid of any decimal zeroes in a timestamp that fixed the problem.

```auto
function zteFriendlyTime(){
  const daily = Date.now(86400000);

  const rawInformTIme = (daily % 86400000) + 1000
  
  // This will generate a timestam wen converted to datetime akin to 2022-11-11T20:11:49.000Z
  const informTimeWithoutMiliseconds = Math.floor(rawInformTIme/1000)

  const tenth = ((Math.floor(rawInformTIme/100) % 9) + 1) * 100
  const hundreth = ((Math.floor(rawInformTIme/10) % 9) + 1) * 10
  const tousandth = (rawInformTIme % 9) + 1

  return informTimeWithoutMiliseconds + tenth + hundreth + tousandth
}

```

---

<div class="post-metadata">

**Author:** ![vortexm2](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/vortexm2/32/2286_2.png) [@vortexm2](https://forum.genieacs.com/u/vortexm2)\
**Post date:** [March 7, 2025, 10:03pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/15 "2025-03-07T22:03:01Z")

</div>

I’m trying to follow this thread carefully, but I have a mix of manufacturers in my infrastructure, and some CPEs show this error while others don’t. I would like to get some ideas or recommendations to adjust whatever might be necessary to resolve it.

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [March 10, 2025, 1:25pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/16 "2025-03-10T13:25:53Z")

</div>

It may be better to create your own thread and provide some more details.

Which parameter is throwing the error message?  
Is the parameter critical to your situation or can you do without trying to set a value to it?

---

<div class="post-metadata">

**Author:** ![vortexm2](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/vortexm2/32/2286_2.png) [@vortexm2](https://forum.genieacs.com/u/vortexm2)\
**Post date:** [March 17, 2025, 5:48pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/17 "2025-03-17T17:48:07Z")

</div>

I think I should start by asking about that exactly, do I really need to read or write that parameter-value? Can I simply ignore it or delete it? I know they will tell me that it all depends on my needs, but I’m not clear on what I might be missing if I just ignore that parameter or value. Now, if the answer is that it is something important, is it usually resolved with the manufacturer, or can the settings be adjusted for each CPE device (manufacturer, model, etc.)?

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [March 17, 2025, 5:55pm UTC](https://forum.genieacs.com/t/invalid-arguments-can-anyone-please-help-me-in-solving-this-error/1236/18 "2025-03-17T17:55:14Z")

</div>

Please create your own thread instead of reviving a 4.5 year old thread.
