Skip to content
Snippets Groups Projects
Select Git revision
  • 34783dde1238c220588ac819ec040b9ffc648710
  • trunk
  • RELEASE_6_5_DRIVEDB
  • RELEASE_6_6_DRIVEDB
  • RELEASE_7_0_DRIVEDB
  • RELEASE_7_2_DRIVEDB
  • RELEASE_7_3_DRIVEDB
  • RELEASE_6_0_DRIVEDB
  • RELEASE_6_1_DRIVEDB
  • RELEASE_6_2_DRIVEDB
  • RELEASE_6_3_DRIVEDB
  • RELEASE_6_4_DRIVEDB
  • tags/RELEASE_7_4
  • tags/RELEASE_7_3
  • RELEASE_5_41_DRIVEDB
  • RELEASE_5_42_DRIVEDB
  • RELEASE_5_43_DRIVEDB
  • tags/RELEASE_7_2
  • tags/RELEASE_7_1
  • tags/RELEASE_7_0
  • RELEASE_5_40_DRIVEDB
21 results

scsicmds.cpp

Blame
    • ballen4705's avatar
      97a9c2f1
      This is the first CVS checkin of code that extends the options available for smartd. · 97a9c2f1
      ballen4705 authored
      The following options can be placed into the /etc/smartd.conf file, and control the
      behavior of smartd.
      
      Configuration file Directives (following device name):
        -A    Device is an ATA device
        -S    Device is a SCSI device
        -c    Monitor SMART Health Status
        -l    Monitor SMART Error Log for changes
        -L    Monitor SMART Self-Test Log for new errors
        -f    Monitor for failure of any 'Usage' Attributes
        -p    Report changes in 'Prefailure' Attributes
        -u    Report changes in 'Usage' Attributes
        -t    Equivalent to -p and -u Directives
        -i ID Ignore Attribute ID for -f Directive
        -I ID Ignore Attribute ID for -p, -u or -t Directive
         #    Comment: text after a hash sign is ignored
         \    Line continuation character
      Attribute ID is a decimal integer 1 <= ID <= 255
      All but -S directive are only implemented for ATA devices
      Example: /dev/hda -a
      
      This code is still very experimental and needs some testing before I generate a release.
      
      
      git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@147 4ea69e1a-61f1-4043-bf83-b5c94c648137
      97a9c2f1
      History
      This is the first CVS checkin of code that extends the options available for smartd.
      ballen4705 authored
      The following options can be placed into the /etc/smartd.conf file, and control the
      behavior of smartd.
      
      Configuration file Directives (following device name):
        -A    Device is an ATA device
        -S    Device is a SCSI device
        -c    Monitor SMART Health Status
        -l    Monitor SMART Error Log for changes
        -L    Monitor SMART Self-Test Log for new errors
        -f    Monitor for failure of any 'Usage' Attributes
        -p    Report changes in 'Prefailure' Attributes
        -u    Report changes in 'Usage' Attributes
        -t    Equivalent to -p and -u Directives
        -i ID Ignore Attribute ID for -f Directive
        -I ID Ignore Attribute ID for -p, -u or -t Directive
         #    Comment: text after a hash sign is ignored
         \    Line continuation character
      Attribute ID is a decimal integer 1 <= ID <= 255
      All but -S directive are only implemented for ATA devices
      Example: /dev/hda -a
      
      This code is still very experimental and needs some testing before I generate a release.
      
      
      git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@147 4ea69e1a-61f1-4043-bf83-b5c94c648137
    test_put.py 647 B
    from pykat import finesse
    from pykat.detectors import *
    from pykat.components import *
    from pykat.commands import *
    from pykat.structs import *
    
    import numpy as np
    import pylab as pl
    
    code = """
    l l1 1 0 0 n1
    s s1 10 1 n1 n2
    mod eom 10 0.1 1 am 0 n2 n3
    """
    
    kat = finesse.kat()
    
    kat.parseCommands(code)
    
    kat.add(pd('pdp',1,'n3'))
    kat.add(pd('pdm',1,'n3'))
    
    kat.add(xaxis("lin", [0, 1000], kat.eom, "f", 100))
    
    kat.pdp.f1.put(kat.xaxis.x)
    kat.pdm.f1.put(kat.xaxis.mx)
    
    out = kat.run(printout=0, printerr=0)
    
    pl.figure()
    pl.plot(out.x, out["pdp"], out.x, out["pdm"])
    pl.xlabel(out.xlabel)
    pl.ylabel("Intensity [W]")
    pl.legend(out.ylabels)
    pl.show()