Tuesday, December 20, 2016

Avamar automating image level backup

Good whatever time you are in,

In the Avamar as server backup solution, we take Guest level backup, Application (Oracle, SQL server, Exchange..etc.) backups or VM snapshot backup.

Now, for the guest level backup you can use "msiexec ..etc." command to install client and register it with avamar from the client side. But when it comes to VM snapshot backup, it has to be configured from Avamar side. This task is painful if you are migrating from old backup solution like networker to avamar and specially when number of VMs is more than 500.

So, I decided to write script to deploy the VMs accepting the required inputs, searching for the client in the vcenter, adding it and adding the client to the respective group.

The only type of VM clients you can't add is VM client with "spaces" inside the name.

Check and your feedback is appreciated.

Saturday, January 16, 2016

networker backup speed report

To assess the backup performance you need to know the duration and the backup rate, however this is not available in networker command line utilities, so I wrote a script that collect the data a client and date passed as arguments to the script then it will give you the backup details adding the duration of the backup in hours, seconds and the rate MB/s, all you have to do is to fill the backup server name inside the script "backup_server = BKP_SERVER_NAME".

Your feedback is appreciated.

Tuesday, December 29, 2015

VPLEX report

This script is written to report the VPLEX capacity distribution, as a prerequisites use python 3.3 or the minimum version supports "subprocess.check_output", install openpyxl module; then replace this with your credentials, ip and email details

USERNAME = 'UserName'
PASSWORD = 'PassWord'
VPLEX_IP = 'VPLEX_IP'
EMAIL_FROM = 'report@company.com'
EMAIL_TO = 'email@company.com'

your feedback is appreciated,

Wednesday, August 27, 2014

resetting admins passwords in UNIX/Linux using perl

Dears,

this is my first perl script to reset the admins/users to a default password non-interactively, it could be used with the previous shell script to harden new system and add the users as well as resetting their password to default password, you will need to add the encrypted password in ReqPass variable, then the "admins" in the AdminList array variable.

Friday, August 22, 2014

Dears,

I made effort on writing script for hardening our systems, hardening is including

  • disabling the root login
  • setting password complexity and aging
  • setting banner
  • creating the admin users and add them to same group
  • deploying putty public keys for key based login for each user (requires you have the private key in your system)
  • distributing the system keys to enable ssh rsa key based login between the Linux systems
  • stopping some services like iptables, selinux and starting services like vmware tools for the vmware based systems
required:
  1. you should have the public putty keys in the same directory with the script, and the should have the same name convention eg. "samir_public_key", and "samir" should be existing in the list of admins "admin_list".
  2. you should have the private and the public and the private linux keys for linux systems login, eg. "admin3_sys_public_key" and "samir_sys_private_key" respectively.
  3. you should have the "banner" template
  4. you should have "sudoers" template
the directory of the script will look like the same:

admin1_public_key       admin2_public_key       admin3_public_key       admin4_public_key       admin5_public_key       admin6_public_key       banner      sudoers
admin1_sys_private_key  admin2_sys_private_key  admin3_sys_private_key  admin4_sys_private_key  admin5_sys_private_key  admin6_sys_private_key  admin1_sys_public_key   admin2_sys_public_key   admin3_sys_public_key   admin4_sys_public_key   admin5_sys_public_key   admin6_sys_public_key   harden.sh

BEFORE you run the script be sure that you another user who can access the system, as if you execute it without having you private putty keys you will lock yourself out side the box through ssh login.
this is the SCRIPT.
please notify me if you think it needs any modifications
 


Saturday, July 12, 2014

Linux Centos clustering

Please check the following link for cluster script which works interactively for receiving the inputs from the admin in order to configure the most basic cluster, be aware that you need to install the clustering packages before running the script.

Thursday, June 13, 2013

Fast SAN Zoning Script

This Script is developed to Zone brocade switches as fast, safe as possible, check the README carefully and test it in NON production server first.