Vorheriges Thema: Erstellen des Vorlageninventar-ErfassungsmodulsNächstes Thema: Erstellen einer INI-Datei


Erstellen einer Vorlagendatei für den NRI-Agenten

Erstellen Sie eine Vorlagendatei, die vom NRI-Agenten verwendet wird. Für dieses Beispiel wurde der Inhalt der Vorlagendatei dem Asset Management entnommen, und das Format der Datei stimmt mit dem Format der AM-Vorlagendatei überein. Der Name der Vorlagendatei in diesem Beispiel lautet "template.tpl".

Die Datei "template.tpl" wird mit dem folgenden Inhalt erstellt:

//
// Eine mit dem Asset Management-System erstellte MIF-Datei
//
Start Component
 Name = "Benutzervorlage"
 UpdateType = "Nie"
 UpdateMsg = ""
 LastUpdated = ""
 Description = "Basisvorlage für Benutzer"
 Start Group
  Name = "Benutzerinformationen"
  Id = 1
  Class = "NETCON|Benutzerinformationen|1.0"
  Description = ""
  Start Attribute
   Name = "Benutzername"
   Id = 1
   Storage = Spezifisch
   Type = String(32)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Vorname"
   Id = 2
   Storage = Spezifisch
   Type = String(64)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Nachname"
   Id = 3
   Storage = Spezifisch
   Type = String(64)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Adresse"
   Id = 4
   Storage = Spezifisch
   Type = String(128)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Postleitzahl"
   Id = 5
   Storage = Spezifisch
   Type = String(32)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Stadt"
   Id = 6
   Storage = Spezifisch
   Type = String(128)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Land"
   Id = 7
   Storage = Spezifisch
   Type = String(64)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Private Telefonnummer"
   Id = 8
   Storage = Spezifisch
   Type = String(32)
   Access = Nur Schreibzugriff
  End Attribute
 End Group
 Start Group
  Name = "Unternehmensinformationen"
  Id = 2
  Class = "NETCON|Unternehmensinformationen|1.0"
  Description = ""
  Start Attribute
   Name = "Abteilung"
   Id = 1
   Storage = Spezifisch
   Type = String(64)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Telefon"
   Id = 2
   Storage = Spezifisch
   Type = String(32)
   Access = Nur Schreibzugriff
  End Attribute
 End Group
 Start Group
  Name = "Zusätzliche Informationen"
  Id = 3
  Class = "NE	TCON|Zusätzliche Informationen|1.0"
  Description = ""
  Start Attribute
   Name = "Zusätzlicher Text"
   Id = 1
   Storage = Spezifisch
   Type = String(256)
   Access = Nur Schreibzugriff
  End Attribute
  Start Attribute
   Name = "Standard-Workstation"
   Id = 2
   Storage = Spezifisch
   Type = String(64)
   Access = Nur Schreibzugriff
  End Attribute
 End Group
End Component