| How To FTP Files Using POWER Shell Views: |
| Introduction: This page explains how to FTP files using POWER SHELL Views. POWER Shell Views expose all entries in any class within any queue. Therefore, access to POWER Shell Views should be granted only to trusted users, if at all!!! |
| Sample POWER Shell View: The following sample file view will be used to demonstrate working with POWER files. Assume the administrator already coded the following File View and saved it under the name of PWRSHELL.FTPC: |
| FTPing Files using Shell Views: POWER entries, or data files, reside in class subdirectories. Class subdirectories are, in turn, accessible via Queue subdirectories. Therefore, to FTP files, we must first point to the desired queue (RDR, PUN or LST) subdirectory, then point to the desired class subdirectory. To do so, follow the following steps: 1) Move into the View subdirectory itself (i.e., PWRSHELL) , then 2) Move into the desired Queue (LST, PUN or RDR) subdirectory, then 3) Move into the desired CLASS, such class Z, subdirectory, then 4) FTP your file(s). Procedure: 1) Move into the View subdirectory: Line Mode Clients: issue CD /PWRSHELL Graphical clients: Click on PWRSHELL subdirectory Icon. Graphical clients automatically issue a DIR as soon as you click on a subdirectory icon. If you are using a line-mode client, as I am, and care to issue a DIR, then here is what you get back from the server: our PWRSHELL subdirectory points to three more subdirectories (i.e., POWER Queus). 2) Move into the desired Queue (LST, PUN or RDR) subdirectory: Line Mode Clients: issue CD queue where queue is LST, PUN or RDR Graphical clients: Click on queue subdirectory icon. Graphical clients automatically issue a DIR as soon as you click on a subdirectory icon. If you are using a line-mode client, as I am, and care to issue a DIR, then here is what you get back from the server: Our LST subdirectory points to 36 more subdirectories (i.e., CLASSES). 3) Move into the desired CLASS, such class Z, subdirectory: Line Mode Clients: issue CD class where class is a single letter or digit. Graphical clients: Click on class subdirectory icon. Graphical clients automatically issue a DIR as soon as you click on a subdirectory icon. If you are using a line-mode client, as I am, and care to issue a DIR, then here is what you get back from the server: 4) FTP your file(s): You can now download and upload files as you wish. |
| ftp> dir 200 Command okay. 150 File status okay, about to open data connection. drw-rw-rw- 1 vse none 0 Aug 12 11:17 LST drw-rw-rw- 1 vse none 0 Aug 12 11:17 PUN drw-rw-rw- 1 vse none 0 Aug 12 11:17 RDR 226 Closing data connection. ftp: 159 bytes received in 0.33Seconds 0.48Kbytes/sec. |
| ftp> dir 200 Command okay. 150 File status okay, about to open data connection. drw-rw-rw- 1 vse none 0 Aug 12 11:17 A . . drw-rw-rw- 1 vse none 0 Aug 12 11:17 Z drw-rw-rw- 1 vse none 0 Aug 12 11:17 0 . . drw-rw-rw- 1 vse none 0 Aug 12 11:17 9 226 Closing data connection. ftp: 1836 bytes received in 0.27Seconds 6.80Kbytes/sec. ftp> |
| ftp> dir L* 200 Command okay. 150 File status okay, about to open data connection. -rw-rw-rw- 1 vse none 0 Aug 12 11:17 LIBR.22214 -rw-rw-rw- 1 vse none 0 Aug 12 11:17 LIBR.22452 226 Closing data connection. ftp: 183 bytes received in 0.33Seconds 0.55Kbytes/sec. ftp> |
| tp> ftp> cd /PWRSHELL 250 Requested file action okay, completed. |
| tp> ftp> cd lst 250 Requested file action okay, completed. |
| tp> ftp> cd a 250 Requested file action okay, completed. |
| Shortcut: If you are using a line-mode client, then you can, if you wish, combine all steps in a single command. For example, you can issue: PUT client_file /PWRSHELL/LST/Z/entry_name |
| XFER = begin TYPE = RCV TGT_AM = SAM TGT_TYPE = POWER TGT_RECL = 80 TGT_DISP = H <<<--- MUST CODE, or OVERRIDE, on uploads to LST or PUN queu XFER = end |
![]() |