Partage
  • Partager sur Facebook
  • Partager sur Twitter

Avis et aide programme

XML et CSV

    19 mai 2014 à 21:07:51

    Bonjour,

    Je dois développer une application pour parser un fichier .record mais qui a en fait la structure d'un fichier XML.

    Je dois récupérer les attributs de ce fichier à savoir EXEC start et log start et mettre ses attributs dans un fichier CSV.

    J'ai réalisé cela, mais je voudrais avoir vos avis si cela est possible biens sur.

    Je vous passe mon code python ainsi que le fichier .record.

    Comment faire une ouverture dynamique pour le .record et le CSV ? je veux dire pas mettre le chemin en dur dans le code source. Je pense à une fonction système comme sys.arg[], mais je ne vois pas comment l'implémenter.

    Egalement, pour une petite interface IHM, je peux faire un argparse ?

    Merci

    Scrat

    <execution jobId="MZ_VSR Serveurs Shell_Courrier Infrastructure_Host Connection by Shell" destinationid="41f44fd69a3cda7a8dd02cce94d154b8" max_store_sent_results="2147483647">
    	<destination>
    		<destinationData name="id">41f44fd69a3cda7a8dd02cce94d154b8</destinationData><destinationData name="ip_address">221.128.8.125</destinationData><destinationData name="host_key">005056B053BA</destinationData><destinationData name="ip_domain">Confiance C</destinationData><destinationData name="mac_addrs">${NA}</destinationData><destinationData name="host_cmdbid">${NA}</destinationData><destinationData name="ip_mac_address">NA</destinationData><destinationData name="hostId">9637818046ea8efda27fb0476e232c70</destinationData><destinationData name="connected_os_credentials_id">NA</destinationData></destination><protocol name="ssh" cm_credential_id="691_1_CMS">
    		<object id="2648df4c266ee1e4b59d47723c318a40" id_type="CmdbObjectID" class="sshprotocol" isReference="false" is_anchor="false">
    			<attribute name="sshprotocol_version" type="String">SSH2 or SSH1</attribute><attribute name="protocol_pce_command_list" type="String">cstm,dmidecode,lsof,.*netstat,swlist</attribute><attribute name="sshprotocol_hello_timeout" type="String">10000</attribute><attribute name="protocol_type" type="String">sshprotocol</attribute><attribute name="cm_credential_id" type="String">691_1_CMS</attribute><attribute name="sshprotocol_authmode" type="String">publickey</attribute><attribute name="protocol_timeout" type="String">25000</attribute><attribute name="protocol_index" type="Integer">1</attribute><attribute name="sshprotocol_prompts" type="Unknown"/>
    			<attribute name="sshprotocol_sudo_su_policy" type="String">sudo</attribute><attribute name="protocol_username" type="String">ze1ucmdb</attribute><attribute name="protocol_netaddress" type="String">DEFAULT</attribute><attribute name="protocol_port" type="String">22</attribute><attribute name="protocol_sl_sudo_paths" type="String">/usr/bin/sudo</attribute><attribute name="protocol_sl_mode" type="String">sudo</attribute><attribute name="sshprotocol_sudo_paths" type="String">/usr/bin/sudo</attribute><attribute name="sshprotocol_sudo_commands" type="String">cstm,dmidecode,lsof,.*netstat,swlist</attribute><attribute name="user_label" type="String">Utilisateur Unix ze1ucmdb + Clé publique + Sudo</attribute><attribute name="sshprotocol_keypath" type="String">F:\APPLI\ze1\w5\hp\UCMDB\DataFlowProbe\conf\security\ze1ucmdb_CPNV0867_identity</attribute><attribute name="sshprotocol_shell_env_sep_char" type="String">;</attribute><attribute name="protocol_in_use" type="Boolean">false</attribute><attribute name="protocol_pce_policy" type="String">sudo_like</attribute></object></protocol><params>
    		<param param_name="onlyStampingClient" param_value="true"/>
    		<param param_name="maxThreadRuntime" param_value="900000"/>
    		<param param_name="taskType" param_value="runNow"/>
    		<param param_name="udaConnectionOrder" param_value="last"/>
    		<param param_name="language" param_value="NA"/>
    		<param param_name="useAIXhwId" param_value="false"/>
    		<param param_name="enableStamping" param_value="false"/>
    		<param param_name="JOB_ID" param_value="MZ_VSR Serveurs Shell_Courrier Infrastructure_Host Connection by Shell"/>
    		<param param_name="codepage" param_value="NA"/>
    	</params><log start="12:16:28" severity="info">Execution current time:2014/05/07 12:16:28</log><CONNECT start="12:16:28" duration="545" CMD="client_connect" RESULT="success" type="ssh" credentialsId="691_1_CMS">
    		<ClientProperties>
    			<prop name="sshprotocol_sudo_su_policy" value="sudo"/>
    			<prop name="protocol_index" value="1"/>
    			<prop name="protocol_timeout" value="25000"/>
    			<prop name="credentialsId" value="691_1_CMS"/>
    			<prop name="sshprotocol_sudo_commands" value="cstm,dmidecode,lsof,.*netstat,swlist"/>
    			<prop name="sshprotocol_keypath" value="F:\APPLI\ze1\w5\hp\UCMDB\DataFlowProbe\conf\security\ze1ucmdb_CPNV0867_identity"/>
    			<prop name="cm_credential_id" value="691_1_CMS"/>
    			<prop name="sshprotocol_shell_env_sep_char" value=";"/>
    			<prop name="protocol_type" value="sshprotocol"/>
    			<prop name="protocol_netaddress" value="DEFAULT"/>
    			<prop name="sshprotocol_authmode" value="publickey"/>
    			<prop name="sshprotocol_prompts"/>
    			<prop name="sshprotocol_hello_timeout" value="10000"/>
    			<prop name="protocol_port" value="22"/>
    			<prop name="protocol_sl_mode" value="sudo"/>
    			<prop name="protocol_sl_sudo_paths" value="/usr/bin/sudo"/>
    			<prop name="sshprotocol_version" value="SSH2 or SSH1"/>
    			<prop name="user_label" value="Utilisateur Unix ze1ucmdb + Clé publique + Sudo"/>
    			<prop name="protocol_username" value="ze1ucmdb"/>
    			<prop name="sshprotocol_sudo_paths" value="/usr/bin/sudo"/>
    			<prop name="protocol_in_use" value="false"/>
    			<prop name="BandwidthLimit" value="0"/>
    			<prop name="protocol_pce_policy" value="sudo_like"/>
    			<prop name="protocol_pce_command_list" value="cstm,dmidecode,lsof,.*netstat,swlist"/>
    		</ClientProperties></CONNECT><EXEC start="12:16:28" duration="24" CMD="ver" RESULT="-bash: ver: command not found"/>
    	<log start="12:16:28" severity="debug">Check for Cygwin installed on Windows</log><EXEC start="12:16:28" duration="21" CMD="cmd.exe /c ver" RESULT="-bash: cmd.exe: command not found"/>
    	<log start="12:16:28" severity="debug">Check for IBM VIO Server Shell</log><EXEC start="12:16:28" duration="20" CMD="ioscli uname -a" RESULT="-bash: ioscli: command not found"/>
    	<log start="12:16:28" severity="debug">Failed detecting IBM VIO Server. -bash: ioscli: command not found</log><EXEC start="12:16:28" duration="15" CMD="uname" RESULT="Linux"/>
    	<log start="12:16:28" severity="debug">Unix detected</log><EXEC start="12:16:28" duration="0" CMD="getShellCmdSeperator" RESULT=";"/>
    	<log start="12:16:28" severity="debug">Determining shell environment status variable...</log><log start="12:16:28" severity="debug">determining shell:</log><log start="12:16:28" severity="debug">trying: 'echo $SHELL'</log><EXEC start="12:16:29" duration="16">
    		<CMD>[CDATA: echo $SHELL]</CMD><RESULT>[CDATA: /bin/bash]</RESULT></EXEC><log start="12:16:29" severity="debug">res: '/bin/bash'</log><log start="12:16:29" severity="debug">response: '/bin/bash'</log><log start="12:16:29" severity="debug">trying: 'echo $?'...</log><EXEC start="12:16:29" duration="15">
    		<CMD>[CDATA: echo $?]</CMD><RESULT>[CDATA: 0]</RESULT></EXEC><log start="12:16:29" severity="debug">res: '0'...</log><log start="12:16:29" severity="debug">response: '0'</log><log start="12:16:29" severity="debug">found shell environment status variable='$?'</log><EXEC start="12:16:29" duration="29">
    		<CMD>[CDATA: uname ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: Linux
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:29" severity="debug">Using charset: Cp1252</log><log start="12:16:29" severity="debug">Can encode: True</log><EXEC start="12:16:29" duration="1" CMD="setCharset" RESULT="windows-1252"/>
    	<EXEC start="12:16:29" duration="0" CMD="getSudoPaths" RESULT="/usr/bin/sudo"/>
    	<EXEC start="12:16:29" duration="0">
    		<CMD>[CDATA: getSudoCommands]</CMD><RESULT>[CDATA: cstm,dmidecode,lsof,.*netstat,swlist]</RESULT></EXEC><log start="12:16:29" severity="debug">adding alternate cmd='locale -a | grep -E "en_US.*|^C|POSIX"'</log><log start="12:16:29" severity="debug">adding alternate cmd='locale -a | /usr/xpg4/bin/grep -E "en_US.*|^C|POSIX"'</log><log start="12:16:29" severity="debug">__getSudoPath: checking "/usr/bin/sudo -V;echo $?" command</log><EXEC start="12:16:29" duration="30">
    		<CMD>[CDATA: /usr/bin/sudo -V;echo $?]</CMD><RESULT>[CDATA: Sudo version 1.6.8p12
    0]</RESULT></EXEC><log start="12:16:29" severity="debug">__getSudoPath: execution of '/usr/bin/sudo -V;echo $?' succeeded - setting it as sudo path</log><EXEC start="12:16:29" duration="42">
    		<CMD>[CDATA: /usr/bin/sudo -l ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: User ze1ucmdb may run the following commands on this host:
        (ALL) ALL</RESULT></EXEC><log start="12:16:29" severity="debug">Command locale -a  is configured to run with sudo on destination.</log><log start="12:16:29" severity="debug">Command grep -E "en_US.* is configured to run with sudo on destination.</log><log start="12:16:29" severity="debug">Command ^C is configured to run with sudo on destination.</log><log start="12:16:29" severity="debug">Command POSIX" is configured to run with sudo on destination.</log><EXEC start="12:16:29" duration="71">
    		<CMD>[CDATA: locale -a | grep -E "en_US.*|^C|POSIX" ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: C
    en_US</RESULT></EXEC><log start="12:16:29" severity="debug">command='locale -a | grep -E "en_US.*|^C|POSIX"' ended successfully</log><EXEC start="12:16:29" duration="43">
    		<CMD>[CDATA: cmd.exe /c "exit /b 0" ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: -bash: cmd.exe: command not found
    ERROR_CODE:127]</RESULT></EXEC><EXEC start="12:16:29" duration="31">
    		<CMD>[CDATA: set ComSpec ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: ERROR_CODE:0]</RESULT></EXEC><EXEC start="12:16:29" duration="32">
    		<CMD>[CDATA: echo $SHELL ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: /bin/bash
    ERROR_CODE:0]</RESULT></EXEC><EXEC start="12:16:29" duration="32">
    		<CMD>[CDATA: echo $SHELL ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: /bin/bash
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:29" severity="debug">Bourne-like shell detected</log><log start="12:16:29" severity="debug">Command Not_Existing_Command is configured to run with sudo on destination.</log><EXEC start="12:16:29" duration="43">
    		<CMD>[CDATA: Not_Existing_Command ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: -bash: Not_Existing_Command: command not found
    ERROR_CODE:127]</RESULT></EXEC><log start="12:16:29" severity="debug">Command LANG="en_US.iso885915" </log><EXEC start="12:16:29" duration="60">
    		<CMD>[CDATA: LANG="en_US.iso885915" </CMD><RESULT>[CDATA: ERROR_CODE:0]</RESULT></EXEC><log start="12:16:29" severity="debug">Command LC_ALL="en_US.iso885915" </log><EXEC start="12:16:29" duration="3">
    		<CMD>[CDATA: LC_ALL="en_US.iso885915" </CMD><RESULT>[CDATA: ERROR_CODE:0]</RESULT></EXEC><log start="12:16:29" severity="debug">Locale set to: en_US.iso885915</log><EXEC start="12:16:29" duration="4">
    		<CMD>[CDATA: cmd.exe /c "exit /b 0" ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: -bash: cmd.exe: command not found
    ERROR_CODE:127]</RESULT></EXEC><EXEC start="12:16:29" duration="6">
    		<CMD>[CDATA: set ComSpec ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: ERROR_CODE:0]</RESULT></EXEC><EXEC start="12:16:29" duration="8">
    		<CMD>[CDATA: echo $SHELL ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: /bin/bash
    ERROR_CODE:0]</RESULT></EXEC><EXEC start="12:16:29" duration="8">
    		<CMD>[CDATA: echo $SHELL ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: /bin/bash
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:29" severity="debug">Bourne-like shell detected</log><log start="12:16:29" severity="debug">Command echo ${PATH-notExists} is configured to run with sudo on destination.</log><EXEC start="12:16:29" duration="9">
    		<CMD>[CDATA: echo ${PATH-notExists} ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: /home/ze1ucmdb/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/sbin:/usr/local/sbin:/usr/sbin:/opt/csw/bin:/opt/csw/sbin
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:29" severity="debug">Command PATH=${PATH}":/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin" </log><EXEC start="12:16:29" duration="13">
    		<CMD>[CDATA: PATH=${PATH}":/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin" </CMD><RESULT>[CDATA: ERROR_CODE:0]</RESULT></EXEC><log start="12:16:29" severity="debug">Current connected credential id is [NA]</log><log start="12:16:29" severity="debug">Connected credential id is irrelevant for this host - Not DDMI/UDA agent [ssh]</log><log start="12:16:29" severity="debug">creating object for obj_name=ssh</log><log start="12:16:29" severity="debug">Parameter for enableStamping:false</log><log start="12:16:29" severity="debug">Parameter for onlyStampingClient:true</log><EXEC start="12:16:29" duration="1">
    		<CMD>[CDATA: echo ~]</CMD><RESULT>[CDATA: /home/ze1ucmdb]</RESULT></EXEC><EXEC start="12:16:29" duration="4">
    		<CMD>[CDATA: cat ~/.discagnt/aioptionrc; echo ERRORCODE:$?]</CMD><RESULT>[CDATA: cat: /home/ze1ucmdb/.discagnt/aioptionrc: No such file or directory
    ERRORCODE:1]</RESULT></EXEC><EXEC start="12:16:29" duration="3">
    		<CMD>[CDATA: cat ~/.discagnt/aioptionrc; echo ERRORCODE:$?]</CMD><RESULT>[CDATA: cat: /home/ze1ucmdb/.discagnt/aioptionrc: No such file or directory
    ERRORCODE:1]</RESULT></EXEC><EXEC start="12:16:29" duration="4">
    		<CMD>[CDATA: cat ~/.discagnt/aioptionrc; echo ERRORCODE:$?]</CMD><RESULT>[CDATA: cat: /home/ze1ucmdb/.discagnt/aioptionrc: No such file or directory
    ERRORCODE:1]</RESULT></EXEC><EXEC start="12:16:30" duration="3">
    		<CMD>[CDATA: cat ~/.discagnt/aioptionrc; echo ERRORCODE:$?]</CMD><RESULT>[CDATA: cat: /home/ze1ucmdb/.discagnt/aioptionrc: No such file or directory
    ERRORCODE:1]</RESULT></EXEC><EXEC start="12:16:30" duration="48">
    		<CMD>[CDATA: cat ~/.discagnt/aioptionrc; echo ERRORCODE:$?]</CMD><RESULT>[CDATA: cat: /home/ze1ucmdb/.discagnt/aioptionrc: No such file or directory
    ERRORCODE:1]</RESULT></EXEC><EXEC start="12:16:30" duration="4">
    		<CMD>[CDATA: cat ~/.discagnt/aioptionrc; echo ERRORCODE:$?]</CMD><RESULT>[CDATA: cat: /home/ze1ucmdb/.discagnt/aioptionrc: No such file or directory
    ERRORCODE:1]</RESULT></EXEC><log start="12:16:30" severity="debug">Get uduid from client:None</log><log start="12:16:30" severity="debug">Final value of uduid:None</log><log start="12:16:30" severity="debug">Get UD_UNIQUE_ID:None</log><log start="12:16:30" severity="debug">Command hostname is configured to run with sudo on destination.</log><EXEC start="12:16:30" duration="3">
    		<CMD>[CDATA: hostname ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: CQYV0215
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:30" severity="debug">Found CQYV0215' for 221.128.8.125</log><log start="12:16:30" severity="debug">Command rpm -qa  is configured to run with sudo on destination.</log><log start="12:16:30" severity="debug">Command grep f5base is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="1085">
    		<CMD>[CDATA: rpm -qa | grep f5base ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: ERROR_CODE:1]</RESULT></EXEC><log start="12:16:31" severity="debug">Command vmware -v is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="2">
    		<CMD>[CDATA: vmware -v ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: -bash: vmware: command not found
    ERROR_CODE:127]</RESULT></EXEC><EXEC start="12:16:31" duration="3">
    		<CMD>[CDATA: cat /etc/resolv.conf ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: nameserver 221.128.255.254
    search courrier.intra.laposte.fr</RESULT></EXEC><log start="12:16:31" severity="debug">Command ps aux  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command grep dhclient  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command grep -v grep is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="13">
    		<CMD>[CDATA: ps aux | grep dhclient | grep -v grep ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: ERROR_CODE:1]</RESULT></EXEC><log start="12:16:31" severity="debug">can't list dhcp enabled interfaces: Output is empty</log><log start="12:16:31" severity="debug">adding alternate cmd='/sbin/ip addr show'</log><log start="12:16:31" severity="debug">adding alternate cmd='ip addr show'</log><log start="12:16:31" severity="debug">Command /sbin/ip addr show is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="3">
    		<CMD>[CDATA: /sbin/ip addr show ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: 1: lo: </RESULT></EXEC><log start="12:16:31" severity="debug">command='/sbin/ip addr show' ended successfully</log><log start="12:16:31" severity="debug">Command ls /proc/net/bonding is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="17">
    		<CMD>[CDATA: ls /proc/net/bonding ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: /bin/ls: /proc/net/bonding: No such file or directory
    ERROR_CODE:2]</RESULT></EXEC><log start="12:16:31" severity="debug">can't list bonding interfaces</log><log start="12:16:31" severity="debug">Host key was found: 005056B053BA</log><log start="12:16:31" severity="debug">Command uptime </log><EXEC start="12:16:31" duration="4">
    		<CMD>[CDATA: uptime </CMD><RESULT>[CDATA: 12:16pm  up 376 days 21:53,  1 user,  load average: 0.16, 0.03, 0.01
    2014-05-07 10:16:33</RESULT></EXEC><log start="12:16:31" severity="debug">Command dmidecode -t system  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command dmidecode -t system  is matched by privileged command pattern dmidecode</log><log start="12:16:31" severity="debug">Command dmidecode -t system  is matched by privileged command pattern dmidecode</log><log start="12:16:31" severity="debug">Command dmidecode -t system  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command dmidecode -t system  will be prefixed with /usr/bin/sudo</log><EXEC start="12:16:31" duration="8">
    		<CMD>[CDATA: /usr/bin/sudo dmidecode -t system | grep -A 6 "System Information" ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: System Information
    	Manufacturer: VMware, Inc.</RESULT></EXEC><log start="12:16:31" severity="debug">Command dmesg  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command grep eth2  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command grep Up is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="6">
    		<CMD>[CDATA: dmesg | grep eth2 | grep Up ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: eth2: NIC Link is Up 10000 Mbps
    eth2: NIC Link is Up 10000 Mbps</RESULT></EXEC><log start="12:16:31" severity="debug">Command mii-diag eth2 is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="2">
    		<CMD>[CDATA: mii-diag eth2 ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: -bash: mii-diag: command not found
    ERROR_CODE:127]</RESULT></EXEC><log start="12:16:31" severity="debug">Command dmesg  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command grep eth1  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command grep Up is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="6">
    		<CMD>[CDATA: dmesg | grep eth1 | grep Up ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: eth1: NIC Link is Up 10000 Mbps
    eth1: NIC Link is Up 10000 Mbps</RESULT></EXEC><log start="12:16:31" severity="debug">Command mii-diag eth1 is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="5">
    		<CMD>[CDATA: mii-diag eth1 ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: -bash: mii-diag: command not found
    ERROR_CODE:127]</RESULT></EXEC><log start="12:16:31" severity="debug">Command dmesg  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command grep eth0  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command grep Up is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="9">
    		<CMD>[CDATA: dmesg | grep eth0 | grep Up ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: eth0: NIC Link is Up 10000 Mbps
    eth0: NIC Link is Up 10000 Mbps</RESULT></EXEC><log start="12:16:31" severity="debug">Command mii-diag eth0 is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="12">
    		<CMD>[CDATA: mii-diag eth0 ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: -bash: mii-diag: command not found
    ERROR_CODE:127]</RESULT></EXEC><log start="12:16:31" severity="debug">adding alternate cmd='uname -r'</log><log start="12:16:31" severity="debug">adding alternate cmd='/usr/bin/uname -r'</log><log start="12:16:31" severity="debug">Command uname -r is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="5">
    		<CMD>[CDATA: uname -r ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: 2.6.16.60-0.69.1-smp
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:31" severity="debug">command='uname -r' ended successfully</log><log start="12:16:31" severity="debug">Command hostname is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="6">
    		<CMD>[CDATA: hostname ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: CQYV0215
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:31" severity="debug">Command dnsdomainname is configured to run with sudo on destination.</log><EXEC start="12:16:31" duration="4">
    		<CMD>[CDATA: dnsdomainname ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: courrier.intra.laposte.fr
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:31" severity="debug">Command dmidecode --version is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command dmidecode --version is matched by privileged command pattern dmidecode</log><log start="12:16:31" severity="debug">Command dmidecode --version is matched by privileged command pattern dmidecode</log><log start="12:16:31" severity="debug">Command dmidecode --version is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command dmidecode --version will be prefixed with /usr/bin/sudo</log><EXEC start="12:16:31" duration="11">
    		<CMD>[CDATA: /usr/bin/sudo dmidecode --version ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: 2.9
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:31" severity="debug">Command dmidecode -t system  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command dmidecode -t system  is matched by privileged command pattern dmidecode</log><log start="12:16:31" severity="debug">Command dmidecode -t system  is matched by privileged command pattern dmidecode</log><log start="12:16:31" severity="debug">Command dmidecode -t system  is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command dmidecode -t system  will be prefixed with /usr/bin/sudo</log><EXEC start="12:16:31" duration="11">
    		<CMD>[CDATA: /usr/bin/sudo dmidecode -t system | grep "SMBIOS" ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: SMBIOS 2.4 present.
    ERROR_CODE:0]</RESULT></EXEC><log start="12:16:31" severity="debug">The version of dmidecode detected:2.9</log><log start="12:16:31" severity="debug">The global setting 'setBiosUuidToMicrosoftStandart':false</log><log start="12:16:31" severity="debug">The bios uuid has already been in the correct format.</log><log start="12:16:31" severity="debug">Command netstat -r -n is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command netstat -r -n is matched by privileged command pattern .*netstat</log><log start="12:16:31" severity="debug">Command netstat -r -n is matched by privileged command pattern .*netstat</log><log start="12:16:31" severity="debug">Command netstat -r -n is configured to run with sudo on destination.</log><log start="12:16:31" severity="debug">Command netstat -r -n will be prefixed with /usr/bin/sudo</log><EXEC start="12:16:46" duration="14999">
    		<CMD>[CDATA: /usr/bin/sudo netstat -r -n ; echo ERROR_CODE:$?]</CMD><RESULT IS_NULL="Y"/>
    		<ERROR class="com.hp.ucmdb.discovery.library.clients.protocols.command.TimeoutException">
    			<message>[CDATA: Command timed out: Exceeded timeout after 15000 milliseconds]</message><stacktrace>
    				<frame class="com.hp.ucmdb.discovery.library.clients.agents.ssh.SSHAgent" method="doExecuteCommandSSH" file="SSHAgent.java" line="944"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.agents.ssh.SSHAgent" method="doExecuteCommand" file="SSHAgent.java" line="784"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.shell.ShellClient$1" method="executePrivateString" file="ShellClient.java" line="154"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.executors.StringExecutor" method="executePrivate" file="StringExecutor.java" line="21"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.executors.Executor" method="execute" file="Executor.java" line="26"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.BaseClient" method="exec" file="BaseClient.java" line="411"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.shell.ShellClient" method="executeCmd" file="ShellClient.java" line="157"/>
    				<frame class="sun.reflect.GeneratedMethodAccessor112" method="invoke" file="unknown" line="-1"/>
    				<frame class="sun.reflect.DelegatingMethodAccessorImpl" method="invoke" file="DelegatingMethodAccessorImpl.java" line="43"/>
    				<frame class="java.lang.reflect.Method" method="invoke" file="Method.java" line="601"/>
    				<frame class="org.python.core.PyReflectedFunction" method="__call__" file="PyReflectedFunction.java" line="186"/>
    				<frame class="org.python.core.PyReflectedFunction" method="__call__" file="PyReflectedFunction.java" line="204"/>
    				<frame class="org.python.core.PyObject" method="__call__" file="PyObject.java" line="441"/>
    				<frame class="org.python.core.PyObject" method="__call__" file="PyObject.java" line="447"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="154"/>
    				<frame class="org.python.pycode._pyx25" method="_UnixShell__executeCommand$182" file="shellutils" line="1925"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="149"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx25" method="_execute$192" file="shellutils" line="2034"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="149"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx25" method="execCmd$87" file="shellutils" line="835"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="157"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="338"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="139"/>
    				<frame class="org.python.pycode._pyx1844" method="getCommandsOutput$125" file="TTY_Connection_Utils" line="927"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="141"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx1844" method="discoverDefaultGateway$230" file="TTY_Connection_Utils" line="2045"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="109"/>
    				<frame class="org.python.pycode._pyx1844" method="discover$218" file="TTY_Connection_Utils" line="1949"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="109"/>
    				<frame class="org.python.pycode._pyx1844" method="getOSandStuff$293" file="TTY_Connection_Utils" line="2899"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyFunction" method="function___call__" file="PyFunction.java" line="376"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="371"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="361"/>
    				<frame class="org.python.pycode._pyx1853" method="doDiscovery$13" file="HostConnectionByShell" line="458"/>
    				<frame class="org.python.pycode._pyx1853" method="call_function" file="HostConnectionByShell" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyFunction" method="function___call__" file="PyFunction.java" line="376"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="371"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="361"/>
    				<frame class="org.python.pycode._pyx1853" method="DiscoveryMain$2" file="HostConnectionByShell" line="210"/>
    				<frame class="org.python.pycode._pyx1853" method="call_function" file="HostConnectionByShell" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.pycode._pyx2073" method="f$0" file="&lt;string&gt;" line="2"/>
    				<frame class="org.python.pycode._pyx2073" method="call_function" file="&lt;string&gt;" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyCode" method="call" file="PyCode.java" line="18"/>
    				<frame class="org.python.core.Py" method="runCode" file="Py.java" line="1275"/>
    				<frame class="org.python.core.Py" method="exec" file="Py.java" line="1319"/>
    				<frame class="org.python.util.PythonInterpreter" method="exec" file="PythonInterpreter.java" line="206"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="251"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="226"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="222"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScripts" file="ExecutionEngineImpl.java" line="139"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="execute" file="ExecutionEngineImpl.java" line="96"/>
    				<frame class="com.hp.ucmdb.discovery.probe.services.dynamic.core.TablesProcessorUtil" method="processDestinationTables" file="TablesProcessorUtil.java" line="136"/>
    				<frame class="com.hp.ucmdb.discovery.probe.services.dynamic.core.DynamicService" method="discover" file="DynamicService.java" line="76"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter" method="launchTask" file="JobExecuter.java" line="1199"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="launch" file="JobExecuter.java" line="946"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="executeTask" file="JobExecuter.java" line="870"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="run" file="JobExecuter.java" line="733"/>
    			</stacktrace></ERROR></EXEC><log start="12:16:46" severity="debug">Command cat /etc/SuSE-release is configured to run with sudo on destination.</log><EXEC start="12:17:01" duration="14999">
    		<CMD>[CDATA: cat /etc/SuSE-release ; echo ERROR_CODE:$?]</CMD><RESULT IS_NULL="Y"/>
    		<ERROR class="com.hp.ucmdb.discovery.library.clients.protocols.command.TimeoutException">
    			<message>[CDATA: Command timed out: Exceeded timeout after 15000 milliseconds]</message><stacktrace>
    				<frame class="com.hp.ucmdb.discovery.library.clients.agents.ssh.SSHAgent" method="doExecuteCommandSSH" file="SSHAgent.java" line="944"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.agents.ssh.SSHAgent" method="doExecuteCommand" file="SSHAgent.java" line="784"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.shell.ShellClient$1" method="executePrivateString" file="ShellClient.java" line="154"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.executors.StringExecutor" method="executePrivate" file="StringExecutor.java" line="21"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.executors.Executor" method="execute" file="Executor.java" line="26"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.BaseClient" method="exec" file="BaseClient.java" line="411"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.shell.ShellClient" method="executeCmd" file="ShellClient.java" line="157"/>
    				<frame class="sun.reflect.GeneratedMethodAccessor112" method="invoke" file="unknown" line="-1"/>
    				<frame class="sun.reflect.DelegatingMethodAccessorImpl" method="invoke" file="DelegatingMethodAccessorImpl.java" line="43"/>
    				<frame class="java.lang.reflect.Method" method="invoke" file="Method.java" line="601"/>
    				<frame class="org.python.core.PyReflectedFunction" method="__call__" file="PyReflectedFunction.java" line="186"/>
    				<frame class="org.python.core.PyReflectedFunction" method="__call__" file="PyReflectedFunction.java" line="204"/>
    				<frame class="org.python.core.PyObject" method="__call__" file="PyObject.java" line="441"/>
    				<frame class="org.python.core.PyObject" method="__call__" file="PyObject.java" line="447"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="154"/>
    				<frame class="org.python.pycode._pyx25" method="_UnixShell__executeCommand$182" file="shellutils" line="1925"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="149"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx25" method="_execute$192" file="shellutils" line="2034"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="149"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx25" method="execCmd$87" file="shellutils" line="835"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="157"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="338"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="139"/>
    				<frame class="org.python.pycode._pyx1844" method="getCommandsOutput$125" file="TTY_Connection_Utils" line="927"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="141"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx1844" method="discoverOsFlavor$228" file="TTY_Connection_Utils" line="2011"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="109"/>
    				<frame class="org.python.pycode._pyx1844" method="discover$218" file="TTY_Connection_Utils" line="1949"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="109"/>
    				<frame class="org.python.pycode._pyx1844" method="getOSandStuff$293" file="TTY_Connection_Utils" line="2899"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyFunction" method="function___call__" file="PyFunction.java" line="376"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="371"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="361"/>
    				<frame class="org.python.pycode._pyx1853" method="doDiscovery$13" file="HostConnectionByShell" line="458"/>
    				<frame class="org.python.pycode._pyx1853" method="call_function" file="HostConnectionByShell" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyFunction" method="function___call__" file="PyFunction.java" line="376"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="371"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="361"/>
    				<frame class="org.python.pycode._pyx1853" method="DiscoveryMain$2" file="HostConnectionByShell" line="210"/>
    				<frame class="org.python.pycode._pyx1853" method="call_function" file="HostConnectionByShell" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.pycode._pyx2073" method="f$0" file="&lt;string&gt;" line="2"/>
    				<frame class="org.python.pycode._pyx2073" method="call_function" file="&lt;string&gt;" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyCode" method="call" file="PyCode.java" line="18"/>
    				<frame class="org.python.core.Py" method="runCode" file="Py.java" line="1275"/>
    				<frame class="org.python.core.Py" method="exec" file="Py.java" line="1319"/>
    				<frame class="org.python.util.PythonInterpreter" method="exec" file="PythonInterpreter.java" line="206"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="251"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="226"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="222"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScripts" file="ExecutionEngineImpl.java" line="139"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="execute" file="ExecutionEngineImpl.java" line="96"/>
    				<frame class="com.hp.ucmdb.discovery.probe.services.dynamic.core.TablesProcessorUtil" method="processDestinationTables" file="TablesProcessorUtil.java" line="136"/>
    				<frame class="com.hp.ucmdb.discovery.probe.services.dynamic.core.DynamicService" method="discover" file="DynamicService.java" line="76"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter" method="launchTask" file="JobExecuter.java" line="1199"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="launch" file="JobExecuter.java" line="946"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="executeTask" file="JobExecuter.java" line="870"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="run" file="JobExecuter.java" line="733"/>
    			</stacktrace></ERROR></EXEC><log start="12:17:01" severity="debug">Command cat /etc/oracle-release is configured to run with sudo on destination.</log><EXEC start="12:17:16" duration="15000">
    		<CMD>[CDATA: cat /etc/oracle-release ; echo ERROR_CODE:$?]</CMD><RESULT IS_NULL="Y"/>
    		<ERROR class="com.hp.ucmdb.discovery.library.clients.protocols.command.TimeoutException">
    			<message>[CDATA: Command timed out: Exceeded timeout after 15000 milliseconds]</message><stacktrace>
    				<frame class="com.hp.ucmdb.discovery.library.clients.agents.ssh.SSHAgent" method="doExecuteCommandSSH" file="SSHAgent.java" line="944"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.agents.ssh.SSHAgent" method="doExecuteCommand" file="SSHAgent.java" line="784"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.shell.ShellClient$1" method="executePrivateString" file="ShellClient.java" line="154"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.executors.StringExecutor" method="executePrivate" file="StringExecutor.java" line="21"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.executors.Executor" method="execute" file="Executor.java" line="26"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.BaseClient" method="exec" file="BaseClient.java" line="411"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.shell.ShellClient" method="executeCmd" file="ShellClient.java" line="157"/>
    				<frame class="sun.reflect.GeneratedMethodAccessor112" method="invoke" file="unknown" line="-1"/>
    				<frame class="sun.reflect.DelegatingMethodAccessorImpl" method="invoke" file="DelegatingMethodAccessorImpl.java" line="43"/>
    				<frame class="java.lang.reflect.Method" method="invoke" file="Method.java" line="601"/>
    				<frame class="org.python.core.PyReflectedFunction" method="__call__" file="PyReflectedFunction.java" line="186"/>
    				<frame class="org.python.core.PyReflectedFunction" method="__call__" file="PyReflectedFunction.java" line="204"/>
    				<frame class="org.python.core.PyObject" method="__call__" file="PyObject.java" line="441"/>
    				<frame class="org.python.core.PyObject" method="__call__" file="PyObject.java" line="447"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="154"/>
    				<frame class="org.python.pycode._pyx25" method="_UnixShell__executeCommand$182" file="shellutils" line="1925"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="149"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx25" method="_execute$192" file="shellutils" line="2034"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="149"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx25" method="execCmd$87" file="shellutils" line="835"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="157"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="338"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="139"/>
    				<frame class="org.python.pycode._pyx1844" method="getCommandsOutput$125" file="TTY_Connection_Utils" line="927"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="141"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx1844" method="discoverOsFlavor$228" file="TTY_Connection_Utils" line="2011"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="109"/>
    				<frame class="org.python.pycode._pyx1844" method="discover$218" file="TTY_Connection_Utils" line="1949"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="109"/>
    				<frame class="org.python.pycode._pyx1844" method="getOSandStuff$293" file="TTY_Connection_Utils" line="2899"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyFunction" method="function___call__" file="PyFunction.java" line="376"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="371"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="361"/>
    				<frame class="org.python.pycode._pyx1853" method="doDiscovery$13" file="HostConnectionByShell" line="458"/>
    				<frame class="org.python.pycode._pyx1853" method="call_function" file="HostConnectionByShell" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyFunction" method="function___call__" file="PyFunction.java" line="376"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="371"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="361"/>
    				<frame class="org.python.pycode._pyx1853" method="DiscoveryMain$2" file="HostConnectionByShell" line="210"/>
    				<frame class="org.python.pycode._pyx1853" method="call_function" file="HostConnectionByShell" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.pycode._pyx2073" method="f$0" file="&lt;string&gt;" line="2"/>
    				<frame class="org.python.pycode._pyx2073" method="call_function" file="&lt;string&gt;" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyCode" method="call" file="PyCode.java" line="18"/>
    				<frame class="org.python.core.Py" method="runCode" file="Py.java" line="1275"/>
    				<frame class="org.python.core.Py" method="exec" file="Py.java" line="1319"/>
    				<frame class="org.python.util.PythonInterpreter" method="exec" file="PythonInterpreter.java" line="206"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="251"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="226"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="222"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScripts" file="ExecutionEngineImpl.java" line="139"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="execute" file="ExecutionEngineImpl.java" line="96"/>
    				<frame class="com.hp.ucmdb.discovery.probe.services.dynamic.core.TablesProcessorUtil" method="processDestinationTables" file="TablesProcessorUtil.java" line="136"/>
    				<frame class="com.hp.ucmdb.discovery.probe.services.dynamic.core.DynamicService" method="discover" file="DynamicService.java" line="76"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter" method="launchTask" file="JobExecuter.java" line="1199"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="launch" file="JobExecuter.java" line="946"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="executeTask" file="JobExecuter.java" line="870"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="run" file="JobExecuter.java" line="733"/>
    			</stacktrace></ERROR></EXEC><log start="12:17:16" severity="debug">Command cat /etc/redhat-release is configured to run with sudo on destination.</log><EXEC start="12:17:31" duration="15000">
    		<CMD>[CDATA: cat /etc/redhat-release ; echo ERROR_CODE:$?]</CMD><RESULT IS_NULL="Y"/>
    		<ERROR class="com.hp.ucmdb.discovery.library.clients.protocols.command.TimeoutException">
    			<message>[CDATA: Command timed out: Exceeded timeout after 15000 milliseconds]</message><stacktrace>
    				<frame class="com.hp.ucmdb.discovery.library.clients.agents.ssh.SSHAgent" method="doExecuteCommandSSH" file="SSHAgent.java" line="944"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.agents.ssh.SSHAgent" method="doExecuteCommand" file="SSHAgent.java" line="784"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.shell.ShellClient$1" method="executePrivateString" file="ShellClient.java" line="154"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.executors.StringExecutor" method="executePrivate" file="StringExecutor.java" line="21"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.executors.Executor" method="execute" file="Executor.java" line="26"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.BaseClient" method="exec" file="BaseClient.java" line="411"/>
    				<frame class="com.hp.ucmdb.discovery.library.clients.shell.ShellClient" method="executeCmd" file="ShellClient.java" line="157"/>
    				<frame class="sun.reflect.GeneratedMethodAccessor112" method="invoke" file="unknown" line="-1"/>
    				<frame class="sun.reflect.DelegatingMethodAccessorImpl" method="invoke" file="DelegatingMethodAccessorImpl.java" line="43"/>
    				<frame class="java.lang.reflect.Method" method="invoke" file="Method.java" line="601"/>
    				<frame class="org.python.core.PyReflectedFunction" method="__call__" file="PyReflectedFunction.java" line="186"/>
    				<frame class="org.python.core.PyReflectedFunction" method="__call__" file="PyReflectedFunction.java" line="204"/>
    				<frame class="org.python.core.PyObject" method="__call__" file="PyObject.java" line="441"/>
    				<frame class="org.python.core.PyObject" method="__call__" file="PyObject.java" line="447"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="154"/>
    				<frame class="org.python.pycode._pyx25" method="_UnixShell__executeCommand$182" file="shellutils" line="1925"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="149"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx25" method="_execute$192" file="shellutils" line="2034"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="149"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx25" method="execCmd$87" file="shellutils" line="835"/>
    				<frame class="org.python.pycode._pyx25" method="call_function" file="shellutils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="157"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="338"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="139"/>
    				<frame class="org.python.pycode._pyx1844" method="getCommandsOutput$125" file="TTY_Connection_Utils" line="927"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="141"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="327"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="124"/>
    				<frame class="org.python.pycode._pyx1844" method="discoverOsFlavor$228" file="TTY_Connection_Utils" line="2011"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="109"/>
    				<frame class="org.python.pycode._pyx1844" method="discover$218" file="TTY_Connection_Utils" line="1949"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.core.PyMethod" method="__call__" file="PyMethod.java" line="109"/>
    				<frame class="org.python.pycode._pyx1844" method="getOSandStuff$293" file="TTY_Connection_Utils" line="2899"/>
    				<frame class="org.python.pycode._pyx1844" method="call_function" file="TTY_Connection_Utils" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyFunction" method="function___call__" file="PyFunction.java" line="376"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="371"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="361"/>
    				<frame class="org.python.pycode._pyx1853" method="doDiscovery$13" file="HostConnectionByShell" line="458"/>
    				<frame class="org.python.pycode._pyx1853" method="call_function" file="HostConnectionByShell" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="301"/>
    				<frame class="org.python.core.PyFunction" method="function___call__" file="PyFunction.java" line="376"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="371"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="361"/>
    				<frame class="org.python.pycode._pyx1853" method="DiscoveryMain$2" file="HostConnectionByShell" line="210"/>
    				<frame class="org.python.pycode._pyx1853" method="call_function" file="HostConnectionByShell" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyBaseCode" method="call" file="PyBaseCode.java" line="134"/>
    				<frame class="org.python.core.PyFunction" method="__call__" file="PyFunction.java" line="317"/>
    				<frame class="org.python.pycode._pyx2073" method="f$0" file="&lt;string&gt;" line="2"/>
    				<frame class="org.python.pycode._pyx2073" method="call_function" file="&lt;string&gt;" line="-1"/>
    				<frame class="org.python.core.PyTableCode" method="call" file="PyTableCode.java" line="165"/>
    				<frame class="org.python.core.PyCode" method="call" file="PyCode.java" line="18"/>
    				<frame class="org.python.core.Py" method="runCode" file="Py.java" line="1275"/>
    				<frame class="org.python.core.Py" method="exec" file="Py.java" line="1319"/>
    				<frame class="org.python.util.PythonInterpreter" method="exec" file="PythonInterpreter.java" line="206"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="251"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="226"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScript" file="ExecutionEngineImpl.java" line="222"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="executeScripts" file="ExecutionEngineImpl.java" line="139"/>
    				<frame class="com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl" method="execute" file="ExecutionEngineImpl.java" line="96"/>
    				<frame class="com.hp.ucmdb.discovery.probe.services.dynamic.core.TablesProcessorUtil" method="processDestinationTables" file="TablesProcessorUtil.java" line="136"/>
    				<frame class="com.hp.ucmdb.discovery.probe.services.dynamic.core.DynamicService" method="discover" file="DynamicService.java" line="76"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter" method="launchTask" file="JobExecuter.java" line="1199"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="launch" file="JobExecuter.java" line="946"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="executeTask" file="JobExecuter.java" line="870"/>
    				<frame class="com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter$JobExecuterWorker" method="run" file="JobExecuter.java" line="733"/>
    			</stacktrace></ERROR></EXEC><log start="12:17:31" severity="debug">Command uname -a is configured to run with sudo on destination.</log><EXEC start="12:17:31" duration="5">
    		<CMD>[CDATA: uname -a ; echo ERROR_CODE:$?]</CMD><RESULT>[CDATA: Linux CQYV0215 2.6.16.60-0.69.1-smp #1 SMP Fri Sep 17 17:07:54 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
    ERROR_CODE:0]</RESULT></EXEC><log start="12:17:31" severity="warn">Manufacturer is VMware, assuming node is virtual machine</log><log start="12:17:32" severity="debug">locals after defining discoverer: {'langBund': java.util.PropertyResourceBundle@3aa189b0, 'discoverer': </log><log start="12:17:32" severity="debug">mac address in trigger IP is not found, will not set to discovered ip CI</log><DISCONNECT start="12:17:32" duration="1" CMD="client_disconnect" IS_NULL="Y" type="ssh" credentialsId="691_1_CMS"/>
    	<log start="12:17:32" severity="info">Execution current time:2014/05/07 12:17:32</log></execution>
    #import easy to use xml parser called minidom:
    import datetime, re
    from xml.dom.minidom import parse, parseString
    
    # start output file
    output = open('output.csv', 'a')
    output.write('\n<----debut a: ')
    
    #get current time and put in output file
    now = datetime.datetime.now()
    print ""
    output.write(now.strftime("%Y-%m-%d %H:%M"))
    output.write(' ----->\n')
    output.write(',,,,,,,,,\n')
    output.write('EXEC/log, start,duration/severity,CMD/event, RESULT')
    
    #setup variables
    dom = parse('test2.xml')
    log start = ''
    EXEC start = ''
    args = ''
    date = ''
    name = []
    duration severity = ''
    CMD/event = ''
    RESULT = ''
    
    scaninfo = dom.getElementsByTagName('cmdbrun')[0]
    date = scaninfo.getAttribute("startstr")
    args = scaninfo.getAttribute('args')
    
    #define translateXml
    def translateXml(node):
    
        if node.nodeName == 'log start':
    
            log start = node.getAttribute('start')
            output.write(node.getAttribute('severity'))
            output.write(',')
    		output.write(node.getAttribute('CMD / event'))
    		output.write(',')
    
        elif node.nodeName == 'EXEC start':
    
            if 'EXEC' in node.getAttribute('</EXEC>'):
    
                output.write('\n')
                #output.write(',')
                EXEC = node.getAttribute('EXEC')
                output.write(node.getAttribute('RESULT'))
                output.write(',')
    
        elif node.nodeName == "RESULT":
    	
            output.write('\n')
            output.write(',')
            output.write(',')
            output.write(',')
           RESULT.append(node.getAttribute("Duration/severity"))
            output.write(node.getAttribute("Duration/severity"))
            output.write(',')
    
        elif node.nodeName == "start":
    
            portstate.append(node.getAttribute('start'))
            output.write(node.getAttribute('start'))
            output.write(',')
    
    #break down xml to get details
    for node in dom.getElementsByTagName('log start'):
    
        #second level within host tag
        for subnode in node.childNodes: #go through each subnode of
    
            if subnode.attributes is not None: #if the subnode has attributes parse them
    
                translateXml(subnode) #send the attribute to translateXml
                if len(subnode.childNodes) > 0: #if there are childnodes then dig deeper
    
                    #third level
                    for subsubnode in subnode.childNodes: #loop through childnodes
                        if subsubnode.attributes is not None: #if the susubnode has attributes parse them
                            translateXml(subsubnode) #send the attribute to translateXml
                            if len(subsubnode.childNodes) > 0:
                                #fourth level
                                for subsubsubnode in subsubnode.childNodes:
                                    if subsubsubnode.attributes is not None:
                                        translateXml(subsubsubnode) #translate the xml
    
    print log start
    dom.unlink()
    output.close()





    • Partager sur Facebook
    • Partager sur Twitter

    Linux , le marché en zone libre

    Avis et aide programme

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown