2007~2011/Tools2009. 8. 14. 00:01
Error Code Look-up Tool 을 사용하여 Windows 시스템에서 발생하는 10, 16진수 오류 코드의 의미를 조금 더 자세히 살펴 볼 수 있는 방법이 있습니다. 대부분 msdn 검색을 통해서 확인할 수 있지만 심플하고 빠르니깐 한 번 써볼만 합니다.

도움말이 길지 않은 관계로 아래에 그대로 붙여 넣었습니다. 

C:\ERR> ERR.EXE /? 


USAGE: err {value} [value] [value] ...
 where <value> must be of one of the following forms:
   1. decorated hex (0x54f)
   2. implicit hex  (54f)
   3. ambiguous     (1359)
   4. exact string  (=ERROR_INTERNAL_ERROR)
   5. substring     (:INTERNAL_ERROR)

All values on the command line will be looked up in our internal
tables and presented to you.  If available, informational data
associated with the value(s) will also be shown (see below).
All tables are searched by default, but you can restrict the 
output to those tables you deem appropriate by adding
"/<tablename>" to the beginning of the commandline. 

Example:

> err /winerror.h /ntstatus.h 0
# winerror.h selected.
# ntstatus.h selected.
# for hex 0x0 / decimal 0 :
  STATUS_WAIT_0                                             ntstatus.h
  ERROR_SUCCESS                                             winerror.h
# The operation completed successfully.
  NO_ERROR                                                  winerror.h
  SEC_E_OK                                                  winerror.h
  S_OK                                                      winerror.h
# 5 matches found for "0"

  Last compiled on Mar 31 2003 14:39:19.
This app has support derived from the following headers and privates:

  adeevent.mc      adoint.h         adserr.h         alert.h        
  allerror.h       appevt.mc        appman.h         arapio.h       
  asferr.h         asn1err.h        asyncpub.h       bitsmsg.h      
  blberr.h         bthdef.h         bugcodes.h       capicom.h      
  cderr.h          cdosyserr.h      ceplog.mc        certlog.mc     
  certmsg.mc       cfgmgr32.h       cierror.h        clusvmsg.h     
  cmdmsg.h         corerror.h       crypt32msg.mc    cryptmsg.mc    
  d3d.h            d3drm.h          d3dx8mesh.h      d3dxerr.h      
  dciddi.h         ddeml.h          ddraw.h          ddrawex.h      
  dhcpssdk.h       dinput.h         dinputd.h        dlcapi.h       
  dmerror.h        docobj.h         dplay.h          dplay8.h       
  dsexcept.h       dsound.h         dvoice.h         dxfile.h       
  dxterror.h       ec.h             ese.h            exitlog.mc     
  fdevents.mc      filterr.h        fltdefs.h        ftsiface.h     
  gpmc_msgs.mc     gpmgmtevents.mc  hidpddi.h        hidpi.h        
  iaapi.h          iiscnfg.h        imapierror.h     ime.h          
  imnact.h         imnxport.h       inetmsg.h        intshcut.h     
  ipexport.h       irtranp.h        esent98.h        kerberr.h      
  lmerr.h          lmerrlog.h       lmsvc.h          lpmapi.h       
  lsapmsgs.mc      lzexpand.h       macfile.h        mapicode.h     
  mapidefs.h       mciavi.h         mdmsg.h          mediaerr.h     
  mimeole.h        mmsystem.h       mobsyncp.h       mprerror.h     
  mq.h             mqoai.h          msaudite.h       msctf.h        
  msiquery.h       msoeapi.h        msxml2.h         nb30.h         
  nddeapi.h        netcfgx.h        netevent.h       netmon.h       
  netsh.h          nserror.h        ntddchgr.h       ntdddisk.h     
  ntdsapi.h        ntdsbmsg.h       ntiologc.h       ntsam.h        
  ntstatus.h       odbcinst.h       ole.h            olectl.h       
  oledberr.h       oledlg.h         patchapi.h       pdhmsg.h       
  penwin.h         pollog.mc        pstore.h         qedit.h        
  qossp.h          raserror.h       reconcil.h       rnderr.h       
  routprot.h       rtcerr.h         scarderr.h       scesvc.h       
  schannel.h       sdperr.h         setupapi.h       shellapi.h     
  snmp.h           sperror.h        sql_err          ssc.h          
  stierr.h         tapi.h           tapi3err.h       tcerror.h      
  textstor.h       tlsdef.h         trk.h            twain.h        
  uevents.mc       upnp.h           upnphost.h       urlmki.h       
  urlmon.h         usb.h            vfw.h            vfwmsgs.h      
  vss.h            vswriter.h       w32timemsg.mc    wbemcli.h      
  wiadef.h         wincrypt.h       winerror.h       winfax.h       
  winhttp.h        wininet.h        winioctl.h       winldap.h      
  winsnmp.h        winsock2.h       winspool.h       wlevents.mc    
  wlevents2.mc     wpaevent.mc      wpscoserr.mc     wsiperr.h      



There are currently 19871 return codes registered from 172 sources.


이제 몇 가지 샘플 오류 코드에 대한 테스트를 해 볼 차례입니다.

System Crash 가 발생하였을 때 나타날 수 있는 0x7f stop error 에 대한 오류 코드 정보를 bugcodes.h 에서 찾아 정보를 반환하고 있습니다. 

C:\Err> err 0x7f

# for hex 0x7f / decimal 127 :
  UNEXPECTED_KERNEL_MODE_TRAP                                   bugcodes.h     
# Run a system diagnostic utility supplied by your hardware
# manufacturer.
# In particular, run a memory check, and check for faulty or
# mismatched
# memory. Try changing video adapters.
# Disable or remove any newly installed hardware and drivers.
# Disable or
# remove any newly installed software. If you need to use
# Safe Mode to
# remove or disable components, restart your computer, press
# F8 to select
# Advanced Startup Options, and then select Safe Mode.
  NMERR_REMOTE_VERSION_OUTOFSYNC                                netmon.h       
  SQL_127_severity_15                                           sql_err        
# A TOP N value may not be negative.
  ERROR_PROC_NOT_FOUND                                          winerror.h     
# The specified procedure could not be found.
# 4 matches found for "0x7f"


다음 예제는 Disk mirror 실패 시 발생했던 dmio 오류 코드에 대해서 조회를 하였습니다만 상세한 정보를 얻진 못했습니다. 오히려 이벤트 로그에 더욱 상세한 정보가 잘 기록되어 있습니다. 

C:\Err> Err 0xc00009c

# for hex 0xc000009c / decimal -1073741668 :
  STATUS_DEVICE_DATA_ERROR                                      ntstatus.h     
# 1 matches found for "0xc000009c"


다음은 Windows Update 사이트 접근이 실패한 오류이며 실제 Proxy 를 구성하지 않았을 때  발생한 사례가 있었습니다.

C:\Err> Err 0x80072efe

# as an HRESULT: Severity: FAILURE (1), Facility: 0x7, Code 0x2efe
# for hex 0x2efe / decimal 12030 :
  ERROR_INTERNET_CONNECTION_ABORTED                             inetmsg.h      
  ERROR_INTERNET_CONNECTION_ABORTED                             wininet.h      
# 2 matches found for "0x80072efe"

오류 코드 발생 시 일단 err.exe 툴을 사용하여 한 번 살펴본다면 원인에 대한 힌트(?)를 얻을 수 있는 방법이 될 수 있겠습니다.


[참고자료]
Microsoft Exchange Server Error Code Look-up

작성자 : Lai Go / 작성일자 : 2009.08.12

Posted by Lai Go