{"id":19679,"date":"2020-11-24T12:25:03","date_gmt":"2020-11-24T17:25:03","guid":{"rendered":"https:\/\/avtech.com\/articles\/?p=19679"},"modified":"2025-01-07T11:41:46","modified_gmt":"2025-01-07T16:41:46","slug":"how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool","status":"publish","type":"post","link":"https:\/\/avtech.com\/articles\/19679\/how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool\/","title":{"rendered":"How to Make a Custom Device ManageR Folder for the Room Alert Manager Import Tool (Legacy)"},"content":{"rendered":"<div class=\"su-note\"  style=\"border-color:#bcc3cd;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#d6dde7;border-color:#ffffff;color:#305d8c;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;\">\n\n\n\n<p>This legacy tool was removed from Room Alert Manager in v2.3.1.<\/p>\n\n\n<\/div><\/div>\n\n\n<div class=\"su-accordion su-u-trim\">\n\n\n<div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Before you start: Preview the custom folder contents.<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<p>The folder you create will look as shown below.<\/p>\n\n\n\n<ul><li>The root folder, here called &#8220;Custom_DeviceManageR_Source_Folder,&#8221;  will contain 7 files from Device ManageR&#8217;s &#8220;conf&#8221; folder. <\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder-1024x601.png\" alt=\"\" class=\"wp-image-19704\" width=\"512\" height=\"301\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder-1024x601.png 1024w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder-300x176.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder-768x451.png 768w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder.png 1272w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><figcaption>7 files (xml and txt) from Device ManageR&#8217;s &#8220;conf&#8221; folder<\/figcaption><\/figure><\/div>\n\n\n\n<ul><li>A sub-folder, which must be called &#8220;db,&#8221; will contain the SENSORS and DEVICES tables from your Device ManageR database.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder_db_subfolder-1024x333.png\" alt=\"\" class=\"wp-image-19705\" width=\"512\" height=\"167\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder_db_subfolder-1024x333.png 1024w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder_db_subfolder-300x98.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder_db_subfolder-768x250.png 768w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder_db_subfolder.png 1335w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><figcaption>2 exported Device ManageR database tables in csv format<\/figcaption><\/figure><\/div>\n\n\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Step 1: Stop the Device ManageR service.<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<p>Stop the Device ManageR service. This FAQ shows you how: <a rel=\"noreferrer noopener\" href=\"https:\/\/avtech.com\/articles\/140\/how-to-stop-start-and-restart-the-device-manager-service\/\" target=\"_blank\">How To Stop, Start And Restart The Device ManageR Service<\/a>.<\/p>\n\n\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Step 2: Copy and paste 7 files from Device ManageR's conf folder.<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<p>On Device ManageR&#8217;s host computer:<\/p>\n\n\n\n<ol><li>Create an empty folder some place easy to remember, like Documents or your Desktop. Call the folder whatever you want. (You could call it, for example, \u201cCustom_DeviceManageR_Source_Folder.\u201d)<\/li><li>In Windows Explorer, navigate to Device ManageR\u2019s installation folder. By default, this folder is located at:<ul><li>C:\\Program Files (x86)\\AVTECH Device ManageR (on 64-bit Windows computers)<\/li><li>C:\\Program Files\\AVTECH Device ManageR (on 32-bit Windows computers)<\/li><\/ul><\/li><li>First, copy and paste the just the required \u201cconf\u201d folder files.<\/li><li>Locate and open the \u201cconf\u201d folder.<\/li><li>Copy just the 7 files listed below and paste them into your source folder:<ul><li>action_schedules.xml<\/li><li>actions.xml<\/li><li>alerts.xml<\/li><li>blacklist.txt<\/li><li>contacts.xml<\/li><li>settings.xml<\/li><li>tcphostlist.txt<\/li><\/ul><\/li><li>Now create a sub-folder in your source folder. Name it &#8220;db.&#8221; (It MUST be called that.) You&#8217;ll need this sub-folder for the next step, where you export 2 tables from your Device ManageR database.<\/li><\/ol>\n\n\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Step 3: Export the SENSORS and DEVICES tables from your Device ManageR database.<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<p>Follow the instructions below to export your SENSORS and DEVICES tables to csv files and put them into your &#8220;db&#8221; sub folder.<\/p>\n\n\n<div class=\"su-tabs su-tabs-style-default su-tabs-mobile-stack\" data-active=\"1\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-tabs-nav\"><span class=\"\" data-url=\"\" data-target=\"blank\" tabindex=\"0\" role=\"button\">How to Export from MySQL<\/span><span class=\"\" data-url=\"\" data-target=\"blank\" tabindex=\"0\" role=\"button\">How to Export from SQL Server<\/span><span class=\"\" data-url=\"\" data-target=\"blank\" tabindex=\"0\" role=\"button\">How to Export from Device ManageR v6.3.6 Embedded H2 Database<\/span><\/div><div class=\"su-tabs-panes\"><div class=\"su-tabs-pane su-u-clearfix su-u-trim\" data-title=\"How to Export from MySQL\">\n\n\n\n<ol><li>Open MySQL Workbench.<\/li><li>Open a New Query tab. Enter and execute this query: <ul><li><strong>Use devicedb<\/strong><\/li><\/ul><\/li><li>Open another New Query tab. <ul><li>Enter and execute this query: <strong>Select * from sensors<\/strong><\/li><\/ul><ul><li>In the output toolbar, select the <strong>Export recordset to an external file<\/strong> button.<\/li><\/ul><ul><li>Call the file SENSORS.csv. (It MUST be named that.)<\/li><li>Save it to the &#8220;db&#8221; sub-folder inside your custom Device ManageR source folder.<\/li><\/ul><\/li><li>Open a third New Query tab.<ul><li>Enter and execute this query: <strong>Select * from devices<\/strong><\/li><li>In the output toolbar, select the <strong>Export recordset to an external file<\/strong> button.<\/li><li>Call the file DEVICES.csv. (It MUST be named that.)<\/li><li>Save it to the &#8220;db&#8221; sub-folder inside your custom Device ManageR source folder.<\/li><\/ul><\/li><\/ol>\n\n\n<\/div>\n<div class=\"su-tabs-pane su-u-clearfix su-u-trim\" data-title=\"How to Export from SQL Server\">\n\n\n\n<ol><li>Open Microsoft SQL Server Management Studio.<\/li><li>Open a New Query. <ul><li>Enter and execute this query: <strong>SELECT * FROM [DeviceDB].[dbo].[SENSORS]<\/strong><\/li><\/ul><ul><li>In the Results panel, right-click on any of the column headers and select <strong>Save Results As&#8230;<\/strong><\/li><\/ul><ul><li>Call the file SENSORS.csv. (It MUST be named that.)<\/li><li>Save it to the &#8220;db&#8221; sub-folder inside your custom Device ManageR source folder.<\/li><\/ul><\/li><li>Open another New Query.<ul><li>Enter and execute this query: <strong>SELECT * FROM [DeviceDB].[dbo].[DEVICES]<\/strong><\/li><li>In the Results panel, right-click on any of the column headers and select <strong>Save Results As\u2026<\/strong><\/li><\/ul><ul><li>Call the file DEVICES.csv. (It MUST be named that.)<\/li><li>Save it to the &#8220;db&#8221; sub-folder inside your custom Device ManageR source folder.<\/li><\/ul><\/li><\/ol>\n\n\n<\/div>\n<div class=\"su-tabs-pane su-u-clearfix su-u-trim\" data-title=\"How to Export from Device ManageR v6.3.6 Embedded H2 Database\">\n\n\n\n<p>Typically, you do not need to create a custom folder if you are importing from a Device ManageR v6.3.6 that writes to the embedded H2 database. You can point the Import Tool directly at your Device ManageR installation folder.<\/p>\n\n\n\n<p>However, if your situation requires it, you can follow these steps to export the SENSORS and DEVICES tables from your embedded database into the &#8220;db&#8221; subfolder you created earlier.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Download and install the H2 Database Engine Console.<\/h4>\n\n\n\n<ol><li>In your browser, go to <a href=\"https:\/\/www.h2database.com\/html\/main.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.h2database.com\/html\/main.html<\/a><\/li><li>In the Download section, select <strong>Windows Installer<\/strong>.<\/li><li>Run the installer. Keep the default options.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Open the console and test its connection to Device ManageR.<\/h4>\n\n\n\n<ol><li>Open the H2 console by navigating in Windows to <strong>Start<\/strong> \u2192 <strong>H2<\/strong> \u2192 <strong>H2 Console<\/strong>.<\/li><li>The <em>Login<\/em> page of the console opens. Leave everything on that page at defaults except <em>JDBC URL<\/em> . . .<\/li><li>In <em>JDBC URL<\/em>, enter \u201cjdbc:h2:file:\u201d followed by the full path to Device ManageR\u2019s installation folder. <ul><li>Use forward slashes (&#8220;\/&#8221;), not back slashes (&#8220;\\&#8221;) between the folders. <\/li><li>Here is an example:<ul><li>jdbc:h2:file:C:\/Program Files (x86)\/AVTECH Device ManageR\/DeviceDB\/DeviceDB <\/li><\/ul><\/li><\/ul><\/li><li>Then select <strong>Test Connection<\/strong>.<\/li><li>Confirm that you see the <em>Test successful<\/em> message at the bottom of the window.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Connect to the database and export the files.<\/h4>\n\n\n\n<ol><li>Select <strong>Connect<\/strong>.<\/li><li>Your embedded H2 database opens in your browser.<\/li><li>In the <em>SQL statement<\/em> box (under the <em>Run<\/em> button):<ul><li>Enter these 2 commands:<ul><li>call CSVWRITE (&#8216;<em>path to the db sub-folder<\/em>\/SENSORS.csv&#8217;, &#8216;SELECT * FROM SENSORS&#8217;);<\/li><li>call CSVWRITE (&#8216;<em>path to the db sub-folder<\/em>\/DEVICES.csv&#8217;, &#8216;SELECT * FROM DEVICES&#8217;);<\/li><\/ul><\/li><li>Here is an example. (Be sure to put forward-slashes &#8220;\/&#8221; between the folders, not back slashes &#8220;\\&#8221;.)<ul><li>call CSVWRITE (&#8216;C:\/Users\/Laptop\/Documents\/Custom_DeviceManageR_Source_Folder\/db\/SENSORS.csv&#8217;, &#8216;SELECT * FROM SENSORS&#8217; );<\/li><li>call CSVWRITE (&#8216;C:\/Users\/Laptop\/Documents\/Custom_DeviceManageR_Source_Folder\/db\/DEVICES.csv&#8217;, &#8216;SELECT * FROM DEVICES&#8217; );<\/li><\/ul><\/li><\/ul><\/li><li>Select <strong>Run<\/strong>. Notice the confirmation messages below the commands.<\/li><li>Then check your &#8220;db&#8221; sub-folder&#8211;the CSV files should be there.<\/li><\/ol>\n\n\n<\/div><\/div><\/div>\n\n\n<\/div><\/div>\n\n\n\n<p>Once you have your source folder ready, you may run the Device-ManageR-to-Room-Alert-ManageR Import Tool and point it at that folder.<\/p>\n\n\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[288],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/avtech.com\/articles\/19679\/how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Make a Custom Device ManageR Folder for the Room Alert Manager Import Tool (Legacy) - AVTECH\" \/>\n<meta property=\"og:url\" content=\"https:\/\/avtech.com\/articles\/19679\/how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"AVTECH\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-24T17:25:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-07T16:41:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder-1024x601.png\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@AVTECHSoftware\" \/>\n<meta name=\"twitter:site\" content=\"@AVTECHSoftware\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"Allie Wojtanowski\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"4 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/avtech.com\/articles\/#website\",\"url\":\"https:\/\/avtech.com\/articles\/\",\"name\":\"AVTECH\",\"description\":\"Frequently Asked Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/avtech.com\/articles\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/avtech.com\/articles\/19679\/how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2020\/11\/ADM2RAM_Custom_DeviceManageR_Source_Folder.png\",\"width\":1272,\"height\":747},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/avtech.com\/articles\/19679\/how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool\/#webpage\",\"url\":\"https:\/\/avtech.com\/articles\/19679\/how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool\/\",\"name\":\"How to Make a Custom Device ManageR Folder for the Room Alert Manager Import Tool (Legacy) - AVTECH\",\"isPartOf\":{\"@id\":\"https:\/\/avtech.com\/articles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/avtech.com\/articles\/19679\/how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool\/#primaryimage\"},\"datePublished\":\"2020-11-24T17:25:03+00:00\",\"dateModified\":\"2025-01-07T16:41:46+00:00\",\"author\":{\"@id\":\"https:\/\/avtech.com\/articles\/#\/schema\/person\/2966f1925021087dba64df344049f189\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/avtech.com\/articles\/19679\/how-to-make-a-custom-device-manager-folder-for-the-room-alert-manager-import-tool\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/avtech.com\/articles\/#\/schema\/person\/2966f1925021087dba64df344049f189\",\"name\":\"Allie Wojtanowski\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/avtech.com\/articles\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/470c9c7fbbd3e0a96d84169645634d04?s=96&d=mm&r=g\",\"caption\":\"Allie Wojtanowski\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/posts\/19679"}],"collection":[{"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/comments?post=19679"}],"version-history":[{"count":51,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/posts\/19679\/revisions"}],"predecessor-version":[{"id":25128,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/posts\/19679\/revisions\/25128"}],"wp:attachment":[{"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/media?parent=19679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/categories?post=19679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/tags?post=19679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}