SUN StorEdge Backup Solution scripts

# General
/usr/sbin/nsr/nsrim -v (Print Volume information of all used tapes)

# ——————————————————————————
# BACKUP (SINGLE TAPE DEVICE)
# ——————————————————————————

0 19 * * 1-5 /usr/sbin/nsr/tape_label_mount.sh >> /nsr/logs/tape.log
#!/bin/sh
#
# Load / relabel / mount tape
#
/usr/sbin/nsr/nsrmm -l -R << EOF y EOF sleep 30 /usr/sbin/nsr/nsrmm -m 20:30 start total backup StorEdge backup software regeld dit! 0 6 * * 1-5 /usr/sbin/nsr/tape_unmount.sh >> /nsr/logs/tape.log
#!/bin/sh
#
# unLoad /eject tape
#
/usr/sbin/nsr/nsrmm -j

# ——————————————————————————
# BACKUP (TAPE ROBOT 8 POSITIES)
# ——————————————————————————

00:30 start load/relabel/mount script

#!/bin/sh
#
# Load / label / mount tape
#
# Volume Name Tape Location Note
# volume.001 Location 1 Monday
# volume.002 Location 2 Tuesday
# volume.003 Location 3 Wedneyday
# volume.004 Location 4 Thursday
# volume.005 Location 5 Friday
# volume.006 Location 6 Saterday
# volume.007 Location 7 Sunday
# Location 8 Clean tape location

DAYOFWEEK=`date +”%u`

# Load / relabel tape (-Y No approve of action is needed)
/usr/sbin/nsr/nsrjb -Y -L -S ${DAYOFWEEK} svolume.00${DAYOFWEEK}

# Mount tape
/usr/sbin/nsr/nsrjb -l -S ${DAYOFWEEK}

01:00 start total backup
StorEdge backup software regeld dit!

23:30 start unmount / unmount script

#!/bin/sh
#
# unLoad tape
#

DAYOFWEEK=`date +”%u`

# unmount / unload tape
/usr/sbin/nsr/nsrjb -u -S ${DAYOFWEEK}

Veritas Commands

Veritas

Producten:
– Veritas File System Manager
– Veritas Volume manager
– Veritas Cluster

Commandos:
vxdg list : Show Disk Silyses

Veritas Volume Manager:
– Start GUI
# export DISPLAY=172.16.1.177:0.0
# vea &
Login=root Password=Default
– Stop
# vxdctl stop
# vxiod -f set 0

Veritas Volume Cluster:
– Start GUI
# export DISPLAY=172.16.1.177:0.0
# hagui &
Login=admin Password=Password

Change Parity:
# format
% select disk
% parity
% 7 (select parity 7)
% size = 0c
% label

Update License:
# mkdir /etc/vx/licenses/lic/old
# mv /etc/vx/licenses/lic/* /etc/vx/licenses/lic/old ; /opt/VRTSvlic/bin/vxlicinst
bv. 3ZPV-NCCT-H7MH-VL6T-Z36X-RRC

# Check cluser config
hacf -verify /etc/VRTSvcs/conf/config

MySQL commands

########
LOAD DUMP

After you have dumped out your data into a file as described here, FTP or scp that dump file to the home directory (/) on our system.

Once you have uploaded the dump file to your account here, get a shell prompt on our system using telnet or ssh.

Now import the dump file into MySQL by typing all the following on 1 single line at the shell prompt:

mysql -p -h DBSERVER dbname < dbname.sql The above assumes that your database name on our system is "dbname" and the dumpfile that you uploaded was named "dbname.sql". Replace those with your correct database name and dumpfile filename. Also replace DBSERVER with your correct database server name. ####### Creating MySQL database on Linux system 1. I assume that you are working from your account and not the root. Start a terminal session and become the superuser (Type su at the prompt and then enter the root password). 2. Now we'll access the MySQL server. Type: mysql -u root -p The system prompts for the MySQL root password that you set up in Installing MySQL on Linux. (Note: This is not the Linux root password but the MySQL root password). Enter the password, which is not displayed for security reasons. Once you are successfully logged in, the system prints a welcome message and displays the mysql prompt ... something like Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 3.22.32 Type 'help' for help. mysql>

3. Now we are ready for creating the employees database. Issue the command:

create database employees;

(Note: The command ends with a semi-colon)

4. An important point to note is that this database is created by the root and so will not be accessible to any other user unless permitted by the root. Thus, in order to use this database from my account (called manish), I have to set the permissions by issuing the following command:

GRANT ALL ON employees.* TO manish@localhost IDENTIFIED BY “eagle”

The above command grants my account (manish@localhost) all the permissions on employees database and sets my password to eagle. You should replace manish with your user name and choose an appropriate password.
5. Close the mysql session by typing quit at the prompt. Exit from superuser and come back to your account. (Type exit).
6. To connect to MySQL from your account, type:

mysql -u user_name -p

Type in the password when prompted. (This password was set by the GRANTS ALL… command above) . The system displays the welcome message once you have successfully logged on to MySQL. Here is how your session should look like:

[manish@localhost manish]$ mysql -u manish -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 3.22.32

Type ‘help’ for help.

mysql>

7. Typing the command SHOW DATABASES; will list all the databases available on the system. You should get a display similar to:

mysql> SHOW DATABASES;
+—————-+
| Database |
+—————-+
| employees |
| mysql |
| test |
+—————-+
3 rows in set (0.00 sec)

8. Enter quit at the mysql> prompt to come out of the mysql client program.

######
SET OLD PASSWORD

Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD statement and the OLD_PASSWORD() function:

mysql> SET PASSWORD FOR ‘some_user’@’some_host’ = OLD_PASSWORD(‘newpwd’);
mysql> FLUSH PRIVILEGES;

Substitute the password you want to use for “newpwd” in the preceding examples. MySQL cannot tell you what the original password was, so you’ll need to pick a new one.

######
Drop database

Definition: The drop database command is used when you no longer need one of the SQL databases on your server. It will remove it permanently. It is phrased as: drop database [DatabaseName];
Examples: This will remove the database ‘Dresses’ from the MySQL server:

mysql> drop database Dresses;

Java RedSquare 0.1

This afternoon i have ported the Wii RedSquare game to Java. So please try out this beta release. It’s not a full feature release yet, just a proof of concept. Comments are welcome!

30-10-2016 Version 0.1
– Added basic sound effects.
– Added nice background music.
– Added webservice to store local and global highscore.
– Added new version check thread to home page.
– Added page navigator so pages are loaded just in time.
– Added game page with special effects
– Added two intro pages with basic animation.
– Added help, credits, release notes and donate page.

Click here to download the latest version.

PlaatSign 0.5

The next release of PlaatSign contain the following features:

  • PlaatSign can now display more then one video.
  • Improve video slide show preview.
  • Improve login page.
  • Slide show delay value is now validated.
  • Protect image upload directory against direct URL access.
  • Make HTML code compliant with Microsoft Explorer 10 and higher.

Click here to download the latest version.

PlaatScrum 1.3

PlaatSoft released a new version of PlaatScrum with the following changes and bugfixes:

  • Admin user can now manage user events.
  • Admin user can now manage SQL backup files.
  • SQL backup file have now random filename. More secure!
  • Move event logging to database. More secure!
  • Filter settings are now managed per project and page.
  • Added multi select priority filter feature.
  • Added priority column to sprint and product backlog.
  • Added calender sprint letter for each week that sprint takes.
  • Added story sorting (asc/desc) on taskboard.
  • Current day is highlighted on calender.
  • Redesign login page and page banner.
  • Bugfix: Velocity chart is now showing correct values.
  • Bugfix: Sprint locked column is now working again.
  • Bugfix: Default value of story ref_id is now correctly set.
  • Bugfix: Assign button on backlog form is now working again.
  • Bugfix: If session expired redirect to login page is now working correct.
  • Bugfix: Now all columns on taskboard layout have same size.
  • Bugfix: Burndown chart, both lines start now with same value.

Check out the demo here

PlaatScrum 1.2

PlaatSoft released a new version of PlaatScrum with the following changes and bugfixes:

  • Added automatic database creation and patching
  • Make PHP code compliant with PHP version 7.x and higher.
  • Make SQL queries compliant with MySQL version 5.7 and higher.
  • Protect PHP source code for direct, not compiled access.
  • Protect all directory against direct URL access.
  • Improve layout of help pages.
  • Added Trivial and Blocker priority.
  • Improve password encryption algoritme.
  • If user is idle for 10 minutes the user is automatic logout.
  • Added icons for andriod and apple devices.
  • Improve a lot of other small things.
  • Bugfix: Fix several small issues.

Check out the demo here

PlaatSign 0.4

The next release of PlaatSign contain the following features:

  • Added home page with slide show preview.
  • Image format is now based on HD dimensions.
  • Improve solar, news and weather script examples.
  • Added icons for apple, android and window devices.
  • Added refresh setting (in minute) for script content.
  • Cron job is now only starting script when refresh timer is expired.
  • Bugfix: Start script is now working after reboot.
  • Bugfix: Script output is now directlty showed after upload.

Click here to download the latest version.

PlaatSign 0.3

The next release of PlaatSign contain the following features:

  • The following improvements were made after the first demo to the “end user”:
  • Added script content for dynamic content support.
  • Added video content support.
  • Improve file upload. File is now directly uploaded after selection.
  • Improve automatic database patching algoritm.
  • Remove jquery libraries. Speedup page loading.
  • Added fatal warning when config.php is not found.
  • Added fatal warning when database connection fails.
  • Added example content scripts: Clock, News, Weather, etc..
  • Bug fix: Improve php cron job now no output is generated anymore.
  • Bug fix: File size detection is now working correctly.
  • Bug fix: Remove some typos in the text.
  • Bug fix: Filename with uppercase extension is now correctly processed.

Click here to download the latest version.

PlaatEnergy 1.3

This is the next release of PlaatEnergy. This release contain the following changes and bug fixes:

  • Improve new version detection.
  • Bugfix: interfaces scripts are now loading correct *.php files
  • Improve cron script. Now no output is returned with course a warning email.
  • Added support for Basic HTTP authenication.
  • Optimize automatic database patching.
  • Added warning when config.php is not found!
  • Added warning when database connection fails!
  • PlaatEnergy is now support MySQL 5.7.x and PHP 7.x
  • Protect PHP source code against plain code reading (URL hacking).

Click here to download the latest version.

PlaatSign 0.2

The second release of PlaatSign contain the following features:

  • Added automatic content feature (automatic uploaded by external resource).
  • Upload the same content is now prohibit.
  • Timezone can now be configured on setting page. Default timezone is Europe/Amsterdam
  • Improve password hash algoritm. PlaatSign is now using the lastest and most secure algoritm.
  • User is automatic logout after 10 minutes idleness.
  • Added automatic database creation and patching.

Click here to download the latest version.

PlaatSign 0.1

The first release of PlaatSing contain the following features:

  • Added basic content page with CRUD actions
  • Added role base access
  • Added basic settings page
  • Added basic login/logout functionality
  • Added basic user setting page with CRUD actions
  • Added basic help page
  • Added basic release notes page
  • Added basic credits page
  • Added basic donate page
  • Added basic about page
  • Added basic unix photo slide script for Raspberry Pi

Click here to download the latest version.

PlaatProtect 0.2

This is the next release of PlaatProtect. This release contain the following changes and bug fixes:

  • General: Protect application with password and username combination.
  • General: Web session expire after 15 minutes.
  • General: Added email notification.
  • General: Added event process manager which control all zwave and zigbee events.
  • General: Location can be changed on zwave page now.
  • General: Zwave device state is now showed correctly.

Click here to download the latest version.

PlaatEnergy 1.2

This is the next release of PlaatEnergy. The release contain the following changes and bug fixes:

  • General: Added CO2 emission chart to gas and energy years reports.
  • General: PHP Data layer is now based on mysqli PHP library.
  • General: User session timeouts after 15 minutes inactivity.
  • General: Application is now protected with username and password combination.
  • General: Passwords are now encrypted stored in database.
  • General: Move webcam, light bulb features to new PlaatProtect project!
  • Bugfix: Fix negative energy us in Used Electricity Day report!

Click here to download the latest version.

PlaatProtect 0.1

This is the first release of PlaatProtect. The release contain the following features:

  • General: Added notification page.
  • General: Added logging page.
  • General: Added movement chart page.
  • General: Added Z-Wave vibration alarm detection.
  • General: Added Z-Wave node status on home page.
  • General: Added Notify My Android (NMA) webservice integration for push messages to andriod phone.
  • General: Added basic support for two webcams.
  • General: Added option to make picture from webcam view.
  • General: Added motion detection with automatic recording to webcam sensor script.
  • General: Added option to navigate through webcam recordings.
  • General: Added basic support for Philips HUE lighting system.

Click here to download the latest version.

PlaatEnergy 1.1

PlaatEnergy v1.1 is released with the following changes and bug fixes:

  • General: Added solar converter efficiency value to energy delivered year report
  • General: Improve export to SQL feature. Now export file can be downloaded and delete afterwards.
  • General: Added weather station script base on onboard pi sensor.
  • General: Show status of all enabled solar converters at home page.
  • General: Added system name field to configuration.
  • General: Added solar description field to configuration.
  • General: Solar measument adaption now support 3 solar converters
  • General: Maximum value calculation improved for used energy year report.
  • General: Added solar converter peak power setting to configuration.
  • Bugfix: Google Chart background set explicient to transparent.
  • Bugfix: Delivered electricity year report scale is now correct calculated.
  • Bugfix: Monthly max power chart is now working correct with 3 solar converters active.
  • Bugfix: Data capturing is now working correct for hosola solar converter.
  • Bugfix: If only solar converters are configured then data processing is now working fine.

Click here to download the latest version.

PlaatEnergy 1.0

PlaatEnergy v1.0 is released with the following changes and bug fixes:

  • General: Improve main and setting menu layout.
  • General: Added support for maximum 3 solar converter meters.
  • General: Added support for Hosola Bright solar converter meter.
  • General: Added export data page.
  • General: Added system overview page.
  • General: Added setting categories.
  • General: Added setting option to set initial solar converter reading.
  • General: Added setting option to disable gas meter.
  • General: Solar converter sensor scripts are now PHP based.
  • General: Refactor database model – All entity names are now english.

Click here to download the latest version.

PlaatEnergy finds fault in monthly Eneco energy report

Tens of thousands of Eneco customers with a digital energy and/or gas meter receive an email with information about their used/delivered energy and used gas each two months.

With PlaatEnergy I could proof to Eneco that this report contains a mismatch between the reported time period and the measured energy and gas values.

Eneco was grateful for my feedback and sent me the following postcard

SCAN0047

SCAN0046

PlaatEnergy 0.9

PlaatEnergy v0.9 is released with the following changes and bug fixes:

  • General: Added security shield arround WebGUI based on sessionId.
  • General: Improve customer query report.
  • General: Redesign solar deliverable charts (Now they are more flexible).
  • General: Added option to select solar meter vendor.
  • General: Improve theme and language hyperlink.
  • General: Added home password feature.
  • General: Added setting password feature.
  • General: If database connection fails, user is informed.

Click here to download the latest version.