---
title: "How to monitor the ulimit command for resources on Linux shell?"
description: "Monitoring the ulimit command output on Linux shell requires reformatting its data for the Toolkit plugin. The solution uses sed to remove commas and insert delimiters, enabling the Toolkit plugin to parse and display ulimit information correctly."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360007391873-geneos-how-to-monitor-the-ulimit-command-for-resources-on-linux-shell/index.html"
---
The Toolkit plugin can be used to monitor output from commands. This article provides a sample which reformats the data with comma delimiters such that the Toolkit plugin can parse the output.

The `ulimit -a` command displays some comma characters by itself, which may cause confusion with the delimiter in Toolkit plugin.

![ulimit command](https://docscdn.itrsgroup.com/faq/images/geneos/ulimit-a-command.png)

Here we have picked the `sed` command to first strip out the commas and extra space characters, and then insert commas in place of the parentheses.

![sed command](https://docscdn.itrsgroup.com/faq/images/geneos/sed-command.png)

```
ulimit -a | /bin/sed -e 's/,//' -e 's/\s\{1,\}/ /g' -e 's/ (/,/' -e 's/) /,/'
```

Below is the Active Console output when this is configured in the Toolkit plugin.

![ulimit command in Toolkit Dataview](https://docscdn.itrsgroup.com/faq/images/geneos/toolkit-ulimit-dataview.png)

Below is the sampler configuration in XML file:

```
<sampler name="Toolkit_ulimit">
	<sampleInterval>
		<data>300</data>
	</sampleInterval>
	<plugin>
		<toolkit>
			<samplerScript>
				<data>/bin/echo &quot;Resource,Unit,Limit&quot;;ulimit -a | /bin/sed -e &apos;s/,//&apos; -e &apos;s/\s\{1,\}/ /g&apos; -e &apos;s/ (/,/&apos; -e &apos;s/) /,/&apos;</data>
			</samplerScript>
		</toolkit>
	</plugin>
</sampler>
```


