Update all end devices with same paramers in an application using ttn-lw-cli

Is there a way I can update all my end devices with the same parameter in the same Application using the ttn-lw-cli without having to enter the same command for each device?

I can use the list command to get all my end device in my application but stuck on how to use the update command to set for instance supports-32-bit-f-cnt to true for all the end devices without having to enter the same command one after the other for all the devices using the device id.

I tried this command:
end-devices update my-test-stations all [flag]

I got this error:
end device with id all not found in application with id my-test-stations

I am kind of having the same issue with end device update
ttn-lw-cli devices downlink push
–application-id xxxxxxx
–device-id d54e5bffff134af8
'{“f_port”:6,“frm_payload”:“AWECALQ=”,“confirmed”:true}'error:pkg/applicationserver:device_not_found (device xxxxxxxx@xxxxxx not found)
device_uid=2xxxxxxxx
correlation_xxxxxx
I was able to confirm login via cli and list all the devices in the App also able to confirm the specific device exists
if i use the console to send downlink with the same command it works. but i need to update 100 devices .

Ouch, ooooo, that hurts.

Device not found isn’t really the barrier to updating 100 devices, first you need to get the CLI to update one by using the documented format for the command.

And then you script it to read a file of ids to queue them one at a time - there is no bulk downlink send.

Where are these devices, I want to watch for the smoke coming out of the gateways.

I am just trying to update one device that’s local to me in California , we have devices all over US , i dont want any smoke , i am not sure what’s wrong with my command .
do you see any issue with the command?
we have 600 + devices in different application,

here is the command i am using
ttn-lw-cli devices downlink push --application-id xxxxxxxxx --device-id xxxxxxxxxxxx ‘{“f_port”:6,“frm_payload”:“AGE=”,“confirmed”:true}’

this is the error i am getting
error:pkg/applicationserver:no_payload (no payload)

Maybe smart quotes in your input JSON? Web and word docs add them sometimes.

{"f_port":6,"frm_payload":"AGE=","confirmed":true}’

Thanks for your help
i use this format and it worked ttn-lw-cli devices downlink push
–application-id “xxxxxxxx”
–device-id xxxxxxxxx
–f-port 6
–frm-payload 01610200B4
–confirmed

No neither do we on the community network - confirmed downlinks are not just bad, but extra very bad - many discussions on this matter all over the forum. Hopefully you won’t end up with a perpetual downlink loop.

Yes, as I said, not formatted per the documentation.

On TTN? Maybe @rish1 can help you out.

This is changed from the previous version? Which do we fix?

Can see how it would work, but still not the documented format. If you’ve more CLI commands to use, please look at the docs.

Ouch, oh dear, end of the world, poor users in your area …

1 Like