- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 03:05 AM
Is there a way to do that through Discovery?
Any hints would be appreciated.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 07:13 AM
Hi Ivan,
For your probe, you have to write sensor like this. Try and let me know if that works.
new DiscoverySensor({
process: function(result) {
if (gs.nil(result.output))
return;
this.parseOutput(result.output);
},
parseOutput: function(output) {
var ci = this.getCmdbRecord();
var line = output.split("\n");
ci.u_username= line[2];
},
type: "DiscoverySensor"
});
Regards,
Vivek
Based on the impact hit like, helpful or correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2017 11:55 AM
Thanks a lot Vivek!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2019 05:46 AM
Hi Vivek,
how we can do this in London,(where there is pattern) and how we can get/capture the discovered login name even it is not in the sys User table.
Bharat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2018 11:06 AM
Hello Vivek,
I using the exact same steps that were specified above. I ran PS on the server and my windows laptop and I'm getting the last logged in user. I can't seem to get it to work through service-now. In the ECC queue, I am getting an error in the state value.
Regards,
Abdul