[NEWSboard IBMi Forum]
  1. #1
    Registriert seit
    Nov 2011
    Beiträge
    36

    IFS Verzeichnis untersuchen

    Hallo zusammen

    Ich habe auf einer i5 ein IFS Verzeichnis. In diesem Verzeichnis werden jeden Tag neue Unterverzeichnisse und hunderte von Dokumenten reingestellt. Mittlerweile sind Millionen von Objekten in diesen Verzeichnissen.

    Kennt jemand von Euch ein Tool, mit dessen Hilfe ich Anzahl der Objekte und Grössen der Verzeichnisse feststellen kann?

  2. #2
    Registriert seit
    Feb 2001
    Beiträge
    20.207
    Für die AS/400 kenne ich da nichts, aber mit "Free Disk Analyzer" kann man auch Netzfreigaben mal prüfen. Die Zugriffen auf die AS/400 könnten aber dauern.
    Dienstleistungen? Die gibt es hier: http://www.fuerchau.de
    Das Excel-AddIn: https://www.ftsolutions.de/index.php/downloads
    BI? Da war doch noch was: http://www.ftsolutions.de

  3. #3
    Registriert seit
    May 2002
    Beiträge
    2.641
    Hallo,
    hier zwei Möglichkeiten:

    There are two ways I know of to retrieve OS/400 IFS directory sizes: a green-screen technique that uses the Edit File (EDTF) command, and a command-line technique using Operations Navigator (OpsNav). Here are the ins and outs of both of them.
    Under the green-screen technique, you use the Path Size option in the EDTF command. With Path Size, OS/400 will return the size of the designated OS/400 IFS directory--including directories off the root ('/') of the OS/400 IFS, as well as QOpenSys directories--and the number of sub-directories and files that the target directory contains. Of course, there are a few turns in the road here, so let's run through this one by the numbers.
    The first trick is to put your AS/400 or iSeries Telnet session into 132-character mode rather than its normal 80-character mode. To do this in the Client Access PC5250 emulator, see "Ad min Alert: Switching Between 80- and 132-Character Mode in PC5250" in our system publication, T he Four Hundred. The 132-character mode is necessary for this process because the number of subdirectories and the number of files a directory contains will be listed in the final column of the EDTF screen, which is displayed well past the 80th character on the screen.
    Once your PC is set to display 132-character output as necessary, start the Edit File command for the root of the OS/400 IFS by typing in the following command:
    EDTF /

    This displays the entries in the root directory of the OS/400 IFS. These entries include directories off the OS/400 IFS root ('/'), QOpenSys directories, entries for other OS/400 IFS file systems, and any files that reside in the root. The OS/400 IFS entries that you can edit or display with EDTF are marked with an input line in front of the entry. The entries that can't be manipulated with EDTF (such as the QSYS.LIB and QDLS file systems) will have no input line listed next to their OS/400 IFS object.
    To get the size of an OS/400 IFS directory, tab down to the directory that you want to size. If you need to size a subdirectory, you can open that directory by tabbing down to its parent directory and entering option 5 (Display). Option 5 displays another screen showing the contents of the sub-directory and you can use this option to keep exploring downward in a directory tree until you find the entry that you're looking for.
    Once you've found your target directory to size, enter option 6 (Path size) in front of the directory and OS/400 will calculate the size of the files and sub-directories contained within the OS/400 IFS directory. It will also tell you how many sub-directories can be found under this parent directory. The size of the directory contents will be included in the third column (Size) of the screen while the number of sub-directories and files will be shown in the last column (which is labeled Symbolic Links). In my testing, I found that this option works fairly well for both OS/400 V4R5 and V5R1 machines.
    However, a few caveats are in order as you work with EDTF to determine the size of your individual directories.
    First, the larger the directory, the longer it will take to determine its size. I found that in relatively small directories, EDTF returns the directory size rather quickly. However, with large OS/400 IFS directories, it may take several minutes for EDTF to return sizing detail. And if you're trying to size extremely large directories (such as the root of a well-used QOpenSys file system), it may take a very long time to return its' size, depending on how many files and sub-directories there are.
    Second, be careful when you use the EDTF screen for directory sizing, because there are two other EDTF options that are used to delete data: Delete file (option 4) and Recursive delete (option 9). Remember that the first job of EDTF is to manage stream file data in the OS/400 IFS and that path sizing is something of a sideline. In the wrong or careless hands, someone could easily delete files and directories when all they are trying to do is determine size.
    If you're not a green-screen fan, you can also graphically retrieve OS/400 IFS directory sizes through the OpsNav program that comes with Client Access Express for Windows V5R1. Using OpsNav, open the File Systems-Integrated File System node, and follow the OS/400 IFS tree down until you find the directory that you want to size. Right-click on that directory and select the Properties option from the pop-up menu that appears. On the Properties panel, the directory size will be listed in the Total data size field under the panel's General tab. To see the number of folders (directories) and files the directory contains, click on the Storage tab of the Properties panel, and that information will also be displayed. Like EDTF's Path Size option, OpsNav calculates these sizes on the fly, so you may have to wait when it calculates the size of an extremely large directory. And--also like EDTF--it's very simple to inadvertently delete files or directories with OpsNav, so be very careful with the user profile authorities of any user that accesses this function.
    Both of these features are fairly simple to use in determining the size and contents of an OS/400 IFS directory. Be sure to give one of them a try, but be careful of their shortcomings.

  4. #4
    Registriert seit
    Nov 2003
    Beiträge
    2.304
    Probier mal mit EDTF.

  5. #5
    Registriert seit
    May 2002
    Beiträge
    2.641

    zweites Dokument

    Admin Alert: Switching Between 80- and 132-Character Mode in Express PC5250

    by Joe Hertvik
    Until now, IBM's Client Access Express for Windows V5R1M0 displayed up to only 80 columns of data on a PC5250 screen. With a simple change to the configuration of the PC5250 workstation profile, Express V5R1M0 now displays both 80- and 130-column data. With this setting, you can display most of your data on a PC5250 screen, which opens the door for a few interesting possibilities.



    Here's how to do it. Inside your PC5250 V5R1M0 session, open the Configure PC5250 panel by selecting Communications, and then Configure, from the menu bar. In the Type of Emulation area on this panel, you will see a drop-down box called Size, which is set to 27x80 by default. To activate wide- screen support, click on the Size drop-down and change the value to 27x132. Click the OK button on the panel, and PC5250 will disconnect the current session and reconnect a new session to your iSeries or AS/400 by using the values entered on the Configure PC5250 screen. At this point, you're session is ready to display either 27x80 or 27x132 screens, depending on the screen output.

    To test this support, bring up both an 80-character display and a 132-character screen. For the 80-character display, type in the Work with Active Jobs (WRKACTJOB) command and the screen will display WRKACTJOB data in its normal 80-column display. To see what a wide-screen character display would look like, display your job's spool files--such as an old job log or other printer file--by typing in the Work with Spooled Files (WRKSPLF) command and then selecting option 5=Display to view one of the files. You'll see that the screen automatically resizes the fonts to display 130 characters of the spool file on the screen. You'll be able to see most of the file on your PC5250 screen, rather than the truncated version you would see had you left the screen size at 27x80.

    And this works with any OS/400 green-screen output command that generates wide-screen responses. Another interesting screen to view after you make this change is to go into Edit mode and edit a source file member using PDM. With the PDM editor, you will now see the source file member's changed dates that are generally hidden past the 80th column of the screen. Like the spool file, the font is adjusted downward to fit everything on the screen.

    This support also allows you to see the first 130 characters of your physical file records when you use the Display Physical File Member (DSPPFM) command. Any OS/400 screen that displays output above 80 characters will now be displayed in 130-character mode in your PC5250 session because of this configuration change.

    Also note that this support doesn't allow you to view a full 132 characters, as you might think it should (and as the Size parameter would lead you to believe). Rather, it shows the first 130 characters of your output on the screen. If you want to see any characters past the 130th column, you would have to use the Shift-right F key, which is usually designated as the F20 key.

    Another nice side effect of displaying 130 characters on your PC5250 screens is that it makes it easier to copy a screen into other Windows programs, such as Word. To copy a 130-character V5R1 PC5250 screen into Word, use the following procedure:

    1. From the PC5250 menu bar, mark all data on the screen by selecting Edit, then Select All. This will create a dotted-line box around your screen data.

    2. Again from the PC5250 menu bar, copy the screen to the Windows clipboard by selecting Edit, then Copy. This copies everything within the dotted line box that now surrounds your data.

    3. Go over to the Word document and paste the screen data into the file by selecting Edit, then Paste (from the Word menu bar). Adjust the font size and tabular columns to fit your document style

    .

    This procedure allows you to easily paste screen data that spans more than 80-columns into an 80-column Word document. Unfortunately, the copied data will not retain its original columnar form from the PC5250 screen, so you may have to do some massaging of your Word document's data to meet your needs.

  6. #6
    Registriert seit
    Oct 2013
    Beiträge
    171
    Viele files in einem Verzeichnis sind schlecht. Selbst wenn man sie löscht, bleibt das Verzeichnis selber recht groß. Mir ist keine Methode bekannt, das wieder zu verkleinern.
    Darum besser mehr Verzeichnisse erstellen, die man irgendwann wieder löschen kann.

    http://www.itjungle.com/fhg/fhg111407-story03.html
    http://wiki.midrange.com/index.php/QRYIFSLIB

    Leider in der Geschwindigkeit keinen funktionierenden download-link gefunden, aber ich bin mir sicher, dass sich das auftreiben lässt.

    Und interessant ist die "Allocated Size", den Platz, den die Datei wirklich auf der Platte braucht.

  7. #7
    Registriert seit
    Sep 2002
    Beiträge
    37
    Hallo,

    welche Version hast du im Einsatz?
    Seit V5R3M0 gibt es den RTVDIRINF..... der hilft dir bestimmt weiter

  8. #8
    Registriert seit
    Aug 2001
    Beiträge
    2.644
    Zitat Zitat von sisarr Beitrag anzeigen
    Kennt jemand von Euch ein Tool, mit dessen Hilfe ich Anzahl der Objekte und Grössen der Verzeichnisse feststellen kann?
    Hallo,
    irgendwann in V5R3 oder so hat die IBM mal per PTF eine kleine Nettigkeit gebaut:

    call qsrsrv parm("METRICS" '/mydir/mysubdir')

    -h
    (man beachte die doppelten Anführungszeichen)
    www.RZKH.de
    IBM Champion 2022, 2023, 2024
    IBM i Community Advocate https://www.youracclaim.com/badges/6...c-7ad4ba147af6
    Common / CEAC
    http://pub400.com

  9. #9
    KM is offline [professional_User]
    Registriert seit
    Apr 2003
    Beiträge
    1.005
    ...oder Du verwendest einfach den CL-Befehl RTVDIRINF (verfügbar seit V5R3). Der erstellt ein paar Outfiles in QUSRSYS mit den gewünschten Informationen.

    Gruß,
    KM

    PS: Sorry, hatte den älteren Eintrag bzgl. RTVDIRINF nicht gesehen. Ist also ein Doppel-Post.

  10. #10
    Joe is offline [professional_User]
    Registriert seit
    Mar 2001
    Beiträge
    365
    Zitat Zitat von KM Beitrag anzeigen
    ...oder Du verwendest einfach den CL-Befehl RTVDIRINF (verfügbar seit V5R3). Der erstellt ein paar Outfiles in QUSRSYS mit den gewünschten Informationen.

    Gruß,
    KM

    PS: Sorry, hatte den älteren Eintrag bzgl. RTVDIRINF nicht gesehen. Ist also ein Doppel-Post.

    ...man lernt nie aus. Danach habe ich schon lange gesucht.

    gruß Joe

  11. #11
    Registriert seit
    Nov 2011
    Beiträge
    36
    Sorry, ich war ein paar Tage unpässlich!

    Danke für die vielen Tips. Ich werde mich da mal in Ruhe durchlesen und schauen was mir weiterhilft.
    Selbstverständlich werde ich dann posten, wie's gelaufen ist.

Similar Threads

  1. Kopieren in ein IFS-Verzeichnis funktioniert nicht
    By GJV23 in forum IBM i Hauptforum
    Antworten: 9
    Letzter Beitrag: 06-08-14, 17:57
  2. prüfen ob STMF in IFS-Verzeichnis vorhanden
    By CZE425 in forum IBM i Hauptforum
    Antworten: 6
    Letzter Beitrag: 23-10-02, 12:56
  3. Verzeichnis QCA400 ???
    By Flappes in forum IBM i Hauptforum
    Antworten: 1
    Letzter Beitrag: 03-09-02, 15:15
  4. Benutzer Home-Verzeichnis mit API QSYRUSRI
    By Sven Schneider in forum IBM i Hauptforum
    Antworten: 1
    Letzter Beitrag: 18-04-02, 11:33
  5. Verzeichnis laesst sich nicht loeschen..Bitte um Hilfe!
    By Bernhard in forum IBM i Hauptforum
    Antworten: 4
    Letzter Beitrag: 20-11-01, 08:39

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • You may not post attachments
  • You may not edit your posts
  •