Open leoncx opened 10 years ago
Author Name: Kevin Tibi (Kevin Tibi) Original Redmine Issue: 5719, https://forge.centreon.com/issues/5719 Original Date: 2014-08-04
Il est possible d'ajouter un template sur un host avec le nom d'un autre host.
[root@OBCS-CES-Central-auton01 core]# ./centreon -u admin -p password -o HTPL -a show id;name;alias;address;activate 2;generic-host;generic-host;;1 3;Servers-Linux;Linux Servers;;1 4;Servers-Win2K;Windows 2000 Servers;;1 5;Servers-Win2K3;Windows 2003 Servers;;1 6;Switchs-Cisco;Cisco Switchs;;1 7;Switchs-3Com;3Com Switchs;;1 8;Switchs-HP;HP Switchs;;1 9;Switchs-NORTEL;NORTEL Switchs;;1
[root@OBCS-CES-Central-auton01 core]# ./centreon -u admin -p password -o HOST -a addtemplate -v "free.fr;syslog01"
[root@OBCS-CES-Central-auton01 core]# ./centreon -u admin -p password -o HOST -a gettemplate -v "free.fr" id;name 2;generic-host 17;syslog01
Author Name: Kevin Tibi (Kevin Tibi) Original Redmine Issue: 5719, https://forge.centreon.com/issues/5719 Original Date: 2014-08-04
Il est possible d'ajouter un template sur un host avec le nom d'un autre host.
[root@OBCS-CES-Central-auton01 core]# ./centreon -u admin -p password -o HTPL -a show id;name;alias;address;activate 2;generic-host;generic-host;;1 3;Servers-Linux;Linux Servers;;1 4;Servers-Win2K;Windows 2000 Servers;;1 5;Servers-Win2K3;Windows 2003 Servers;;1 6;Switchs-Cisco;Cisco Switchs;;1 7;Switchs-3Com;3Com Switchs;;1 8;Switchs-HP;HP Switchs;;1 9;Switchs-NORTEL;NORTEL Switchs;;1
[root@OBCS-CES-Central-auton01 core]# ./centreon -u admin -p password -o HOST -a addtemplate -v "free.fr;syslog01"
[root@OBCS-CES-Central-auton01 core]# ./centreon -u admin -p password -o HOST -a gettemplate -v "free.fr" id;name 2;generic-host 17;syslog01