first i'm sorry for the english cause i'am french :p
so, i tried to create a new module and everithing work fine (that a good thing :D)
i add on the data Model some entities like Virtual_server, hypervisor, appliance, rack Storage,pdu, ……
but now i'm limited cause i need some documentation
in fact now tried to add for exemple, an hypervisor (vmware) on a rack,
the hypervisor is a 2U large
i put it in a 42U's rack
1) how can i deal with the ORM to execute an update request saying that the free space in the rack was 42-2 ?
2) is there any documentation of the parameter needed on the used functions ? (like "bPropagate", "iDistance" on the relationship is there some other attributes possible same question about the Init_AddAttribute() (and others ^^).
i hope that you could help me a litle,
have a good day.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1-bis) in fact updating the database coul be done with a trigger but it's not really good
an other better solution was to modify the view of the item Rack Storage and adding a line with a dinamic sum of all the size of the differents equiments stored in the rack
but i don't know how to deal with the orm to do this type of request too …
(sorry for the double post i don't see any "edit" button )
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
nobody can help me ? that make a long time i try to solve my prolem
i'm a litle bit disapointed of the documentation of the code there is really few documented functons .
for an open source project, that make the contribution process less efficient then it could be.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The easiest way to do your calculation is with the SELECT statement. You can select all Server in the Rack and count the rack units. (I`m not familiar with your code and it`s just an idea)
You shouldn`t reduce the available size while creating a new server cause iTop should just be your reporting tool. You should know where a server is installed and choose the correct rack units. What happens if a server will be moved to another rack? You first need to free up the rack units in the old rack and then install it in the other rack. I can`t get the problem right now but maybe it helps a bit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
first i'm sorry for the english cause i'am french :p
so, i tried to create a new module and everithing work fine (that a good thing :D)
i add on the data Model some entities like Virtual_server, hypervisor, appliance, rack Storage,pdu, ……
but now i'm limited cause i need some documentation
in fact now tried to add for exemple, an hypervisor (vmware) on a rack,
the hypervisor is a 2U large
i put it in a 42U's rack
1) how can i deal with the ORM to execute an update request saying that the free space in the rack was 42-2 ?
2) is there any documentation of the parameter needed on the used functions ? (like "bPropagate", "iDistance" on the relationship is there some other attributes possible same question about the Init_AddAttribute() (and others ^^).
i hope that you could help me a litle,
have a good day.
1-bis) in fact updating the database coul be done with a trigger but it's not really good
an other better solution was to modify the view of the item Rack Storage and adding a line with a dinamic sum of all the size of the differents equiments stored in the rack
but i don't know how to deal with the orm to do this type of request too …
(sorry for the double post i don't see any "edit" button )
nobody can help me ? that make a long time i try to solve my prolem
i'm a litle bit disapointed of the documentation of the code there is really few documented functons .
for an open source project, that make the contribution process less efficient then it could be.
Hi,
there is already a solution to cover VMs and Rack units.
Check this out.
https://sourceforge.net/apps/trac/itop/ticket/537
The easiest way to do your calculation is with the SELECT statement. You can select all Server in the Rack and count the rack units. (I`m not familiar with your code and it`s just an idea)
You shouldn`t reduce the available size while creating a new server cause iTop should just be your reporting tool. You should know where a server is installed and choose the correct rack units. What happens if a server will be moved to another rack? You first need to free up the rack units in the old rack and then install it in the other rack. I can`t get the problem right now but maybe it helps a bit.
hey !!! thank you for the answer and sorry for reply so long time after
i will check it out !