Skip to content

Instantly share code, notes, and snippets.

@jeremyschulman
Created January 24, 2014 19:51
Show Gist options
  • Save jeremyschulman/8604870 to your computer and use it in GitHub Desktop.
Save jeremyschulman/8604870 to your computer and use it in GitHub Desktop.
>>> 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