Monday, December 17, 2018

HPE/Comware + Netconf : some configuration items seem missing

Hello,

I am trying to set up some level of automation on my HPE/Comware switches (model is 5130), using netconf and ncclient.

Algorithm is basically :

for each configuration item on each switch :

  • fetch the current value

  • compare with desired value

  • change the value if needed to match the desired one

Values are fetched from the device state (ncclient "get" operation). I can also lookup the config ("get_config" on "running" source) if needed.

Now, for DNS resolvers for example it works fine, however for other configuration elements some info seem to be missing both from the device state and the device config :

  • regarding radius config, the keys are nowhere to be found. As per the doc it's supposed to be AuthenKey and AcctKey and I know those xml elements actually exist because I can set them successfully, just not read them.

  • regarding NTP config, the IP or hostname of the servers cannot be found either. NTP is properly configured and working, I can even see that NTP/Status/NTPSynchronized is true (and of course from the CLI I see that the clock is working and the device is synchronized). But under the <NTP> element I only get Service dans Status, where as per the documentation I should get more stuff. So again, something seems to be missing.

I have tried several recent firmware versions just in case, same result every time.

Any help is appreciated.



No comments:

Post a Comment