Commit c1eedc0 1 parent 1ceb07a commit c1eedc0 Copy full SHA for c1eedc0
File tree 2 files changed +6
-8
lines changed
x86_64-dell_s6100_c2538-r0/plugins
x86_64-dell_z9100_c2538-r0/plugins
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,10 @@ def __init__(self):
20
20
21
21
# Get a mailbox register
22
22
def get_pmc_register (self , reg_name ):
23
- mailbox_dir = "/sys/devices/platform/SMF.512/hwmon/hwmon1 "
23
+ mailbox_dir = "/sys/devices/platform/dell_s6100_lpc "
24
24
retval = 'ERR'
25
25
mb_reg_file = mailbox_dir + '/' + reg_name
26
26
if (not os .path .isfile (mb_reg_file )):
27
- print mb_reg_file , 'not found !'
28
27
return retval
29
28
30
29
try :
@@ -53,7 +52,7 @@ def get_psu_status(self, index):
53
52
faulty
54
53
"""
55
54
status = 0
56
- psu_status = self .get_pmc_register ('psu ' + str (index )+ '_presence ' )
55
+ psu_status = self .get_pmc_register ('psu_ ' + str (index )+ '_status ' )
57
56
if (psu_status != 'ERR' ):
58
57
psu_status = int (psu_status , 16 )
59
58
# Check for PSU statuse
@@ -70,7 +69,7 @@ def get_psu_presence(self, index):
70
69
:return: Boolean, True if PSU is plugged, False if not
71
70
"""
72
71
status = 0
73
- psu_presence = self .get_pmc_register ('psu ' + str (index )+ '_presence ' )
72
+ psu_presence = self .get_pmc_register ('psu_ ' + str (index )+ '_status ' )
74
73
if (psu_presence != 'ERR' ):
75
74
psu_presence = int (psu_presence , 16 )
76
75
# Check for PSU presence
Original file line number Diff line number Diff line change @@ -20,11 +20,10 @@ def __init__(self):
20
20
21
21
# Get a mailbox register
22
22
def get_pmc_register (self , reg_name ):
23
- mailbox_dir = "/sys/devices/platform/SMF.512/hwmon/hwmon1 "
23
+ mailbox_dir = "/sys/devices/platform/dell_mailbox "
24
24
retval = 'ERR'
25
25
mb_reg_file = mailbox_dir + '/' + reg_name
26
26
if (not os .path .isfile (mb_reg_file )):
27
- print mb_reg_file , 'not found !'
28
27
return retval
29
28
30
29
try :
@@ -53,7 +52,7 @@ def get_psu_status(self, index):
53
52
faulty
54
53
"""
55
54
status = 0
56
- psu_status = self .get_pmc_register ('psu ' + str (index )+ '_presence ' )
55
+ psu_status = self .get_pmc_register ('psu_ ' + str (index )+ '_status ' )
57
56
if (psu_status != 'ERR' ):
58
57
psu_status = int (psu_status , 16 )
59
58
# Check for PSU statuse
@@ -70,7 +69,7 @@ def get_psu_presence(self, index):
70
69
:return: Boolean, True if PSU is plugged, False if not
71
70
"""
72
71
status = 0
73
- psu_presence = self .get_pmc_register ('psu ' + str (index )+ '_presence ' )
72
+ psu_presence = self .get_pmc_register ('psu_ ' + str (index )+ '_status ' )
74
73
if (psu_presence != 'ERR' ):
75
74
psu_presence = int (psu_presence , 16 )
76
75
# Check for PSU presence
You can’t perform that action at this time.
0 commit comments