def writepage(self, data): """ Write the SES page specified by integer pagenum with string, data. """ cmd = Cmd("sd", {"self-test_code":0, "pf":1, "parameter_list_length":len(data)}) cdb = CDB(cmd.cdb) cdb.set_data_out(data) result = self.pt.sendcdb(cdb) return result
def execute(self, command): """ Send a CLI command through SES page 0xe8. """ cmd = Cmd.clicommandout(self.expanderid, command) cdb = CDB(cmd.cdb) cdb.set_data_out(cmd.dat) self.pt.sendcdb(cdb) page = self.ses.parse(self.ses.readpage(0xe8)) return page["data"].response.val
def execute(self, command): """ Send a CLI command through SES page 0xe8. """ cmd = Cmd.clicommandout(self.expanderid, command) cdb = CDB(cmd.cdb) cdb.set_data_out(cmd.dat) self.pt.sendcdb(cdb) page = self.ses.parse(self.ses.readpage(0xe8)) return page["data"].response.val
def writepage(self, data): """ Write the SES page specified by integer pagenum with string, data. """ cmd = Cmd("sd", { "self-test_code": 0, "pf": 1, "parameter_list_length": len(data) }) cdb = CDB(cmd.cdb) cdb.set_data_out(data) result = self.pt.sendcdb(cdb) return result