標籤:linux cdp cdpr
cdpr命令:
安裝:yum -y install cdpr (安裝epel庫)
[21:53:07 [email protected] ~]# cdpr -hcdpr - Cisco Discovery Protocol ReporterVersion 2.4Copyright (c) 2002-2010 - MonkeyMental.comd: Specify device to use (eth0, hme0, etc.)h: Print this usaget: time in seconds to abort waiting for a packet (should be > 60)v[vv]: Set verbose moder: read from file instead of network device** Options dealing with server updates: ** u: Send cdpr information to a cdpr server requires config file as arg l: Location/description of this port for use with -u or -s and -p n: Override the hostname reported to the server for use with -u or -s and -p s: Server to send information to specify port with a : after Server/IP Example: 192.168.1.20:88 (default: 80) requires -p (overridden by -u) p: Path of server script to send data to requires -s (overridden by -u)