php itop导入联系人csv数据
程序员文章站
2022-06-12 11:35:57
...
导入联系人使用的脚本
[root@nb0001 itopPersonImport]# cat import.sh
php /var/www/html/itop/webservices/import.php --auth_user=admin --auth_pwd=admin --class=Person --charset="UTF-8" --csvfile=person_okUtf8.csv --separator = "," --reconciliationkeys="Email"
csv样式参照
[root@nb0001 itopPersonImport]# cat person_okUtf8.csv
First Name,Last Name,Status,Organization->Name,Phone,Email,Notification,Function
张三,"zhang,san",Active,杭州******有限公司,1333612****,zhang_san@qq.cn,yes,*****工程师
[root@nb0001 itopPersonImport]# cat import.sh
php /var/www/html/itop/webservices/import.php --auth_user=admin --auth_pwd=admin --class=Person --charset="UTF-8" --csvfile=person_okUtf8.csv --separator = "," --reconciliationkeys="Email"
csv样式参照
[root@nb0001 itopPersonImport]# cat person_okUtf8.csv
First Name,Last Name,Status,Organization->Name,Phone,Email,Notification,Function
张三,"zhang,san",Active,杭州******有限公司,1333612****,zhang_san@qq.cn,yes,*****工程师