RPC Server is unavailable
|
Logged in as: Guest
|
|
Users viewing this topic:
none
|
|
Login | |
|
RPC Server is unavailable - 16.Aug.2005 2:27:00 AM
|
|
|
NML
Posts: 53
Joined: 23.Apr.2004
From: Florida
Status: offline
|
All of a sudden I am getting an error message in one of my script when run on a Windows 2003 server/s.
Error: "The RPC server is unavailable"
I am not sure but the error may have started since I have applied SP1 but not really sure.
Anyone else getting this message?
Seems to be hanging at this point of the script.
Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objWMIService = objLocator.ConnectServer ( (strServerIP), "root\cimv2", getParameter("User"), GetParameter("Password") ) If objWMIService is Nothing Then [ August 16, 2005, 08:31 AM: Message edited by: NML ]
|
|
|
|
RE: RPC Server is unavailable - 16.Aug.2005 5:19:00 AM
|
|
|
xnih
Posts: 2465
Joined: 30.May2001
From: Idaho
Status: offline
|
Not that it helps, but I see this from time to time on a lot of my machines (not specific to scanning with LNSS, have other programs that do ipc$ connections that come up with this too).
Some I've found work better when the RPC service is tweaked so that it runs under different creds. Other times a reboot of the WS seems to take care of it. Others just time.
Never spent much time tracking it down, but have seen it with numerous programs over the past 2 years or so.
eric
|
|
|
|
RE: RPC Server is unavailable - 16.Aug.2005 5:47:00 AM
|
|
|
NML
Posts: 53
Joined: 23.Apr.2004
From: Florida
Status: offline
|
I just tried a reboot and it did not help. We have two 2003 servers with SP1 and they both are having the same problem. I just booted up one of our Test 2003 servers that is not running SP1 and it works.
I am almost positive the problem started after SP1.
Thanks, Mark
|
|
|
|
RE: RPC Server is unavailable - 16.Aug.2005 7:23:00 AM
|
|
|
xnih
Posts: 2465
Joined: 30.May2001
From: Idaho
Status: offline
|
It is possible it is in the SP, but I have numerous 2003 SP1 servers without seeing that.
Some sites to check: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q224370 http://support.ipswitch.com/kb/WG-20020424-DM01.htm (actually mentions the first one, but has some other tips in it, is geared towards Whats Up Gold, but same general issue)
I've normally seen this issue in XP machines and have found that kicking the Log on feature for the service around fixes it normally. Either switching from 'Local System Account' to 'Use the following account: Network Service' or vice versa seems to work.
I've never looked into why this fixes it, but I've noticed that the machines that are having issues normally don't have this setup the same as all the rest that work.
Something to look at at least.
eric
|
|
|
|
RE: RPC Server is unavailable - 16.Aug.2005 7:46:00 AM
|
|
|
NML
Posts: 53
Joined: 23.Apr.2004
From: Florida
Status: offline
|
Xnih, do any of your scripts use the code I have listed here:
Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objWMIService = objLocator.ConnectServer ( (strServerIP), "root\cimv2", getParameter("User"), GetParameter("Password") ) If objWMIService is Nothing Then
The script that have the above listed code are giving me the RPC error.
Thanks, Mark
|
|
|
|
RE: RPC Server is unavailable - 16.Aug.2005 12:56:00 PM
|
|
|
xnih
Posts: 2465
Joined: 30.May2001
From: Idaho
Status: offline
|
reading thru things a bit more helps sometimes, sorry was tuning into the RPC problem, not the part of the script that it was coming up in.
So looking at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/connecting_to_wmi_on_a_remote_computer.asp
one thing I noticed is: quote: Set the authentication level to pktPrivacy if the namespace to which you are connecting on the remote computer requires an encrypted connection before it will return data. This ensures that data is encrypted as it crosses the network. If you try to set a lower authentication level, you will get an access denied message. For more information, see Setting Namespace Security.
Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0, and Windows Me/98/95: Before Windows Server 2003 SP1, providers could not set namespace security to require encryption before returning data.
SP1 may have made this a requirement. Haven't found anything to support that yet, but just been working on it for 5 mins, so....
Haven't done much with WMI in a long time, but it could be higher security level of some type in place now.
Will look around a bit more and if I find anything specific will post back, but you may want to look at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/setting_namespace_security.asp
Also, you may want to look in the Event Logs to see if anything is being logged there on the remote machines as to why it is failing.
eric
|
|
|
|
RE: RPC Server is unavailable - 16.Aug.2005 1:11:00 PM
|
|
|
xnih
Posts: 2465
Joined: 30.May2001
From: Idaho
Status: offline
|
Not that this means it is an SP1 issue, but:
quote: RPC Service Changes Pre-SP1 the RPCSS provided the key service for both RPC Endpoint Mapper and also for the DCOM Infrastructure. The service ran under the permissions of the Local System account. SP1 has split this into two services, the original RPC service (for the RPC Endpoint Mapper) and a new service called DCOM Process Launcher, which is not network facing. The RPC service did not need the Local Security permissions so it now runs under the NT Authority\Network Service account, while the new DCOM Process Launcher service runs with the Local System account. This was introduced to reduce attack surface of Windows, and to tighten security permissions on network facing services.
From: http://www.mcmcse.com/microsoft/guides/2003sp1.shtml
Though this one may shed some light on it: http://www.microsoft.com/technet/community/columns/profwin/pw0405.mspx#EEAA
eric
|
|
|
|
RE: RPC Server is unavailable - 24.Aug.2005 9:24:00 AM
|
|
|
gtg
Posts: 2
Joined: 23.Aug.2005
Status: offline
|
quote: Originally posted by NML: All of a sudden I am getting an error message in one of my script when run on a Windows 2003 server/s.
Error: "The RPC server is unavailable"
I am not sure but the error may have started since I have applied SP1 but not really sure.
Anyone else getting this message?
Seems to be hanging at this point of the script.
Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objWMIService = objLocator.ConnectServer ( (strServerIP), "root\cimv2", getParameter("User"), GetParameter("Password") ) If objWMIService is Nothing Then
|
|
|
|
RE: RPC Server is unavailable - 24.Aug.2005 9:27:00 AM
|
|
|
gtg
Posts: 2
Joined: 23.Aug.2005
Status: offline
|
I had the same problem until I found a document on Microsoft's site. The document number is KB892192. I added permissions read permissions for LOCAL SERVICE and been working fine. Read the Microsoft document for specific instructions.
Originally posted by NML: All of a sudden I am getting an error message in one of my script when run on a Windows 2003 server/s.
Error: "The RPC server is unavailable"
I am not sure but the error may have started since I have applied SP1 but not really sure.
Anyone else getting this message?
Seems to be hanging at this point of the script.
Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objWMIService = objLocator.ConnectServer ( (strServerIP), "root\cimv2", getParameter("User"), GetParameter("Password") ) If objWMIService is Nothing Then
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|