{% extends "base.html" %} {% block comments %} {% endblock %} {% load add_attrs %} {% block title %}App Framework: Device Batch Upload{% endblock %} {% block header_row %}

Batch Upload Devices

{% endblock %} {% block content %}
{% csrf_token %}

Please select the batch file to upload devices.

Each line in the batch file is parsed and saved as one device. The default order of the fields is shown as follows: name,module,host,port,username,password,auth,access_code,tags.

If the field order is different than above, it is required to put a header row in the first line with the same set of field names, which should be comma separated and in the same order as the data in following lines.

1.The module field can be set as netprofiler, netshark, scc, steelhead_cli. Other modules can be configured for customized reports;
2. The host field can accept either hostname or IP address;
3. Generally, Port should be 443 for netprofiler, netshark, scc devices. For steelhead_cli devices, it should be the SSH port (usually 22);
4. The auth field should be 1 for Basic authentication, 3 for OAuth2 authentication. If NO authentication is required, use 0;
5. In tags field, ";" is used to separate different tags, i.e. tag_1;tag_2;...;tag_n.

{% with form.visible_fields.0 as field %} {{ field|addcss:"form-control" }} {% if field.errors %} {% for err in field.errors %}

{{ err }}

{% endfor %} {% endif %} {% endwith %}
{% endblock %}