Thursday, 28 December 2017

NNMi: Install NNMi and import rpm HPE public key

To install NNMi 10.20 on the linux add HPE/MicroFocus public key in system.

Download HP GPG or RPM Signature frome hpe site:

Extract all files and add signature to linux rpm:
rpm --import /path_to_the_key/*.pub

Small bash scripts

Scripts for generating passwords of the specified required lehgth and quantity bash:

# Create password
# <lenght_passwords> <quantity_paswords>
# 10 4

genpasswd() {
local l=$1
[ "$l" == "" ] && l=16
tr -dc A-Za-z0-9_! < /dev/urandom | head -c ${l} | xargs
[ "$m" == "" ] && m=1
for ((N=1; N<=m; N++))
genpasswd $l

Password generation in a Perl one line:

perl -le 'print map{(a..z,A..Z,0..9)[rand 62]} 0..20'

Linux: use strace for debugging

Command strace:

Strace shows the name each  system call, its arguments and its return value. Strace is a useful diagnostic, instructional, and debugging tool.

Install strace:

$ sudo apt install strace #Debian/Ubuntu 
# yum install strace #RHEL/CentOS 
# dnf install strace #Fedora 

Help strace:

[root@nnmi var]# strace -h
usage: strace [-CdffhiqrtttTvVwxxy] [-I n] [-e expr]...
              [-a column] [-o file] [-s strsize] [-P path]...
              -p pid... / [-D] [-E var=val]... [-u username] PROG [ARGS]
   or: strace -c[dfw] [-I n] [-e expr]... [-O overhead] [-S sortby]
              -p pid... / [-D] [-E var=val]... [-u username] PROG [ARGS]

Output format:
  -a column      alignment COLUMN for printing syscall results (default 40)
  -i             print instruction pointer at time of syscall
  -o file        send trace output to FILE instead of stderr
  -q             suppress messages about attaching, detaching, etc.
  -r             print relative timestamp
  -s strsize     limit length of print strings to STRSIZE chars (default 32)
  -t             print absolute timestamp
  -tt            print absolute timestamp with usecs
  -T             print time spent in each syscall
  -x             print non-ascii strings in hex
  -xx            print all strings in hex
  -y             print paths associated with file descriptor arguments
  -yy            print protocol specific information associated with socket file descriptors

  -c             count time, calls, and errors for each syscall and report summary
  -C             like -c but also print regular output
  -O overhead    set overhead for tracing syscalls to OVERHEAD usecs
  -S sortby      sort syscall counts by: time, calls, name, nothing (default time)
  -w             summarise syscall latency (default is system time)

  -e expr        a qualifying expression: option=[!]all or option=[!]val1[,val2]...
     options:    trace, abbrev, verbose, raw, signal, read, write
  -P path        trace accesses to path

  -b execve      detach on execve syscall
  -D             run tracer process as a detached grandchild, not as parent
  -f             follow forks
  -ff            follow forks with output into separate files
  -I interruptible
     1:          no signals are blocked
     2:          fatal signals are blocked while decoding syscall (default)
     3:          fatal signals are always blocked (default if '-o FILE PROG')
     4:          fatal signals and SIGTSTP (^Z) are always blocked
                 (useful to make 'strace -o FILE PROG' not stop on ^Z)

  -E var         remove var from the environment for command
  -E var=val     put var=val in the environment for command
  -p pid         trace process with process id PID, may be repeated
  -u username    run command as username handling setuid and/or setgid

  -d             enable debug output to stderr
  -v             verbose mode: print unabbreviated argv, stat, termios, etc. args
  -h             print help message

  -V             print version

Friday, 30 June 2017

A new version of the software has been released: HPE Data Protector 10.00

What's new in Data Protector v10:

  • New web-based graphical user interface (GUI) (Better late than never!)
  • Dashboard, new scheduler
  • New secure communication model
  • Oracle OS authentication

Tuesday, 4 April 2017

New patch HPE data protector 9.09

Data Protector 9.09 for Windows Installation Instructions

Data Protector 9.09 for HP-UX

Data Protector 9.09 for Linux

What's new?

The following key features are introduced in Data Protector 9.09:
·         Windows Mount Proxy support (for GRE, PowerOn and liveMigrate from StoreOnce Catalyst)
·         Firewall-friendly Data Protector
·         Now compatible with DDOS 6.0 and DDBoost 3.3 
·         Dynamic update of VMs in a backup specification
·         NetApp ONTAP 9.0x C-mode supports
·         Telemetry service