Skip to content

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

Closed

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.

Activity

  1. added
    bugUndesired behaviour
    unverifiedSome days we don't have a clue
    on Nov 13, 2023
  2. xmacan commented on Nov 13, 2023

    @xmacan
    Member

    Thank you for reporting

  3. added a commit that references this issue on Nov 13, 2023
    0f84e44
  4. changed the title [-]change_device.php - changing device's community does not work[/-] [+]Unable to change a device's community at command line[/+] on Dec 16, 2023
  5. locked and limited conversation to collaborators on Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourstatus:needs-verificationNamespaced Cacti workflow labeltype:bugNamespaced Cacti workflow labelunverifiedSome 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