标题: 网络的所有ip电脑信息统计(已解决)
[打印本页]
作者: xiaoyun222
时间: 2008-4-10 14:32
标题: 网络的所有ip电脑信息统计(已解决)
我想把所有的ip电脑的信息都统计出来,可是有几百个ip地址这样一条一条的加入好麻烦,怎么可以写个简单的批处理。以下是我手动一个一个ip地址的输入
psinfo -d -s \\10.12.3.54 >c:\a.txt
psinfo -d -s \\10.12.3.55 >>c:\a.txt
psinfo -d -s \\10.12.3.56 >>c:\a.txt
psinfo -d -s \\10.12.4.54 >>c:\a.txt
[
Last edited by xiaoyun222 on 2008-4-11 at 11:55 AM ]
作者: plp626
时间: 2008-4-10 14:56
如果ip地址无规律可循就把要输入的Ip先存到ip.txt内(每行一个),
cd.>C:\a.txt
for /f %%a in (ip.txt)do psinfo -d -s \\%%a>>C:\a.txt
-----------------
楼主那个psinfo可否上传共享下?
作者: huahua0919
时间: 2008-4-10 14:57
如果你的所有IP地址都在一个文本文件中如:b.txt
那么你只需用for循环就可以实现你的要求
for /f "delims=" %%i in (b.txt) do (psinfo -d -s \\%%i >>a.txt)
不知道你用的是什么操作系统,为什么不是systeminfo?
作者: bat-zw
时间: 2008-4-10 15:19
标题: 是不是这样的:
根据楼主的意思是不是这样的:
假设ip第三位为3-100,每四位为54-200
@echo off
set n=2&set m=53
:begin
set /a n+=1
if %n% equ 101 goto :eof
:lp
set /a m+=1
psinfo -d -s \\10.12.%n%.%m% >>c:\a.txt
if %m% equ 200 (set m=53&goto begin) else (goto lp)
[
Last edited by zw19750516 on 2008-4-10 at 03:29 PM ]
作者: xiaoyun222
时间: 2008-4-10 16:24
如何上传pstools工具里就有的。ip 是不规则的,我在三层交换机里已经show arp 保存到了一个ip.txt里面。我系统是xp pro
作者: bat-zw
时间: 2008-4-10 17:42
那请楼主把ip.txt的内容贴上来吧,这样让我们怎么猜啊。
作者: zzy293
时间: 2008-4-10 19:29
想看点子多的贴子,只好顶了先。
作者: dato
时间: 2008-4-10 20:03
..\psexec.exe -accepteula @..\ip.txt -u username -p "" -c -d -n 5 ..\UPDATER.EXE /q
难道这个psinfo不支持@开关??没用过
作者: tempuser
时间: 2008-4-11 08:25
能给个psinfo下载吗?谢谢.
作者: HAT
时间: 2008-4-11 08:36
Quote: |
Originally posted by tempuser at 2008-4-11 08:25 AM:
能给个psinfo下载吗?谢谢. |
|
google搜索pstools
到处都是
作者: xiaoyun222
时间: 2008-4-11 11:53
谢谢各位大虾了,已经差不多了~呵呵!~~pstools已经上传,网上有很多的。
ip不规则:
1 10.12.1.1 ~~~~~~~ 200
150 10.12.2.1~~~~~~~~240
260 10.12.3.1~~~~~~~220
330 10.12.4.1~~~~~~
470 10.12.8.1~~~~~
490 10.12.16.1~~~~~
等一直到序号400多,ip地址前面有数字1,2,3,~~~~400
查看的信息有:硬件与安装软件情况:
System information for \\10.12.3.120:
Uptime: 0 days 3 hours 17 minutes 52 seconds
Kernel version: Microsoft Windows 2000, Uniprocessor Free
Product type: Professional
Product version: 5.0
Service pack: 4
Kernel build number: 2195
Registered organization:
Registered owner: lufang
Install date: 2006-5-26, 14:29:17
Activation status: Not applicable
IE version: 6.0000
System root: C:\WINNT
Processors: 1
Processor speed: 1.7 GHz
Processor type: Intel(R) Pentium(R) 4 CPU
Physical memory: 352 MB
Video driver: SiS 650_740
Volume Type Format Label Size Free Free
A: Removable 0.0%
C: Fixed FAT32 9.76 GB 5.30 GB 54.3%
D: Fixed NTFS 14.65 GB 10.99 GB 75.0%
E: Fixed FAT32 12.83 GB 10.04 GB 78.2%
Applications:
Adobe Flash Player 9 ActiveX 9.0.115.0
Adobe Flash Player ActiveX 9.0.115.0
Adobe Reader 7.0 - Chinese Traditional 007.000.000
Adobe Reader Chinese Simplified Fonts 7.0
Hotfix for MDAC 2.53 (KB911562) 1
Hotfix for MDAC 2.53 (KB927779) 1
Lingoes 1.53.0007 1.52
LiveUpdate 3.1 (Symantec Corporation) 3.1.0.99
Lotus Notes
Microsoft Data Access Components KB870669
Microsoft Internet Explorer 6 SP1
Office XP ??????? 1.0.0.0
OpenOffice.org 2.3 2.3.9221
Oracle JInitiator 1.3.1.18
Picasa 2 2.0
SAP Front End 6.20 Compilation 1
SiS 650_740
SnagIt 7 7.1
Symantec AntiVirus 10.1.6000.6
WebFldrs 9.50.7522
WinRAR ????
Windows 2000 Hotfix - KB947864 20080215.120000
Windows 2000 Hotfix - KB948590 20080219.223435
Windows 2000 Hotfix - KB948881 20080313.120000
Windows 2000 ????? (KB941569)
Windows Installer 3.1 (KB893803) 3.1
Windows Media Player 6.4 ????? (KB925398)
Windows Media Player 7.1
Windows Media Player 7.1 ????? (KB936782)
Windows Media Player Hotfix [??? Q828026 ??????]
Windows Media Player ????? (KB911564)
chundate ScreenSaver
openoffice 2.3
qiudate02 ScreenSaver
summer ScreenSaver
winter ScreenSaver
[
Last edited by xiaoyun222 on 2008-4-11 at 11:56 AM ]