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.

Monday, June 10, 2013

Monitoring SRDF

Dears,

Some of them asked for it, This script is to monitor SRDF status,

regards

Wednesday, May 29, 2013

VMAX Capacity Reporting System

This script is developed to help UNIX/Storage Specialist/Managers reporting their VMAX storage utilization in a granular and non debatable manner for higher management,  also will help in the capacity management for long term, it can be imported as text to excel sheet then total capacities calculate make graphs.

In my case I'm automating the loading of this data to oracle database, also installed application server with Apache and PHP with oracle instant support to pull and display statistics from the database server.

The output file of the script is nine columns which are:

  1. Storage Group name which is inside the Masking View
  2. Assigned Tier1, the assigned space from the first tier
  3. Utilized Tier1, the actual Utilized space from the first tier
  4. Assigned Tier2, the assigned space from the second tier
  5. Utilized Tier2, the actual Utilized space from the second tier
  6. Assigned Tier3, the assigned space from the third tier
  7. Utilized Tier3, the actual Utilized space from the third tier
  8. Assigned Tier4, the assigned space from the fourth tier
  9. Utilized Tier4, the actual Utilized space from the fourth tier
Note: the script is developed with four tiers (thin pools) in mind, so modifications are needed for more or less tiers.

Attached snapshot for my reporting system