def dev_get_rprt(dev_name, pugrp=None, punit=None):
cmd = ["<STR_LIT>", "<STR_LIT>", dev_name]<EOL>if not (pugrp is None and punit is None):<EOL><INDENT>cmd = ["<STR_LIT>", "<STR_LIT>", dev_name, str(pugrp), str(punit)]<EOL><DEDENT>_, _, _, struct = cij.test.command_to_struct(cmd)<EOL>if not struct:<EOL><INDENT>return None<EOL><DEDENT>return struct["<STR_LIT>"]<EOL>
Get-log-page chunk information

If the pugrp and punit is set, then provide report only for that pugrp/punit

@returns the first chunk in the given state if one exists, None otherwise