|
|
@@ -9,6 +9,7 @@ import com.uas.eis.utils.DateUtil;
|
|
|
import com.uas.eis.utils.SmbUtil;
|
|
|
import jcifs.smb.SmbFile;
|
|
|
import jcifs.smb.SmbFileInputStream;
|
|
|
+import jcifs.smb.SmbSession;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFCell;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
@@ -54,15 +55,15 @@ public class EDCBakServiceImpl implements EDCBakService {
|
|
|
logger.info(" matchIP:"+IP+" start;");
|
|
|
//检测是否连接成功
|
|
|
SmbFile smbFile = SmbUtil.getRootFile(IP,counterRootPath);
|
|
|
- try {
|
|
|
- smbFile.connect();
|
|
|
+ /* try {
|
|
|
+ smbFile.exists();
|
|
|
} catch (Exception e) {
|
|
|
baseDao.execute("insert into EDCsyscfaillog(el_id,el_ip,el_devcode,el_teststep,el_synctime,el_reason) values(EDCsyscfaillog_seq.nextval,'"+IP+"','','',sysdate,'"+e.getMessage()+",连接超时')");
|
|
|
logger.info(IP+" 连接失败;"+e.getMessage());
|
|
|
return;
|
|
|
}finally {
|
|
|
countDownLatch.countDown();
|
|
|
- }
|
|
|
+ }*/
|
|
|
String counterpath = "";
|
|
|
try {
|
|
|
for(EquipConfig config : configs){
|
|
|
@@ -104,6 +105,7 @@ public class EDCBakServiceImpl implements EDCBakService {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
+ logger.info(e.getMessage());
|
|
|
baseDao.execute("insert into EDCsyscfaillog(el_id,el_ip,el_devcode,el_teststep,el_synctime,el_reason) values(EDCsyscfaillog_seq.nextval,'"+IP+"','"+devcode+"','"+testStep+"',sysdate,'"+e.getMessage()+"')");
|
|
|
e.printStackTrace();
|
|
|
if(e.getMessage().equals("Plain text passwords are disabled")){
|