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

error when running locate mac address script #23

Open
mkal51 opened this issue Apr 11, 2022 · 1 comment
Open

error when running locate mac address script #23

mkal51 opened this issue Apr 11, 2022 · 1 comment

Comments

@mkal51
Copy link

mkal51 commented Apr 11, 2022

Hi Rob,

I tried to run your script on my switches, but it fails with the following error:

RED-CR1-ARISTA-TEST#findmac 3d0a
/bin/bash: /mnt/flash/locateMac.py: /usr/bin/python3.2^M: bad interpreter: No such file or directory
% '/mnt/flash/locateMac.py 3d0a' returned error code: 126

RED-CR1-ARISTA-TEST#sh ver
Arista DCS-7050CX3-32S-F
Hardware version: 11.00
Serial number: JPE19042881
Hardware MAC address: 985d.82b5.d789
System MAC address: 985d.82b5.d789

Software image version: 4.26.5M
Architecture: i686
Internal build version: 4.26.5M-26324336.4265M

Python 2.7.18 & Python 3.7.10 versions are installed, both versions return the same error code.

Have you encountered this error?

Regards,

MOhan

@mkal51
Copy link
Author

mkal51 commented Apr 12, 2022

Hi Rob,

I have resolved the issue, it was related to hidden character ^M at the end of every line. This is a know problem when copying text from Windows non-binary text files into Linux/Unix files.

Regards,

MOhan

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