[¹®ÀÇ] Batch ÆÄÀÏ¿¡¼­ ½ÇÇà ÆÄÀÏÀÇ Return °ª±îÁö ·Î±× ³²±â´Â ¹æ¹ý

È︶   
   Á¶È¸ 602   Ãßõ 0    

1901;팔리면 1656;문Ȣ16;1648; 맙시다. 소1473;한 NJ13;변 댓글1012; 삭1228;Ȣ16;lj16;,148; ǥ12;-124;러운 1068; 1077;니다 


1109;비 시리얼 넘버 확1064;Ȣ16;기 위해서 IPMITool.exe 1012; Batch 파1068;/196; for문1012; ᇼ1;1089;해서 확1064; 해야 합니다.

실행 파1068; 뒤에 ">"/196; Ȣ16;면 /196;그가 1200;1109;.104;Ǻ12;야 Ȣ16;lj16;데, IPMITools 1032; 실행 결과1064; Return 값1008; /196;그에 남1648; 않습니다.

DOS에서 1204;체 /196;그 남기lj16; 법 또lj16; 터0120;널 프/196;그ǖ16; 처/100; 화면 갈무리(.Log)/196; /196;그 남lj16; 0169;법1060; 없lj16;1648; 문1032; 드립니다.


0176;치 파1068; 내용 ========================================

@echo off
setlocal enabledelayedexpansion

FOR /l %%N in (60000000,1,99999999) do (
echo Loop Started: !date! - !time!
set "n=00000000%%N"
set "num=!n:~-8!"
echo !num!

echo C:\IPMItool\ipmitool.exe -I lanplus -C 3 -U console -P APM001!num! -H 128.221.1.253 sol activate
C:\IPMItool\ipmitool.exe -I lanplus -C 3 -U console -P APM001!num! -H 128.221.1.253 sol activate &#160; &#160; &#160; &#160; &#160;<== 1060; ǥ12;ǥ16;1032; 리턴 값1060; 남겨1648;1648; 않1020;
Error: Unable to establish IPMI v2 / RMCP+ session &#160; &#160;<== IPMItool1032; 리턴 값1004;/196; /196;그가 남1648; 않1020;.
timeout /t 2 /nobreak > NUL

)



해결 한 내용. 초/197;색1004;/196; 표시========================================

@echo off
setlocal enabledelayedexpansion

FOR /l %%N in (60000000,1,99999999) do (
echo Loop Started: !date! - !time!
set "n=00000000%%N"
set "num=!n:~-8!"
echo !num!&#160;>>log2.txt &#160;<== IPMItool1032; 리턴 메세1648;만 1200;1109;.104;기에 ኧ1; 번1704; 1064;1648; /196;그 기/197;

echo C:\IPMItool\ipmitool.exe -I lanplus -C 3 -U console -P APM001!num! -H 128.221.1.253 sol activate
C:\IPMItool\ipmitool.exe -I lanplus -C 3 -U console -P APM001!num! -H 128.221.1.253 sol activate &#160;>>log1.txt 2>>log2.txt &#160;<== log2.txt에 IPMItool1032; 리턴 메세1648; 기/197;.&#160;
Error: Unable to establish IPMI v2 / RMCP+ session &#160; &#160;<== IPMItool1032; 리턴 메세1648;가 log2.txt에 1200;1109;.108; 내용.
timeout /t 2 /nobreak > NUL

)



ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
APower 09-17
%echolevel%À̶ó´Â °É °Ë»öÇØ º¸¼¼¿ä.
exeÆÄÀÏÀÇ ¸ÞÀÎÇÔ¼ö°¡ ¸®ÅÏÇÑ int°ªÀ» °¡Á®¿Ã ¼ö ÀÖ´Â °É·Î ¾Ë°í ÀÖ½À´Ï´Ù
     
È︶ 09-17
IPMItool ¸®ÅÏ °ª¿¡ int ¼Ó¼ºÀÌ ¾ø½À´Ï´Ù.
HanBitz 09-17
>°¡ ¾Æ´Ñ
%errorlevel% À¸·Î ÇغÃÀ»¶§ ¿©ÀüÈ÷ µé¾î¿À´Â°ªÀÌ ¾ø³ª¿ä?
     
È︶ 09-17
¸ðµÎ "0"À¸·Î µ¹·Á ¹Þ½À´Ï´Ù.
Batch ÆÄÀÏ ÀÔÀå¿¡¼­´Â IPMItoolÀ» Á¦´ë·Î ½ÇÇàÇÏ¿´°í, IPMItoolÀÌ ½ÇÇàÇÑ °á°ú °ªÀ» ¸Þ¼¼Áö¸¦ º¸³»´Â Çü½Ä °°½À´Ï´Ù.
±×·¡¼­ ¿¡·¯·Î ÀÎÁöÇÒ ¼ö ¾ø´Â°Å °°½À´Ï´Ù.
HanBitz 09-17
½ÇÇà ¸í·ÉÁÙ ¸Ç µÚ¿¡ >file 2>file2
ÇÑ ÈÄ ÆÄÀÏ »ý¼ºµÇ´ÂÁö È®ÀÎÇغ¸¼¼¿ä
     
È︶ 09-18
C:\IPMItool\ipmitool.exe -I lanplus -C 3 -U console -P APM001!num! -H 128.221.1.253 sol activate > C:\Temp\log.txt > C:\Temp\log.txt
ÀÌ·¸°Ô ÇØ º¸¾Ò´Âµ¥, ÆÄÀϸ¸ »ý¼ºµÇ°í ¾Æ¹« ·Î±×µµ ¾ø½À´Ï´Ù.
          
HanBitz 09-18
2 ºÙ¿©µµ Àú·¸³ª¿ä?
               
È︶ 09-18
2¸¦ ºÙ¿©µµ »ý¼ºµÇ´Â ÆÄÀϸíÀÌÁö Ưº°ÇÑ ¿É¼ÇÀº ¾Æ´Ñ°Å °°½À´Ï´Ù.
                    
HanBitz 09-18
2> ´Â ÀÏ¹Ý Ãâ·ÂÀ¸·Î ¾È³ª¿Ã¶§ Àú¸®ÇØÁÖ¸é ³ª¿À´Â°É·Î ±â¾ïÇÕ´Ï´Ù
>file1 2>file2
                         
È︶ 09-18
°¨»çÇÕ´Ï´Ù. ¼º°øÇß½À´Ï´Ù.
Á¦°¡ »ç¿ë¹ýÀ» Á¦´ë·Î ¸ô¶ó¼­ µ¿ÀÛµÇÁö ¾Ê¾Ò½À´Ï´Ù.

C:\IPMItool\ipmitool.exe -I lanplus -C 3 -U console -P APM001!num! -H 128.221.1.253 sol activate >log1.txt 2>log2.txt
À¸·Î ÇØ º¸´Ï IPMItoolÀÇ °á°ú °ªÀÌ log2.txt¿¡ ÀúÀåµÇ¾ú½À´Ï´Ù. IPMItoolÀÇ ¸Þ¼¼Áö¸¸ ÀúÀåµÇ¾î¼­ ¾î¶² ½Ã¸®¾ó ¹øÈ£ÀÎÁö È®ÀÎ ºÒ°¡·Î ¾Æ·¡¿Í °°ÀÌ ÃÖÁ¾ÀûÀ¸·Î ¼öÁ¤ÇÏ¿´½À´Ï´Ù.
=====================================
echo !num! >> log2.txt

echo C:\IPMItool\ipmitool.exe -I lanplus -C 3 -U console -P APM001!num! -H 128.221.1.253 sol activate
C:\IPMItool\ipmitool.exe -I lanplus -C 3 -U console -P APM001!num! -H 128.221.1.253 sol activate  >>log1.txt 2>>log2.txt
=====================================
HanBitz 09-18
log1.txt°¡ ºñ¾îÀÖ´Ù¸é
>nul 2>>logfile.txt ·Î ÇØÁÖ½Ã¸é µÉ °Í °°½À´Ï´Ù


QnA
Á¦¸ñPage 5/440
11-04   224   ¸í¶û
11-04   295   ¾ß±Ù¼·¯
11-04   327   ¹Ì´ã
11-04   311   ÇÑÈ¿¼®
11-04   522   ³Ä¹Ì³Ä¹Ì
11-04   294   ¶Ñ¶Ñ±è´ë¿ø
11-03   328   ±èÈ¿¼ö
11-03   311   isaiah
11-03   354   sskjhgod
11-03   244   ´ÙºÀÀÌ
11-03   311   julius3637
11-03   336   ±èȲÁß
11-02   310   prox
11-02   282   »ßµ¹À̽½ÇÄÀÌ
11-02   243   inquisitive
11-02   218   »¡°­Åä³¢
11-02   395   osthek83
11-02   245   polecon
11-02   280   cjsrbc
11-02   274   ¼­¿ï°­ºÏ¹Ì¡¦