You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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
The text was updated successfully, but these errors were encountered: