Full disclosure that I'm no expert at this stuff, but saw your post and figured I'd reply after having recently gone through the same thing myself. Long story short, I've found that in most cases once you've setup a device to be managed through Aruba Central, you'll want to make all configuration adjustments strictly through that platform. With some of the previous models, not all intricacies of the configuration can be adjusted via Central, but there's a path for the majority.
In any event, back to your CLI question.... If you do want to make a configuration change via CLI, then you'll have to tell the device that you want to override the Aruba Central managed configuration. Connect to your switch via SSH..
SWITCH (config)# aruba-central support-mode enable
*** Note: a warning/confirmation is usually displayed
The switch will then allow you enter the CLI commands that you'd typically expect. That said, please know that Aruba Central will show a "local override" existing for the device, and it's possible that the configuration that the Aruba Central platform know will eventually overwrite what you've done in CLI in order to have the two back in sync. Ultimately, I'd recommend trying to make a change to the DNS from the Central platform first, and fall back to the CLI option if the first doesn't seen to work for ya.
Sent: Aug 30, 2022 08:34 PM
From: Selomon Kifle
Subject: Can't change DNS server IP address Aruba switch 2530 cli
I have a switch 2530 managed in Cloud Central. I tried to change the DNS ip from 10.254.10.10 to 10.254.1.27 in ssh using Putty CLI but it is not working.
I thought when managed in central I could still use ssh with terminal but maybe I'm wrong.
These were the command I was using, first I was trying to remove the 1 priority:
Office SW4(config)# no ip dns server-address priority 1 10.254.1.10
Invalid input: ip
QECC SW4# config
Thank you in advance,