def snapshot(self): '''executes remote snapshot commands''' return remoterun( self.gate['ssh_user'], self.gate['ssh_host'], self.gate['ssh_port'], self.gate['ssh_identity'], self._vnstat_cmds() )
def remotecommands(self): '''run remote commands''' if self.gate['commands']: self.rcmdout = dict() for command in self.gate['commands']: self.rcmdout[command] = remoterun( self.gate['ssh_user'], self.gate['ssh_host'], self.gate['ssh_port'], self.gate['ssh_identity'], command )