-
API Beispiel
Hallo Michael,
jetzt habe ich noch das gefunden:
APIS BY EXAMPLE: LIST NETWORK CONNECTIONS (QTOCLSTNETCNN) API
One message I see periodically in the newsgroups is a request for sample
source code showing how to retrieve the same information that is displayed
by the NETSTAT command. With V5R1, this information has been made available
via the List Network Connections (QtocLstNetCnn) API, which returns a non-
detailed list of all network connections or a subset of all network
connections for a specified network connection type.
Bryan Dietz has recently released his free NStat utility, which uses the
QtocLstNetCnn API. The utility prompt screen is shown below:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
***********************NStat - OutPut for NetStat (NSTAT)
*Type choices, press Enter.
*Include Listening Ports? . . . . > Y **********Y, N
*Output . . . . . . . . . . . . . > *FILE *******PRINT, *FILE
*File Name *. . . . . . . . . . . > FILENAME ***Name
Library *. . . . . . . . . . . > **LIBRARY **Name, *LIBL
*File Option *. . . . . . . . . . ***ADD *******Name, *ADD, *REPLACE
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
If you select the *FILE option, the utility creates a file in the following
format:
Field Name *Type *Pos *Len Dec
LCLADDR *****A ****1 ***15
RMTADDR *****A ***16 ***15
LCLPORT *****S ***31 ****5 *0
RMTPORT *****S ***36 ****5 *0
BYTESIN *****S ***41 ***10 *0
BYTESOUT ****S ***51 ***10 *0
IDLEHOUR ****S ***61 ****3 *0
IDLEMIN *****S ***64 ****2 *0
IDELSEC *****S ***66 ****2 *0
CONNSTAT ****A ***68 ***11 *
CONNTYPE ****A ***79 ***10
OUTPUTTIME **Z ***89 ***26 *0
The source for the utility is provided, so you can see for yourself how
QtocLstNetCnn is used. You can download the utility from
http://home.columbus.rr.com/jbmmdietz/iseries.html.
The V5R1 documentation for the QtocLstNetCnn is available at
http://publib.boulder.ibm.com/iserie...apis/comm8.htm
Similar Threads
-
By Eric in forum NEWSboard Drucker
Antworten: 0
Letzter Beitrag: 25-09-05, 21:56
-
By Proggi in forum NEWSboard Programmierung
Antworten: 6
Letzter Beitrag: 14-09-05, 16:58
-
By cc in forum IBM i Hauptforum
Antworten: 3
Letzter Beitrag: 13-10-04, 22:49
-
By rcide in forum IBM i Hauptforum
Antworten: 3
Letzter Beitrag: 27-08-04, 13:04
-
By itag in forum IBM i Hauptforum
Antworten: 5
Letzter Beitrag: 03-01-02, 12:33
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks