Mass add hosts... help!

I know there has been some mention of using addhost.php to add multiple hosts. I need to add 100+ Access Points but when I try and use the .php with the below command (like I have seen in posts) it doesn’t work.

Cheers.

[email protected]:~$ ./addhost.php 172.16.2.120 v2c ccgs-public

Could not connect to 172.16.2.120, please check the snmp details and snmp reachability

Yet if I do it via the GUi.
Adding host 172.16.2.120 community ccgs-public port 161 using udp
Device added 172.16.2.120 (74)

You’ve mixed the community + version order around. Switch them and it should add.

Thanks that worked.