Cisco Cisco Firepower Management Center 4000 Guia Do Programador

Página de 60
 
3-23
FireSIGHT System Remediation API Guide
 
Chapter 3      Communicating with the Remediation Subsystem
  Defining Exit Statuses
Alternatively, your module may return integers between 129 and 254, inclusive, as custom exit statuses. 
If your remediation module returns custom exit statuses, you must define the set of exit statuses it can 
return. Each 
exit_status
 element you use in 
module.template
 represents a custom exit status that your 
remediation module can return. For more information, see 
The 
exit_status
 element accepts a string that describes a return code. In addition, the element requires 
an attribute, 
value
, that accepts a unique integer between 129 and 255. This attribute associates 
remediation module return codes with their descriptions, which the user can see in remediation status 
event views.
The following example illustrates valid custom 
exit_status
 elements.
<exit_status value="138">syslog error</exit_status>
<exit_status value="139">unknown error</exit_status>