It sounds like the battery in the switch is dead. It's a CR 2032 battery, you need to open the switch (which void the warranty, but a x440-24p is EoL I think), while it's powered off and unplugged (for safety reasons), find the battery and change it.
You shouldn't have this message. GTAC is the good way to go.Check what "show iproute reserved-entries" returns. By default it should be 12,240. Maybe the config has been corrupted for this part during the upgrade.
Hi, I think you’d need a script that would be able to handle prompt and output. Typically, with Python, pexpect is such a tool. Life would be easier with XMC. Cheers.