{"id":14355,"date":"2024-12-23T16:15:31","date_gmt":"2024-12-23T21:15:31","guid":{"rendered":"https:\/\/cyflex.com\/?page_id=14355"},"modified":"2025-01-07T14:30:25","modified_gmt":"2025-01-07T19:30:25","slug":"errs_state","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/errs_state\/","title":{"rendered":"errs_state"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Retrieve errors from the error state manager database. The retrieved errors are written to a readable file.\u00a0<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>errs_state<\/strong> c=[count] n=[name] p=[process_name]\u00a0 tid=[Process ID] f=[filename] [debug]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl><\/dl>\n<table>\n<tbody>\n<tr>\n<td>c<\/td>\n<td>Optional. Specify the maximum number of errors to display. The default is 1000 errors.<\/td>\n<\/tr>\n<tr>\n<td>n<\/td>\n<td>Optional. Specify the path and name of the database to query.<\/td>\n<\/tr>\n<tr>\n<td>p<\/td>\n<td>Optional. Specify the process name to pull on errors related to the process name. Note this does not work with the process ID argument.<\/td>\n<\/tr>\n<tr>\n<td>tid<\/td>\n<td>Optional. Specify the process ID to pull on errors related to the process ID. Note this does not work with the process name argument.<\/td>\n<\/tr>\n<tr>\n<td>f<\/td>\n<td>Optional. Specify a path and filename to pipe the output.\u00a0\u00a0<\/td>\n<\/tr>\n<tr>\n<td>debug<\/td>\n<td>Optional. Debug mode. This prints all of the errors to the console as well as the file, so should not be used by default.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>errs_state<\/strong><\/p>\n<p>The above command displays a list of 1000 of the newest errors logged since the last &#8216;go&#8217; was performed or the last &#8216;clear_error&#8217; command.<\/p>\n<p><strong>errs_state<\/strong> c=500<\/p>\n<p>The above command displays a list of the 500\u00a0newest errors logged since the last &#8216;go&#8217; was performed or since the last &#8216;clear error&#8217; command.<\/p>\n<p><strong>errs_state<\/strong> name=\/data\/errors\/errors.db_backup<\/p>\n<p>The above command displays a list of the 1000 newest errors logged since the last &#8216;go&#8217; from the errors.db_backup database.<\/p>\n<p><strong>errs_state<\/strong> p=cell_mon<\/p>\n<p>The above command displays the 1000 newest errors generated by &#8216;cell_mon&#8217; CyFlex task.<\/p>\n<p><strong>errs_state<\/strong> tid=12345<\/p>\n<p>The above command displays the 1000 newest errors generated by the process ID of 12345. This argument can be particularly useful when you are looking for a specific instance of a task that has multiple versions of it running like &#8216;gp_test&#8217; or &#8216;compvar&#8217;. You can find the process ID by running the &#8216;sin&#8217; command. Example:\u00a0 sin -P compvar<\/p>\n<p><strong>errs_state<\/strong> p=cell_mon\u00a0 f=\/tmp\/cell_mon.errors<\/p>\n<p>The above command displays the 1000 newest errors generated by &#8216;cell_mon&#8217; CyFlex task and output the errors to a file\u00a0called \/tmp\/cell_mon.errors<\/p>\n<p><strong>errs_state<\/strong>\u00a0 name=\/data\/errors\/errors.db_backup\u00a0\u00a0 p=cell_mon\u00a0 f=\/tmp\/cell_mon.errors\u00a0 c=100<\/p>\n<p>The above command displays the 100 newest errors generated by &#8216;cell_mon&#8217; from the errors.db_backup.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Retrieve errors from the error state manager database. The retrieved errors are written to a readable file.\u00a0 Enter: errs_state c=[count] n=[name] p=[process_name]\u00a0 tid=[Process ID] f=[filename] [debug] Where: c Optional. Specify the maximum number of errors to display. The default is 1000 errors. n Optional. Specify the path and name of the database to query. [&hellip;]<\/p>\n","protected":false},"author":30,"featured_media":0,"parent":1948,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-14355","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/14355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=14355"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/14355\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1948"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=14355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}