         } 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: "
 

 6 - print the command needed to import the db from xdif ($filetime),
 7 - disables encryption between devSvr and the devices,
 8 - set the IP used by this server, if not autodetected,

 input: "
      stty cooked echo

#!/usr/bin/expect -f

# $Id: 20120726$
# $Date: 2012-07-26 10:09:20$
# $Author: Marek Lukaszuk$
#
# ChangeLog:
