+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2006
    Location
    Srbobran, Serbia
    Posts
    4,084
    Rep Power
    16

    Default StarV3 Multipractic for Linux

    Here some good news to linux users.

    I've developed linux bash script/program that is able to:

    - backup all available scripts and config,
    - off-line edit all available scripts with saving original and changed script (but just one if there is no change), decide if you want to upload it , and if yes then automatically login to that unit,
    - upload "new", "old" and "stable" firmware's, automatically selecting proper unit type that you have set in database along with IP and password.
    - test RX and TX speed from users PC to selected unit,
    - show (and backup before showing) System an Kernel logs,
    automatically SSH into unit.

    ADDED 16.08.2009 - Version 1.0:
    additional abilities:
    - automatic ping with packet size 1400,
    - traceroute to that unit,
    - save and view SNMP Dump,
    - upload old config from same unit (for now it is hard to operate it),
    - upload old config from other unit (not fully completed),
    - upload old config by entering full path to it,
    - delete SSH key from old unit on that IP.

    Version 1.1 - 13.09.2009:
    -added SNMP Dump code supporting 4 given IP's, failover to next IP,
    -added environment based also on $HOSTNAME,
    -added Ping, Traceroute and SNMP support for (Linux) PC's.
    -minor changes.

    Version 2.0 - 2.4.2 - 07.05.2010:
    - Units database is now coma delimeted file
    - Added automatic password testing for all units with --testpasswords
    - Added automatic backup of all units with --backup and --backup-multi
    - Added simple help screen with --help
    - Organized Language file - new additions
    - Fixed jumping to main menu when "0" is used
    - New configuration file in /etc/sv3multi/
    - New, separated language files
    - Added dialog dependency
    - Added Configuration upload from dialog selected file
    - Added default username (admin) in manual selection
    - Add last unit in manual selection
    - Fixed the location of temporary files to account the year and month
    - Added possibility to edit current units file
    - Added menu via dialog package
    - Redesign of menu items (language file redesigned)
    - Added alternate config, units and language files location (same folder)

    Version 2.4.2 - 07.05.2010:

    - Added explanations for items in sv3multi-units file.

    TO-DO:
    - Add possibility to add/edit/delete units when selected
    - Add data structure testing to avoid errors
    - Add upload of CBQ, FW and NAT scripts
    - Add alternative IP, Pass and firmware/unit_type for devices
    - Add upload of selected firmware
    - Add selection of other IP's, or manually entered
    - Prevent exit after CTRL+C with Tx/Rx speed tests and alike (break control)
    - Add selection of other registered passwords
    - Add help dialogs before selection dialogs.
    - Add testing of the IP's
    - Add memory of addresses
    - add optional error mail
    - add menu to change folder variables
    - add testing of the firmware files
    - add automated creation of sv3multi conf file
    - add optional change of the password when config is uploaded so password is also changed
    - devise the way to save old passwords with start date and use them in case of old configs
    - add recognition of "_" as blank password and ask accordingly
    - add GUI manipulation at various levels: pass change, etc.
    - add dialog GUI unit selection
    - add automatic recognition of available dialog package
    - add automatic recognition of available GUI for editor
    - testpasswords: add skipping of units with backup=0
    - incorporate cleaning backup folders and archiving with 7zip, watch for NoHost! in other languages
    - add logic and warning for missing language file
    - add location/unit selection in UploadOtherConfig
    - expect for ssh: add possibility that Linux servers have different language
    - add error checking and fixing/warning if ";" is used in language files
    - add config option to jump to unit instead of last sub-menu
    - add actions for OK and Cancel for dialog Menus
    - add option of showing the IP next to the unit name in menus

    All is done with either terminal based menus (depreciated) or in "dialog" based GUI menus.
    You can set all variables like editor, backup folder, firmware versions...

    TODO for latter:
    - see if import option from other utilities is an option,
    - add SNMP off-line diagnostic functions,
    - MySQL based database connected to FreeRADIUS and/or FreeSide/DaloRadius,
    - GUI and PHP frontends,
    - some of your suggestions.

    Limited version can not operate with more then 50 StarV3/Linux units. If you need more, there will be non-free versions.

    Main file's location should have symlink to it in folder on $PATH (best in /usr/local/bin)

    It needs more files (either in /etc/sv3multi/ or in the same folder):
    sv3multi.conf - System and user specific settings.
    sv3multi-en, - English Language translation. Accepts additional lang files (sv3multi-xx)
    sv3multi-units - script containing StarV3 units and Linux servers IP's and passwords, in same folder or access protected folder (like $HOME)

    If you have any new ideas, please contact me and I will add them if possible

    Installation:
    1. Check if "dialog" package is installed and install it if possible.
    2. Create the folder(s) where you intend to keep all of your backup and temporary files
    (Config, CBQ, FW, NAT, Kernlog, Syslog, SNMP Dump,...) You can use 2 to separate backup from temporary files.
    3. Create or locate folder that will keep all of the firmware files.
    On my server, it's path is /extra/staros/_Install/Star-V3, and inside are folders like 1.4.22r,
    in him are 1.4.22r-fcc and 1.4.22r-world folders and in them are actual files.
    So path to one of my firmware files is :
    /extra/staros/_Install/Star-V3/1.4.22r/1.4.22r-world/vncOs-1.4.22r.v.world-3157.X86-PC.pkg
    4. Edit sv3multi.conf to reflect your system setup:
    a) Set Language code
    b) Edit and add all the users for which you want to set specific sv3multi-units files to restrict or expand
    their access to your units. There is no centralized + user specific files, it is either one or the other
    for each user (script will read data from only one sv3multi-units file)
    c) Set firmware folder setup in step 3. and and relative path to all firmware files from that location
    (firmwareX86new=$firmwarefolder/1.4.22r/1.4.22r-world/vncOs-1.4.22r.v.world-3157.X86-PC.pkg)
    d) Set starutil path
    e) Set monitoring and temporary folders from step 2.
    f) Set your desired editor and viewer paths
    5. Edit sv3multi-units to reflect your system setup:
    a) You can setup user specific editor and viewer preferences
    b) There are 3 types of unit data. starosunit, linux and menuitem. I letf most of the data so you can easier understand how to edit.
    6. Copy sv3multi-units in separate user folders or keep just one centralized file
    but make sure all users on your system can access them (file permissions). Files are by default ownership of the root.
    7. If in GUI like Gnome or KDE, create "Application in Terminal" shortcut with "StarV3 Multipractic" as Name
    and "sv3multix" as command.
    Usage:

    Usage:
    Just type sv3multix in your console/terminal or start the Desktop shortcut. Default menu uses "dialog" package. Then navigate the menu by typing a desired letter or using arrow keys, followed by <Enter>.
    Use sv3multix --help for tips,
    sv3multix --version or -v for version information,
    sv3multix --testpasswords to check if IP's and passwords are set up as they should be. Results will be sent to configured e-mail address.
    sv3multix --backup to run fully automated backup of all units that have backup set to 1 in sv3multi-units file
    sv3multix --backupmulti or --backup-multi to run fully automated backup with multiple connections of all units that have backup set to 1 in sv3multi-units file. For 37 StarV3 units duration should be around 20 seconds.
    sv3multix --nodialog or --no-dialog to run script in regular/old (no GUI) mode.
    Attached Files Attached Files
    Last edited by DrLove73; 05-07-2010 at 03:59 PM.
    Ljubomir Ljubojevic - Love is in the Air
    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman...
    StarOS and CentOS/RHEL/Linux consultant
    Powerful Starv3 manipulation tool - StarV3 Multipractik for Linux

  2. #2
    Join Date
    Mar 2006
    Location
    Srbobran, Serbia
    Posts
    4,084
    Rep Power
    16

    Default

    Lot of time passed until my initial report, but Starv3 Multipractic is finally ready for much easier use.

    I added language support and user specific accessible units database (still in the form of a menu for free use).

    "Authentication" is based on users on given Linux users and for each user you can specify if he is to access joined sv3multi-units file or have it's own that only he and Administrators (root) can access.

    System and user preferences are easily set in sv3multi-data file, and sv3multi-lang holds translations to other languages.

    This free-for-all version is designed for maximum of 130-140 units (both StarV3 units and Linux/Unix hosts). For those how want support for more units and some additional options, please contact me via PM or on office at plnet dot rs.

    Everything important is explained in readme file but feel free to ask any question.

    For those who find this utility useful and want to thank me, I will not oppose you if you bump my reputation ( the scales next to the post number on the right), or contact me for a small donation, but neither is mandatory. Main thing for releasing this is to help users of StarV3 with small networks and the promotion of Linux servers.

    If you remember the letter sequence for desired unit (W = west part, 3 = third in a menu) you can login to that unit in ~3 seconds, or comfortably access any script or log in regular editor/viewer with possibility to copy it's contents without any troubles and added characters. Both edited scripts and viewed logs are firstly saved on your HDD then it's copy is edited, and you can choose if you want to upload (and automatically save script to unit) changed script or you want to discard any changes made.
    Last edited by DrLove73; 09-13-2009 at 09:48 PM.
    Ljubomir Ljubojevic - Love is in the Air
    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman...
    StarOS and CentOS/RHEL/Linux consultant
    Powerful Starv3 manipulation tool - StarV3 Multipractik for Linux

  3. #3
    Join Date
    Jan 2003
    Location
    Florence, OR
    Posts
    285
    Rep Power
    15

    Default

    Looks interesting. I'll try it out here soon.

  4. #4
    Join Date
    Jan 2007
    Posts
    236
    Rep Power
    11

    Default

    Sounds very nice. My linux guy was a summer intern who is in college now. I'll have to wait until he can stop in again to try it out.

    David

  5. #5
    Join Date
    Mar 2006
    Location
    Srbobran, Serbia
    Posts
    4,084
    Rep Power
    16

    Default

    Version 1.1 is out. Go to first post in the thread.
    Ljubomir Ljubojevic - Love is in the Air
    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman...
    StarOS and CentOS/RHEL/Linux consultant
    Powerful Starv3 manipulation tool - StarV3 Multipractik for Linux

  6. #6
    Join Date
    Mar 2006
    Location
    Srbobran, Serbia
    Posts
    4,084
    Rep Power
    16

    Default

    How's automatic multithreaded backup of 37 units for 20 second sounds?

    To avoid any confusion, by backup I mean the backup of config file, cbq, fw and nat scripts, sysinfo and kernlog, and full SNMP.

    I've dona a lot of work, reached version 2.2. I have to track and resolve a stall after backup has been done after which I will release it to the wild.
    Last edited by DrLove73; 11-06-2009 at 06:27 AM.
    Ljubomir Ljubojevic - Love is in the Air
    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman...
    StarOS and CentOS/RHEL/Linux consultant
    Powerful Starv3 manipulation tool - StarV3 Multipractik for Linux

  7. #7
    Join Date
    Mar 2006
    Location
    Srbobran, Serbia
    Posts
    4,084
    Rep Power
    16

    Default

    New and largely improved version 2.4.1 is finally ready for public usage.

    Please refer to first post for all informations.

    Highlights:
    - Added "dialog" based GUI with automatic check for dialog availability.
    - Added ability to edit units database file by calling it from menu (needs application restart for now.)
    Ljubomir Ljubojevic - Love is in the Air
    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman...
    StarOS and CentOS/RHEL/Linux consultant
    Powerful Starv3 manipulation tool - StarV3 Multipractik for Linux

  8. #8
    Join Date
    Mar 2006
    Location
    Srbobran, Serbia
    Posts
    4,084
    Rep Power
    16

    Default

    Version 2.4.2 released. Only change is explanatory text for items in "sv3multi-units" database file
    Ljubomir Ljubojevic - Love is in the Air
    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman...
    StarOS and CentOS/RHEL/Linux consultant
    Powerful Starv3 manipulation tool - StarV3 Multipractik for Linux

  9. #9
    Join Date
    Mar 2006
    Location
    Srbobran, Serbia
    Posts
    4,084
    Rep Power
    16

    Default

    I forgot to mention, you need "expect" package to be installed on the system for ssh, "net-snmp" for SNMP backups and (optionally) "dialog" package. On CentOS/RHEL 5.x they are part of the main repository (just run "yum install expect net-snmp dialog") , and same should be for other distributions.

    When I have time, I will create "Installation and Deployment Guide". For now I will briefly explain my intended setup:

    1. Place "sv3multi.conf" and "sv3multi.en" ( and other language files you want/need like "sv3multi.sr" in my case) into "/etc/sv3multi" folder (and if you want
    other users then root using it then make sure others can read that
    folder and files).

    2. Create "/staros/monitoring" folder (or any other but change location in config file) and place "sv3multi-units" , "sv3multi-readme.txt" and "sv3multix-50" in it.

    3. Create symlink of sv3multix-50 and starutil (for linux) in
    "/usr/local/bin/" or some other folder in the $PATH. Alternatively, you can "cd" to
    "/staros/monitoring" folder and run it with "./sv3multix-50". "ln -s /staros/monitoring/sv3multix-50 /usr/local/bin/" and "ln -s /staros/monitoring/starutil /usr/local/bin/" should do it, but change/correct location of the files if needed.

    4. Add/change user and host in "sv3multi.conf" section "case $HOSTNAME in".

    Configuration file in /etc/sv3multi will be read first so unauthorized user can not change settings on it's own.

    sv3multi-units files can be placed (and configured in config file) for each individual user separately for better security. If requested, reading of the units database could be solved via daemon so users do not have reading rights on database file, but for now, since they are able to change passwords in StarV3 GUI, I do not see the point.
    Last edited by DrLove73; 05-20-2010 at 05:11 AM.
    Ljubomir Ljubojevic - Love is in the Air
    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman...
    StarOS and CentOS/RHEL/Linux consultant
    Powerful Starv3 manipulation tool - StarV3 Multipractik for Linux

  10. #10
    Join Date
    Mar 2006
    Location
    Srbobran, Serbia
    Posts
    4,084
    Rep Power
    16

    Default

    Last night I finished version 2.5.0.

    Improvements are:
    - Combined "Extra utilities" with main Action Menu in GUI mode.
    - Changed default letters for many items
    - Removed dialog size parameters for GUI/non-GUI usage. Read next change.
    - Added automatic terminal size regulation and GUI detection. Selects Editor and Viewer accordingly
    - For Gnome-terminal use "gnome-terminal --geometry 110x50 -x sv3multi" for shortcut to set terminal windows size.
    - Added automatic reload of database after editing database file (selected from the menu)
    - Added option of showing the IP next to the unit name in menus
    - Added use of Winbox to access Mikrotik units (GUI only). Use "MIKROTIK" in UnitType in database. Winbox worked on CentOS 5.5 with wine 1.0.1-1. no Winbox passwords needed or stored in Winbox configuration (Wine registry)

    New version will be available for download within day or two.
    Ljubomir Ljubojevic - Love is in the Air
    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman...
    StarOS and CentOS/RHEL/Linux consultant
    Powerful Starv3 manipulation tool - StarV3 Multipractik for Linux

Similar Threads

  1. Starutil on Linux
    By hatster in forum Customer Developed Software
    Replies: 7
    Last Post: 08-01-2008, 09:02 PM
  2. RIP on StarV3 to RIP on Linux box.
    By DrLove73 in forum OSPF and Rip Routing
    Replies: 7
    Last Post: 01-24-2008, 07:21 PM
  3. Starutil v1.11 (Linux 2.4)
    By jimmy in forum Support
    Replies: 0
    Last Post: 09-24-2004, 06:48 PM
  4. Linux 802.11g linux support code given away by Linksys
    By ddvzlnz in forum Feature Requests
    Replies: 1
    Last Post: 07-08-2003, 09:07 AM
  5. linux newbie
    By dkii in forum StarOS™
    Replies: 1
    Last Post: 12-05-2002, 06:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts