Created
January 24, 2014 19:51
-
-
Save jeremyschulman/8604870 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> dev | |
Device(srx210) | |
# import the filesystem library and bind it to the device (dev) | |
>>> from jnpr.junos.utils.fs import * | |
>>> fs = FS(dev) | |
# use the 'cat' function to dump the content of the file | |
>>> print fs.cat('/var/log/dcd') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment