Series I Connectivity Communication resources • Display Communication Resources System: ODIN Type options, press Enter. 5=Display configuration descriptions 7=Display resource detail Opt Resource CMB01 LIN01 CMN01 CMN02 LIN03 CMN04 CMN05 CMB02 LIN04 CMN07 LIN02 CMN03 Type Status 284C Operational 2771 Operational 2771 Operational 2771 Operational 2745 Operational 2745 Operational 2745 Operational 2843 Operational 2743 Operational 2743 Operational 2838 Operational 2838 Operational F3=Exit F5=Refresh F6=Print F12=Cancel Text Combined function IOP Comm Adapter Comm Port V.24 Port Comm Adapter Comm Port Comm Port Combined function IOP LAN Adapter Ethernet Port LAN Adapter Ethernet Port Bottom Configuration Status Go cmnsts Work with Configuration Status Position to . . . . . ODIN 04/04/07 11:33:21 Starting characters Type options, press Enter. 1=Vary on 2=Vary off 5=Work with job 8=Work with description 9=Display mode status 13=Work with APPN status... Opt Description CTL01 DSP01 ETHERNET ETHERTCP FIBERNET FIBERTCP QCTL QCONSOLE QESCTL Status -------------Job-------------ACTIVE SIGNON DISPLAY ACTIVE ACTIVE QTCPIP QTCP 488697 ACTIVE ACTIVE QTCPIP QTCP 488697 VARIED OFF VARIED OFF VARIED OFF More... Parameters or command ===> F3=Exit F4=Prompt F12=Cancel F23=More options F24=More keys MULTIPLE PROTOCOLS •Can run simultaneous in OS/400 •It is very common to have APPC and TCP/IP active at the same time •APPC to support business applications •TCP/IP for TELNET and FTP •More configuration required to for LPD and SMTP Client Access WDSc (Internet) Ops Nav TCP/IP “Green” screen (Local - workstation) Sign On S E N E C A S C H O O L OOOOOO OO OO OO OO OO OO OOOOOO O F C O L L E G E C O M P U T E R DDDDDDD DD DD DD DD DD DD DDDDDDD System . . . . . : ODIN Subsystem . . . . : QINTER Display . . . . . : QPADEV02PN IIIIIII II II II IIIIIIII S T U D I E S NN NN NNN NN NN NN NN NN NN NN NN NNN User . . . . . . . . . . . . . . Password . . . . . Program/procedure Menu . . . . . . . Current library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . “Green” screen CA – (Client Access) or Mocha remote Sign On S E N E C A S C H O O L OOOOOO OO OO OO OO OO OO OOOOOO O F C O L L E G E C O M P U T E R DDDDDDD DD DD DD DD DD DD DDDDDDD System . . . . . : ODIN Subsystem . . . . : QINTER Display . . . . . : QPADEV02PN IIIIIII II II II IIIIIIII S T U D I E S NN NN NNN NN NN NN NN NN NN NN NN NNN User . . . . . . . . . . . . . . Password . . . . . Program/procedure Menu . . . . . . . Current library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . “Green” screen CA – (Client Access) COPY to clipboard PASTE from clipboard Transfer to Host (AS/400) Transfer from Host (to PC) Ops Nav (Operations Navigator) (PC workstation - GUI) Local or Remote WDSc (Websphere Development Studio client) PC server / internet TCP/IP Configure AS/400 for TCP/IP Applications GO CFGTCP CFGTCP Configure TCP/IP Select one of the following: 1. Work with TCP/IP interfaces 2. Work with TCP/IP routes 3. Change TCP/IP attributes 4. Work with TCP/IP port restrictions 5. Work with TCP/IP remote system information 10. Work with TCP/IP host table entries 11. Merge TCP/IP host table 12. Change TCP/IP domain information 20. Configure TCP/IP applications 21. Configure related tables 22. Configure point-to-point TCP/IP GO CFGTCP - Option1 Type options, press Enter. 5=Display Opt Internet Address Subnet Mask ---127.0.0.1 255.0.0.0 --142.204.57.104 255.255.255.192 ---142.204.57.105 255.255.255.192 FIBER Required for internal processing and testing!! Line Description Line Type *LOOPBACK ETHERNET *ELAN *NONE *ELAN GO MAIN, 6, 4 or GO CFGCMN CFGCMN Configure Communications and Remote Hardware System: ODIN Select one of the following: 1. Work with lines 2. Work with communications controllers 3. Work with work station controllers 4. Work with communications devices 5. Work with printers 6. Work with display stations 7. Work with modes 8. Work with classes-of-service 9. Work with configuration lists 10. Work with network interfaces 11. Work with connection lists 12. Work with network servers 13. Work with NetBIOS descriptions More... WRKLIND Work with Line Descriptions System: ODIN Position to . . . . . Starting characters Type options, press Enter. 2=Change 3=Copy 4=Delete 5=Display 8=Work with status 9=Retrieve source Opt Line ETHERNET FIBER QESLINE QTILINE Q1PLIN Type *ELAN *ELAN *SDLC *SDLC *SDLC 6=Print 7=Rename Text FIBER ETHERNET ONNECTION PM iSeries line Configure TCP/IP applications SNMP FTP TELNET - Simple Network Management Protocol SMTP LPD HTTP WSG POP - Simple Mail Transfer Protocol File Transfer Protocol Character mode client to server port connection Line Printer Deamon HyperText Transfer Protocol WorkStation Gateway Post Office Protocol Go CFGTCP, 20 Configure TCP/IP Applications Select one of the following: 1. Configure SNMP agent 2. Configure RouteD 4. Configure BOOTP 5. Change DDM TCP attributes 10. 11. 12. 13. Change FTP attributes Configure TELNET Configure SMTP Change LPD attributes 16. Change POP attributes 17. Change REXEC attributes Configuring FTP • When the AS/400 acts as a server, it allows clients to access physical, logical, source and save files and members stored on the system • When files are transferred to a client system , the AS/400 automatically translates them from EBCDIC to ASCII, but files can also be transferred without translation. Configuring CHGFTPA FTP autostart *yes (STRTCP) *no (STRTCPSVR) . FTP server doesn’t need to be active for the AS/400 to initiate a file transfer, either to or from the AS/400. . The only need for the FTP server to be active on the AS/400 is for a remote system to initiate a file transfer to or from the AS/400. . NBRSVR: The default FTP servers to be started automatically is three. (1----20) . INACTTIMO: The default number of seconds that an FTP connection can remain idle before the AS/400 disconnects the FTP connection is 300 seconds. (0----68years) 0 = NO Timeout Change FTP Attributes (CHGFTPA) Type choices, press Enter. Autostart servers . . . . . . . *SAME Number of initial servers . . . Inactivity timeout . . . . . . . *SAME Coded character set identifier Outgoing EBCDIC/ASCII table: Outgoing EBCDIC/ASCII table Library . . . . . . . . . . Incoming ASCII/EBCDIC table: Incoming ASCII/EBCDIC table Library . . . . . . . . . . Initial name format . . . . . . *SAME Initial directory . . . . . . . *SAME Initial list format . . . . . . *SAME New file CCSID . . . . . . . . . *SAME Subsystem description . . . . . Library . . . . . . . . . . . Allow secure sockets layer . . . AUTOSTART NBRSVR *SAME INACTTIMO CCSID TBLFTPOUT . *SAME *SAME TBLFTPIN *SAME . NAMEFMT CURDIR LISTFMT CRTCCSID SBSD ALWSSL *SAME *SAME Configuring TELNET • • CFGTCPTELN = TELNET CHGTELNA autostart *yes (STRTCP) *no (STRTCPSVR) The default Telnet server to be started automatically is one. You can start additional Telnet servers by using the command : STRTCPSVR SERVER(*Telnet) INACTTIMO: The default number of seconds that an Telnet connection can remain idle before the AS/400 disconnects the Telnet connection is 0 seconds, meaning idle connections will not be broken. (Valid range: 0----68years) 0 = No Timeout Configuring Telnet • Changing Telnet related system values • QAUTOVRT QLMTSECOFR QINACTMSGQ QLMTDEVSSN QMAXSIGN QRMTSIGN QDSCJOBITV QINACTITV QMAXSGNACN QDEVRCYACN .The number of attempts a hacker can try to break into AS/400 system is: QAUTOVRT * QMAXSIGN Configuring SMTP • SMTP is used to transfer mail between host. • POP3 is used to transfer mail from a host to a client. • AS/400 supports both SMTP and POP3. STRTCP - 1 Start TCP/IP (STRTCP) Where allowed to run: All environments (*ALL) • The Start TCP/IP (STRTCP) – – – – command initializes and activates TCP/IP processing starts the TCP/IP interfaces starts the TCP/IP server jobs starts the TCP/IP Point-To-Point (PTP) profiles. A STRTCP command must be issued before any TCP/IP processing can be performed on the iSeries. This includes Simple Network Management Protocol (SNMP) agent processing. • The TCP/IP interfaces that are started are those that have set the AUTOSTART parameter to a value of *YES using the Add TCP/IP Interface (ADDTCPIFC), the Change TCP/IP Interface (CHGTCPIFC) commands, or the iSeries Navigator. • The Change IPL Attributes (CHGIPLA) command with the STRTCP parameter set to a value of *YES can be used to automatically submit the STRTCP command at the completion of IPL. TCP/IP Management GO TCPADM TCP/IP Management • Using the TCP/IP management tools to keep TCP/IP on your AS/400 robust, reliable and effective. • Each option of the menu GO TCPADM has an associated command. GO TCPADM GO CFGTCP CFGTCPAPP STRTCP ENDTCP STRTCPSVR ENDTCPSVR WRKTCPSTS=NETSTAT VFYTCPCNN=PING STRTCPFTP STRTCPTELN SNDTCPSPLF WRKSBSJOB The components of TCP/IP processing on the AS/400 include: • • • • The TCP/IP jobs The physical connection over the line The logical connection to the network Optional SNMP services PING • Can help find problems in logical connections • If the connection is successful ,receives a return reply. • If the packet never returns, there is no route from the source to the destination system and back again. This does not mean that TCP/IP is not configured correctly; it may mean that the routing is not established properly. • If the packet does make a successful round trip, the time that it takes to make the round trip may be excessive. You may need to examine your network for potential performance or bottleneck problem TCP/IP connection status • Listen--- the AS/400 is listening at the local port for an incoming connection • Established--- the connection is established and the system are communicating • Closed --- the connection has ended • Other states may be seen during a transition period • The ports( both remote and local) can use well-known names rather than a port number. These names are defined in the service table modified by the command WRKSRVTBLE TCP/IP connection details • The number of bytes in and out ( from AS/400 perspective) for this connection. • The retransmission information gives the number of segments retransmitted by the AS/400 due to an acknowledgement not being received. • If the number of retransmission is higher than the number that has been historically present for this connection, it could be an indication that there are network problems. TCP/IP connection details • The send window information identifies the current and largest size of the send window, or the number of bytes that can be transmitted without an acknowledgment. • A large send window indicates that the network is successfully transmitting large packets without the need for retransmission. • A small send window size means that the system has detected problems and has reduced the window size in an attempt to reduce the number of retransmissions. AS/400 database—DB2 STRSQL CREATE INSERT UPDATE SELECT DELETE ALTER DROP