Previous Topic: Create the Template Inventory Collection ModuleNext Topic: Create an INI File


Create a Template File for the NRI Agent

Create a template file that is to be used in the NRI agent. For this example, the content of the template file is taken from asset management and the format of the file is the same as the AM template file. The name of the template file in this example is template.tpl.

The template.tpl file is created with the following content:

//
// A MIF File Created with the Asset Management system
//
Start Component
 Name = "User Template"
 UpdateType = "Never"
 UpdateMsg = ""
 LastUpdated = ""
 Description = "Basic Template for Users"
 Start Group
  Name = "User Information"
  Id = 1
  Class = "NETCON|User Information|1.0"
  Description = ""
  Start Attribute
   Name = "User Name"
   Id = 1
   Storage = Specific
   Type = String(32)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "First Name"
   Id = 2
   Storage = Specific
   Type = String(64)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "Last Name"
   Id = 3
   Storage = Specific
   Type = String(64)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "Address"
   Id = 4
   Storage = Specific
   Type = String(128)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "ZipCode"
   Id = 5
   Storage = Specific
   Type = String(32)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "City"
   Id = 6
   Storage = Specific
   Type = String(128)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "Country"
   Id = 7
   Storage = Specific
   Type = String(64)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "Home Phone"
   Id = 8
   Storage = Specific
   Type = String(32)
   Access = Write-Only
  End Attribute
 End Group
 Start Group
  Name = "Company Information"
  Id = 2
  Class = "NETCON|Company Information|1.0"
  Description = ""
  Start Attribute
   Name = "Department"
   Id = 1
   Storage = Specific
   Type = String(64)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "Phone"
   Id = 2
   Storage = Specific
   Type = String(32)
   Access = Write-Only
  End Attribute
 End Group
 Start Group
  Name = "Additional Information"
  Id = 3
  Class = "NE	TCON|Additional Information|1.0"
  Description = ""
  Start Attribute
   Name = "Additional Text"
   Id = 1
   Storage = Specific
   Type = String(256)
   Access = Write-Only
  End Attribute
  Start Attribute
   Name = "Default Workstation"
   Id = 2
   Storage = Specific
   Type = String(64)
   Access = Write-Only
  End Attribute
 End Group
End Component