How to resolve "RPC server is Unavailable" while executing wmic commands from MID server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2020 12:48 AM
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
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2020 01:09 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2020 01:27 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2020 03:11 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2020 03:29 AM
Hi,
You should have a look at this articles:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0753738
https://hi.service-now.com/kb_view.do?sysparm_article=KB0564283
My best knowledge article to start with:
Thanks,
Ashutosh