FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
234 views 0 comments
by anonymous

I've build my config template based on the exported UCI commands. All is working fine, but I'm running into an issue while adding a SNMPv3 user and create a recipient phonebook. I've extracted these commands from the "uci show <user_groups/snmpd>" command.

When I run these on a factory default Rutx09, it doesn't work. I think I somehow need to add first before I can run the set commands, but I can't figure it out.

uci set snmpd.@user[0]=user
uci set snmpd.@user[0].username='MyUser'
uci: Invalid argument

Same for the phonebook recipient:

uci set user_groups.@phone[0]=phone
uci set user_groups.@phone[0].name='MyBook'
uci: Invalid argument

Anyone can help me find the right syntax? I've tried the "add" variation, but didn't work either.
Thanks!

1 Answer

0 votes
by anonymous
Figured it out, I had to use the following syntax:

uci add snmpd user
uci set snmpd.@user[0]=user
uci set snmpd.@user[0].username='MyUser'

uci add user_groups phone
uci set user_groups.@phone[0]=phone
uci set user_groups.@phone[0].name='MyPhone'
Best answer