Class Index | File Index

Classes


Class Asset

The Asset class provides methods to store asset information representing enterprise assets. This asset information is used to provide additional metadata to aid in analysis of inbound events; the mapping service is used to "attach" asset information to these events. The class accepts a pre-defined set of asset attributes:

* : This field is used as a key field for mapping metadata into the event ^ : This field is copied into the raw event structure for use in correlation. Other fields are available via lookup for reporting.
Defined in: asset.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Asset(properties)
Constructs an instance of the Asset class which represents objects managed by Sentinel.
Method Summary
Method Attributes Method Name and Description
 
find()
Finds the asset(s) in the Sentinel database.
 
save()
This method saves the Asset object in the Sentinel database.
Class Detail
Asset(properties)
Constructs an instance of the Asset class which represents objects managed by Sentinel.
Author: Novell Engineering.
var asset1 = new Asset();
asset.Description = "Main web server";
asset.IPv4 = "10.0.0.23";
var asset2 = new Asset({IPv4:"10.0.0.24",Vendor:"Novell"});
asset2.MAC = "0f:34:23:12:56:23";
asset.save();
asset2.save();
Parameters:
{Object} properties
Set of pre-defined properties used to initialize this object
Method Detail
{Asset[]} find()
Finds the asset(s) in the Sentinel database. NOT YET IMPLEMENTED.
Returns:
{Asset[]} Matching assets.

{Boolean} save()
This method saves the Asset object in the Sentinel database.

Example:

this.testasset = new Asset({"Hostname":"testname","IPv4":"10.0.0.12"});
this.testasset.save();
Returns:
{Boolean} Result Result of the attempted save.

©2008
Documentation generated by JsDoc Toolkit 2.0.2 on Thu Oct 07 2010 07:23:17 GMT-0400 (EDT)