Changes between Initial Version and Version 1 of plugin_isdn


Ignore:
Timestamp:
01/21/05 17:04:39 (15 years ago)
Author:
michael
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • plugin_isdn

    v1 v1  
     1= ISDN plugin =
     2
     3This plogin provides information about the ISDN subsystem.
     4
     5Note that this plugin has been developed and tested with Linux-2.4, isdn4linux and the HiSax-driver. I can't tell if Linux 2.6 and/or the new mISDN is supported. Any feedback on this would be appreciated!
     6
     7----
     8
     9== Functions: ==
     10
     11||isdn::info(key, channel)||parse /proc/isdninfo||
     12||isdn::cps(channel)||return ISDN throughput (character per second)||
     13
     14----
     15
     16== isdn::info(key, channel) ==
     17
     18This function parses /dev/isdninfo and returns the value of ''key'' for a specified ''channel'' (which is the column from /dev/isdninfo).
     19
     20There are no predefined keys, but the portion before the first colon of every line from /dev/isdninfo is used verbatim. Take a look at your /dev/isdninfo for keys supported on your system. Common keys are 'usage', 'flags' or 'phone'.
     21
     22----
     23
     24== isdn::cps(channel, delay) ==
     25
     26This function returns the average throughput of the ISDN ''channel'' (prefixed by 'i' (input/received) or 'o' (output/transmitted). If you omit the channel number (which means specify only 'i' or 'o'), the sum over all available channels is returned. The throughput is averaged over ''delay'' milliseconds. Using 500 msec delivers good values.
     27
     28Note that this function is available only if the file ''linux/isdn.h'' has been available at compile time!
     29
     30----
     31
     32== Examples ==
     33
     34Sorry, no examples :-)
     35
     36I don' use ISDN anymore, so I cannot test it, and therefore don't have any sample configurations or widgets. It would be great if someone could provide one or another example here!
     37
     38----