如果我有网络打印机的 IP 地址,如何使用命令行获取其名称?使用 GUI 工具,system-config-printer
打印机的名称和 IP 地址会显示在列表中。
答案1
nmap 确实完成了任务,参见以下行http 标题
$ nmap -A -T5 192.168.73.10
Starting Nmap 6.00 ( http://nmap.org ) at 2013-10-19 23:58 CEST
Nmap scan report for 192.168.73.10
Host is up (0.068s latency).
Not shown: 875 closed ports, 122 filtered ports
PORT STATE SERVICE VERSION
7/tcp open echo
80/tcp open http HP Color LaserJet 2600n http config 4.0.2.38
|_http-title: HP Color LaserJet 2600n
9100/tcp open jetdirect?
Service Info: Device: printer
Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 161.86 seconds