Skip to content

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

@apapierz

Description

@apapierz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourunverifiedSome days we don't have a clue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions