Changeset 925 for trunk/guitools/smbmon


Ignore:
Timestamp:
Jun 16, 2016, 4:43:52 PM (9 years ago)
Author:
Herwig Bauernfeind
Message:

GUITools: EVFSGUI: more client settings, SMBMON: made rpm/yum aware, cosmetics

Location:
trunk/guitools/smbmon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/smbmon/smbmon.vrp

    r924 r925  
    88VRXWindow: __VREMainWindow,1,2180,3614,1024,6769
    99VRXWindow: __VRESectionListWindow,1,4083,11226,7372,7685
    10 VRXWindow: __VREToolsWindow,1,2156,1494,5471,1659
     10VRXWindow: __VREToolsWindow,1,2156,1494,5477,1663
    1111VRXWindow: __VREWindListWindow,1,964,11708,5372,3150
    1212UserFile: 1
    1313UserWindow: Main,1
     14UserWindow: SW_FILES,1
  • trunk/guitools/smbmon/smbmon.vrx

    r924 r925  
    229229    say '_ContainerInit() started.'
    230230
    231     /* User */
     231    /* Users */
    232232    UIconH     = VRMethod( "CN_Users", "AddField", "Icon",   NLVGetMessage(148) )
    233233    UsernameFH = VRMethod( "CN_Users", "AddField", "String", NLVGetMessage(131) )
     
    252252    NameFH     = VRMethod( "CN_Files", "AddField", "String", NLVGetMessage(142) )
    253253
    254     /* service */
     254    /* Service */
    255255    SIconH     = VRMethod( "CN_Service", "AddField", "Icon",   NLVGetMessage(148) )
    256256    SPIDFH     = VRMethod( "CN_Service", "AddField", "String", NLVGetMessage(130) )
     
    259259    ConnectedFH= VRMethod( "CN_Service", "AddField", "String", NLVGetMessage(144) )
    260260
    261     /* daemons */
     261    /* Daemons */
    262262    DaemonFH   = VRMethod( "CN_Daemons", "AddField", "String", NLVGetMessage(145) )
    263263    DStatusFH  = VRMethod( "CN_Daemons", "AddField", "String", NLVGetMessage(146) )
    264264    DPidsFH    = VRMethod( "CN_Daemons", "AddField", "String", NLVGetMessage(130) )
    265265
    266     /* chktdb */
    267     ChkTDBFilesFH = VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(134) )
    268     ChkTDBIconFH  = VRMethod( "CN_CHKTDB", "AddField", "Icon",   NLVGetMessage(146) )
    269     ChkTDBSizeFH  = VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(152) )
    270     ChkTDBStatusFH= VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(151) )
    271 
    272     /* Browse tree */
    273     WorkgroupFH= VRMethod( "CN_smbtree", "AddField", "String", NLVGetMessage(150)  )
    274     NBFH      = VRMethod( "CN_smbtree", "AddField", "String", "NetBIOS name" )
    275     IpFH      = VRMethod( "CN_smbtree", "AddField", "String",  NLVGetMessage(147)  )
    276     MBFH      = VRMethod( "CN_smbtree", "AddField", "String", "DMB/LMB" )   
    277    
    278     OSFH   = VRMethod( "CN_smbtree", "AddField", "String", "OS" )   
    279     /* VersionFH = VRMethod( "CN_SmbTree", "AddField", "String", "Version" ) */
    280     CommentFH = VRMethod( "CN_smbtree", "AddField", "String", NLVGetMessage(151) )
    281     MacFH = VRMethod( "CN_smbtree", "AddField", "String", "MAC" )
     266    smbdHandle = VRMethod("CN_Daemons", "Addrecord",, ,"smbd.exe","$41")
     267    nmbdHandle = VRMethod("CN_Daemons", "Addrecord", ,,"nmbd.exe","$41")
     268    winbHandle = VRMethod("CN_Daemons", "Addrecord",, ,"winbindd.exe","$41")
     269
     270    ok = VRMethod("CN_Daemons", "SetFieldData", smbdHandle, DaemonFH, "smbd.exe")
     271    ok = VRMethod("CN_Daemons", "SetFieldData", nmbdHandle, DaemonFH, "nmbd.exe")
     272    ok = VRMethod("CN_Daemons", "SetFieldData", winbHandle, DaemonFH, "winbindd.exe")
     273    ok = (stream(samba.!bin'\winbindd.exe','c','query exists') <> "")
     274    ok = VRMethod("CN_Daemons", "SetRecordAttr", winbHandle, "Visible", ok)
     275    ok = VRMethod("CN_Daemons", "SetRecordAttr","All", "Collapsed", 0 )
     276
     277
     278    /* SMBTree */
     279    WorkgroupFH = VRMethod( "CN_smbtree", "AddField", "String", NLVGetMessage(150)  )
     280    NBFH        = VRMethod( "CN_smbtree", "AddField", "String", "NetBIOS name" )
     281    IpFH        = VRMethod( "CN_smbtree", "AddField", "String",  NLVGetMessage(147)  )
     282    MBFH        = VRMethod( "CN_smbtree", "AddField", "String", "DMB/LMB" )   
     283    OSFH        = VRMethod( "CN_smbtree", "AddField", "String", "OS" )
     284 /* VersionFH   = VRMethod( "CN_SmbTree", "AddField", "String", "Version" ) */
     285    CommentFH   = VRMethod( "CN_smbtree", "AddField", "String", NLVGetMessage(151) )
     286    MacFH       = VRMethod( "CN_smbtree", "AddField", "String", "MAC" )
    282287
    283288    ok = VRMethod("CN_smbtree","SetfieldAttr",IPFH,       "ReadOnly", 1)
     
    288293    ok = VRMethod("CN_smbtree","SetfieldAttr",MacFH,      "ReadOnly", 1)
    289294
    290 
    291     /* add records for the 3 daemons */
    292     smbdHandle = VRMethod("CN_Daemons", "Addrecord",, ,"smbd.exe","$41")
    293     ok = VRMethod("CN_Daemons", "SetFieldData", smbdHandle, DaemonFH, "smbd.exe")
    294     nmbdHandle = VRMethod("CN_Daemons", "Addrecord", ,,"nmbd.exe","$41")
    295     ok = VRMethod("CN_Daemons", "SetFieldData", nmbdHandle, DaemonFH, "nmbd.exe")
    296     winbHandle = VRMethod("CN_Daemons", "Addrecord",, ,"winbindd.exe","$41")
    297     ok = VRMethod("CN_Daemons", "SetFieldData", winbHandle, DaemonFH, "winbindd.exe")
    298     ok = (stream(samba.!bin'\winbindd.exe','c','query exists') <> "")
    299     ok = VRMethod("CN_Daemons", "SetRecordAttr", winbHandle, "Visible", ok)
    300 
    301     ok = VRMethod("CN_Daemons","SetRecordAttr","All", "Collapsed", 0 )
     295    /* ChkTdb */
     296    ChkTDBFilesFH = VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(134) )
     297    ChkTDBIconFH  = VRMethod( "CN_CHKTDB", "AddField", "Icon",   NLVGetMessage(146) )
     298    ChkTDBSizeFH  = VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(152) )
     299    ChkTDBStatusFH= VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(151) )
     300
     301    ok = VRMethod( "CN_CHKTDB", "SetfieldAttr", ChkTDBIconFH,   "Justification","Center", "ReadOnly", 1)
     302    ok = VRMethod( "CN_CHKTDB", "SetfieldAttr", ChkTDBSizeFH,   "Justification","Right",  "ReadOnly", 1)
     303    ok = VRMethod( "CN_CHKTDB", "SetfieldAttr", ChkTDBStatusFH, "Justification","Right",  "ReadOnly", 1)
    302304
    303305    say '_ContainerInit() done.'
Note: See TracChangeset for help on using the changeset viewer.