When I put these postings together I had to reread some of the messages and something jumped out at me. It looks like all the flash disks have a major device number of 65. Since collectl stores both the major and minor numbers for each disk in @dskMaj and @dskMin so you could look at those in your processing loops and not even worry about individual disk names. -mark
> so now that you can report disk traffic in a butchered up hello.ph file, > there are 2 separate things to do. the first is to rename the file to > something other than hello. what you need to do is pick a name, hopefully a > relatively short one, and rename all the entry points from hello* to that > name* as collectl uses the name of the import file to call the entry points. > > the other thing to do is filter out the disks that aren't flash disks. in > that loop you stole from formatit.ph that prints all the disk stats, you > need to insert a statement into the loop that does something like: > > next if $diskName[$i] isn't a flash disk > > you can either hardcode this test to specific disk names, or if you like > dynamically build that list in the 'init' section and then use those names > as the test. > > once you get that far, we can take the next steps to print the right values > in brief format. Sound like a plan? > > -mark > >
------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ Collectl-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/collectl-interest
