{"id":1189,"date":"2017-12-15T08:44:01","date_gmt":"2017-12-15T08:44:01","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=1189"},"modified":"2017-12-15T08:47:44","modified_gmt":"2017-12-15T08:47:44","slug":"handles-in-linux-unix","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/handles-in-linux-unix\/","title":{"rendered":"Handles in Linux \/ Unix"},"content":{"rendered":"<p class=\"description_pui\">This simple module gives you opened handles in your SO, by using lsof tool (usually installed or available in the SO addons). Could be easily modified to search on a given process or user only.<\/p>\n<h2>Module data<\/h2>\n<pre>module_begin\u00a0\r\nmodule_name Handles\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec lsof | wc -l\u00a0\r\nmodule_end\r\n\r\n<\/pre>\n<p>A modified version to show ONLY INET handles:<\/p>\n<pre>module_begin\u00a0\r\nmodule_name Handles_INET\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec lsof -i | wc -l\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This simple module gives you opened handles in your SO, by using lsof tool (usually installed or available in the SO addons). Could be easily modified to search on a given process or user only. Module data module_begin\u00a0 module_name Handles\u00a0 module_type generic_data\u00a0 module_exec lsof | wc -l\u00a0 module_end A modified version to show ONLY INET [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[25,6],"tags":[402,73],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1189"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=1189"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1189\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=1189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=1189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=1189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}