Running NSLOOKUP command for all the CI

Richa10
Tera Contributor

Hello,

I have requirement to capture the storage device names using nslookup command. This command I need to run locally on MID server and then  update the storage device name.

How can be this achieved?

Thanks,

Richa 

 

 

3 REPLIES 3

Rahul Priyadars
Giga Sage
Giga Sage

Approach to ur problem statement 

You need to use

nslookup IP_Address_Of_Storage_Device 

command on mid server host . It will use reverse DNS to give you host name.

You need to grab the output and parse the Host Name or CI name . If you mid server is on windows os then you can use PS scripting to grab the name using nslookup.

Once you have name then export it into some XLS file and get is imported from Mid server to Service Now Instance. This is simplest way i can think of.

begin and follow one step at a time

================My Approach============

Why can not you run discovery for same or simple xls upload if you get the feed of storage Cis from the team as i see your requirement is just to have CI Name.

Regards

RP

Thanks for the response Rahul.

How to upload the xls file and how to use that file during a discovery process?

 

steps are here

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0817437

 

Regards

RP