home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
syspage2.zip
/
sample.spg
< prev
next >
Wrap
Text File
|
2000-05-11
|
12KB
|
318 lines
[<Config>]
# set string storage
Module_Names = 16
HTML_text = 32
# accept commands on this port
Command_Port = 3011
# and message logging on this one (SYSLOG)
Log_Port = 514
# accept commands/messages on this port.
Command_IPs = admin 127.0.0.1,192.168.1.1,207.174.132.202
# command prefix string for Command_Port, matches constant in sysphmsg.c
Command_Pfx = 01434D4402
# don't check the these devices
Exclude_dev = AB
# take data every 1 sec.
Peek_Interval = 10
#Don't use the following 2 features
#Proc_Thread = 0
#Unused_Swap = 0
# number of Dos32QuerysysState buffers in ring
Max_Buffers = 16
# place to store the module stats, etc.
Save_Path = e:\mod32\syspage\syspage.svm
Log_Delay = 1
Log_Depth = 120
Log_Display = 23
Log_Console = 1
# switch logs daily
Log_Switch = 2
# maintain this many log files
Num_Logs = 7
# write them to files that look like this
Log_File = f:\syslog\syspg??.log
# put them on disk every n log lines
Log_Flush = 10
[<Commands>]
LogDisp admin
ListF admin e:\emx\bin\ls.exe log
Dspace admin e:\emx\bin\df.exe log
Dusage admin e:\emx\bin\du.exe log
[<IPL> 00 r:\os2html\syspipl.htm]
<HTML>
<HEAD>
<TITLE> %%hostname -- Static Configuration </TITLE>
</HEAD>
<BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
<BASEFONT SIZE=3>
<BR>
<CENTER><B><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- Static Configuration</FONT></B></CENTER>
<BR><P>
This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
This is the <B>IPL</B> page and is written at the start of SysPage, and when
the HTML portion of the configuration file is reloaded.
Generally, it should contain items which do not vary from program start or reload time.
<BR><P>
<FONT SIZE=+1 COLOR="red">%%hostname</FONT> is still an OS/2 system acting as the user interface portion
of our home LAN.
<BR> This system was booted at <FONT SIZE=+1 COLOR="yellow">%&boottime</FONT>.
<BR>
<P>
<UL>
<FONT SIZE=+1 COLOR="red">%%hostname</FONT> has
<LI> %&physmemory bytes of memory.
<LI> floppy disk drives: %&numfloppies
<LI> printers: %&numprinters
<LI> serial ports: %&numcomports
</UL>
<P>
<DL>
<DT><B><A HREF="./syspmod.htm" ALIGN=LEFT>Module Report</A></B></DT>
<DD> describes executable usage over multiple SysPage invocations.</DD>
<DT><B><A HREF="./sysplog.htm" ALIGN=LEFT>System Log</A></B></DT>
<DD> currently lists the last LogDisplay elements of the program execution log.</DD>
<DT><B><A HREF="./syspprc.htm" ALIGN=LEFT>Active Processes</A></B></DT>
<DD> currently lists the active processes in reverse PID order.</DD>
<DT><B><A HREF="./sysaux1.htm" ALIGN=LEFT>Command Log</A></B></DT>
<DD> allows command entry and output for authorized users.</DD>
<DT><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B></DT>
<DD> provides SysPage documentation.</DD>
</DL>
<P>
Please mail any suggestions and observations to
<A HREF="mailto:sbsbugs@dashs.denver.co.us"><FONT COLOR=red>sbsbugs@dashs.denver.co.us</FONT></A>
<BR>
<TABLE BORDER>
<CAPTION><FONT SIZE=+2 COLOR=#408080>Partition Layout for Fixed Disks</FONT></CAPTION>
<TR> <TH>Drive</TH> <TH>Mode</TH> <TH>Type</TH> <TH>Sectors</TH> <TH>Starting Sector</TH> <TH>Ending Sector</TH></TR>
%&partitions <TR> <TD ALIGN=CENTER> %&physicaldisk <TD> %&mode </TD> <TD> %&parttype </TD> <TD ALIGN=RIGHT> %&sizesect </TD> <TD> %&startsect </TD> <TD> %&endsect </TD> </TR>
</TABLE>
<BR><P>
<TABLE BORDER>
<CAPTION><FONT SIZE=+2 COLOR=#408080>Hard Disk Device Parameters</FONT></CAPTION>
<TR> <TH>Drive</TH> <TH>Cylinders</TH> <TH>Heads</TH> <TH>Sectors/Track</TH></TR>
%&units <TR> <TD ALIGN=CENTER> %&physicaldrive <TD ALIGN=RIGHT> %&cylinders </TD> <TD ALIGN=RIGHT> %&heads </TD> <TD ALIGN=RIGHT> %§ors </TD></TR>
</TABLE>
<BR><P>
%&filedir[d:\config.sys] %&Filename last written at %&FileWrtime on %&FileWrdate.
<BR>
Formatted by <FONT SIZE=+2 COLOR=brightgreen>SysPage for OS/2</FONT> which started at %&inittime on %&initdate.
</BODY>
</HTML>
[<Process> 30 r:\os2html\syspprc.htm]
<HTML>
<HEAD>
<TITLE> %%hostname -- Process Report </TITLE>
<NOSCRIPT>
This page requires JavaScript support.
</NOSCRIPT>
<SCRIPT LANGUAGE='JavaScript'>
ID=window.setTimeout("Update();",%&reload);
function Update() {
window.location.reload();
ID=window.setTimeout("Update();",%&reload);
}
</SCRIPT>
</HEAD>
<BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
<BASEFONT SIZE=3>
<CENTER><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- Active Processes</FONT></CENTER>
<BR>
This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
<BR><P>
<FONT SIZE=+1 COLOR = "red">%%hostname</FONT> has been running for %&uptime hours, minutes, seconds.
<BR><P>
This file is should be re-written every %&reload milliseconds.
<BR>
<P>
Please mail any suggestions and observations to
<A HREF="mailto:sbsbugs@dashs.denver.co.us"><FONT COLOR=red>sbsbugs@dashs.denver.co.us</FONT></A>
<BR>
<BR>
Formatted by <FONT SIZE=+2 COLOR=brightgreen>SysPage for OS/2</FONT> which started at %&inittime on %&initdate.
<BR>
<FONT SIZE=+2 COLOR="#EFDF7F">Other Pages</FONT>
<BR><B><A HREF="./syspipl.htm" ALIGN=LEFT>Static Configuration</A></B>
<BR><B><A HREF="./syspmod.htm" ALIGN=LEFT>Module Report</A></B>
<BR><B><A HREF="./sysplog.htm" ALIGN=LEFT>System Log</A></B>
<BR><B><A HREF="./sysaux1.htm" ALIGN=LEFT>Command Log</A></B>
<BR><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B>
<P>
There are %&swapremain megabytes of disk space remaining in the swap file,
and %&availmemory MB of main memory available.
The current CPU load is %&cpuload%.
<BR>
<P>
<TABLE BORDER>
<CAPTION><FONT SIZE=+2 COLOR=#408080>Active Processes</FONT></CAPTION>
<TR> <TH>Process ID</TH> <TH>User CPU</TH> <TH>System CPU</TH> <TH>Starting Time</TH> <TH>Module Name</TH> </TR>
%&processes <TR> <TD ALIGN=CENTER> %&pid <TD ALIGN=RIGHT> %&pusercpu </TD> <TD ALIGN=RIGHT> %&psyscpu </TD> <TD ALIGN=CENTER>%&starttime</TD> <TD>%&pmodname</TD></TR>
</TABLE>
</BODY>
</HTML>
[<Module> 60 r:\os2html\syspmod.htm]
<HTML>
<HEAD>
<TITLE> %%hostname -- Module Report </TITLE>
<NOSCRIPT>
This page requires JavaScript support.
</NOSCRIPT>
<SCRIPT LANGUAGE='JavaScript'>
ID=window.setTimeout("Update();",%&reload);
function Update() {
window.location.reload();
ID=window.setTimeout("Update();",%&reload);
}
</SCRIPT>
</HEAD>
<BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
<BASEFONT SIZE=3>
<CENTER><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- Module Report</FONT></CENTER>
<BR><P>
This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
<BR>
This file is should be re-written every %&reload milliseconds.
<BR><P>
<BR><B><A HREF="./sysplog.htm" ALIGN=LEFT>System Log</A></B>
<BR><B><A HREF="./syspprc.htm" ALIGN=LEFT>Active Processes</A></B>
<BR><B><A HREF="./sysaux1.htm" ALIGN=LEFT>Command Log</A></B>
<BR><B><A HREF="./syspipl.htm" ALIGN=LEFT>Static Configuration</A></B>
<BR><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B>
<BR><P>
<FONT SIZE=+1 COLOR="red">%%hostname</FONT> has been running <FONT SIZE=+2 COLOR="darkcyan">SysPage for OS/2</FONT>
since %&inittime on %&initdate.
<BR>
<TABLE BORDER>
<CAPTION><FONT SIZE=+2 COLOR=#408080>Logical Devices</FONT></CAPTION>
<TR> <TH>Logical Device</TH> <TH> State </TH> <TH>Type</TH> <TH>Free Space</TH><TH>Volume Label</TH><TH>FS Name</TH> <TH>Serial Num</TH> </TR>
%&ldevices <TR> <TD ALIGN=CENTER> %&smode </TD> <TD> %&devstate </TD> <TD> %&stype </TD> <TD ALIGN=CENTER> %&freespace </TD> <TD> %&volume </TD><TD> %&devfsdname </TD> <TD> %&volser </TD> </TR>
</TABLE>
<P><BR>
The following table describes the executables
in use on the system and their relative usage of CPU resource and the total
elapsed time of their use. You should note that elapsed times for some modules
exceed SysPage's run time. This may be accounted-for by multiple invocations of
the module active at the same time, and that data displayed in this table
is cumulative since the creation of the file described by the configuration
string <B>Save_Path</B>.
<BR>
<BR>
<P>
<TABLE BORDER>
<CAPTION><FONT SIZE=+2 COLOR=#408080>Module Usage</FONT></CAPTION>
<TR> <TH>Module Name</TH> <TH>User CPU</TH> <TH>System CPU</TH> <TH>Elapsed Time</TH> <TH>Invocations</TH> </TR>
%&modules <TR> <TD> %&modname <TD ALIGN=RIGHT> %&totusercpu </TD> <TD ALIGN=RIGHT> %&totsyscpu </TD> <TD> %&totelapsed </TD> <TD ALIGN=RIGHT> %&invocations </TD> </TR>
</TABLE>
</BODY>
</HTML>
[<Log> 20 r:\os2html\sysplog.htm]
<HTML>
<HEAD>
<TITLE> %%hostname -- Log Report </TITLE>
<NOSCRIPT>
This page requires JavaScript support.
</NOSCRIPT>
<SCRIPT LANGUAGE='JavaScript'>
ID=window.setTimeout("Update();",60000);
function Update() {
window.location.reload();
ID=window.setTimeout("Update();",60000);
}
</SCRIPT>
</HEAD>
<BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
<BASEFONT SIZE=3>
<CENTER><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- System Log</FONT></CENTER>
<BR>
This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
<BR>
<BR>
<P>
<TABLE>
<CAPTION><FONT SIZE=+2 COLOR=#408080>System Log</FONT></CAPTION>
<BR><B><A HREF="./syspmod.htm" ALIGN=LEFT>Module Report</A></B>
<BR><B><A HREF="./syspprc.htm" ALIGN=LEFT>Active Processes</A></B>
<BR><B><A HREF="./syspipl.htm" ALIGN=LEFT>Static Configuration</A></B>
<BR><B><A HREF="./sysaux1.htm" ALIGN=LEFT>Command Log</A></B>
<BR><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B>
<BR>
<TR> <TH>Time Stamp</TH> <TH>Event</TH> <TH>Process</TH> <TH>Elapsed Time</TH> <TH>User CPU</TH> <TH>Module</TH> </TR>
%&logtable<TR> <TD> %×tamp <TD> %&logevent </TD> <TD> %&logpid </TD> <TD> %&logelapsed </TD> <TD>%&logucpu</TD> <TD> %&logmodname </TD> </TR>
</TABLE>
<P>
<BLOCKQUOTE>
<H2><FONT color="#EFEF7F">SysPage Control for Authorized Users</FONT></H2>
<FORM ACTION="http://dashs.denver.co.us/cgi-bin/sysphmsg/%%hostname/%&cmdport" METHOD=GET>
<BR><P><B>Log Display Length Selection</B>
<MENU>
<LI><INPUT TYPE="radio" NAME="SyspCmd" VALUE="LogDisp 23" > 23 lines.
<LI><INPUT TYPE="radio" NAME="SyspCmd" VALUE="LogDisp 40" > 40 lines.
<LI><INPUT TYPE="radio" NAME="SyspCmd" VALUE="LogDisp 60" > 60 lines.
<LI><INPUT TYPE="radio" NAME="SyspCmd" VALUE="LogDisp 100" > 100 lines.
<P> <INPUT TYPE="submit" VALUE="Submit" >
<INPUT TYPE="reset" VALUE="Reset">
</MENU>
</FORM>
</BLOCKQUOTE>
</BODY>
</HTML>
[<Aux1> 00 r:\os2html\sysaux1.htm]
<HTML>
<HEAD>
<TITLE> %%hostname -- Command Log Report </TITLE>
</HEAD>
<BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
<BASEFONT SIZE=3>
<CENTER><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- Command Log and Entry</FONT></CENTER>
<BR>
This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
<BR>
<BR>
<P>
<BLOCKQUOTE>
<H2><FONT color="#EFEF7F">Command Entry for Authorized Users</FONT></H2>
<FORM ACTION="http://dashs.denver.co.us/cgi-bin/sysphmsg/%%hostname/%&cmdport" METHOD=GET>
<P><B>Parameters:</B> <INPUT TYPE="text" NAME="cmdargs" SIZE=32>
<P><B>Command:</B>
<SELECT NAME="cmdverb">
<OPTION VALUE="ListF"> List Files
<OPTION VALUE="Dusage"> Disk Usage
<OPTION VALUE="Dspace"> Disk Space
</SELECT>
<P> <INPUT TYPE="submit" VALUE="Submit" >
<INPUT TYPE="reset" VALUE="Reset">
<H2><FONT SIZE=+2 COLOR=#EFEF7F>Command Log</FONT></H2>
<H3> <FONT SIZE=+1 COLOR=#962020>PID and Command Output</FONT> </H3>
<PRE>
%&commandout %&commandpid %&commandtext
</PRE>
</FORM>
</BLOCKQUOTE>
<BR><B><A HREF="./syspmod.htm" ALIGN=LEFT>Module Report</A></B>
<BR><B><A HREF="./syspprc.htm" ALIGN=LEFT>Active Processes</A></B>
<BR><B><A HREF="./syspipl.htm" ALIGN=LEFT>Static Configuration</A></B>
<BR><B><A HREF="./sysplog.htm" ALIGN=LEFT>System Log</A></B>
<BR><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B>
<BR>
</BODY>
</HTML>