2 # planetlab.us.pl.account_test is a user that exists on the registry
3 # planetlab.us.pl.test1 (pl_test1) is a slice that exists on the node
9 NODE_URL=https://198.0.0.131:12345/
11 echo XXXXX -------------------------------------------------------------------
12 echo XXXXX Getting User Credential
13 python ./genicli.py --username test --credfile None --outfile test.cred getCredential user planetlab.us.pl.account_test
15 echo XXXXX -------------------------------------------------------------------
16 echo XXXXX Get Slice Credential
17 python ./genicli.py --username test --outfile pltest1.cred getCredential slice planetlab.us.pl.test1
19 echo XXXXX -------------------------------------------------------------------
20 echo XXXXX Get a Ticket
21 python ./genicli.py --username test --credfile pltest1.cred --outfile pltest1.ticket getTicket planetlab.us.pl.test1
23 echo XXXXX -------------------------------------------------------------------
24 echo XXXXX Redeem a Ticket
25 python ./genicli.py --server $NODE_URL --username test --ticketfile pltest1.ticket redeemTicket
27 echo XXXXX -------------------------------------------------------------------
28 echo XXXXX Stop a Slice
29 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred stopSlice
31 echo XXXXX -------------------------------------------------------------------
32 echo XXXXX Start a Slice
33 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred startSlice
35 echo XXXXX -------------------------------------------------------------------
36 echo XXXXX Reset a Slice
37 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred resetSlice
39 echo XXXXX -------------------------------------------------------------------
40 echo XXXXX Delete a Slice
41 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred deleteSlice
43 echo XXXXX -------------------------------------------------------------------
44 echo XXXXX List Slices
45 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred --outfile pltest1.cred listSlices
\r