         } elseif { $os == "SunOS" } {
           send -s "pkgrm -n `pkginfo -c application | grep -i netscreen | grep -v NSCNpostgres | awk '{print \$2}' | xargs` &&  rm -rf /var/netscreen/ /usr/netscreen/"
         }
+      
+      # exporting the db
       } elseif { $action == 5 } {
         send -s "unset NS_PRINTER_LEVEL;/usr/netscreen/GuiSvr/utils/xdbExporter.sh /var/netscreen/GuiSvr/xdb/ /var/tmp/xdif_$filetime.txt; export NS_PRINTER_LEVEL=debug"
 
+      # importing the db
       } elseif { $action == 6 } {
         send -s "/usr/netscreen/GuiSvr/utils/xdifImporter.sh /var/tmp/xdif_$filetime.txt /var/netscreen/GuiSvr/xdb/init/ "
 
+      # disabling the encryption for the devices
       } elseif { $action == 7 } {
         send -s "/etc/init.d/devSvr stop; perl -pi\".[backuptimeproc]\" -e 's/(devSvrManager.cryptoKeyLength\\s*) \\d+/\$1 0/' /usr/netscreen/DevSvr/var/devSvr.cfg && /etc/init.d/devSvr start\r"
 
+      # changing the IP of this NSM installation that the script uses
       } elseif { $action == 8 } {
         send_user "\nThe IP of this server is: "
 

#!/usr/bin/expect -f

# $Id: 20120722$
# $Date: 2012-07-22 13:44:17$
# $Author: Marek Lukaszuk$
#
# ChangeLog:

        global ourip
        set ourip $expect_out(1,string)
        send "\r"
      
      # removing all containers from xdb/data
      } elseif { $action == 9 } {
        send -s "find /var/netscreen/GuiSvr/xdb/data -type f | egrep -v \"__db.001|DB_CONFIG\" | xargs rm\r"

      # default - unknown choice
      } else {
