how to register an invetory CMDB "SmartPhone"
Moderator: crythias
-
- Znuny newbie
- Posts: 26
- Joined: 27 Sep 2016, 11:27
- Znuny Version: 5.0.13
- Real Name: Sergio Ambrosio
how to register an invetory CMDB "SmartPhone"
Hi to everyone,
I would like to add the all inventory of the smartphoned and phoned to CMBD of OTRS, but I don't find the correct way.
I tried to add as "Hardware" but don't appears the category "Phone".
Someone can help me?
Regards,
I would like to add the all inventory of the smartphoned and phoned to CMBD of OTRS, but I don't find the correct way.
I tried to add as "Hardware" but don't appears the category "Phone".
Someone can help me?
Regards,
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: how to register an invetory CMDB "SmartPhone"
Hey there,
if you just wanna add the type, go in the admin interface to General Catalog -> ITSM::CONFIGITEM::HARDWARE::TYPE and add a new entry "Phone".
if you just wanna add the type, go in the admin interface to General Catalog -> ITSM::CONFIGITEM::HARDWARE::TYPE and add a new entry "Phone".
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 26
- Joined: 27 Sep 2016, 11:27
- Znuny Version: 5.0.13
- Real Name: Sergio Ambrosio
Re: how to register an invetory CMDB "SmartPhone"
I detect that the "Type" Phone exists on Class "Computer" but the fields are more correct to use to computer.
How I create a new class to Phone with the some "fields" , for example:
Name,
State of implementation,
State of incident,
Vendor,
Model,
Description,
Popietary,
Notes,
Best regards!!
How I create a new class to Phone with the some "fields" , for example:
Name,
State of implementation,
State of incident,
Vendor,
Model,
Description,
Popietary,
Notes,
Best regards!!
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: how to register an invetory CMDB "SmartPhone"
Right, that ain't too hard either:
First create a new class, in the general catalogue -> ITSM::CONFIGITEM::CLASS
Next, go to Admin -> Config Items, click on an existing class and study the definition (it's in perl syntax).
Then, change the class defintion of your new class "Phone" to your needs.
Note that "Name" is already a preconfigured mandatory field and you don't have to put it in the syntax. Start with something easy like:
and extend it from there on.
First create a new class, in the general catalogue -> ITSM::CONFIGITEM::CLASS
Next, go to Admin -> Config Items, click on an existing class and study the definition (it's in perl syntax).
Then, change the class defintion of your new class "Phone" to your needs.
Note that "Name" is already a preconfigured mandatory field and you don't have to put it in the syntax. Start with something easy like:
Code: Select all
[
{
Key => 'Vendor',
Name => 'Vendor',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
},
},
];
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 26
- Joined: 27 Sep 2016, 11:27
- Znuny Version: 5.0.13
- Real Name: Sergio Ambrosio
Re: how to register an invetory CMDB "SmartPhone"
Hi,
thanks for you soon reply!,
I have a little doubt.... With smartphone catalog I would like need to create a field for example "Number asociated", Will I need to create into database MySQL the table manually?
Regards,
thanks for you soon reply!,
I have a little doubt.... With smartphone catalog I would like need to create a field for example "Number asociated", Will I need to create into database MySQL the table manually?
Regards,
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: how to register an invetory CMDB "SmartPhone"
Not at all! There's one huge table called "xml_storage" where all the values are written too. Just don't try to read or understand it 

Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 26
- Joined: 27 Sep 2016, 11:27
- Znuny Version: 5.0.13
- Real Name: Sergio Ambrosio
Re: how to register an invetory CMDB "SmartPhone"
Sorry 
But if I need to create this field... how it do?
Can you put an example please?¿

But if I need to create this field... how it do?
Can you put an example please?¿
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: how to register an invetory CMDB "SmartPhone"
Well you would have to alter the class definition. Building from my previous post it could look like this:
Code: Select all
[
{
Key => 'Vendor',
Name => 'Vendor',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
},
},
{
Key => 'PhoneNumber',
Name => 'Number Associated',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
},
},
];
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: how to register an invetory CMDB "SmartPhone"
If you need more attributes for the class, you have to change the class definition. You started with You need the phonenumber? Now it has to be
Code: Select all
[
{
Key => 'Vendor',
Name => 'Vendor',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
},
},
];
Code: Select all
[
{
Key => 'Vendor',
Name => 'Vendor',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
},
},
{
Key => 'PhoneNumber',
Name => 'Phonenumber',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
},
},
];
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de