Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepython
linenumbersfalse
username = <WUSTL KEY ID>
password = <WUSTL KEY PASSWORD>
domain = ACCOUNTS.AD.WUSTL.EDU
Info
iconfalse
titleVariable 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
languagepython
linenumbersfalse
cat > secret <<EOF
username = <WUSTL KEY ID>
password = <WUSTL KEY PASSWORD>
domain = ACCOUNTS.AD.WUSTL.EDU
EOF
Code Block
languagepython
linenumbersfalse
chmod 0600 secret
Info
iconfalse
titleVariable replacement
  • <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.

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
languagepython
linenumbersfalse
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
languagepython
linenumbersfalse
smbclient -W ACCOUNTS -U ${USERNAME} <WUSTL KEY ID> -m SMB3 //storage1.ris.wustl.edu/${VOLUME_NAME} -c 'ls'
Info
iconfalse
titleVariable 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.

Enter ACCOUNTS\$USER password

...

Code Block
languagepython
linenumbersfalse
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
iconfalse
titleVariable replacement
  • ${VOLUME_NAME} should be replaced with the name of your Storage Platform volumn.