diff options
author | Sona Sarmadi <sona.sarmadi@enea.com> | 2019-12-20 10:06:16 +0100 |
---|---|---|
committer | Miruna Paun <mrpa@enea.se> | 2020-01-09 12:25:49 +0100 |
commit | f1603e3dde23b0af093e2cc3ed0f3ba7da764fbd (patch) | |
tree | 8a514ed865610dbe03a54838c22f30cd018872e7 | |
parent | 423a53a2e922b656706b3523f270df50c2672bee (diff) | |
download | el_releases-nfv-access-f1603e3dde23b0af093e2cc3ed0f3ba7da764fbd.tar.gz |
GettingStarted: add Custom Scripts chapter
Change-Id: I8dd3fbf29fac4003782e153128a3cff345424869
Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
-rw-r--r-- | doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml | 259 |
1 files changed, 212 insertions, 47 deletions
diff --git a/doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml b/doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml index 3155be6..095d2d5 100644 --- a/doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml +++ b/doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml | |||
@@ -885,6 +885,160 @@ | |||
885 | section.</para> | 885 | section.</para> |
886 | </section> | 886 | </section> |
887 | </section> | 887 | </section> |
888 | |||
889 | <section id="custom_scripts"> | ||
890 | <title>Custom Scripts</title> | ||
891 | |||
892 | <para>The custom scripts feature allows users to execute user-defined | ||
893 | scripts on the uCPE device at various times.This allows | ||
894 | for more flexible and advanced configurations such as a LTE modem | ||
895 | configuration, advanced network configurations or OVS flow rule | ||
896 | programming at any time.</para> | ||
897 | |||
898 | <section id="upload_scripts"> | ||
899 | <title>Uploading Scripts</title> | ||
900 | |||
901 | <para>The scripts need to be uploaded to the uCPE Manager prior to use. | ||
902 | When uploading scripts to the uCPE Manager make sure to select the | ||
903 | right script type.</para> | ||
904 | |||
905 | <para>The following script types are supported:</para> | ||
906 | |||
907 | <itemizedlist> | ||
908 | <listitem> | ||
909 | <para><literal>Once-before-startup</literal>. This script will | ||
910 | only execute once during the startup.</para> | ||
911 | </listitem> | ||
912 | |||
913 | <listitem> | ||
914 | <para><literal>Always-before-startup</literal>. This script will always | ||
915 | execute during the startup.</para> | ||
916 | </listitem> | ||
917 | |||
918 | <listitem> | ||
919 | <para><literal>Once-after-startup</literal>. This script will | ||
920 | only execute once after the system has been started.</para> | ||
921 | </listitem> | ||
922 | |||
923 | <listitem> | ||
924 | <para><literal>Always-after-startup</literal>. This script will always | ||
925 | execute after the system has been started.</para> | ||
926 | </listitem> | ||
927 | </itemizedlist> | ||
928 | |||
929 | <para>Follow the instruction below to upload scripts:</para> | ||
930 | |||
931 | <orderedlist> | ||
932 | <listitem> | ||
933 | <para>Select <literal>Devices</literal> -> <literal>Custom | ||
934 | Scripts</literal> -> <literal>Configure</literal>.</para> | ||
935 | </listitem> | ||
936 | |||
937 | <listitem> | ||
938 | <para>Select <literal>Upload to EMS</literal>.</para> | ||
939 | </listitem> | ||
940 | |||
941 | <listitem> | ||
942 | <para>In the <literal>Script Type</literal> menu, select the type | ||
943 | the uploaded script should have.</para> | ||
944 | </listitem> | ||
945 | |||
946 | <listitem> | ||
947 | <para>Press <literal>Choose File</literal> to select the scripts needed, | ||
948 | and then press <literal>Send</literal>.</para> | ||
949 | </listitem> | ||
950 | </orderedlist> | ||
951 | </section> | ||
952 | |||
953 | <section id="remove_scripts"> | ||
954 | <title>Removing Scripts</title> | ||
955 | |||
956 | <para>Follow the instruction below to remove scripts:</para> | ||
957 | |||
958 | <orderedlist> | ||
959 | <listitem> | ||
960 | <para>Select <literal>Devices</literal> -> <literal>Custom | ||
961 | Scripts</literal> -> <literal>Configure</literal>.</para> | ||
962 | </listitem> | ||
963 | |||
964 | <listitem> | ||
965 | <para>Select the script you want to delete from the | ||
966 | <literal>Uploaded Scripts</literal> tab and then click | ||
967 | <literal>Delete</literal>, which will remove the script immediately from the uCPE Manager.</para> | ||
968 | </listitem> | ||
969 | </orderedlist> | ||
970 | </section> | ||
971 | |||
972 | <section id="configure_scripts"> | ||
973 | <title>Configuring Script Location</title> | ||
974 | |||
975 | <para>The location where the scripts are staged in the uCPE Manager | ||
976 | can be chanaged as described below:</para> | ||
977 | |||
978 | <orderedlist> | ||
979 | <listitem> | ||
980 | <para>Select <literal>Devices</literal> -> <literal>Custom | ||
981 | Scripts</literal> -> <literal>Configure</literal>.</para> | ||
982 | </listitem> | ||
983 | |||
984 | <listitem> | ||
985 | <para>Select the <literal>Configuration</literal> tab and specify a | ||
986 | new loacation to store the scripts.</para> | ||
987 | |||
988 | <note> | ||
989 | <para>Change the script storage location only if you have many | ||
990 | scripts which you would prefer to store on another | ||
991 | partition, otherwise leave this configuration as is.</para> | ||
992 | </note> | ||
993 | </listitem> | ||
994 | </orderedlist> | ||
995 | </section> | ||
996 | |||
997 | <section id="run_the_scripts"> | ||
998 | <title>Running the Scripts</title> | ||
999 | |||
1000 | <para><emphasis role="bold">How to run Custom | ||
1001 | Scripts</emphasis></para> | ||
1002 | |||
1003 | <orderedlist> | ||
1004 | <listitem> | ||
1005 | <para>Select <literal>Devices</literal> -> <literal>Custom | ||
1006 | Scripts</literal> -> <literal>Apply Scripts</literal>.</para> | ||
1007 | </listitem> | ||
1008 | |||
1009 | <listitem> | ||
1010 | <para>In the <literal>Script Config Screen</literal> pop up, | ||
1011 | select the devices from the device(s) chooser list on which to run the | ||
1012 | scripts. Press the <literal>></literal> button to move | ||
1013 | the devices to the right side of the chooser, which is the list | ||
1014 | of devices that will execute the selected scripts.</para> | ||
1015 | </listitem> | ||
1016 | |||
1017 | <listitem> | ||
1018 | <para>Select the scripts from the list under the device(s) chooser | ||
1019 | by pressing the <literal>+</literal> button.</para></listitem> | ||
1020 | |||
1021 | <listitem> | ||
1022 | <para>In the pop-up window, select the scripts from the list. | ||
1023 | If there are no scripts to select, then there is no script | ||
1024 | uploaded with that particular type. Upload the script(s) needed and try again.</para> | ||
1025 | </listitem> | ||
1026 | |||
1027 | <listitem> | ||
1028 | <para>Check the checkbox <literal>Reboot devices</literal> if | ||
1029 | you want to reboot and execute the scripts at once and then | ||
1030 | press <literal>ok</literal>.</para> | ||
1031 | |||
1032 | <note> | ||
1033 | <para>The status of execution for the scripts can be seen by opening the | ||
1034 | <literal>Fault</literal> -> <literal>Events</literal> | ||
1035 | screen and filtering by device and/or the event name | ||
1036 | <filename>Custom</filename>.</para> | ||
1037 | </note> | ||
1038 | </listitem> | ||
1039 | </orderedlist> | ||
1040 | </section> | ||
1041 | </section> | ||
888 | </section> | 1042 | </section> |
889 | </section> | 1043 | </section> |
890 | 1044 | ||
@@ -910,8 +1064,8 @@ | |||
910 | 1064 | ||
911 | <listitem> | 1065 | <listitem> |
912 | <para><emphasis role="bold">Upgrade Device</emphasis>. This stage | 1066 | <para><emphasis role="bold">Upgrade Device</emphasis>. This stage |
913 | causes the device to replace its running image with the newly | 1067 | causes the device to replace its running image with the newly copied |
914 | copied image.</para> | 1068 | image.</para> |
915 | </listitem> | 1069 | </listitem> |
916 | </itemizedlist> | 1070 | </itemizedlist> |
917 | </section> | 1071 | </section> |
@@ -919,9 +1073,9 @@ | |||
919 | <section id="managing_device_upgrade"> | 1073 | <section id="managing_device_upgrade"> |
920 | <title>Managing the Device Upgrade</title> | 1074 | <title>Managing the Device Upgrade</title> |
921 | 1075 | ||
922 | <para>Before an install or upgrade can be completed, certain configuration | 1076 | <para>Before an install or upgrade can be completed, certain |
923 | data must be set. Files also need to be uploaded to the Device Upgrade | 1077 | configuration data must be set. Files also need to be uploaded to the |
924 | image repository to upload to the device.</para> | 1078 | Device Upgrade image repository to upload to the device.</para> |
925 | 1079 | ||
926 | <para>Launch the Device Upgrade management console by selecting | 1080 | <para>Launch the Device Upgrade management console by selecting |
927 | <literal>Devices</literal> -> <literal>Upgrade</literal> from the top | 1081 | <literal>Devices</literal> -> <literal>Upgrade</literal> from the top |
@@ -930,7 +1084,8 @@ | |||
930 | 1084 | ||
931 | <itemizedlist> | 1085 | <itemizedlist> |
932 | <listitem> | 1086 | <listitem> |
933 | <para><literal>Image Library</literal>. To add/delete an image.</para> | 1087 | <para><literal>Image Library</literal>. To add/delete an |
1088 | image.</para> | ||
934 | </listitem> | 1089 | </listitem> |
935 | 1090 | ||
936 | <listitem> | 1091 | <listitem> |
@@ -948,10 +1103,9 @@ | |||
948 | parameters.</para> | 1103 | parameters.</para> |
949 | </listitem> | 1104 | </listitem> |
950 | </itemizedlist> | 1105 | </itemizedlist> |
951 | |||
952 | <para>Press "Close" when the message <literal>File Uploaded | ||
953 | Successfully</literal> appears on the File Upload Screen.</para> | ||
954 | 1106 | ||
1107 | <para>Press "Close" when the message <literal>File Uploaded | ||
1108 | Successfully</literal> appears on the File Upload Screen.</para> | ||
955 | 1109 | ||
956 | <section id="upload_image"> | 1110 | <section id="upload_image"> |
957 | <title>Image Library</title> | 1111 | <title>Image Library</title> |
@@ -1005,14 +1159,18 @@ | |||
1005 | 1159 | ||
1006 | <para>The Upgrade Operations tab allows a user to manage device | 1160 | <para>The Upgrade Operations tab allows a user to manage device |
1007 | upgrades in the system. It allows the user to see all the upgrades | 1161 | upgrades in the system. It allows the user to see all the upgrades |
1008 | that are currently in progress, as well as listing the completed ones. | 1162 | that are currently in progress, as well as listing the completed ones. |
1009 | If an upgrade succeeds or fails, then a row will be added to the completed | 1163 | If an upgrade succeeds or fails, then a row will be added to the |
1010 | upgrades table. If one fails, the failure message will be visible here.</para> | 1164 | completed upgrades table. If one fails, the failure message will be |
1011 | 1165 | visible here.</para> | |
1012 | <note><para>The list of completed upgrade tasks resides in memory and will not | 1166 | |
1013 | persist across reboots of the server.</para></note> | 1167 | <note> |
1168 | <para>The list of completed upgrade tasks resides in memory and will | ||
1169 | not persist across reboots of the server.</para> | ||
1170 | </note> | ||
1014 | 1171 | ||
1015 | <para><emphasis role="bold">How to Install/Upgrade immediately or schedule for later</emphasis></para> | 1172 | <para><emphasis role="bold">How to Install/Upgrade immediately or |
1173 | schedule for later</emphasis></para> | ||
1016 | 1174 | ||
1017 | <orderedlist> | 1175 | <orderedlist> |
1018 | <listitem> | 1176 | <listitem> |
@@ -1021,19 +1179,19 @@ | |||
1021 | </listitem> | 1179 | </listitem> |
1022 | 1180 | ||
1023 | <listitem> | 1181 | <listitem> |
1024 | <para>Select <literal>Upgrade Devices</literal> from the | 1182 | <para>Select <literal>Upgrade Devices</literal> from the |
1025 | <literal>Upgrade Operations</literal> tab. This will launch a | 1183 | <literal>Upgrade Operations</literal> tab. This will launch a |
1026 | <literal>Multi Device Install Image</literal> screen that will | 1184 | <literal>Multi Device Install Image</literal> screen that will |
1027 | allow the user to install and upgrade more than one device at a | 1185 | allow the user to install and upgrade more than one device at a |
1028 | time or upgrade later.</para> | 1186 | time or upgrade later.</para> |
1029 | 1187 | ||
1030 | <para>The configurable parameters are:</para> | 1188 | <para>The configurable parameters are:</para> |
1031 | 1189 | ||
1032 | <itemizedlist> | 1190 | <itemizedlist> |
1033 | <listitem> | 1191 | <listitem> |
1034 | <para><literal>Scheduling</literal>. Click this checkbox if | 1192 | <para><literal>Scheduling</literal>. Click this checkbox if |
1035 | the upgrade will be done later. Schedule the day, hour and | 1193 | the upgrade will be done later. Schedule the day, hour and |
1036 | minute for when to run the upgrade.</para> | 1194 | minute for when to run the upgrade.</para> |
1037 | 1195 | ||
1038 | <note> | 1196 | <note> |
1039 | <para>The time zone is set to Eastern Standard Time | 1197 | <para>The time zone is set to Eastern Standard Time |
@@ -1043,8 +1201,8 @@ | |||
1043 | 1201 | ||
1044 | <listitem> | 1202 | <listitem> |
1045 | <para><literal>Description</literal>. An optional description | 1203 | <para><literal>Description</literal>. An optional description |
1046 | of the operation. It is recommended to add a description so that | 1204 | of the operation. It is recommended to add a description so |
1047 | different upgrades happening simultaneously can be | 1205 | that different upgrades happening simultaneously can be |
1048 | distinguished.</para> | 1206 | distinguished.</para> |
1049 | </listitem> | 1207 | </listitem> |
1050 | 1208 | ||
@@ -1055,15 +1213,16 @@ | |||
1055 | 1213 | ||
1056 | <listitem> | 1214 | <listitem> |
1057 | <para><literal>Devices</literal>. The list of available | 1215 | <para><literal>Devices</literal>. The list of available |
1058 | devices is populated when an image file is chosen. The device(s) | 1216 | devices is populated when an image file is chosen. The |
1059 | chooser is then populated with the list of devices that can | 1217 | device(s) chooser is then populated with the list of devices |
1060 | accept that file. Press the <literal>></literal> button to | 1218 | that can accept that file. Press the <literal>></literal> |
1061 | move the devices to the right side of the chooser, which is | 1219 | button to move the devices to the right side of the chooser, |
1062 | the list of devices that will be upgraded.</para> | 1220 | which is the list of devices that will be upgraded.</para> |
1063 | </listitem> | 1221 | </listitem> |
1064 | 1222 | ||
1065 | <listitem> | 1223 | <listitem> |
1066 | <para><literal>Upgrade Operation</literal>. Available options are:</para> | 1224 | <para><literal>Upgrade Operation</literal>. Available options |
1225 | are:</para> | ||
1067 | 1226 | ||
1068 | <itemizedlist> | 1227 | <itemizedlist> |
1069 | <listitem> | 1228 | <listitem> |
@@ -1073,9 +1232,10 @@ | |||
1073 | 1232 | ||
1074 | <listitem> | 1233 | <listitem> |
1075 | <para><literal>Install Only</literal>. This will do an | 1234 | <para><literal>Install Only</literal>. This will do an |
1076 | image installation only. The image is copied to the device, | 1235 | image installation only. The image is copied to the |
1077 | and an upgrade will be done later either at a scheduled time or | 1236 | device, and an upgrade will be done later either at a |
1078 | when the option <literal>Activate Only</literal> is selected.</para> | 1237 | scheduled time or when the option <literal>Activate |
1238 | Only</literal> is selected.</para> | ||
1079 | </listitem> | 1239 | </listitem> |
1080 | 1240 | ||
1081 | <listitem> | 1241 | <listitem> |
@@ -1106,8 +1266,8 @@ | |||
1106 | <literal>Device Status</literal> tab. Ongoing or scheduled upgrade | 1266 | <literal>Device Status</literal> tab. Ongoing or scheduled upgrade |
1107 | operations can be viewed or cancelled.</para> | 1267 | operations can be viewed or cancelled.</para> |
1108 | 1268 | ||
1109 | <para><emphasis role="bold">To view the status of an installation or upgrade | 1269 | <para><emphasis role="bold">To view the status of an installation or |
1110 | operations</emphasis></para> | 1270 | upgrade operations</emphasis></para> |
1111 | 1271 | ||
1112 | <orderedlist> | 1272 | <orderedlist> |
1113 | <listitem> | 1273 | <listitem> |
@@ -1142,15 +1302,19 @@ | |||
1142 | <section id="device_upgrade_config"> | 1302 | <section id="device_upgrade_config"> |
1143 | <title>Configuration</title> | 1303 | <title>Configuration</title> |
1144 | 1304 | ||
1145 | <note><para>The default values present in the configuration of each device are | 1305 | <note> |
1146 | recommended for use. Modifying them is for an Advanced User only.</para></note> | 1306 | <para>The default values present in the configuration of each device |
1307 | are recommended for use. Modifying them is for an Advanced User | ||
1308 | only.</para> | ||
1309 | </note> | ||
1147 | 1310 | ||
1148 | <para><emphasis role="bold">How to Configure the uCPE device Upgrade | 1311 | <para><emphasis role="bold">How to Configure the uCPE device Upgrade |
1149 | </emphasis></para> | 1312 | </emphasis></para> |
1150 | 1313 | ||
1151 | <orderedlist> | 1314 | <orderedlist> |
1152 | <listitem> | 1315 | <listitem> |
1153 | <para>Select <literal>Devices</literal> -> <literal>Upgrade</literal>.</para> | 1316 | <para>Select <literal>Devices</literal> -> |
1317 | <literal>Upgrade</literal>.</para> | ||
1154 | </listitem> | 1318 | </listitem> |
1155 | 1319 | ||
1156 | <listitem> | 1320 | <listitem> |
@@ -1164,10 +1328,10 @@ recommended for use. Modifying them is for an Advanced User only.</para></note> | |||
1164 | <listitem> | 1328 | <listitem> |
1165 | <para><literal>deviceImageDir</literal>. This is the disk | 1329 | <para><literal>deviceImageDir</literal>. This is the disk |
1166 | location of the device image repository. If an absolute path | 1330 | location of the device image repository. If an absolute path |
1167 | name such as <literal>/usr/local/deviceimage</literal> is given, then the | 1331 | name such as <literal>/usr/local/deviceimage</literal> is |
1168 | absolute path name is used. If no absolute pathname is given | 1332 | given, then the absolute path name is used. If no absolute |
1169 | it is considered to be relative to the installation | 1333 | pathname is given it is considered to be relative to the |
1170 | directory.</para> | 1334 | installation directory.</para> |
1171 | </listitem> | 1335 | </listitem> |
1172 | 1336 | ||
1173 | <listitem> | 1337 | <listitem> |
@@ -1181,10 +1345,11 @@ recommended for use. Modifying them is for an Advanced User only.</para></note> | |||
1181 | <listitem> | 1345 | <listitem> |
1182 | <para><literal>KeepAlive</literal>. This number represents the | 1346 | <para><literal>KeepAlive</literal>. This number represents the |
1183 | number of seconds that a thread will be kept alive before it | 1347 | number of seconds that a thread will be kept alive before it |
1184 | is collected. If multiple installations are occurring, this will | 1348 | is collected. If multiple installations are occurring, this |
1185 | keep the thread alive for X seconds before it is released. If | 1349 | will keep the thread alive for X seconds before it is |
1186 | not released, it can be used by the internal scheduling system | 1350 | released. If not released, it can be used by the internal |
1187 | as soon as it has completed an upgrade.</para> | 1351 | scheduling system as soon as it has completed an |
1352 | upgrade.</para> | ||
1188 | </listitem> | 1353 | </listitem> |
1189 | </itemizedlist> | 1354 | </itemizedlist> |
1190 | </listitem> | 1355 | </listitem> |