'nmblookup'에 해당되는 글 2건

  1. 2009.10.16 samba share / server 종류
  2. 2009.09.28 nmblookup
딱히 용어로 적힌건 발견하지 못했는데

# nmblookup -S "SERVERNAME"
querying STREAM on 192.168.10.255
192.168.10.4 STREAM<00>
Looking up status of 192.168.10.4
        STREAM          <00> -         B <ACTIVE>
        WORKGROUP       <00> - <GROUP> B <ACTIVE>
        STREAM          <20> -         B <ACTIVE>
        WORKGROUP       <1e> - <GROUP> B <ACTIVE>

        MAC Address = 00-00-00-00-00-00

nmblookup으로 domain을 해석할때, <00> 이나 <20> <1e> 이러한 값들이 출력이 되는데
그 의미는 아래의 표에 나와있다.

Table 29.1. Unique NetBIOS Names

MACHINENAME<00> Server Service is running on MACHINENAME
MACHINENAME<03> Generic machine name (NetBIOS name)
MACHINENAME<20> LanMan server service is running on MACHINENAME
WORKGROUP<1b> Domain master browser

Table 29.2. Group Names

WORKGROUP<03> Generic name registered by all members of WORKGROUP
WORKGROUP<1c> Domain cntrollers/netlogon servers
WORKGROUP<1d> Local master browsers
WORKGROUP<1e> Browser election service


[링크 : Unique NetBIOS names and group names]
신고
Posted by 구차니

댓글을 달아 주세요

# nmblookup --help
Usage: <NODE> ...
  -B, --broadcast=BROADCAST-ADDRESS      Specify address to use for broadcasts
  -f, --flags                            List the NMB flags returned
  -U, --unicast=STRING                   Specify address to use for unicast
  -M, --master-browser                   Search for a master browser
  -R, --recursion                        Set recursion desired in package
  -S, --status                           Lookup node status as well
  -T, --translate                        Translate IP addresses into names
  -r, --root-port                        Use root port 137 (Win95 only replies to this)
  -A, --lookup-by-ip                     Do a node status on <name> as an IP Address

Help options:
  -?, --help                             Show this help message
  --usage                                Display brief usage message

Common samba options:
  -d, --debuglevel=DEBUGLEVEL            Set debug level
  -s, --configfile=CONFIGFILE            Use alternate configuration file
  -l, --log-basename=LOGFILEBASE         Base name for log files
  -V, --version                          Print version

Connection options:
  -O, --socket-options=SOCKETOPTIONS     socket options to use
  -n, --netbiosname=NETBIOSNAME          Primary netbios name
  -W, --workgroup=WORKGROUP              Set the workgroup name
  -i, --scope=SCOPE                      Use this Netbios scope

[링크 : http://linux.die.net/man/1/nmblookup]

NetBIOS를 resolve 할 수 있는 방법인데

# nmblookup -T "SERVERNAME"
querying STREAM on 192.168.10.255
192.168.10.4 STREAM<00>

# nmblookup -A "IP ADDRESS"
Looking up status of 192.168.10.4
        STREAM          <00> -         B <ACTIVE>
        WORKGROUP       <00> - <GROUP> B <ACTIVE>
        STREAM          <20> -         B <ACTIVE>
        WORKGROUP       <1e> - <GROUP> B <ACTIVE>

        MAC Address = 00-00-00-00-00-00

# nmblookup -S "SERVERNAME"

querying STREAM on 192.168.10.255
192.168.10.4 STREAM<00>
Looking up status of 192.168.10.4
        STREAM          <00> -         B <ACTIVE>
        WORKGROUP       <00> - <GROUP> B <ACTIVE>
        STREAM          <20> -         B <ACTIVE>
        WORKGROUP       <1e> - <GROUP> B <ACTIVE>

        MAC Address = 00-00-00-00-00-00


보다시피 -S는 -A 와 -T의 조합으로 실행되고, -T를 사용하면 간편하게 아이피를 구할 수 있다.



2011.04.28 추가
헐 검색하고 나니 이미 찾았던 내용이라니 ㅠ.ㅠ
windows의 nbtstat와 유사한 기능을 가진 유틸리티이다. 
신고
Posted by 구차니

댓글을 달아 주세요