/usr/share/doc/python-pyeapi-doc/examples/sysmac.py is in python-pyeapi-doc 0.7.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/usr/bin/env python
from __future__ import print_function
import pyeapi
pyeapi.load_config('nodes.conf')
node = pyeapi.connect_to('veos01')
output = node.enable('show version')
print(('My System MAC address is', output[0]['result']['systemMacAddress']))
|