command line fiddling

DJFuji

Diamond Member
Oct 18, 1999
3,643
1
76
ok i have two problems with a batch file i've written which utilizes the windows 2000 resource kit utilities.

1) I'm using the "httpcmd" (command-line http client) command to grab pages from the internet. This works fine for all intranet sites, and even internet sites up until a few weeks ago. Suddenly, it seems to have stopped working. I can access the same site with IE and it works fine. The exact procedure i'm using is "httpcmd www.pendleton.usmc.mil d:\utils\req\internet.req" where internet.req is the config file. Now I get an error taht says "connect() failed, error 10060". Any ideas?

2) I'm also using the listfreespace.vbs program to get the freespace on all of our servers' drives. It works for all of our servers but two: the SQL servers. Here's what i use from the command line: "listfreespace.vbs /S cpen01db /U administrator /W ***** /O D:\utils\eventl~1\textfiles\cpen01db_freespace.txt". This returns:

Error 0x1A8 occurred in connecting to server cpen01db.
Error description: Object required.
Please check the server name, credentials and WBEM Core.

Any ideas?
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
What is "error 10060"? Isn't there somewhere where you can look up what error numbers mean? I'm guessing connect() is in winsock or whatever windows socketing library.
 

DJFuji

Diamond Member
Oct 18, 1999
3,643
1
76
error 10060, as far as i know, just means a general time out or unable to connect. I know, not much help. I'm thinking it could be a proxy issue. IE/firebird requires us to use a proxy server, so the httpcmd may not be able to utilize it. Why it worked before i dont know, though.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
10060 is timed out, if you can still use it on internal sites I would assume something on the network changed, probably transparent proxying isn't working anymore and you need to set a proxy manually (if it supports it).