In the first two articles NetServers for everyone we have configured the service And shared IFS resources . We did this using Navigator for io via OS API. There are very few commands available for NetServer. In short, you can start or stop the service via STRTCPSVR SERVER(NETSVR)
or ENDTCPSVR SERVER ( NETSVR)
.
If you find yourself unable to access Navigator for i, that can be a problem.
In this article we will see a rich set of commands that can be used in a 5250 session to carry out all operations with NetServer: the NetTools .
Index
The NetTools are available from the IBM version V5R2. It takes a little effort to install these provided tools as-is from IBM in the library QUSRTOOL extension
.
If the QUSRTOOL library is not found on your system, you need to install the opt. 7 “Sample program library” of the operating system (product 5770SS1).
Having the library available, proceed with these simple instructions to install the NetTools:
CRTLIB LIB(NETSRVCMD) TEXT('iSeries NetServer menu and commands')
CALL QUSRTOOL/UNPACKAGE PARM('*ALL ' 1)
CRTCLPGM NETSRVCMD/TZLSINST QUSRTOOL/QATTCL
CALL NETSRVCMD/TZLSINST NETSRVCMD
That’s all. Now just add the library to the library list NETSRVCMD extension
and view the menu NETS extension
to have all these commands available:
Surely the most useful commands are 3. Add File Share ( ADDNSVFSHR
) to add shared resources, 12. Work with NetServer Users ( WRKNSVUSR
) to re-enable users and 15. Work with NetServer Sessions ( WRKNSVSSN
) to monitor all active client sessions on the NetServer.
Furthermore, this utility library is very interesting because we have the sources available, so there is excellent material for studying the operating system APIs.
The member TZLSINFO
In the file QATTINFO
of the library QUSRTOOL extension
contains the NetTools technical documentation. It describes the purpose, installation instructions, and usage details. In the chapter “What is Created” all the sources that make up the NetTools are listed.
In previous articles we had occasion to mention some of the APIs to manage and configure NetServer. Below you will find the complete list:
CALL QZLSCHSG (guest-user-profile X'00000000')
QZLSCHSI
) QZLSCHSN
) CALL QZLSSTRS PARM('0' X'00000000')
CALL QZLSENDS extension PARM(X'00000000')
CALL QZLSADFS extension PARM(share-name 'folder-path' x'00000005' x'00000000' 'shared-description' x'00000001' x'ffffffff' x'00000000')
CALL QZLSRMS PARM(share-name x'00000000')
QZLSCHFS
) QZLSADPS
) QZLSCHPS
) QZLSLSTI
) QZLSOLST
) QZLSENSS
)The main page of the IBM documentation on NetServer can be consulted at this link: https://www.ibm.com/docs/en/i/7.5?topic=services-i-netserver . Other useful resources can be found in the attached document:
In the next article we will talk about how access shared resources from a client .
We are pleased to receive and share this "tip & trick" from Patrick Rizzi, which introduces a technique that allows…
I take inspiration from a response by Michael Mayer on the Midrange.com mailing lists to someone who asked how to…
Businesses are increasingly seeking tools to enhance efficiency, collaboration, and resource management. Enterprise Resource Planning (ERP) systems provide a comprehensive…
Early April saw the release of the "Spring Version" of ACS Access Client Solution, version 1.1.9.5 Interesting new features especially…
If the packed agenda of sessions at Common Europe Congress 2024, June 3-6 Milan, wasn't enough for you, here's another…
Debugging functions with Visual Studio Code have been available for some time but this new version 2.10.0 simplifies the handling…
View Comments