pp(dev.rpc.request_snapshot( slice='alternate', media='internal', dev_timeout=300))
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-ez+unsubscribe@googlegroups.com.
from jnpr.junos import Device
from lxml import etree
dev = Device(host='xxxx', user='xxxx', password='xxxx')
dev.open()
dev.timeout=300
print etree.tostring(dev.rpc.request_snapshot(media='internal')) #without slice
I am getting output from the above code.
Also please send me the output of dev.facts
>>> dev = Device('10.1.1.1, user='local-admin', password='XXXX')
>>> dev.open()
Device(10.1.1.1)
>>> dev.timeout = 600
>>>
>>> print etree.tostring(dev.rpc.request_snapshot(media='internal', slice='alternate'))
<multi-routing-engine-results>
<multi-routing-engine-item>
<re-name>fpc0</re-name>
<snapshot-information>
<inform>
<message>Formatting alternate root (/dev/da0s2a)...</message>
</inform>
/dev/da0s2a: 186.9MB (382716 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 46.72MB, 2990 blks, 6016 inodes.
super-block backups (for fsck -b #) at:
32, 95712, 191392, 287072<snapshot-copy>
<source-directory>/dev/da0s1a</source-directory>
<destination-directory>/dev/da0s2a</destination-directory>
</snapshot-copy>
<archived-directory-list>
<directory-name>/</directory-name>
</archived-directory-list>
</snapshot-information>
</multi-routing-engine-item>
</multi-routing-engine-results>
>>>
Many thanks,
Stefan
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-...@googlegroups.com.