How to use Asset Discovery
Asked by sharath sunkari:

I have installed Asset Discovery on my machine and made some configurations in it. Actually here I'm not getting what credentials to give in credentials tab. I need to scan the laptops connected to my office ip . can someone guide me on this . Thanks in advance


Answers:
author: Volodymyr Batrukh
body: [@sharath sunkari](/t5/user/viewprofilepage/user-id/5219178) now you need to configure export from your Discovery tool to send all the data to JSM Assets:  
1) Generate new token from your newly created import  
![Screenshot 2024-03-25 at 13.58.15.png](https://community.atlassian.com/t5/image/serverpage/image-id/314168iC19D8B374D8A31C2/image-size/large?v=v2&px=999 "Screenshot 2024-03-25 at 13.58.15.png")  
2) Use this toke for Jira Service Management (Cloud) export type in discovery. you can find more details here - <https://confluence.atlassian.com/assetapps/export-1168847949.html>   

![Screenshot 2024-03-25 at 13.59.05.png](https://community.atlassian.com/t5/image/serverpage/image-id/314169iBED87FA182AEA808/image-size/large?v=v2&px=999 "Screenshot 2024-03-25 at 13.59.05.png")  

3) Run Discovery scan. Newly generated scan results should be transferred to Jira  

If you need more detailed support please contact official [Atlassian support](https://support.atlassian.com/contact/#/)  

Regards,  
Volodymyr B

comments: author: sharath sunkari
body: Thanks for the help. My laptop info tracked and inserted the data into objects.After inserting the data let say I added one more drive as "E". will this change add directly into the asset


author: Volodymyr Batrukh
body: Hi [@sharath sunkari](/t5/user/viewprofilepage/user-id/5219178)   

if Windows_StorageDevice.pat is enabled for your scans on the next scan the new E drive should be detected and displayed in Jira.   
To do the scans automatically from your machine, please install Discovery as a service (via Service tab or run Discovery.exe -i). In that way all the scan will be done automatically within configured period.   

Regards,  
Volodymyr B.


author: sharath sunkari
body: Windows_StorageDevice.pat is enabled for my scan and I have installed discovery as a service and i can find the latest scans in the /discovery_tools/scans folder. But here my concern is how the updated data will be inserted to the Jira automatically without any configuration. can you plz let me know im new to this entire concept i tried maximum from my side to learn this stuff. Apologies it might be irritating to you but i just wanted to learn


author: Volodymyr Batrukh
body: [@sharath sunkari](/t5/user/viewprofilepage/user-id/5219178) if you have configured export type as described above (with using token) each time Discovery tool is doing scans data is automatically exported to Jira (and scan results are removed from your machine) and all the previous objects in Assets are updated.


author: Volodymyr Batrukh
body: [@sharath sunkari](/t5/user/viewprofilepage/user-id/5219178) it seems you did some misconfiguration. Empty credentials should reference to your local laptop scan settings (you can change IP range to 127.0.0.1). And filled credentials should reference to "laptop office" scan settings![Screenshot 2024-03-25 at 13.07.47.png](https://community.atlassian.com/t5/image/serverpage/image-id/314150i767F30F6A74BB091/image-size/large?v=v2&px=999 "Screenshot 2024-03-25 at 13.07.47.png")

comments: author: Volodymyr Batrukh
body: logs cannot reach devices by provided credentials


author: sharath sunkari
body: I configured export type as file copy  
![file copy.png](https://community.atlassian.com/t5/image/serverpage/image-id/314133i85EA6D2F50ABEF25/image-size/large?v=v2&px=999 "file copy.png")

![SS 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/314134iA9DC9C167AF925C2/image-size/large?v=v2&px=999 "SS 2.png")![SS.png](https://community.atlassian.com/t5/image/serverpage/image-id/314135i87633321CEC6FAE3/image-size/large?v=v2&px=999 "SS.png")


author: Volodymyr Batrukh
body: Hi [@sharath sunkari](/t5/user/viewprofilepage/user-id/5219178)   

To scan network devices from your network you'll need:

1. Configure IPs range in scan settings - <https://confluence.atlassian.com/display/ASSETAPPS/Scan+settings>
2. Configure credentials for scanning (windows - WMI, linux-based - ssh) <https://confluence.atlassian.com/display/ASSETAPPS/Credentials>
3. Configure export to Jira DC or Jira Cloud (<https://confluence.atlassian.com/display/ASSETAPPS/Export>)
4. Run Discovery.exe to start scan and automatically export data to Jira  

Regards,  
Volodymyr B.

comments: author: sharath sunkari
body: Hi [@Volodymyr Batrukh](/t5/user/viewprofilepage/user-id/2795789)   

I have gone through the documentation and set up all the configurations.  
What actually pattern mean..?  
I gave localhost in scan Ip range, does it mean it will scan all the devices connected to that same ip..?  
what credentials need to give in credentail![credentials.png](https://community.atlassian.com/t5/image/serverpage/image-id/314093i380B0237A83BD82F/image-size/large?v=v2&px=999 "credentials.png")![patterns.png](https://community.atlassian.com/t5/image/serverpage/image-id/314095i06AE674F9967E6E8/image-size/large?v=v2&px=999 "patterns.png")![Scan.png](https://community.atlassian.com/t5/image/serverpage/image-id/314094i8CA284FFC1915B94/image-size/large?v=v2&px=999 "Scan.png")s tab


author: Volodymyr Batrukh
body: [@sharath sunkari](/t5/user/viewprofilepage/user-id/5219178) , pattern describe the part of the information that will be collected from the corresponding device. Some of the patterns are required for device type.   

In your configured example two hosts from scan setting 0001 will be tried to scan by configured credentials.   
In your example you have created empty Windows credentials that will allow to scan just your local machine 127.0.0.1. Scan for other device will fails - as credentials doesn't much.   

Simply saying to scan another Windows machine in your network you will need to:  
1) Add separate scan setting for the device/set of devices  
2) Add Windows credentials for local administrator on scanned device(s). Select configured scan settings from step 1 (instead of All)  
3) The scanned device should be allowed to be scanned over WMI (configured WMI rules, and Admin user should be able to run WMI) - <https://serverfault.com/questions/28520/which-permissions-rights-does-a-user-need-to-have-wmi-access-on-remote-machines>  

- Volodymyr B.


author: sharath sunkari
body: I got your point . let say i have 25 devices (laptops ) conneted to my ip. 25 users will use this 25 laptops. Do i need to set up 25 scans by giving each administrator credentials as each user having their own credentials


author: Volodymyr Batrukh
body: Ideally you will need to configure separate admin user (or user with remote WMI access) on each laptop and use this user for scanning devices via your Discovery instance and configure one scan setting including all the devices.  
If that is not possible, you'll need to add credentials for each device separately. scan setting still can contain all the devices, but it will increase scan time as we will try to reach each device by all the credentials...


author: sharath sunkari
body: I made the below configurations

![credentials test.png](https://community.atlassian.com/t5/image/serverpage/image-id/314131iFD8D78292C68C2AB/image-size/large?v=v2&px=999 "credentials test.png")![pattern test.png](https://community.atlassian.com/t5/image/serverpage/image-id/314132i7B1B1027D041DBCC/image-size/large?v=v2&px=999 "pattern test.png")  

I have exited and opened the command prompt and executed discovery.exe  
and no zip file is downloaded or generated


author: Volodymyr Batrukh
body: By default (if you did not configure any export type) all scan results should be created in \<Discovery root folder\>/scans folder. Are you seeing any errors in \<Discovery root folder\>/logs ?  

BTW for you local machine you can use 127.0.0.1 and empty windows credentials.


author: sharath sunkari
body: I made changes  
![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/314155i9BAF9C5E24EF5492/image-size/large?v=v2&px=999 "1.png")![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/314153iFDB2C75F18F86F5C/image-size/large?v=v2&px=999 "2.png")![zip.png](https://community.atlassian.com/t5/image/serverpage/image-id/314154iB4C376F06AE047E7/image-size/large?v=v2&px=999 "zip.png")  

I created a Test Schema using the IT template   
I created a import naming SS  
But im unable to find enable option  
im able to edit mapping but source fields are not visible  

![3.png](https://community.atlassian.com/t5/image/serverpage/image-id/314158iDD41751FABFAD49E/image-size/large?v=v2&px=999 "3.png")![4.png](https://community.atlassian.com/t5/image/serverpage/image-id/314157iF765D139DE4196E9/image-size/large?v=v2&px=999 "4.png")![5.png](https://community.atlassian.com/t5/image/serverpage/image-id/314156i02C7D9F4653D75BE/image-size/large?v=v2&px=999 "5.png")  

<br />


author: sharath sunkari
body: Could you please help me in solving this literally im trying from last two days to resolve this


author: Volodymyr Batrukh
body: Sorry, I am a bit confused. As Discovery scan and Assets configuration are two different topics...  

Were you able to get scan results from your local network/local machine?  

If so you can use scan .zip file to create import Assets configuration. While creating new import configuration please just select newly created scan result zip. The schema should be created automatically:  

![Screenshot 2024-03-25 at 13.30.41.png](https://community.atlassian.com/t5/image/serverpage/image-id/314161i5964AD335D9F8DD5/image-size/large?v=v2&px=999 "Screenshot 2024-03-25 at 13.30.41.png")![Screenshot 2024-03-25 at 13.34.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/314162i3353FFA0380000E0/image-size/large?v=v2&px=999 "Screenshot 2024-03-25 at 13.34.21.png")  

after that you should generate new token from the configuration and use it for the JSM Cloud export in Discovery. So all scans from the discovery will be transferred to JSM


author: sharath sunkari
body: Now i have enabled cereate object types and attributes automatically  
![6.png](https://community.atlassian.com/t5/image/serverpage/image-id/314164iE4B5CF43B6F29267/image-size/large?v=v2&px=999 "6.png")  

Now i have clicked the import button  
![7.png](https://community.atlassian.com/t5/image/serverpage/image-id/314165i1B9E92AF2DD7F28D/image-size/large?v=v2&px=999 "7.png")  

Data imported with some errors  

![8.png](https://community.atlassian.com/t5/image/serverpage/image-id/314166i6B38D37A64D40182/image-size/large?v=v2&px=999 "8.png")  

Next what to do from here   
can you guide me step by step from here. I am clear upto this point


author: sharath sunkari
body: I am trying to fetch the data of device connected to an IP.I am attaching the Screenshots for your reference. I configured credentials for Bhanu Teja and clicked on Test Button by giving the ip mentioned in the previous screen(i.e, scan setting id 00002) i am getting an error connection port 5985 is not reachable.![17.png](https://community.atlassian.com/t5/image/serverpage/image-id/314813i31E814FBF65003B0/image-size/large?v=v2&px=999 "17.png")![18.png](https://community.atlassian.com/t5/image/serverpage/image-id/314812i9E7A8EFE466E129A/image-size/large?v=v2&px=999 "18.png")![19.png](https://community.atlassian.com/t5/image/serverpage/image-id/314811i48F2285AEC1E2EFC/image-size/large?v=v2&px=999 "19.png")![20.png](https://community.atlassian.com/t5/image/serverpage/image-id/314814i81F906E83A1A04E6/image-size/large?v=v2&px=999 "20.png")


author: Volodymyr Batrukh
body: Hi [@sharath sunkari](/t5/user/viewprofilepage/user-id/5219178)   

it seems that WinRm is blocked ob the machine you are trying to access. You need properly configure the permissions for the user access the machine (see more details [here](https://serverfault.com/questions/28520/which-permissions-rights-does-a-user-need-to-have-wmi-access-on-remote-machines)) and enable WMI firewall rules. I.e. via power shell:  

Enable-NetFirewallRule -DisplayName ""Windows Management Instrumentation (ASync-In)""  
Enable-NetFirewallRule -DisplayName ""Windows Management Instrumentation (DCOM-In)""  
Enable-NetFirewallRule -DisplayName ""Windows Management Instrumentation (WMI-In)""  
Enable-NetFirewallRule -DisplayName ""Virtual Machine Monitoring (Echo Request - ICMPv4-In)""  


author: sharath sunkari
body: IM unable to do the process for WMI cofigurations which you shared as a link.   
Today I tried to get the data of my personal laptop at home. I have set IP of my personal laptop(152.58.197.94) in the scan settings as my personal laptop is connected to that IP. I gave the credentials of my personal lappy and tried to click on the test button by giving the mentioned IP(152.58.197.94) but its showing as IP not reachable though i installed and executed the Discovery_Agent.exe -(my token) in my personal laptop. Can you please guide me. if possible can we have a call for better understanding of me.  
Thanks.


author: sharath sunkari
body: IM unable to do the process for WMI cofigurations which you shared as a link.   
Today I tried to get the data of my personal laptop at home. I have set IP of my personal laptop(152.58.197.94) in the scan settings as my personal laptop is connected to that IP. I gave the credentials of my personal lappy and tried to click on the test button by giving the mentioned IP(152.58.197.94) but its showing as IP not reachable though i installed and executed the Discovery_Agent.exe -(my token) in my personal laptop. Can you please guide me. if possible can we have a call for better understanding of me.  
Thanks.  
![credentials for personal.png](https://community.atlassian.com/t5/image/serverpage/image-id/315050i3A395D7501B2E8C3/image-size/large?v=v2&px=999 "credentials for personal.png")![sacn settings for personal.png](https://community.atlassian.com/t5/image/serverpage/image-id/315051i28356BF916E08B6B/image-size/large?v=v2&px=999 "sacn settings for personal.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/315052i10ECD8389421A171/image-size/large?v=v2&px=999 "image.png")


Tags: cloud

jira-service-management

jira-service-management-cloud