I need to extend the pattern to get the Environment details of servers in my organization

Ashupakasma
Tera Expert

Hi Experts!

 

Hope all are doing good.

 

I am reaching out here to get some solution on "to extend the pattern to get the Environment details of servers in my organisation". That details is updated in Registery value of the servers, so I have tried to extend the -Windows OS - Servers pattern.


I am trying to get it via Get Registery Key Operation, but not able to sucess.

Can I get some help on this.

 

Thanks!

 

Note :I have tried to search and get 

https://www.servicenow.com/community/itom-articles/extending-patterns-method-2/ta-p/2326781

https://www.servicenow.com/community/itom-articles/extending-patterns/ta-p/2326816

But not able to solve my issue.

 

2 ACCEPTED SOLUTIONS

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Ashupakasma 

 

I see you are directly using the actual win server cmdb ci name itself in the registry step, instead you better use a temporary value and then copy it to actual CI in different step.

 

Though you did it, still I could see the env value is set in CI attributes section in 6th image, so what is the concern here that its not working.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.

View solution in original post

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Ashupakasma 

 

You should not change the source table name in steps 8 image, keep the source table also as win server CI name.

 

Once you do above change, in debug mode go to next step and in right CI attributes view you should see all the win cI attributes filled properly

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.

View solution in original post

11 REPLIES 11

Rahul Priyadars
Giga Sage
Giga Sage

I assume you have extended the Pattern for same and added steps there.

 

On any given server hope you are able to fire the same command to get the registry value?

 

Below recent article can help on how to use Registry commands - https://www.servicenow.com/community/itom-articles/version-prod-id-and-edition-is-not-populated-for-...

 

Regards

RP

Hi @Rahul Priyadars ,

 

I tried to run the same command but did not get any output for the environment.

I am still struggling to achieve this.

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Ashupakasma 

 

Can you share the screenshot and explain what issue are you facing in the pattern step with registry operation to understand better

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.

Hello @SiD2 ,

 

Thanks for your prompt reply on my query. I am attaching here the steps that I followed till now.

 

Image 1st, is the requirement, on which I am working upon.

Imgae 2nd, is where I have created an extension under-Windows OS server

In third step, I have tried the operation"Get Registery Key"

In 4th step, I get the environment details.

5th and 6th steps, I am trying to get the desired result, according to my requirement, but not getting success.

 

Kindly help on this.