def retrieveVals(self):
net_info = NetstatInfo()<EOL>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>stats = net_info.getTCPportConnStatus(include_listen=True)<EOL>for fname in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>','<STR_LIT>', '<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>',):<EOL><INDENT>self.setGraphVal('<STR_LIT>', fname, <EOL>stats.get(fname,<NUM_LIT:0>))<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>stats = net_info.getTCPportConnCount(localport=self._port_list)<EOL>for srv in self._srv_list:<EOL><INDENT>numconn = <NUM_LIT:0><EOL>for port in self._srv_dict[srv]:<EOL><INDENT>numconn += stats.get(port, <NUM_LIT:0>)<EOL><DEDENT>self.setGraphVal('<STR_LIT>', srv, numconn)<EOL><DEDENT><DEDENT>
Retrieve values for graphs.