Author Archives: admin

How to rename (tag) a docker image

Posted in Uncategorized | Leave a comment

How to install ansible in docker container

Posted in Uncategorized | Leave a comment

How to copy a docker image to another machine

Posted in Uncategorized | Leave a comment

Ansible NetApp centos 7

yum install epel-release -y yum install python-pip -y pip2 install –upgrade –user pip pip install –upgrade pip pip2 install –user “setuptools<45” pip install ansible pip install netapp-lib solidfire-sdk-python yum install git -y git clone https://github.com/ansible/ansible.git ~/ansible-devel cd ~/ansible-devel git pull … Continue reading

Posted in Uncategorized | Leave a comment

Linux Networking Quick

Posted in Uncategorized | Leave a comment

Netapp ONTAP Concepts and Architecture

Posted in Uncategorized | Leave a comment

Grant programmatic access to one bucket only

{ “Version”: “2012-10-17”, “Statement”: [ { “Effect”: “Allow”, “Action”: [ “s3:ListBucket” ], “Resource”: [ “arn:aws:s3:::bucketname” ] }, { “Effect”: “Allow”, “Action”: [ “s3:PutObject”, “s3:GetObject”, “s3:DeleteObject” ], “Resource”: [ “arn:aws:s3:::bucketname/*” ] } ] }

Posted in Uncategorized | Leave a comment

Docker start

Create a Dockerfile in your project Then, run the commands to build and run the Docker image: Visit http://localhost:8080 and you will see It works! Without a Dockerfile If you don’t want to include a Dockerfile in your project, it is sufficient to do the following: Configuration … Continue reading

Posted in Uncategorized | Leave a comment

cloud shared responsibility

Posted in Uncategorized | Leave a comment

cloud data security

Posted in Uncategorized | Leave a comment

cloud sns & sqs

Posted in Uncategorized | Leave a comment

cloud databases

Posted in Uncategorized | Leave a comment

cloud why

Posted in Uncategorized | Leave a comment

sgws overview

Posted in Uncategorized | Leave a comment

nfs example setup

Posted in Uncategorized | Leave a comment

samba example setup

Posted in Uncategorized | Leave a comment

linux routing example image

linux routing example

Posted in Uncategorized | Leave a comment

CentOS 7 quota

setup quota on CentOS 7

Posted in Uncategorized | Leave a comment

def_prep_2

http://uadmin.nl/init/wp-content/uploads/2019/06/def_prep_2.pdf

Posted in Uncategorized | Leave a comment

cups print to tty

Use cups to print to tty. 1. Install cups yum install -y cups 2. Enable cups systemctl enable cups 3. Start cups systemctl start cups 4. Create printer    lpadmin -p terminal2 -v serial:/dev/pts/2 -m raw 5. Enable terminal2 and … Continue reading

Posted in Uncategorized | Leave a comment

netapp simulator vbox

How to setup a single node vsim netapp cluster on virtual box. Flow by Martin Eijmans flow http://uadmin.nl/init/wp-content/uploads/2019/02/me_flow.pdf

Posted in Uncategorized | Leave a comment

linux add password to grub2

1. run the command to create a password hash. grub2-mkpasswd-pbkdf2 2. edit the following file like this vi /etc/grub.d/01_users #!/bin/sh -e cat << EOF     set superusers=”root”     password_pbkdf2 root grub.pbkdf2.sha512.10000.6A9A780AF06AFA821060956BC089B89A4F5A24F593268FED5DB42978EC7F956BD51FC7BB815B2ABF0BA8EC7F96DA7444B6254725505E06BED12C4AA97485CBFF.AF4A12B70E499340EF97720EF21434A55F1D124B9B9D062413314C8B554197235A525FD0F73C24FBDAF534F5A54CA576FDBF3456526A520BA5F087696B5F8047 EOF 3. apply the password to grub … Continue reading

Posted in Uncategorized | Leave a comment

Protected: routing

There is no excerpt because this is a protected post.

Posted in Uncategorized | Enter your password to view comments.

ansible basic config

ansible_guide_v1This pdf introduces ansible. Installing Ad-Hoc commands Playbooks ansible_guide_v1

Posted in Uncategorized | Leave a comment

ansible cookbook

ansible_guide

Posted in Uncategorized | Leave a comment

linux shell loops branches

loops_branches

Posted in Uncategorized | Leave a comment

netapp sysmgr access to svm (delegate)

#create and allow readonly to the role via the cluster management lif security login role create -role peterr -cmddirname DEFAULT -access readonly #allow access to svm_blue (all access) security login role create -role peterr -cmddirname “volume qtree” -query “-vserver svm_blue” … Continue reading

Posted in Uncategorized | Leave a comment

NS0-158/59 exam study tips

exam_tips

Posted in Uncategorized | Leave a comment

ontap cli administration course outline

intro

Posted in Uncategorized | Leave a comment

ansible install on raspberry pi

apt-get install software-properties-common apt-get update apt-get install ansible now change the hosts file in /etc/ansible make sure you have publickey login on the hosts e.g. run: ssh-copy-id root@host1 then check with ansible: ansible -m ping all some adhoc examples: list … Continue reading

Posted in Uncategorized | Leave a comment

ansible play-book create a user

– hosts: linvms user: root vars: #password is ‘yourpass’ password: $1$xyz$X5pC0RUqKE5mOgXcDDgFk0 tasks: – user: name=peter password={{password}}

Posted in Uncategorized | Leave a comment

ansible ad-hoc

$ ansible atlanta -m copy -a “src=/etc/hosts dest=/tmp/hosts” $ ansible webservers -m file -a “dest=/srv/foo/a.txt mode=600” $ ansible webservers -m file -a “dest=/srv/foo/b.txt mode=600 owner=linuser group=linuser” $ ansible webservers -m file -a “dest=/path/to/c mode=755 owner=linuser group=linuser state=directory” $ ansible webservers … Continue reading

Posted in Uncategorized | Leave a comment

ansible-playbook example

$ cat p1.yml — – hosts: linvms vars: http_port: 80 max_clients: 200 remote_user: root tasks: – name: ensure apache is at the latest version yum: name: httpd state: latest – name: write the apache config file template: src: /etc/httpd/conf/httpd.conf dest: … Continue reading

Posted in Uncategorized | Leave a comment

centos vlan setup

# cat ifcfg-ens224 TYPE=Ethernet BOOTPROTO=none NAME=ens224 UUID=60edd252-25eb-4396-baca-f7b09a3bec5e DEVICE=ens224 ONBOOT=yes # cat ifcfg-ens224.2 TYPE=Vlan BOOTPROTO=none NAME=ens224.2 UUID=60edd252-25eb-4396-baca-f7b09a3bec5e DEVICE=ens224.2 IPADDR=192.168.2.11 PREFIX=24 ONBOOT=yes VLAN=yes

Posted in Uncategorized | Leave a comment

rsa quick overview and example

rsa quick overview and example

Posted in Uncategorized | Leave a comment

rsa

Alice_Bob_Eve

Posted in Uncategorized | Leave a comment

diffie hellman

diffie_hellman

Posted in Uncategorized | Leave a comment

ontap 9.3 licenses sim

CLUSTERED SIMULATE ONTAP LICENSES +++++++++++++++++++++++++++++++++ These are the licenses that you use with the clustered Data ONTAP version of Simulate ONTAP to enable Data ONTAP features. There are four groups of licenses in this file: – cluster base license – … Continue reading

Posted in Uncategorized | Leave a comment

Protected: docs

There is no excerpt because this is a protected post.

Posted in Uncategorized | Enter your password to view comments.

vsim_makedisks

vsim_makedisks

Posted in Uncategorized | Leave a comment

linux_module_4

Module4

Posted in Uncategorized | Leave a comment

linux_network_exercises

This page contains some PDFs with linux network exercises. 1. ssh autologin 2. ip binding Centos 7 3. linux nfs 4. cron 5. systemctl

Posted in Uncategorized | Leave a comment

genfile

#!/bin/bash if [ $# -ne 5 ] then echo “usage: $0 <start_count> <end_count> <device_to_read_from><output_filename>” echo “example: $0 1 500 /dev/sda 4096 run1” exit fi skip=0 for i in `seq $1 $2` do dd if=$3 of=${5}.$i count=1 bs=$4 skip=$skip ((skip+=1)) done

Posted in Uncategorized | Leave a comment

Linux_scripts splitfile

splitfile

Posted in Uncategorized | Leave a comment

TIME_ex

TIME_ex

Posted in Uncategorized | Leave a comment

firewalld_ex_def

firewalld_ex

Posted in Uncategorized | Leave a comment

def_exam_prep

def_exam_prep

Posted in Uncategorized | Leave a comment

linux del and undel exercise

del script #!/usr/bin/bash TRASH=/trash DB=/trash/db touch /trash/db mkdir ${TRASH} 2> /dev/null if (($# == 0)) then echo “usage: del ” fi FILE=`basename $1` DIR=`dirname $1` DIR=`echo $DIR|sed ‘s/\//_/g’` SUFFIX=`date +%Y_%m_%d_%H_%M_%S` FILE=${FILE}_${SUFFIX}_$DIR ID=`wc -l ${DB}|awk ‘{print $1}’` echo $ID ((ID+=1)) echo … Continue reading

Posted in Uncategorized | Leave a comment

NFS_autofs_ex

NFS_autofs

Posted in Uncategorized | Leave a comment

linux LVM_ex

LVM_ex

Posted in Uncategorized | Leave a comment

NFS_ex

NFS client and server

Posted in Uncategorized | Leave a comment

Linux exercises

NFS client and server LVM ip binding systemd SElinux nfs autofs working in the shell firewalld date and ntp scripts splitfile Cron

Posted in Uncategorized | Leave a comment

CERT_GUIDE_EX2

CERT_GUIDE_EX2_PDF

Posted in Uncategorized | Leave a comment

linux binding_ex

exmil

Posted in Uncategorized | Leave a comment

linux exercises cert-guide

CERT_GUIDE_EX_PDF

Posted in Uncategorized | Leave a comment

linux systemd_ex

create a service file. cp /lib/systemd/system/crond.service \ /lib/systemd/system/sleep.service edit the service file. vi /lib/systemd/system/sleep.service [Unit] Description=sleep service [Service] ExecStart=/usr/sbin/sleep.sh KillMode=process [Install] WantedBy=multi-user.target create a script to be executed. vi /usr/sbin/sleep.sh #!/usr/bin/bash sleep 1000 make the script executable chmod +x /usr/sbin/sleep.sh … Continue reading

Posted in Uncategorized | Leave a comment

linux apache virtual hosts example

Create the directory structure mkdir -p /var/www/html/www.vhost1.com mkdir -p /var/www/html/www.vhost2.com Create test web pages for each virtual host echo “vhost1” > /var/www/html/www.vhost1.com/index.html echo “vhost1” > /var/www/html/www.vhost1.com/index.html echo “vhost2” > /var/www/html/www.vhost2.com/index.html Set up ownership and permissions chown -R apache:apache /var/www/html/www.vhost1.com chown … Continue reading

Posted in Uncategorized | Leave a comment

netapp aggr efficiency

To view compaction, dedupe and compression results. cl1::*> aggr show-efficiency -aggregate n2_aggr1 Name of the Aggregate: n2_aggr1 Node where Aggregate Resides: cl1-02 Logical Size Used by Volumes, Clones, Snapshot Copies in the Aggregate: 118.8MB Total Physical Used: 126.5MB Total Storage … Continue reading

Posted in Uncategorized | Leave a comment

Netapp add snapmirror relationship with altavault nfs share

cl1::> snapmirror create -source-path svm1:vol1 -destination-path 192.168.4.244:/share/rfs/nfs -type xdp Operation succeeded: snapmirror create for the relationship with destination “192.168.4.244:/share/rfs/nfs”.

Posted in Uncategorized | Leave a comment

docker service swarm web example

Docker service swarm web 4 nodes 6 containers PDF Docker service swarm web 4 nodes 6 containers PDF

Posted in Uncategorized | Leave a comment

cdot snapmirror exercise with commands

1. Create a new SVM (SVMcl1) on cluster1 and add a LIF to the SVM: 192.168.0.200 vserver create -vserver SVMcl1 -rootvolume root -aggregate aggr1_n1 -rootvolume-security-style unix net int create -vserver SVMcl1 -lif lif1 -address 192.168.0.200 -netmask 255.255.255.0 -role data \ … Continue reading

Posted in Uncategorized | Leave a comment

cdot snapmirror exercise without commands

1. Create a new SVM (SVMcl1) on cluster1 and add a LIF to the SVM: 192.168.0.200 2. Add a 500MB volume (cl1data) to the SVM with junction-path: /data 3. Add an export-policy with a rule for the CentOS VM: (192.168.0.10) … Continue reading

Posted in Uncategorized | Leave a comment

redhat clustering

Redhat Clustering

Posted in Uncategorized | Leave a comment

cdot autosupport test

cluster1::> system node autosupport invoke -type test -node node1

Posted in Uncategorized | Leave a comment

openstack compute node on centos7

yum install -y https://rdo.fedorapeople.org/rdo-release.rpm

Posted in Uncategorized | Leave a comment

openstack storagebackends

storage backends

Posted in Uncategorized | Leave a comment

openstack lvm and cinder

If you do not specify a volume group, cinder will create his own volume group called cinder-volumes and use loopback devices for physical volumes. If you do create and specify a volume group, you should specify the volume group to … Continue reading

Posted in Uncategorized | Leave a comment

CDOT 8.3 statistics catalog example

statistics catalog instance show -object lif statistics catalog instance show -object volume statistics catalog counter show -object lif statistics catalog counter show -object volume statistics start -object lif -counter recv_data statistics stop statistics show -object lif

Posted in Uncategorized | Leave a comment

ceph

ceph

Posted in Uncategorized | Leave a comment

solaris 11 exercise zones (1)

1. The zones will have /software as root. # df -h | grep software software 20G 33K 16G 1% /software 2. Create a vnic for a new zone. # dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up … Continue reading

Posted in solaris | Leave a comment

clustermode SFO

In CMode, when a failover or takeover has taken place, the root-aggregate of the partnernode is owned by the surviving partner. How to get to the rootvolume of the partner’s root-aggregate? 1. Log in to she systemshell. 2. Run the … Continue reading

Posted in netapp | Leave a comment

netapp hwassist

There are specific Data ONTAP commands for configuring the hardware-assisted takeover feature. If you want to… Use this command… Disable or enable hardware-assisted takeover storage failover modify hwassist Set the partner address storage failover modify hwassist-partner-ip Set the partner port … Continue reading

Posted in netapp | Leave a comment

netapp adding disks

7-mode and cmode

Posted in netapp | Leave a comment

linux allocate memory

#!/bin/bash echo “Provide sleep time in the form of NUMBER[SUFFIX]” echo ” SUFFIX may be ‘s’ for seconds (default), ‘m’ for minutes,” echo ” ‘h’ for hours, or ‘d’ for days.” read -p “> ” delay echo “begin allocating memory…” … Continue reading

Posted in linux | Leave a comment

solaris 11 integrated load balancer example

ilb example

Posted in solaris | Leave a comment

solaris 11 lacp dlmp link-aggregate

1. create an aggregate (aggr0) over net1 net2 and net3 ( in vbox Adapter1=net3 Adapter2=net0 Adapter3=net1 Adapter4=net2 ) dladm create-aggr -l net1 -l net2 -l net3 aggr0 dladm modify-aggr -m trunk aggr0 (trunk is the default though) dladm show-aggr -L … Continue reading

Posted in solaris | Leave a comment

solaris11 distro_const

distribution constructor pfexec pkg install SUNWdistro-const mkdir -p /ips/manifests cp /usr/share/distro_const/dc_text_x86.xml /ips/manifests/ distro_const build /ips/manifests/dc_text_x86.xml

Posted in Uncategorized | Leave a comment

solaris 11 exercise pkg search and install

To search for a package in a particular publisher: # pkg search -s http://192.168.4.150 (output skipped) To install a package from a particular publisher: # pkg install -g http://192.168.4.150 (output skipped)

Posted in solaris | Leave a comment

solaris script to create and delete a zone

1. create a filesystem and install a zone then snapshot the filesystem and use it for cloning at zonecreation zonecfg -z basezone create set zonepath=/zonepool/basezone exit zoneadm -z base install zfs snapshot zonepool/basezone@base script: zcreate ========================================== #!/usr/bin/bash if test $# … Continue reading

Posted in solaris | Leave a comment

testje

ssh hello

Posted in Uncategorized | Leave a comment

esxi mac address

vim-cmd hostsvc/net/info | grep “mac =” mac = (string) [ mac = “00:1b:78:59:eb:52”, mac = “00:1b:78:59:eb:53”, mac = “80:ee:73:63:4e:1c”, mac = “00:1b:78:59:eb:52”,

Posted in Virtualization | Leave a comment

solaris11 network stack

solaris 11 network stack

Posted in solaris | Leave a comment

solaris11 networking getting started

oracle html Oracle New Features of Oracle Solaris 11 Network Configuration Manual and Automatic Networking Modes Manual Network Configuration Name Service Configuration Using SMF Setting the Host Name Changes to /etc/hosts Automatic Network Configuration Using Profiles Network Profiles Creating a … Continue reading

Posted in solaris | Leave a comment

solaris11 ai_installer non_global zones

installing non-global zones with ai

Posted in solaris, Uncategorized | Leave a comment

solaris 11 exercise zones (2) resource control

Situation: global zone, zone1 and zone2. First bring all processes under FSS control dispadmin -d FSS this will set the default scheduling to FSS at reboot. file: /etc/dispadmin.conf To set up a running system. priocntl -s -c FSS -i all … Continue reading

Posted in solaris | Leave a comment

distro_const example

distro_const

Posted in solaris | Leave a comment

solaris 11 exercise zones (3) clone zone

1. create webzone-1 root@global:~# zonecfg -z webzone-1 “create ; set zonepath=/zones/webzone-1” 2. install webzone-1 root@global:~# zoneadm -z webzone-1 install 3. login and configure webzone-1 root@global:~# zoneadm -z webzone-1 boot; zlogin -C webzone-1 4. create template-profile in webzone-1 root@global:~# zlogin webzone-1 … Continue reading

Posted in solaris | Leave a comment

solaris 11 exercise smf (3) system identity

# svccfg –s svc:/system/identity:node setprop config/nodename = “myhost” # svcadm refresh svc:/system/identity:node # svcadm restart svc:/system/identity:node Configuring console keyboard layout: # svccfg –s keymap:default setprop keymap/layout = UK-English # svcadm refresh keymap # svcadm restart keymap Configuring system locale: # … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 create multiple repositoryservers

original url: omnios.omniti Creating Repos # Why? Because it’s easy. It’s also a good way to separate packages with different dispositions, such as core OS vs. site-specific. First, create the repo. Any directory will do, but it’s usually a good … Continue reading

Posted in solaris | Leave a comment

linux install vmwaretools (CentOS)

create /etc/yum.repos.d/vmware.repo with the following content: [vmware-tools] name=VMware Tools #baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel5/i386 #baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel5/x86_64 #baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel6/x86_64 #baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel5/i686 baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel6/i686 enabled=1 gpgcheck=1 gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub run the following command: yum install vmware-tools-esx-nox

Posted in linux, Virtualization | Leave a comment

solaris 11 zones (4) delegation example

Delegate zonemanagement of zone3 to user peter. # zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / solaris shared 2 zone3 running /rpool/zones/zone3 solaris excl # zonecfg -z zone3 zonecfg:zone3> add admin zonecfg:zone3:admin> set user=peter zonecfg:zone3:admin> … Continue reading

Posted in solaris | Leave a comment

solaris 11 exercise zfs (2) and intentlog (zil)

sync=standard This is the default option. Synchronous file system transactions (fsync, O_DSYNC, O_SYNC, etc) are written out (to the intent log) and then secondly all devices written are flushed to ensure the data is stable (not cached by device controllers). … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 exercise zfs (6) encryption

example with key zfs create -o encryption=on rpool/cryptfs Enter passphrase for ‘rpool/cryptfs’: Enter again: zfs snapshot rpool/cryptfs@snap1 zfs clone rpool/cryptfs@snap1 rpool/cryptclone Enter passphrase for ‘rpool/cryptclone’: Enter again: example with keyfile # pktool genkey keystore=pkcs11 keytype=aes keylen=128 label=mykey Enter PIN for … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 flowadm (1)

Simple flowadm example. server1 – 192.168.4.142, nic-name – net0 client1 – 192.168.4.161 client2 – 192.168.4.6 On server1 that runs solaris 11 run the following commands: # flowadm add-flow -l net0 -a remote_ip=192.168.4.161 ssh-1 # flowadm add-flow -l net0 -a remote_ip=192.168.4.6 … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 crossbow

crossbow

Posted in Uncategorized | Leave a comment

solaris11 integrated load balancer (3)

ILB Operation Modes ILB supports stateless Direct Server Return (DSR) and Network Address Translator (NAT) modes of operation for IPv4 and IPv6, in single-legged and dual-legged topologies. Stateless DSR topology NAT mode (full-NAT and half-NAT) topology Direct Server Return Topology … Continue reading

Posted in solaris | Leave a comment

solaris11 integrated load balancer (2)

Configuring ILB This section describes the steps for setting up ILB to use a half-NAT topology to load balance traffic among two servers. See the NAT topology implementation in ILB Operation Modes. How to Configure ILB Assume a role that … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 integrated load balancer (1)

How to Enable ILB Before You Begin Make sure that the system’s role-based access control (RBAC) attribute files have the following entries. If the entries are not present, add them manually. File name: /etc/security/auth_attr solaris.network.ilb.config:::Network ILB Configuration::help=NetworkILBconf.html solaris.network.ilb.enable:::Network ILB Enable … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 zone delegation

Delegation of Solaris Zone Administration By darrenm on Jul 04, 2012 In Solaris 11 ‘Zone Delegation’ is a built in feature. The Zones system now uses finegrained RBAC authorisations to allow delegation of management of distinct zones, rather than all … Continue reading

Posted in Uncategorized | Leave a comment

solaris11 linkprop

From the global zone enable link protection on vnic0: We can set different modes: ip-nospoof, dhcp-nospoof, mac-nospoof and restricted. ip-nospoof: Any outgoing IP, ARP, or NDP packet must have an address field that matches either a DHCP-configured IP address or … Continue reading

Posted in Uncategorized | Leave a comment