How to resolve "RPC server is Unavailable" while executing wmic commands from MID server

Akshatha3
Kilo Contributor

Hello People,

I was trying to discover few IP's and ended up with Credential test timeout error from discovery. So I executed wmic queries on MID server against target IP's.

First error : "Access is Denied". (Somehow managed to resolve it).

Second error against same IP : "RPC server is unavailable". Can you please suggest how to get rid of this error ? 

 

Attachment shows the error. I am new to ServiceNow Discovery. Any help would be much appreciated.

 

Thanks in advance,

Akshatha

 

9 REPLIES 9

Rahul Priyadars
Tera Sage
Tera Sage

Seems that RPC service on destination windows server is not UP and running .

Below URL may help you. My be you need to connect to the windows server admin on which you trying to make a RPC call using that commaned.

 

https://helpdeskgeek.com/help-desk/how-to-fix-rpc-server-is-unavailable-error-in-windows/

Regards

RP

Aakash Bhagat
ServiceNow Employee
ServiceNow Employee
It usually means that your user lacks the Administrator privileges needed to run remote WMI queries.

The quickest test is to see if you can RDP into the target server (preferable from the MID server) with the same credentials you want to use for Discovery. Also double checking that those credentials are running the MID Server service never hurts either. I know I've forgotten it a time or two in the past. Also make sure that the WMI and RPC services are up and running on the target server. If WMI isn't running you won't be able to classify the host. If RPC isn't running, you will be able to classify the host but the additional probes will return an RPC failure error.

If you can can RDP into the server and both services are enabled, try running this command from a "Run as admin" command prompt on the MID:

wmic /node:"TARGET IP Address" /user:"YOURDOMAIN/YOURUSERNAME" /password:"YOUR PASSWORD" path win32_operatingsystem

If the credentials are not set up correctly, then you will get an 'access denied' or 'RPC server is unavailable' error.

Hi Aakash,

Remote login to the target IP with the configured credential works fine. However, I am unable to execute the mentioned command from the MID server. It throws "RPC server is unavailable".

 

Regards,

Akshatha