Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized command on CE6850 #23

Open
rgrueebler opened this issue Feb 28, 2024 · 0 comments
Open

Unrecognized command on CE6850 #23

rgrueebler opened this issue Feb 28, 2024 · 0 comments

Comments

@rgrueebler
Copy link

Hi

I use a Huawei CE6850-48T4Q in my lab and try to replace the config with the nornir-napalm plugin.

result = device.run(task-napalm_configure, filename='test.cfg', replace=True)

I get the error message:

Unrecognized command found

The reason for that is, that this switch does not support the 'display system file-md5' command. I assume that it is used to check if the config file was correctly transmitted to the device's flash.

def _get_remote_md5(self, dst):
        command = 'display system file-md5 {0}'.format(dst)
        output = self.device.send_command(command)
        filename = os.path.basename(dst)
        match = re.search(filename + r'\s+(?P<md5>\w+)', output, re.M)
        if match is None:
            msg = "Unexpected format: {}".format(output)
            raise ValueError(msg)
        return match.group('md5')

I know that this switch is quite old and uses an old firmware. I don't have a newer one to check if this command is available there. Is there a possibility to replace the config on older models?

Thank you
Remo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant