For Linux Serve Discovery Pattern, Under Linux-Storage step we have one more step 16.117(Update total disk space on Linux CI).

Rakesh17
Kilo Contributor

For Linux Serve Discovery Pattern, Under Linux-Storage step we have one more step 16.117(Update total disk space on Linux CI). We have to ignore one table space i.e File system(cmdb_ci_file_system). To Achieve this I have removed file system space from the script where it is computing  total space. I just want to know about the best practice. Can we do this or not?

3 REPLIES 3

Rahul Priyadars
Giga Sage
Giga Sage

in my view do not remove any thing which is OOTB. Simply add your new use case as a part of pattern extension. You can add your customizations in EXTENSION section of Pattern.

We have don this in case of Linux Pattern . Make changes in main Linux Pattern in extension section.

Yellow mark is our customization.

find_real_file.png

Hope this helps.

Regards

RP

 

Thanks Rahul for the reply.
I am new to discovery. 

I have modified the script by following below path:
Linux Server-->Under Identification-->discovery-->Linux-Storage(Step)-->Update total disk space on Linux CI.
We dont want File System space. Hence I have removed the underlined yellow part.I have tested in lower instance and it is working as expected

find_real_file.png

good man. Maintain OOTB stuffs and add on top of it your customizations.

nice example for extending pattern is below

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

 

Please close the thread if you got the answer.

 

Regards

RP