home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / syspage2.zip / sample.spg < prev    next >
Text File  |  2000-05-11  |  12KB  |  318 lines

  1. [<Config>]
  2. # set string storage
  3. Module_Names = 16
  4. HTML_text = 32
  5. # accept commands on this port
  6. Command_Port = 3011
  7. # and message logging on this one (SYSLOG)
  8. Log_Port =  514
  9. # accept commands/messages on this port.
  10. Command_IPs  = admin 127.0.0.1,192.168.1.1,207.174.132.202
  11. # command prefix string for Command_Port, matches constant in sysphmsg.c
  12. Command_Pfx = 01434D4402
  13. # don't check the these devices
  14. Exclude_dev = AB
  15. # take data every 1 sec.
  16. Peek_Interval = 10
  17. #Don't use the following 2 features
  18. #Proc_Thread = 0
  19. #Unused_Swap = 0
  20. #  number of Dos32QuerysysState buffers in ring
  21. Max_Buffers = 16
  22. # place to store the module stats, etc.
  23. Save_Path = e:\mod32\syspage\syspage.svm
  24. Log_Delay = 1
  25. Log_Depth = 120
  26. Log_Display = 23
  27. Log_Console = 1
  28. # switch logs daily
  29. Log_Switch = 2
  30. # maintain this many log files
  31. Num_Logs = 7
  32. # write them to files that look like this
  33. Log_File = f:\syslog\syspg??.log
  34. # put them on disk every n log lines
  35. Log_Flush = 10
  36.  
  37. [<Commands>]
  38. LogDisp admin
  39. ListF admin e:\emx\bin\ls.exe log
  40. Dspace admin e:\emx\bin\df.exe log
  41. Dusage admin e:\emx\bin\du.exe log
  42.  
  43.  
  44. [<IPL> 00 r:\os2html\syspipl.htm]
  45. <HTML>
  46. <HEAD>
  47. <TITLE> %%hostname -- Static Configuration </TITLE>
  48. </HEAD>
  49. <BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
  50. <BASEFONT SIZE=3>
  51. <BR>
  52. <CENTER><B><FONT SIZE=+3 COLOR="#EFDF7F">SysPage  -- Static Configuration</FONT></B></CENTER>
  53. <BR><P>
  54. This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
  55. This is the <B>IPL</B> page and is written at the start of SysPage, and when
  56. the HTML portion of the configuration file is reloaded.
  57. Generally, it should contain items which do not vary from program start or reload time.
  58. <BR><P>
  59. <FONT SIZE=+1 COLOR="red">%%hostname</FONT> is still an OS/2 system acting as the user interface portion
  60. of our home LAN.
  61. <BR>  This system was booted at <FONT SIZE=+1 COLOR="yellow">%&boottime</FONT>.
  62. <BR>
  63. <P>
  64.  <UL>
  65.  <FONT SIZE=+1 COLOR="red">%%hostname</FONT> has
  66.  <LI> %&physmemory bytes of memory.
  67.  <LI> floppy disk drives: %&numfloppies
  68.  <LI> printers:           %&numprinters
  69.  <LI> serial ports:       %&numcomports
  70.  </UL>
  71. <P>
  72. <DL>
  73. <DT><B><A HREF="./syspmod.htm" ALIGN=LEFT>Module Report</A></B></DT>
  74. <DD> describes executable usage over multiple SysPage invocations.</DD>
  75. <DT><B><A HREF="./sysplog.htm" ALIGN=LEFT>System Log</A></B></DT>
  76. <DD> currently lists the last LogDisplay elements of the program execution log.</DD>
  77. <DT><B><A HREF="./syspprc.htm" ALIGN=LEFT>Active Processes</A></B></DT>
  78. <DD> currently lists the active processes in reverse PID order.</DD>
  79. <DT><B><A HREF="./sysaux1.htm" ALIGN=LEFT>Command Log</A></B></DT>
  80. <DD> allows command entry and output for authorized users.</DD>
  81. <DT><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B></DT>
  82. <DD> provides SysPage documentation.</DD>
  83. </DL>
  84. <P>
  85. Please mail any suggestions and observations to
  86. <A HREF="mailto:sbsbugs@dashs.denver.co.us"><FONT COLOR=red>sbsbugs@dashs.denver.co.us</FONT></A>
  87. <BR>
  88. <TABLE BORDER>
  89. <CAPTION><FONT SIZE=+2 COLOR=#408080>Partition Layout for Fixed Disks</FONT></CAPTION>
  90. <TR> <TH>Drive</TH> <TH>Mode</TH> <TH>Type</TH> <TH>Sectors</TH> <TH>Starting Sector</TH> <TH>Ending Sector</TH></TR>
  91. %&partitions <TR> <TD ALIGN=CENTER> %&physicaldisk <TD> %&mode </TD> <TD> %&parttype </TD> <TD ALIGN=RIGHT> %&sizesect </TD> <TD> %&startsect </TD> <TD> %&endsect </TD> </TR>
  92. </TABLE>
  93. <BR><P>
  94. <TABLE BORDER>
  95. <CAPTION><FONT SIZE=+2 COLOR=#408080>Hard Disk Device Parameters</FONT></CAPTION>
  96. <TR> <TH>Drive</TH>  <TH>Cylinders</TH> <TH>Heads</TH> <TH>Sectors/Track</TH></TR>
  97. %&units <TR> <TD ALIGN=CENTER> %&physicaldrive <TD ALIGN=RIGHT> %&cylinders </TD> <TD ALIGN=RIGHT> %&heads </TD> <TD ALIGN=RIGHT> %§ors </TD></TR>
  98. </TABLE>
  99.  
  100. <BR><P>
  101. %&filedir[d:\config.sys] %&Filename last written at %&FileWrtime on %&FileWrdate.
  102.  
  103. <BR>
  104. Formatted by <FONT SIZE=+2 COLOR=brightgreen>SysPage for OS/2</FONT> which started at %&inittime on %&initdate.
  105. </BODY>
  106. </HTML>
  107.  
  108.  
  109. [<Process> 30 r:\os2html\syspprc.htm]
  110. <HTML>
  111. <HEAD>
  112. <TITLE> %%hostname -- Process Report </TITLE>
  113. <NOSCRIPT>
  114. This page requires JavaScript support.
  115. </NOSCRIPT>
  116. <SCRIPT LANGUAGE='JavaScript'>
  117. ID=window.setTimeout("Update();",%&reload);
  118. function Update() {
  119.   window.location.reload();
  120.   ID=window.setTimeout("Update();",%&reload);
  121.   }
  122. </SCRIPT>
  123. </HEAD>
  124. <BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
  125. <BASEFONT SIZE=3>
  126. <CENTER><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- Active Processes</FONT></CENTER>
  127. <BR>
  128. This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
  129. <BR><P>
  130. <FONT SIZE=+1 COLOR = "red">%%hostname</FONT> has been running for %&uptime hours, minutes, seconds.
  131. <BR><P>
  132. This file is should be re-written every %&reload milliseconds.
  133. <BR>
  134. <P>
  135. Please mail any suggestions and observations to
  136. <A HREF="mailto:sbsbugs@dashs.denver.co.us"><FONT COLOR=red>sbsbugs@dashs.denver.co.us</FONT></A>
  137. <BR>
  138. <BR>
  139. Formatted by <FONT SIZE=+2 COLOR=brightgreen>SysPage for OS/2</FONT> which started at %&inittime on %&initdate.
  140. <BR>
  141. <FONT SIZE=+2 COLOR="#EFDF7F">Other Pages</FONT>
  142. <BR><B><A HREF="./syspipl.htm" ALIGN=LEFT>Static Configuration</A></B>
  143. <BR><B><A HREF="./syspmod.htm" ALIGN=LEFT>Module Report</A></B>
  144. <BR><B><A HREF="./sysplog.htm" ALIGN=LEFT>System Log</A></B>
  145. <BR><B><A HREF="./sysaux1.htm" ALIGN=LEFT>Command Log</A></B>
  146. <BR><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B>
  147. <P>
  148. There are %&swapremain megabytes of disk space remaining in the swap file,
  149. and %&availmemory MB of main memory available.
  150. The current CPU load is %&cpuload%.
  151. <BR>
  152.  
  153. <P>
  154. <TABLE BORDER>
  155. <CAPTION><FONT SIZE=+2 COLOR=#408080>Active Processes</FONT></CAPTION>
  156. <TR> <TH>Process ID</TH> <TH>User CPU</TH> <TH>System CPU</TH> <TH>Starting Time</TH> <TH>Module Name</TH> </TR>
  157. %&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>
  158. </TABLE>
  159. </BODY>
  160. </HTML>
  161.  
  162. [<Module> 60  r:\os2html\syspmod.htm]
  163. <HTML>
  164. <HEAD>
  165. <TITLE> %%hostname -- Module Report </TITLE>
  166. <NOSCRIPT>
  167. This page requires JavaScript support.
  168. </NOSCRIPT>
  169. <SCRIPT LANGUAGE='JavaScript'>
  170. ID=window.setTimeout("Update();",%&reload);
  171. function Update() {
  172.   window.location.reload();
  173.   ID=window.setTimeout("Update();",%&reload);
  174.   }
  175. </SCRIPT>
  176. </HEAD>
  177. <BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
  178. <BASEFONT SIZE=3>
  179. <CENTER><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- Module Report</FONT></CENTER>
  180. <BR><P>
  181. This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
  182. <BR>
  183. This file is should be re-written every %&reload milliseconds.
  184. <BR><P>
  185. <BR><B><A HREF="./sysplog.htm" ALIGN=LEFT>System Log</A></B>
  186. <BR><B><A HREF="./syspprc.htm" ALIGN=LEFT>Active Processes</A></B>
  187. <BR><B><A HREF="./sysaux1.htm" ALIGN=LEFT>Command Log</A></B>
  188. <BR><B><A HREF="./syspipl.htm" ALIGN=LEFT>Static Configuration</A></B>
  189. <BR><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B>
  190. <BR><P>
  191. <FONT SIZE=+1 COLOR="red">%%hostname</FONT> has been running <FONT SIZE=+2 COLOR="darkcyan">SysPage for OS/2</FONT>
  192. since %&inittime on %&initdate.
  193. <BR>
  194. <TABLE BORDER>
  195. <CAPTION><FONT SIZE=+2 COLOR=#408080>Logical Devices</FONT></CAPTION>
  196. <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>
  197. %&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>
  198. </TABLE>
  199. <P><BR>
  200. The following table describes the executables
  201. in use on the system and their relative usage of CPU resource and the total
  202. elapsed time of their use.  You should note that elapsed times for some modules
  203. exceed SysPage's run time.  This may be accounted-for by multiple invocations of
  204. the module active at the same time, and that data displayed in this table
  205. is cumulative since the creation of the file described by the configuration
  206.   string <B>Save_Path</B>.
  207. <BR>
  208. <BR>
  209. <P>
  210. <TABLE BORDER>
  211. <CAPTION><FONT SIZE=+2 COLOR=#408080>Module Usage</FONT></CAPTION>
  212. <TR> <TH>Module Name</TH> <TH>User CPU</TH> <TH>System CPU</TH> <TH>Elapsed Time</TH> <TH>Invocations</TH> </TR>
  213. %&modules <TR> <TD> %&modname <TD ALIGN=RIGHT> %&totusercpu </TD> <TD ALIGN=RIGHT> %&totsyscpu </TD> <TD> %&totelapsed </TD> <TD ALIGN=RIGHT> %&invocations </TD> </TR>
  214. </TABLE>
  215. </BODY>
  216. </HTML>
  217.  
  218. [<Log> 20 r:\os2html\sysplog.htm]
  219. <HTML>
  220. <HEAD>
  221. <TITLE> %%hostname -- Log Report </TITLE>
  222. <NOSCRIPT>
  223. This page requires JavaScript support.
  224. </NOSCRIPT>
  225. <SCRIPT LANGUAGE='JavaScript'>
  226. ID=window.setTimeout("Update();",60000);
  227. function Update() {
  228.   window.location.reload();
  229.   ID=window.setTimeout("Update();",60000);
  230.   }
  231. </SCRIPT>
  232. </HEAD>
  233. <BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
  234. <BASEFONT SIZE=3>
  235. <CENTER><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- System Log</FONT></CENTER>
  236. <BR>
  237. This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
  238. <BR>
  239. <BR>
  240. <P>
  241. <TABLE>
  242. <CAPTION><FONT SIZE=+2 COLOR=#408080>System Log</FONT></CAPTION>
  243. <BR><B><A HREF="./syspmod.htm" ALIGN=LEFT>Module Report</A></B>
  244. <BR><B><A HREF="./syspprc.htm" ALIGN=LEFT>Active Processes</A></B>
  245. <BR><B><A HREF="./syspipl.htm" ALIGN=LEFT>Static Configuration</A></B>
  246. <BR><B><A HREF="./sysaux1.htm" ALIGN=LEFT>Command Log</A></B>
  247. <BR><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B>
  248. <BR>
  249. <TR> <TH>Time Stamp</TH> <TH>Event</TH> <TH>Process</TH> <TH>Elapsed Time</TH> <TH>User CPU</TH> <TH>Module</TH> </TR>
  250. %&logtable<TR> <TD> %×tamp <TD> %&logevent </TD> <TD> %&logpid </TD> <TD> %&logelapsed </TD> <TD>%&logucpu</TD> <TD> %&logmodname </TD> </TR>
  251. </TABLE>
  252.  
  253. <P>
  254. <BLOCKQUOTE>
  255. <H2><FONT color="#EFEF7F">SysPage Control for Authorized Users</FONT></H2>
  256. <FORM ACTION="http://dashs.denver.co.us/cgi-bin/sysphmsg/%%hostname/%&cmdport" METHOD=GET>
  257. <BR><P><B>Log Display Length Selection</B>
  258. <MENU>
  259. <LI><INPUT TYPE="radio" NAME="SyspCmd" VALUE="LogDisp 23" >  23 lines.
  260. <LI><INPUT TYPE="radio" NAME="SyspCmd" VALUE="LogDisp 40" >  40 lines.
  261. <LI><INPUT TYPE="radio" NAME="SyspCmd" VALUE="LogDisp 60" >  60 lines.
  262. <LI><INPUT TYPE="radio" NAME="SyspCmd" VALUE="LogDisp 100" >  100 lines.
  263.  
  264. <P> <INPUT TYPE="submit" VALUE="Submit" >
  265.     <INPUT TYPE="reset" VALUE="Reset">
  266. </MENU>
  267. </FORM>
  268. </BLOCKQUOTE>
  269.  
  270. </BODY>
  271. </HTML>
  272.  
  273. [<Aux1> 00 r:\os2html\sysaux1.htm]
  274. <HTML>
  275. <HEAD>
  276. <TITLE> %%hostname -- Command Log Report </TITLE>
  277.  
  278. </HEAD>
  279. <BODY bgcolor="#1F3F6F" text="#EFDFCF" link="#EFEF7F" vlink="#AFAF7F">
  280. <BASEFONT SIZE=3>
  281. <CENTER><FONT SIZE=+3 COLOR="#EFDF7F">SysPage -- Command Log and Entry</FONT></CENTER>
  282. <BR>
  283. This page written at %&currtime %%tz on %&currdate in sub-tropical Southwest Denver, Colorado, USA.
  284. <BR>
  285. <BR>
  286. <P>
  287. <BLOCKQUOTE>
  288. <H2><FONT color="#EFEF7F">Command Entry for Authorized Users</FONT></H2>
  289. <FORM ACTION="http://dashs.denver.co.us/cgi-bin/sysphmsg/%%hostname/%&cmdport" METHOD=GET>
  290. <P><B>Parameters:</B> <INPUT TYPE="text" NAME="cmdargs" SIZE=32>
  291. <P><B>Command:</B>
  292. <SELECT NAME="cmdverb">
  293.   <OPTION VALUE="ListF"> List Files
  294.   <OPTION VALUE="Dusage"> Disk Usage
  295.   <OPTION VALUE="Dspace"> Disk Space
  296. </SELECT>
  297.  
  298. <P> <INPUT TYPE="submit" VALUE="Submit" >
  299.     <INPUT TYPE="reset" VALUE="Reset">
  300.  
  301. <H2><FONT SIZE=+2 COLOR=#EFEF7F>Command Log</FONT></H2>
  302. <H3> <FONT SIZE=+1 COLOR=#962020>PID and Command Output</FONT>  </H3>
  303. <PRE>
  304. %&commandout %&commandpid  %&commandtext
  305. </PRE>
  306.  
  307. </FORM>
  308. </BLOCKQUOTE>
  309.  
  310. <BR><B><A HREF="./syspmod.htm" ALIGN=LEFT>Module Report</A></B>
  311. <BR><B><A HREF="./syspprc.htm" ALIGN=LEFT>Active Processes</A></B>
  312. <BR><B><A HREF="./syspipl.htm" ALIGN=LEFT>Static Configuration</A></B>
  313. <BR><B><A HREF="./sysplog.htm" ALIGN=LEFT>System Log</A></B>
  314. <BR><B><A HREF="./syspage.htm" ALIGN=LEFT>Documentation</A></B>
  315. <BR>
  316. </BODY>
  317. </HTML>
  318.