...
Code Block |
---|
language | python |
---|
linenumbers | false |
---|
|
username = <WUSTL KEY ID>
password = <WUSTL KEY PASSWORD>
domain = ACCOUNTS.AD.WUSTL.EDU |
Info |
---|
icon | false |
---|
title | Variable replacement |
---|
|
${VOLUME_NAME} should be replaced with the name of your Storage Platform volumn. <WUSTL KEY ID> should be replaced with your Wustl key ID. <WUSTL KEY PASSWORD> should be replaced with the password associated with your Wustl key.
|
Using smbclient
Install samba-client
...
Code Block |
---|
language | python |
---|
linenumbers | false |
---|
|
cat > secret <<EOF
username = <WUSTL KEY ID>
password = <WUSTL KEY PASSWORD>
domain = ACCOUNTS.AD.WUSTL.EDU
EOF |
Code Block |
---|
language | python |
---|
linenumbers | false |
---|
|
chmod 0600 secret |
Info |
---|
icon | false |
---|
title | Variable replacement |
---|
|
|
Use smbclient
to connect to storage with the SMB3 protocol to your storage volume.
In this example, VOLUME_NAME
might be your WUSTL Key ID for your Research Storage space
Code Block |
---|
language | python |
---|
linenumbers | false |
---|
|
smbclient -A secret -m SMB3 //storage1.ris.wustl.edu/${VOLUME_NAME} -c ls
Domain=[ACCOUNTS] OS=[] Server=[]
. D 0 Wed Jan 31 10:35:05 2018
.. D 0 Wed Jan 31 12:40:03 2018
Active D 0 Wed Jan 31 12:09:39 2018
.snapshots DHR 0 Mon Jan 29 15:22:55 2018
5368709120 blocks of size 1024. 5363531776 blocks available |
...
Code Block |
---|
language | python |
---|
linenumbers | false |
---|
|
smbclient -W ACCOUNTS -U ${USERNAME} <WUSTL KEY ID> -m SMB3 //storage1.ris.wustl.edu/${VOLUME_NAME} -c 'ls' |
Info |
---|
icon | false |
---|
title | Variable replacement |
---|
|
|
Enter ACCOUNTS\$USER
password
...
Code Block |
---|
language | python |
---|
linenumbers | false |
---|
|
smbclient -A secret -m SMB3 //storage1.ris.wustl.edu/${VOLUME_NAME} -c 'cd Active; put somefile;'
Domain=[ACCOUNTS] OS=[] Server=[]
putting file somefile as \Active\somefile (69719.1 kb/s) (average 69719.1 kb/s) |
Info |
---|
icon | false |
---|
title | Variable replacement |
---|
|
|