lib/puppet/compellent/transport.rb
# Executes a compellent jar command with Exit Code and Response XMls
Executes a compellent jar command with Exit Code and Response XMls
Executes a compellent jar command with Exit Code and Response XMls
def command_exec(libPath,respXml,command)
        args = ['-jar', libPath,
                '-host', self.host,
                '-user', self.user,
                '-password', self.password,
                '-xmloutputfile', respXml,
                '-c', command]
        ret = `#{get_java_path} #{args.join(' ')} 2>&1`
        Puppet.debug("Output: #{ret}")
        if ret.match(/Connection reset|Couldn't connect to/i)
          Puppet.debug('Connection reset observed. sleep for 10 seconds and retry')
          sleep(10)
          `#{get_java_path} #{args.join(' ')} 2>&1`
        else
          ret
        end
      end
def command_exec ( libPath , respXml , command ) args = [ '-jar' , libPath , '-host' , self . host , '-user' , self . user , '-password' , self . password , '-xmloutputfile' , respXml , '-c' , command ] ret = ` #{ get_java_path } #{ args . join ( ' ' ) }  2>&1 ` Puppet . debug ( "Output: #{ret}" ) if ret . match ( / Connection reset|Couldn't connect to /i ) Puppet . debug ( 'Connection reset observed. sleep for 10 seconds and retry' ) sleep ( 10 ) ` #{ get_java_path } #{ args . join ( ' ' ) }  2>&1 ` else ret end end
Executes a compellent jar command with Exit Code and Response XMls
Executes a compellent jar command with Exit Code and Response XMls
#ref_id = CommonLib.get_unique_refid #resp_xml = "#{@log_path}/response_#{ref_id}.xml" #   Puppet.debug("Executing compellent command: " + args.join(" ")) # Need to retry if there is any connection reset message
libPath
<not_specific>
respXml
<not_specific>
command
<not_specific>