Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Adding to charles123 review on python3
on 3.6.9 it doesn’t work as expected because in “text” argument didn’t exist in Popen yet.
in order to make it work replace “text” to “universal_newlines” in both of these lines: ctrl_status = Popen([‘sudo’, smartarray_bin, ‘ctrl’, ‘slot=’ + self.tocheck[‘ctrl’][i].split(‘Slot ‘)[1].split(‘ ‘)[0], ‘show’, ‘status’], stdout=PIPE, universal_newlines=True)
hpacucli = Popen([‘sudo’, smartarray_bin, ‘ctrl’, ‘all’, ‘show’, ‘config’], stdout=PIPE, universal_newlines=True)