Menu

Create 2 x new field on all physical devices

Dli
2013-08-10
2013-08-14
  • Dli

    Dli - 2013-08-10

    Hi,

    I test Itop from 2 months... Funny.
    Now i want to add 2 news fields on all physical devices :
    "Position" and "Parent"
    This fields are for the position in rack and parent of device for all devices who are child than module Drawer, Blade server, etc...

    I read http://www.combodo.com/wiki/doku.php?id=customization:add-attribute-sample
    But this tuto help only for servers class. When i open the file datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml, i don't found all other class devices.
    Don't found : SanSwitch, Tapelibrary, NAS, PC, Peripheral...

    May be someone can help me?

     
  • Dli

    Dli - 2013-08-13

    I found my solution for all this devices
    Bandothèque (TapeLibrary)
    Equipement réseau (NetworkDevice)
    NAS (NAS)
    Serveur (Server)
    Switch SAN (SANSwitch)
    Système de stockage (StorageSystem)

    But don't find how modifie this other class
    Chassis (Enclosure)
    PDU (PDU)
    Rack (Rack)

    I try with upgrade with the file iTop\datamodels\2.x\itop-datacenter-mgmt\datamodel.itop-datacenter-mgmt.xml
    but no match...

     

    Last edit: Dli 2013-08-13
  • Dli

    Dli - 2013-08-14

    Ok done i resolve it.

    I had my 2 news fileds in all my physical devices :
    Equipement réseau (NetworkDevice)
    NAS (NAS)
    Serveur (Server)
    Switch SAN (SANSwitch)
    Système de stockage (StorageSystem)
    Chassis (Enclosure)
    PDU (PDU)
    Rack (Rack)

    But i found in PDU class ther is'nt Nb_U flied.
    It's not very important but it was pratice if this filed exist in. i'll try to fix it later.

    in iTop, i found the dépendances datamodels for my modifications :

    iTop\datamodels\2.x\itop-config-mgmt\datamodel.itop-config-mgmt.xml for
    Equipement réseau (NetworkDevice)
    Serveur (Server)

    iTop\datamodels\2.x\itop-storage-mgmt\datamodel.itop-storage-mgmt.xml for
    NAS (NAS)
    Switch SAN (SANSwitch)
    Système de stockage (StorageSystem)

    iTop\datamodels\2.x\itop-datacenter-mgmt\datamodel.itop-datacenter-mgmt.xml for
    Chassis (Enclosure)
    PDU (PDU)
    Rack (Rack)

    I crate 3 files with the dependances for my modifications and i fix it on my itop.
    It's ok for me.

    Thanks for your silence modo lol

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.