presentation 200606 ifs
TRANSCRIPT
-
8/14/2019 Presentation 200606 IFS
1/95
Inside the IFS
6/1/06 By: Tom Huntington
-
8/14/2019 Presentation 200606 IFS
2/95
-
8/14/2019 Presentation 200606 IFS
3/95
-
8/14/2019 Presentation 200606 IFS
4/95
-
8/14/2019 Presentation 200606 IFS
5/95
-
8/14/2019 Presentation 200606 IFS
6/95
Understanding The IFS
The Basics
File Systems
CommandsJournalingSave/RestoreSecurity
-
8/14/2019 Presentation 200606 IFS
7/95
The Basics
Added to OS/400 V3R1 in 1994Integrates iSeries with UNIX, Windows, and othersDirectory structure much like your PCProvides access to data stored in integrated or remotexSeries servers, Novell servers, or other remote iSeriesservers
Contains pre-defined file systems:All contained within a single root directoryEach with their own limitations and rules
Library structure is just one of these structures
-
8/14/2019 Presentation 200606 IFS
8/95
The Basics
Many applications use the IFS:Integrated xSeries (Intel processor)Various imaging packages
NetServer (Explorer access to the IFS)CD images for unattended installationPASE environment for UNIX Applications
Client Access executablesTCP/IP configuration filesTomcat HTTP server
http://www.sap.com/index.aspx -
8/14/2019 Presentation 200606 IFS
9/95
The Basics
Libraries and Objectsvs.
Directories and Stream Files
-
8/14/2019 Presentation 200606 IFS
10/95
Libraries And Objects
Traditional OS/400 file systemEvery object has an object type associated with it
Programs can only be programsFiles can only be files
Every object type has a specific purposeFiles typically contain fixed length recordsAllows only one level (or two with file members) of hierarchy
-
8/14/2019 Presentation 200606 IFS
11/95
Directories And Stream Files
Directories start at a root level /Directories support stream files
Stream Files (STMF) are like PC filesThey do not contain fixed length records
Contain a continuous stream of dataThink of audio, image, video, XML, and HTML files
IFS files are also called LINKS in OS/400 and i5/OSHigh performance data access for attached clients
-
8/14/2019 Presentation 200606 IFS
12/95
IFS-Related CommandsIBM has provided familiar DOS commands
MD Make (create) DirectoryCD Change (current) DirectoryRD Remove (delete) Directory
COPY Copy object or subdirectoryDEL Remove (delete) link or object
IBM provides APIs for accessing IFS data programmatically IBM Integrated File System V5R3 User GuideiSeries Network:
Accessing Data Files from the IFS in RPG January 2004Many other IFS programming articles available at iSeries Network and elsewhere
-
8/14/2019 Presentation 200606 IFS
13/95
Understanding The IFS
The BasicsFile Systems
CommandsJournalingSave/RestoreSecurity
-
8/14/2019 Presentation 200606 IFS
14/95
File Systems
Eleven file systems are included in the IFSEach file system is located under the root /Each file system has rules and restrictions
User directories can be at the same level as thesupplied file systems directoriesViewed with the WRKLNK command
Work with Object LinksThink of a link as an object or path to an object
-
8/14/2019 Presentation 200606 IFS
15/95
WRKLNK Work With Object Links
-
8/14/2019 Presentation 200606 IFS
16/95
WRKLNK Root Directory
-
8/14/2019 Presentation 200606 IFS
17/95
WRKLNK Work With Object Links
-
8/14/2019 Presentation 200606 IFS
18/95
WRKLNK Work With Object Links
-
8/14/2019 Presentation 200606 IFS
19/95
File Systems
/ root
QSYS.LIBQDLSQOpenSysQOPTQNetWareQNTCQFileSrv.400User-Defined
-
8/14/2019 Presentation 200606 IFS
20/95
/ root Directory
Uses many PC DOS-like commandsMD, RD, CD, DEL, COPY
Uppercase and lowercase object names aremaintained, but no distinction is made
/CHUCK and /chuck refer to the same directory
Each part of a path name can be up to 255 characters
Full path name can be extremely long (up to 16 MB)Other file systems branch off of the root
-
8/14/2019 Presentation 200606 IFS
21/95
WRKLNK Root
-
8/14/2019 Presentation 200606 IFS
22/95
File Systems
/ rootQSYS.LIB
QDLSQOpenSysQOPTQNetWareQNTCQFileSrv.400User-Defined
-
8/14/2019 Presentation 200606 IFS
23/95
QSYS.LIB
Structure supports traditional library structureObject names are converted to uppercase
Typically the environment in which RPG andCOBOL programmers write codeQSYS.LIB objects can be accessed with traditionalOS/400 interface or with IFS CL commands
-
8/14/2019 Presentation 200606 IFS
24/95
QSYS.LIB - WRKLNK
-
8/14/2019 Presentation 200606 IFS
25/95
QSYS.LIB - WRKLNK
-
8/14/2019 Presentation 200606 IFS
26/95
File Systems
/ rootQSYS.LIBQDLS
QOpenSysQOPTQNetWareQNTCQFileSrv.400User-Defined
-
8/14/2019 Presentation 200606 IFS
27/95
QDLS Document Library SystemStructure supports the IBM OfficeVision Document LibraryObjects (DLO) known as folders and documentsAvailable before V3R1 and before the IFS
Object names are converted to uppercaseBoth DLO and IFS commands can be usedMultiple directory levels (folder-in-folder) supported
Naming is limited to 8 characters plus a 3-character extension
-
8/14/2019 Presentation 200606 IFS
28/95
File Systems
/ rootQSYS.LIBQDLSQOpenSys
QOPTQNetWareQNTCQFileSrv.400User-Defined
-
8/14/2019 Presentation 200606 IFS
29/95
QOpenSys The UNIX Structure
Supports UNIX open standards POSIX and XPGSupports uppercase and lowercase naming
No limit to the depth of the directory hierarchyFile and directory names can be very largeThe directory name is not case-sensitive
/QOpenSys = /qopensys = /QOPENSYSContent of this directory is case sensitive
-
8/14/2019 Presentation 200606 IFS
30/95
QOpenSys - WRKLNK
-
8/14/2019 Presentation 200606 IFS
31/95
QOpenSys - WRKLNK
-
8/14/2019 Presentation 200606 IFS
32/95
QOpenSys - WRKLNK
-
8/14/2019 Presentation 200606 IFS
33/95
File Systems
/ rootQSYS.LIBQDLSQOpenSysQOPT
QNetWareQNTCQFileSrv.400User-Defined
-
8/14/2019 Presentation 200606 IFS
34/95
QOPT Optical File System
HFS is an older technology, whereas the IFS access toQOPT is based on the ILEHFS access to QOPT provides commands that IFS access
does not provide, such as commands to work with opticalfiles
Naming convention:/QOPT/volumeID/directory/subdir/fileThe CDROM drive volume is displayed here
-
8/14/2019 Presentation 200606 IFS
35/95
QOPT - WRKLNK
-
8/14/2019 Presentation 200606 IFS
36/95
QOPT - WRKLNK
-
8/14/2019 Presentation 200606 IFS
37/95
QOPT - WRKLNK
-
8/14/2019 Presentation 200606 IFS
38/95
-
8/14/2019 Presentation 200606 IFS
39/95
QNetWare Novell NetwareAllows access to data on a local or remote Integrated xSeries Server running Novell Netware 4.10 or 4.11Allows access to remote Netware servers running Netware 3.12,4.10, 4.11, or 5.0Only available if OS/400 Enhanced Integration for Novell NetWareis installed on the systemVolumes can be mounted using a NetWare path such as:/QnetWare/HELP.TRE/USA.C/MINN.O/TRAIN.OU/VOL1.CN
where : TRE=an NDS tree, C=country, O=organization,OU=organizational unit, CN=common name
-
8/14/2019 Presentation 200606 IFS
40/95
File Systems
/ rootQSYS.LIBQDLSQOpenSysQOPTQNetWareQNTC
QFileSrv.400User-Defined
-
8/14/2019 Presentation 200606 IFS
41/95
QNTC Windows NT/2000Provides access to objects stored on Integrated xSeriesadaptors running Windows NT 4.0 or higher Allows access to remote Windows servers,
allowing iSeries and Windows applications toaccess the same dataUse IFS commands or APIs to manipulate the data
Windows directories cannot be created from the iSeriesSAV/RST commands cannot be used
-
8/14/2019 Presentation 200606 IFS
42/95
QNTC Windows NT/2000
The QSERVER subsystem must be activeThe TCP/IP server job *NETSVR must be startedThe iSeries Netserver job is called QZLSSERVER inQSERVER subsystemAuthenticates using the requesting jobs user profile
User profile and password must match the Windows user
ID and passwordTo create a link to a remote server:MD /QNTC/servername
-
8/14/2019 Presentation 200606 IFS
43/95
QNTC Windows NT/2000
-
8/14/2019 Presentation 200606 IFS
44/95
QNTC Windows NT/2000
-
8/14/2019 Presentation 200606 IFS
45/95
QNTC Windows NT/2000
-
8/14/2019 Presentation 200606 IFS
46/95
QNTC Windows NT/2000
-
8/14/2019 Presentation 200606 IFS
47/95
-
8/14/2019 Presentation 200606 IFS
48/95
File Systems
/ rootQSYS.LIBQDLSQOpenSysQOPTQNetWareQNTCQFileSrv.400
User-Defined
-
8/14/2019 Presentation 200606 IFS
49/95
QFileSrv.400
Provides iSeries-to-iSeries directory visibilityLike QNTC, it uses the OS/400 file server Requires the QSERVER subsystem to be activeAuthenticates using the requesting jobs user profile and
passwordThe iSeries-to-iSeries connection is maintained for abouttwo hoursSubdirectories (system names) in QFileSrv.400 areremoved during IPL and must be re-created
-
8/14/2019 Presentation 200606 IFS
50/95
-
8/14/2019 Presentation 200606 IFS
51/95
QFileSrv.400 System ITEACH
-
8/14/2019 Presentation 200606 IFS
52/95
-
8/14/2019 Presentation 200606 IFS
53/95
QFileSrv.400 System ITEACH
-
8/14/2019 Presentation 200606 IFS
54/95
File Systems
/ rootQSYS.LIBQDLSQOpenSysQOPTQNetWareQNTCQFileSrv.400User-Defined
-
8/14/2019 Presentation 200606 IFS
55/95
UDFS - User-Defined File Systems
File system created and maintained by youYou decide whether file names are case-sensitiveCommands:
CRTUDFS Create a UDFSDSPUDFS Display a UDFSMOUNT (ADDMFS) Mount a UDFSUNMOUNT (RMVMFS) Unmount a UDFS
To access UDFS objects, it must be mounted over another directoryCreated in /dev/QASPnn/name.udfs as a BLKSF
-
8/14/2019 Presentation 200606 IFS
56/95
Eleven File Systems
We have covered nine of the eleven file systems.There are two others are:
Independent ASP QSYS.LIB file systems
NFS (Network File System)
There are also Integrated xSeries Server storagespaces, located as a User-Defined file system in the/dev directory
-
8/14/2019 Presentation 200606 IFS
57/95
IXS Integrated xSeries Servers
Intel card inserted in the iSeriesUses DASD on iSeriesWindows or Netware manage this storageStorage space is created using:
CRTNWSSTG Create NWS StorageWRKNWSSTG Work With NWS Storage
ADDNWSSTGL Link DASD to IXS DescriptionThese named storage spaces are stored in directory/QFPNWSSTG.
-
8/14/2019 Presentation 200606 IFS
58/95
Understanding The IFS
The BasicsFile SystemsCommands
JournalingSave/RestoreSecurity
-
8/14/2019 Presentation 200606 IFS
59/95
CommandsDirectory commands
Create or remove current directory
Link CommandsMuch like the LS command in UNIX, or
the DIR command in DOSCreate multiple paths to the same file
Copy commandsCopy library-to-directory, directory-to-library
Check in, check outSave and Restore commandsAuthority commands
-
8/14/2019 Presentation 200606 IFS
60/95
Directory Commands
MD (CRTDIR); RD (RMVDIR)Create/remove new directory
-
8/14/2019 Presentation 200606 IFS
61/95
Directory Commands
CD (CHGCURDIR); DSPCURDIR; RTVCURDIR Change current directoryStarts with home directory in user profile
Current directory starts from user profileRTVCURDIR is used in programs only
-
8/14/2019 Presentation 200606 IFS
62/95
Link Commands
A link is a path to a file in the IFSFiles can have multiple linksLinks can cross file systemsA hard link points to an object that existsRemoving all hard links deletes the fileA symbolic link points to the location of an object,even if the object does not currently exist
-
8/14/2019 Presentation 200606 IFS
63/95
Link CommandsWRKLNK Work With Object Links
ADDLNK, RMVLNK (DEL), DSPLNK, RNM (REN)Somewhat like WRKOBJ in OS/400, LS in UNIX, andDIR in DOS
-
8/14/2019 Presentation 200606 IFS
64/95
Copy Commands
COPY (CPY); MOVE (MOV) - Copy or Move objectCan copy an entire sub-directoryUse wildcards to copy multiple objects
CPYTOSTMF; CPYFRMSTMF Copy To/From astream file to a library objectCPYTOIMPF; CPYFRMIMPF Copy To/From a
spreadsheet import format
-
8/14/2019 Presentation 200606 IFS
65/95
Copy Commands
CPYTOSTMF; CPYFRMSTMFCopy data to/from a library database file member to/from a streamfileCan copy save files to stream filesUse to create a PC-type text (.TXT) fileConvert data from EBCDIC to ASCII, or any valid code pageLimitations:
Database file cannot have multiple fieldsDate fields are not copied
-
8/14/2019 Presentation 200606 IFS
66/95
CPYTOSTMF
-
8/14/2019 Presentation 200606 IFS
67/95
CPYFRMSTMF
-
8/14/2019 Presentation 200606 IFS
68/95
Copy Commands
CPYTOIMPF; CPYFRMIMPFCopy a database file to a PC-type file with delimitersFixed or variable field lengths in the PC file
Create a comma-separated, variable-type, PC file (.CSV)
-
8/14/2019 Presentation 200606 IFS
69/95
Understanding The IFS
The BasicsFile SystemsCommandsJournaling
Save/RestoreSecurity
-
8/14/2019 Presentation 200606 IFS
70/95
-
8/14/2019 Presentation 200606 IFS
71/95
Understanding The IFS
The BasicsFile SystemsCommandsJournalingSave/Restore
Security
-
8/14/2019 Presentation 200606 IFS
72/95
-
8/14/2019 Presentation 200606 IFS
73/95
SAV To Back Up All Directories
QSYS.LIB naming convention
-
8/14/2019 Presentation 200606 IFS
74/95
SAV To Back Up All Directories/QSYS.LIB is everythingin Library file system
/QDLS is everything inDocument file system (QDOC)
-
8/14/2019 Presentation 200606 IFS
75/95
SAV To Back Up All Directories
-
8/14/2019 Presentation 200606 IFS
76/95
SAV To Back Up All Directories
Change Update history to *YES
-
8/14/2019 Presentation 200606 IFS
77/95
Restore QOpenSys File System
Restore all data in /QOpenSys from last full save totape:
RST DEV('/qsys.lib/tap01.devd') OBJ(('/QOpenSys/*'))
SUBTREE(*ALL) OPTION(*ALL) ALWOBJDIF(*ALL)Restore all data in /QOpenSys from changes duringthe week from the save file:
RST DEV('/qsys.lib/qgpl.lib/tmpsav.file')OBJ(('/QOpenSys/*')) SUBTREE(*ALL) OPTION(*ALL)ALWOBJDIF(*ALL)
-
8/14/2019 Presentation 200606 IFS
78/95
Understanding The IFS
The BasicsFile SystemsCommandsJournalingSave/RestoreSecurity
-
8/14/2019 Presentation 200606 IFS
79/95
IFS (Directory) Authority
Use directory authority the same way that you uselibrary authorityGroup objects in a directory to secure the directoryrather than individual objectsUses OS/400, UNIX, and PC-type securityRequires *SECADM special authority and rights to
the user profile being changed on the IFS objectIFS authority is sometimes referred to as privileges
-
8/14/2019 Presentation 200606 IFS
80/95
IFS (Directory) Security Commands
DSPAUT Display AuthorityWRKAUT Work With AuthorityCHGAUT Change AuthorityCHGOWN Change Directory Owner
-
8/14/2019 Presentation 200606 IFS
81/95
-
8/14/2019 Presentation 200606 IFS
82/95
CHGAUT - Change Authority
-
8/14/2019 Presentation 200606 IFS
83/95
Lock *PUBLIC Out Completely!
-
8/14/2019 Presentation 200606 IFS
84/95
In summary we have learned
Stores several types of dataIt can be manipulatedIt can be backed upIt can be journaledIt can be secured
-
8/14/2019 Presentation 200606 IFS
85/95
Robot/SAVE v11 Features
Compliance releaseSox compliance reports
What was restored to my system?
Save encryptionsKey management (passwords)Levels of encryptions
Data protectionAES and DES
-
8/14/2019 Presentation 200606 IFS
86/95
-
8/14/2019 Presentation 200606 IFS
87/95
Robot/SAVE Version 11.0
-
8/14/2019 Presentation 200606 IFS
88/95
New Option on System Setup
Establishes Level of Encryption
-
8/14/2019 Presentation 200606 IFS
89/95
Establishes Level of Encryptionand Key Phrase
-
8/14/2019 Presentation 200606 IFS
90/95
Always Encrypt for Library Level
-
8/14/2019 Presentation 200606 IFS
91/95
Object Level Default Value
Save Encrypted at Backup Set
-
8/14/2019 Presentation 200606 IFS
92/95
Save Encrypted at Backup SetLibrary
Encryption at Object Level for
-
8/14/2019 Presentation 200606 IFS
93/95
yp jSpecific Object
-
8/14/2019 Presentation 200606 IFS
94/95
Robot/SAVE 11
Tape EncryptionTape ManagementAutomated Backups
-
8/14/2019 Presentation 200606 IFS
95/95
Thank you for joining metoday!
Web site: www.helpsystems.comTelephone: 1-800-328-1000 or
1-952-933-0609
Speaker: [email protected]
Contact Information: