NEW

DOCUMENTATIONS

Knowledge Base & Help Desk

Import resources
Posted by Ran Hartal | 2018-12-10 19:54:28
Posted by Ran Hartal
2018-12-10 19:54:28

Import Resources


Allprobe provides few method to insert hosts & resources into your account. You can import all of your resources and IT assets in one go.

We currently support importing JSON file format built as array of objects, please check out the example file in your account.

If you are used to work with excel sheets, you can use online converters from Excel to JSON. Just make sure the format is in the right formation as in the example file, a short 2 hosts example would look like that:


[
    {
        "id": "",
        "name": "APR-CAS-1",
        "status": "1",
        "ip": "192.168.0.14",
        "ipv6": "",
        "main_ip_index": "eth0",
        "main_ip_vlan": [
            "default"
        ],
        "main_ip_interface_type": "0",
        "main_ip_rport": "default",
        "main_ip_rport_port_number": "0",
        "main_ip_gw": "default",
        "main_ip_cidr": "default",
        "main_ip_l2": "",
        "main_ip_ig": "0",
        "sub_ips": [],
        "snmp_template": "",
        "user_id": "",
        "bucket": "default",
        "bucket_name": "default",
        "notifications_group": "default",
        "type": "1",
        "notes": "",
        "srv_type": "6",
        "parent_host": "default",
        "virt_id": "",
        "rack": "default",
        "datacenter": "default",
        "provider": "default",
        "label": "",
        "tags": "",
        "nd_num_ports": "0",
        "rack_pos": "",
        "hw_size": "",
        "hds": null,
        "resource_type": "host"
    },
    {
        "id": "",
        "name": "APR-CAS-2",
        "status": "1",
        "ip": "192.168.0.15",
        "ipv6": "",
        "main_ip_index": "eth0",
        "main_ip_vlan": [
            "default"
        ],
        "main_ip_interface_type": "0",
        "main_ip_rport": "default",
        "main_ip_rport_port_number": "0",
        "main_ip_gw": "default",
        "main_ip_cidr": "default",
        "main_ip_l2": "",
        "main_ip_ig": "0",
        "sub_ips": [{
                "index": "eth1",
                "ip": "192.168.0.22",
                "vlan": ["default"],
                "ipv6": "",
                "interface_type": "0",
                "rport": "default",
                "rport_port_number": "0",
                "gw": "default",
                "cidr": "default",
                "l2": "",
                "ig": ""
            },{
                "index": "eth2",
                "ip": "192.168.0.71",
                "vlan": ["default"],
                "ipv6": "",
                "interface_type": "0",
                "rport": "default",
                "rport_port_number": "0",
                "gw": "default",
                "cidr": "default",
                "l2": "",
                "ig": ""
            }
],
        "snmp_template": "",
        "user_id": "",
        "bucket": "default",
        "bucket_name": "default",
        "notifications_group": "default",
        "type": "1",
        "notes": "",
        "srv_type": "6",
        "parent_host": "default",
        "virt_id": "",
        "rack": "default",
        "datacenter": "default",
        "provider": "default",
        "label": "",
        "tags": "",
        "nd_num_ports": "0",
        "rack_pos": "",
        "hw_size": "",
        "hds": null,
        "resource_type": "host"
    },
    {
      "type": "system_ci_sub_type",
      "name": "Services",
      "bucket": "default",
      "id": "accounting::services",
      "childs_extra_attributes": [],
      "values": [],
      "parent_ci_type": "accounting",
      "relationships": [],
      "created": 0,
      "updated": 0,
      "owner": "default",
      "removable": false,
      "resource_type": "cmdb_type"
    },
    {
      "type": "system_ci_sub_type",
      "name": "CPU cores",
      "bucket": "default",
      "id": "hardware::module::cpu_cores",
      "childs_extra_attributes": {
        "cpu_speed": {
          "name": "CPU speed in MHZ",
          "value": "",
          "type": "string"
        },
        "bus_speed": {
          "name": "Bus speed",
          "value": "",
          "type": "string"
        }
      }
    },
    {
      "type": "system_ci_sub_type",
      "name": "HP",
      "bucket": "default",
      "id": "hardware::module::server::hp",
      "childs_extra_attributes": [],
      "values": [],
      "parent_ci_type": "hardware::module::server",
      "relationships": [],
      "created": 0,
      "updated": 0,
      "owner": "default",
      "removable": false,
      "resource_type": "cmdb_type"
    },
    {
      "type": "system_ci",
      "name": "SQL Server 2012",
      "bucket": "default",
      "id": "",
      "severity": "0",
      "values": [],
      "parent_ci_type": [
        "software::microsoft::mssql"
      ],
      "relationships": [],
      "created": 1554304906192.3,
      "updated": 1554304906192.3,
      "owner": "default",
      "removable": true,
      "apr_object": "ci",
      "resource_type": "cmdb_ci_item"
    },
    {
      "type": "system_ci",
      "name": "5.3",
      "bucket": "default",
      "id": "",
      "severity": "0",
      "values": [],
      "parent_ci_type": [
        "software::aix"
      ],
      "relationships": [],
      "created": 1554304906192.4,
      "updated": 1554304906192.4,
      "owner": "default",
      "removable": true,
      "apr_object": "ci",
      "resource_type": "cmdb_ci_item"
    }
]

Mandatory keys & values for "HOST" object


For importing Resources Type hosts there are only 3 key: value pairs that are mandatory, the rest will auto generated by the import process if left empty.

Please note that "HOST" object is a federated CMDB object, a federated CMDB object is controlling the CMDB CI item. Importing a host will create the corresponding CMDB CI (configuration item) and his relations within the CMDB tree.


 id  UUID Auto generated / leave empty. If Entered as valid UUID it will import the resource with the exact id
 name             String                  Max 1024 chars
 ip  String any IPv4 IP address, if not sure possible to use generic IPs such as "127.0.0.1"
 status  String Hosts statuses are drawn from CMDB and can be adjusted as needed. Your initial CMDB Host types are

 Phisical Sevrer   status = "1"
 VPS - Private Cloud  status = "2"
 Hypervisor OR Cluster node - Private Cloud   status = "3"
 Network Device  status = "4"
 Gateway / Router  status = "5"
 VPS - Public Cloud  status = "6"
 PC - Workstation  status = "7"
 Logical Resource  status = "8"
 UPS - Power Unit  status = "9"
 PDU  status = "10"
 Container - Private Cloud  status = "11"
 Container - Public Cloud  status = "12"
 Other  status = "13"


The rest of the key => value pairs are not mandatory and can be adjusted later from UI or API.




If you need help with importing, please write to us to support@allprobe.com, and we would love to help you.


How To's