OS2.org Site Index - Feedback - Impressum
Sprachauswahl / Choose your Language News Software Hardware Projekte Forum Tipps Links Verschiedenes
Editorial Diskussion HelpDesk Umfrage
[Forum]
in nach (Erweiterte Suche)
[Forum]
( Archiv ) ( Neues Thema )

( Zeige die Threadübersicht ) ( Zur Startübersicht )
05.03.2001
Syslevel-Dateien erstellen (von: Peter W., 11:09:34) ^
Gibts es ein Tool, mit dem man Syslevel-Dateien mit selbst gewähltem Inhalt erstellen kann ? z.B.: "OS/2-Client Version X.XX"
(Um in einer grossen Firma jederzeit feststellen zu können, auf welchem Stand ein bestimmter Client ist)
[ Leser: 78 ]

Re: Syslevel-Dateien erstellen (von: Jürgen, 11:40:40)
Wenn ich mich recht erinnere, gibt es auf www.hawi.de einen Sysleveleditor.

Syslevel-Dateien erstellen (von: GA, 12:01:59)
Mit REXX kann man durch die Funktionen der Bibliothek SYSLVL.DLL in X:TCPIPDLL sich detailliert ausgeben lassen, welche Informationen gespeichert sind.

Bern Schemmer hat dies in seinen REXX Tips und Tricks gezeigt:



Name Syslvl - a DLL for syslevel calls
Version ?
Author IBM
Distrib. part of TCP/IP fixes
Type REXX DLL

The name of the DLL is SYSLVL.DLL

This DLL exports functions to get and set the values in a SYSLEVEL file.

SYSLEVEL files are used by OS/2 to save information about the version of a component. The name of a SYSLEVEL file
is always SYSLEVEL.xxx, where xxx represents the component for which the particular SYSLEVEL file is used. For
example, the file SYSLEVEL.OS2 contains the version information about the base OS/2 operating system; the file
SYSLEVEL.MPT contains the version information on the MPTS component, and so on.

You can use the OS/2 program SYSLEVEL to view the information contained in all SYSLEVEL files currently on your
system.

Unfortunately, no documentation is available for the REXX DLL file, SYSLVL.DLL.

So far, I've found the following information about this DLL:

The exported functions are:

 GETSYSID
 SETSYSID
 GETSYSEDITION
 SETSYSEDITION
 GETSYSVERSION
 SETSYSVERSION
 GETSYSMODIFY
 SETSYSMODIFY
 GETSYSDATE
 SETSYSDATE
 GETCSDLEVEL
 SETCSDLEVEL
 GETCSDPREV
 SETCSDPREV
 GETSYSNAME
 SETSYSNAME
 GETCOMPID
 SETCOMPID
 GETREFRESHLVL
 SETREFRESHLVL
 SysLvlLoadFuncs
 ReleaseMemory

Below is a sample REXX program using only the GET functions from this DLL:


/* sample REXX program using the GET functions from the DLL */
/* SYSLVL.DLL */
/* It seems that the only parameter for the GET functions is the name */
/* of the SYSLEVEL file. If the fully qualified path of the SYSLEVEL */
/* file is missing, the functions search the file on all local */
/* hard disk partitons. If the file is not found, the functions */
/* return -2. */

/* install some error handlers */
/* to ensure that ReleaseMemory is called in all */
/* cases */
signal on halt name ProgExit
signal on syntax name ProgExit
signal on error name ProgExit
signal on failure name ProgExit

/* stem with the exported GET functions */
i=0; functions.0 = i
i=i+1; functions.i = 'GETSYSID'
i=i+1; functions.i = 'GETSYSEDITION'
i=i+1; functions.i = 'GETSYSVERSION'
i=i+1; functions.i = 'GETSYSMODIFY'
i=i+1; functions.i = 'GETSYSDATE'
i=i+1; functions.i = 'GETCSDLEVEL'
i=i+1; functions.i = 'GETCSDPREV'
i=i+1; functions.i = 'GETSYSNAME'
i=i+1; functions.i = 'GETCOMPID'
i=i+1; functions.i = 'GETREFRESHLVL'
functions.0 = i

/* name of the syslevel file for testing */
syslevelFile = 'C:MPTNSYSLEVEL.MPT'

/* load the functions */
Call RxFuncAdd 'SysLvlLoadFuncs' , 'SYSLVL' , 'SysLvlLoadFuncs'
Call SysLvlLoadFuncs , 'SYSLVL' , 'SysLvlLoadFuncs'

/* now call the GET functions */
do i = 1 to functions.0
curFunction = functions.i
say 'Now calling the function ' || curFunction || '...'
iLine = 'call ' curFunction 'syslevelFile'
interpret iLine
say ' ... the result is "' || result || '".'
end /* do i = 1 to functions.0 */

ProgExit:

/* this call seems to be necessary! */
Call ReleaseMemory
exit

The output of the program above is shown below. (Note that the function GetSysEdition returns binary data. Therefore,
the return code of GetSysEdition is not included in the output listing!):


Now calling the function GETSYSID...
... the result is "24609".
Now calling the function GETSYSEDITION...
... the result is <binary data>
Now calling the function GETSYSVERSION...
... the result is "5.11".
Now calling the function GETSYSMODIFY...
... the result is "1".
Now calling the function GETSYSDATE...
... the result is "0".
Now calling the function GETCSDLEVEL...
... the result is "WRG8415_".
Now calling the function GETCSDPREV...
... the result is "WRG8400_".
Now calling the function GETSYSNAME...
... the result is "IBM OS/2 TCP/IP Stack".
Now calling the function GETCOMPID...
... the result is "5639B1700".
Now calling the function GETREFRESHLVL...
... the result is "1".


Wie man eine SYSLEVEL Datei erstellt, kann man hieraus entnehmen(die dort aufgeführten dateien habe ich nicht gefunden. Vielleicht kann man sie vom Autor noch erhalten. Rückmeldung hier ist dann sehr erwünscht!):

http://www.edm2.com/0205/syslevel.html


Syslevel-Dateien erstellen mit einer Utility (von: GA, 14:30:12)
In dieser Datei findet man eine Prozedur zur Erstellung einer SYSLEVEL-Datei:

ftp://ftp.univie.ac.at/systems/os2/leo/systools/syslvl.zip

This package contains a utility named EDITSLVL ("EDIT SysLeVel") and
a document that describes the syslevel file format.

Editslvl can be used to create and edit syslevel files.

The following files are included:

- PM/WPS utility

EDITSLVL.EXE - put in path (eg, C:OS2)

EDITSLVL.HLP - put in help path (eg, C:OS2HELP)

OPENDLG.DLL - put in libpath (eg, C:OS2DLL)

SYLMGR.EXE - Command line utility

SYSLEVEL.TXT - syslevel document in ASCII text format

Online help is available for all the fields in editslvl.

To create a new syslevel file, type editslvl without any parameters.
When the "Open a File" window appears, press the Esc key. Then press the "New" button on the main window.

You will be prompted for the path and filename of the syslevel file. The name must be in the form:

SYSLEVEL.XXX, where XXX is your assigned extension.


22.03.2001
Re: Syslevel-Dateien erstellen (von: Peter W., 12:43:50)
Seit heute arbeite ich an einer Lösung.
Den Autor von http://www.edm2.com/0205/syslevel.html,
Martin Lafaix, habe ich angeschrieben bezüglich der von ihm erwähnten Dateien.
Wenn ich ein Version der "syslvl.dll" finde, werde ich die Ergebnisse und Beispielscripts hier posten.

Re: Syslevel-Dateien erstellen (von: Peter W., 16:21:56)
Unter folgendem URL kann man die Datei SYSLVL.DLL herunterladen:
http://www.bauteszt.hu/teamcd/CD1/FIX/TCPIP/V3/
Leider habe ich bis jetzt noch nicht 'rausbekommen, wie man eine "SET" -Funktion aufruft. Im Beitrag von GA werden nur "GET" -Funktionen gezeigt. Ich bekommen bei "SET" bis jetzt immer "-2" als return. Wenn jemand Langeweile hat, kann er/sie ja auch 'mal probieren...
Das von GA genannte Tool funktioniert übrigens prima. Nur brauche ich ein Script... :-(

( Zeige die Threadübersicht ) [ Version zum Drucken ] ( Zur Startübersicht )

Datum Thema
07.01.2017 *

*

Name: * eMail: Benachrichtigung

Mit * markierte Felder müssen ausgefüllt werden !


php.net OpenIT © 1998-2017 by WebTeam OS2.org