Highlighted
Absent Member.
Absent Member.
822 views

Can UD Agent copy files to remote servers ?

Hello all,

 

We are at uCMDB 10.01 on Windows server,

Using just UDA no SSH/NTCMD.

 

Documents state that UDP replaces NTCMD\SSH (shell) and it even stated under certain jobs "NTCDM or UDA"

But when runnign IIS job "IIS Applications by NTCMD or UDA" the job failing coping the VBS file.

 

Does any job using copy permission would not work because of this ?

 

Thanks,

Nisan

0 Likes
4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Can UD Agent copy files to remote servers ?

Hi

 Can you attach the communciation log file  ?

We can check further on this.

 

With Regards

Raveendra

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Can UD Agent copy files to remote servers ?

Dear Raveendra,

The communication log is attached further down this message,

The IIS uses shellutils.py the in turns run the following subroutine:

 

def putFile(self, localFilePath, share = DEFAULT_WIN_SHARE):
        """ Copy file to the remote share. If file exists it will be rewritten.
        @types: str, str -> bool
        """
        if self.__client.putFile(localFilePath, share):
            remoteFile = self.__composeRemotePath(localFilePath, share)
            self.copiedFiles.append(remoteFile)
            logger.debug("Create file on destination: ", remoteFile)
            return 1

 It seems like it is still trying to get to the windows default share (\\<IP>\admin$),

Which is clear in the log file (search for the word "dir ").

 

If this is the case, everytime a copy is made, then a NTCMD is needed ?

 

communication log:

 

<execution jobId="IIS Applications by NTCMD" destinationid="bd3c52689b526aff6ba720dbbc9f9f4c" max_store_sent_results="2147483647">
	<destination>
		<destinationData name="iis_version">7.5</destinationData>
		<destinationData name="id">bd3c52689b526aff6ba720dbbc9f9f4c</destinationData>
		<destinationData name="ip_address">192.168.1.130</destinationData>
		<destinationData name="hostId">5988b5ce117a3c0b8f1170d5bde6384a</destinationData>
		<destinationData name="credentialsId">5_1_CMS</destinationData>
		<destinationData name="iis_name">Microsoft IIS WebServer</destinationData>
		<destinationData name="Protocol">uda</destinationData>
	</destination>
	<protocol name="uda" cm_credential_id="5_1_CMS">
		<object id="874e5e8af82032a4d16fe803129eb277" id_type="CmdbObjectID" class="udaprotocol" isReference="false" is_anchor="false">
			<attribute name="udprotocol_sha1_id" type="String">4af3a0cb8ad892e560e5cdaf078148f93d22c9ed</attribute>
			<attribute name="protocol_in_use" type="Boolean">false</attribute>
			<attribute name="protocol_netaddress" type="String">DEFAULT</attribute>
			<attribute name="protocol_port" type="String">2738</attribute>
			<attribute name="protocol_timeout" type="String">20000</attribute>
			<attribute name="user_label" type="String">new</attribute>
			<attribute name="cm_credential_id" type="String">5_1_CMS</attribute>
			<attribute name="protocol_index" type="Integer">1</attribute>
			<attribute name="protocol_type" type="String">udaprotocol</attribute>
		</object>
	</protocol>
	<params>
		<param param_name="web_service_file_extensions" param_value="asmx;svc" />
		<param param_name="adsutil_path" param_value="C:\inetpub\AdminScripts\adsutil.vbs" />
		<param param_name="do_web_service" param_value="true" />
		<param param_name="checkConnectionToUrl" param_value="false" />
		<param param_name="report_legacy_topology" param_value="true" />
		<param param_name="acceptedStatusCodes" param_value="2xx, 3xx" />
		<param param_name="JOB_ID" param_value="IIS Applications by NTCMD" />
	</params>
	<log start="20:07:01" severity="debug">Legacy topology is reported</log>
	<log start="20:07:01" severity="debug">Establishing NTCMD Connection</log>
	<CONNECT start="20:07:05" duration="3902" CMD="client_connect" RESULT="success" type="uda" credentialsId="5_1_CMS">
		<ClientProperties>
			<prop name="protocol_timeout" value="20000" />
			<prop name="protocol_netaddress" value="DEFAULT" />
			<prop name="BandwidthLimit" value="0" />
			<prop name="credentialsId" value="5_1_CMS" />
			<prop name="protocol_type" value="udaprotocol" />
			<prop name="user_label" value="new" />
			<prop name="protocol_in_use" value="false" />
			<prop name="protocol_port" value="2738" />
			<prop name="cm_credential_id" value="5_1_CMS" />
			<prop name="udprotocol_sha1_id" value="4af3a0cb8ad892e560e5cdaf078148f93d22c9ed" />
			<prop name="protocol_index" value="1" />
		</ClientProperties>
	</CONNECT>
	<EXEC start="20:07:05" duration="513" CMD="ver" RESULT="Microsoft Windows [Version 6.1.7601]" />
	<log start="20:07:05" severity="debug">Windows ntcmd detected</log>
	<EXEC start="20:07:06" duration="259" CMD="ver" RESULT="Microsoft Windows [Version 6.1.7601]" />
	<EXEC start="20:07:06" duration="275" CMD="echo %ERRORLEVEL%" RESULT="0" />
	<log start="20:07:06" severity="debug">adding alternate cmd='wmic OS Get CodeSet &lt; %SystemRoot%\win.ini'</log>
	<log start="20:07:06" severity="debug">adding alternate cmd='%WINDIR%\system32\wbem\wmic OS Get CodeSet &lt; %SystemRoot%\win.ini'</log>
	<EXEC start="20:07:07" duration="1262">
		<CMD>[CDATA&colon; wmic OS Get CodeSet &lt; %SystemRoot%\win.ini]</CMD>
		<RESULT>[CDATA&colon; CodeSet  
1252]</RESULT>
	</EXEC>
	<EXEC start="20:07:08" duration="278" CMD="echo %ERRORLEVEL%" RESULT="0" />
	<log start="20:07:08" severity="debug">command='wmic OS Get CodeSet &lt; %SystemRoot%\win.ini' ended successfully</log>
	<log start="20:07:08" severity="debug">adding alternate cmd='wmic OS Get OSLanguage &lt; %SystemRoot%\win.ini'</log>
	<log start="20:07:08" severity="debug">adding alternate cmd='%WINDIR%\system32\wbem\wmic OS Get OSLanguage &lt; %SystemRoot%\win.ini'</log>
	<EXEC start="20:07:08" duration="284">
		<CMD>[CDATA&colon; wmic OS Get OSLanguage &lt; %SystemRoot%\win.ini]</CMD>
		<RESULT>[CDATA&colon; OSLanguage  
1033]</RESULT>
	</EXEC>
	<EXEC start="20:07:08" duration="258" CMD="echo %ERRORLEVEL%" RESULT="0" />
	<log start="20:07:08" severity="debug">command='wmic OS Get OSLanguage &lt; %SystemRoot%\win.ini' ended successfully</log>
	<log start="20:07:08" severity="debug">Bundle postfix eng</log>
	<log start="20:07:08" severity="debug">Using charset: Cp1252</log>
	<log start="20:07:08" severity="debug">Can encode: 1</log>
	<EXEC start="20:07:08" duration="0" CMD="setCharset" RESULT="windows-1252" />
	<log start="20:07:08" severity="debug">Discovering IIS</log>
	<log start="20:07:08" severity="debug">Checking existence of C:\inetpub\AdminScripts\adsutil.vbs</log>
	<EXEC start="20:07:09" duration="514">
		<CMD>[CDATA&colon; dir \\192.168.1.130\admin$\system32\drivers\etc\adsutil.vbs]</CMD>
		<RESULT>[CDATA&colon; Volume in drive \\192.168.1.130\admin$ has no label.
 Volume Serial Number is 509D-7328

 Directory of \\192.168.1.130\admin$\system32\drivers\etc

File Not Found]</RESULT>
	</EXEC>
	<EXEC start="20:07:09" duration="261" CMD="echo %ERRORLEVEL%" RESULT="1" />
	<log start="20:07:09" severity="debug">dir \\192.168.1.130\admin$\system32\drivers\etc\adsutil.vbs</log>
	<log start="20:07:09" severity="debug">NONE LAST CMD</log>
	<log start="20:07:09" severity="warn">Failed copying C:\inetpub\AdminScripts\adsutil.vbs</log>
	<DISCONNECT start="20:07:09" duration="10" CMD="client_disconnect" RESULT="" IS_NULL="Y" type="uda" credentialsId="5_1_CMS" />
	<log start="20:07:09" severity="debug">UDA: Internal error. Details: Failed to copy adsutil.vbs to the remote machine</log>
	<log start="20:07:09" severity="debug">Reporting error code 103 to framework.</log>
	<log start="20:07:09" severity="debug">Error message is: UDA: Internal error. Details: Failed to copy adsutil.vbs to the remote machine</log>
</execution>

 

 

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Can UD Agent copy files to remote servers ?

Hi

 It looks like issue with the OOB job itself.

It might be a defect, could you open a support case so that we can take it forward.

 

With Regards

Raveendra

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Can UD Agent copy files to remote servers ?

Did you open a support case to take it forward ?

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.