\r\nSwordsMan,请帮我看一下这个情况,好吗,先谢了。\r\nhttp://www.itpub.net/showthread.php?s=&threadid=111281作者: thinsun_2003 时间: 2003-04-10 17:41 标题: 还没有解决啊,请教WMI高手 还有这个dhcp.mdb怎么打开啊作者: frankpro 时间: 2003-04-10 19:13
You can use DHCPCMD to get it, dhcp.mdb is not Access database format, so you cannot use Access to open it.\r\n\r\ndhcpcmd IPAddress enumclients ScopeNetAddress -option > textfile.txt\r\n\r\nwhere:\r\n\r\n- IPAddress is the Internet Protocol (IP) address of the DHCP server.\r\n\r\n- ScopeNetAddress is the network address of the DHCP scope.\r\n\r\n- option is either v or h. The v option lists detailed lease \r\n information; the h option lists lease information with hardware \r\n information.\r\n\r\n- textfile.txt is the name of the destination text file.\r\n\r\n\r\n\r\n\r\nFor example, to export the contents to a text file named \'export.txt\', type:\r\n\r\ndhcpcmd 127.0.0.1 enumclients 11.101.0.0 -h >export.txt作者: winmag 时间: 2003-04-11 08:35
dhcpcmd.exe是NT的命令,需要安装NT的supports tools。\r\n\r\n但2K本身已自带了相应的命令,就是netshell中的DHCP命令,如下:\r\n\r\n\r\nnetsh dhcp server computername or ip scope subnetip show clients\r\n\r\n版本5客户端用show clientsv5,netsh的?帮助写错了。\r\n\r\n使用dump命令可以把内容导出到文本文件,netsh dhcp可以显示并配置2K dhcp服务器基本上所有的配置,但dhcpcmd.exe不能显示或配置2K dhcp服务器的新特性。