Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change a device's community at command line #5565

Closed
apapierz opened this issue Nov 13, 2023 · 1 comment · Fixed by #5567
Closed

Unable to change a device's community at command line #5565

apapierz opened this issue Nov 13, 2023 · 1 comment · Fixed by #5567
Labels
bug Undesired behaviour unverified Some days we don't have a clue

Comments

@apapierz
Copy link

Describe the bug

Unable to change device community via change_device.php CLI script

To Reproduce

Steps to reproduce the behavior:

  1. Run php -q ./cli/change_device.php --id=deviceid --ip=ipaddress --community'new_community'

  2. Scripts executes correctly but snmp community stays unchanged

Sollution

Wrong name of array element in change_device.php line 89:

		$overrides['community'] = trim($value);

Changing name to snmp_community fixes the issue.

@apapierz apapierz added bug Undesired behaviour unverified Some days we don't have a clue labels Nov 13, 2023
@xmacan
Copy link
Member

xmacan commented Nov 13, 2023

Thank you for reporting

@netniV netniV changed the title change_device.php - changing device's community does not work Unable to change a device's community at command line Dec 16, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour unverified Some days we don't have a clue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants