Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92071
  • 博文数量: 21
  • 博客积分: 192
  • 博客等级: 入伍新兵
  • 技术积分: 216
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-25 23:42
文章分类

全部博文(21)

文章存档

2013年(6)

2012年(15)

我的朋友

分类: Python/Ruby

2012-03-20 22:53:46

Windows下需要根据IP地址查找其所属的计算机名称信息(在公司局域网内更为有效)
可以使用nbtstat命令
举例如下:
nbtstat -a x.x.x.x
 
 
nbtstat命令在windows命令行下帮助信息如下:
Displays protocol statistics and current TCP/IP connections using NBT
(.
NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n]
        [-r] [-R] [-RR] [-s] [-S] [interval] ]
  -a   (adapter status) Lists the remote machine's name table given its name
  -A   (Adapter status) Lists the remote machine's name table given its
                        IP address.
  -c   (cache)          Lists NBT's cache of remote [machine] names and their IP
 addresses
  -n   (names)          Lists local NetBIOS names.
  -r   (resolved)       Lists names resolved by broadcast and via WINS
  -R   (Reload)         Purges and reloads the remote cache name table
  -S   (Sessions)       Lists sessions table with the destination IP addresses
  -s   (sessions)       Lists sessions table converting destination IP
                        addresses to computer NETBIOS names.
  -RR  (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refr
esh
  RemoteName   Remote host machine name.
  IP address   Dotted decimal representation of the IP address.
  interval     Redisplays selected statistics, pausing interval seconds
               between each display. Press Ctrl+C to stop redisplaying
               statistics.
阅读(2356) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

背包包1112012-03-22 22:53:01

反查邻居信息