For Linux Serve Discovery Pattern, Under Linux-Storage step we have one more step 16.117(Update total disk space on Linux CI).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 08:28 PM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 09:41 PM
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.
Hope this helps.
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 09:54 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 11:51 PM
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