Created
September 29, 2016 19:07
-
-
Save WaltHP/13c4557565bba0e601eae133343dcd94 to your computer and use it in GitHub Desktop.
This file contains 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
import libiscsi | |
target_portal = "10.52.1.11:3260" | |
my_iqn = "iqn.1993-08.org.debian:01:cb66a7b3fa5" | |
iscsi_ctx = libiscsi.iscsi_create_context(my_iqn) | |
#libiscsi.iscsi_set_alias(iscsi_ctx, "walt") | |
ass = libiscsi.iscsi_connect_sync(iscsi_ctx, target_portal) | |
print(ass) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vagrant@ubuntubox:
: $ python ass3.py: $ whoami0
vagrant@ubuntubox:
vagrant