How to get Kernel version information using extension section of Discovery Pattern

_Yash24
Tera Guru

Hi All

I got requriment where I need to manage LinuxServer kernel version information, which is not currently implemented in OOTB also I want to get command to manage kernel information in the extension section of Discovery Pattern and creates extension fields in cmdb_ci_linux_server

How to do that? and what command we can use?

Thanks,

Yash

1 ACCEPTED SOLUTION

AJ-TechTrek
Giga Sage
Giga Sage

Hi @_Yash24 ,

 

You can create a extension section in Linux Server Pattern and create a step to get the kernal version, Refer the below article, where couple of commands mentioned to get the Kernal version.

 

Best Cammand to get Kernal Version only -=  uname –r

 

https://www.scaler.com/topics/how-to-check-kernel-version-in-linux/

 

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

 

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

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

ServiceNow Community Rising Star 2024

View solution in original post

5 REPLIES 5

Rahul Priyadars
Tera Sage

Here is how its done as a concept. Just try to replace it with your Linux Commands which will fetch Kernal Info and Parse it.

Example is for Windows use case but you can easily build it for ur use case too.

 

https://developer.servicenow.com/connect.do#!/event/knowledge19/LAB1542/knowledge19_LAB1542_extendin...

 

Regards

RP

 

AJ-TechTrek
Giga Sage
Giga Sage

Hi @_Yash24 ,

 

You can create a extension section in Linux Server Pattern and create a step to get the kernal version, Refer the below article, where couple of commands mentioned to get the Kernal version.

 

Best Cammand to get Kernal Version only -=  uname –r

 

https://www.scaler.com/topics/how-to-check-kernel-version-in-linux/

 

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

 

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

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

ServiceNow Community Rising Star 2024

Hi @AJ-TechTrek  and @Rahul Priyadars ,

Thank you for the reply.

First I need to implement it in PDI, Is it possible to implement in my PDI?

I tried but In PDI I dont have MID server installed so at the time of Debug (Debug Mode) its asking for MID server IP details and couldn't procceed ahead from that step.

Is there any other way I can implement this solution in PDI?

Or can we skip debug mode step and procceed with next step in PDI? if yes then how?

 

Thanks,

Yash

Hi @_Yash24 ,

 

Yes you can try on your PDI as well, use the free virtual machines on Azure and install the mid application on windows server.

 

Azure will provide the two virtual machine (Windows and Linux) free to troubleshoot and learn the Azure things.

 

Let me know if any more information required on this.

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

ServiceNow Community Rising Star 2024