Tuesday, 21 May 2019

Bash (Linux) and Powershell (Windows) Scripts to Test File Access to Multiple Locations

Linux


Here’s the bash script with 2 example targets:


#!/bin/bash
while true
do
([ -e /mnt/test1/test1.txt ] && date >> /mnt/LOG/log1.txt || echo "FAILURE")
([ -e /mnt/test2/test2.txt ] && date >> /mnt/LOG/log2.txt || echo "FAILURE")
sleep 1
done


Save as say fileaccess.sh and run in bash as sh fileacess.sh

In the above example we’re testing access to 2 files, each in a different mount point. Time stamp is log for successes. Failure is echoed to the screen for failure. There’s a wait of 1 second.

It’s possible to do it as a one line to from the bash shell:


while true ; do ([ -e /mnt/test1/test1.txt ] && date >> /mnt/LOG/log1.txt || echo "FAILURE") ; ([ -e /mnt/test2/test2.txt ] && date >> /mnt/LOG/log2.txt || echo "FAILURE"); sleep 1 ; done


Powershell

Here’s the powershell script with 2 example targets:


"" > C:\LOG\log1.txt
"" > C:\LOG\log2.txt
while($TRUE){
If (test-path C:\mnt\test1\test1.txt){ [String](date) >> C:\LOG\log1.txt }
else { Write-Host "FAILURE" }
If (test-path C:\mnt\test2\test2.txt){ [String](date) >> C:\LOG\log2.txt }
else { Write-Host "FAILURE" }
sleep 1
}


Save as say filetester.ps1 and run in powershell .\filetester.ps1

Similarly, you could turn it into a one liner. Or you can just copy and paste it into powershell.

Intention

The idea is that you can set up a number of NFS mounts, and/or a number of CIFS shares, and test the availability of file access.

Thursday, 9 May 2019

Tech Roundup – 9th May 2019

An earlier than normal tech roundup due to the releases of NetApp ONTAP 9.6 & AFF A320!
Otherwise stuff collated/new since Tech Roundup - 14th April 2019 with headings:
IT Miscellany, NetApp, NetApp ActiveIQ, NetApp.io, NetApp TRs, Security, TechONTAP Podcast, Veeam

NetApp 8th May Releases: ONTAP 9.6 & AFF A320

NetApp Powers Data-Driven Organizations to Succeed

AFF A320: NVMe Building Block for the Modern SAN

Drive More Simplicity, Efficiency, and Security with ONTAP 9.6

ONTAP Data Management Software

AFF A-Series All Flash Arrays

What Is a Data Fabric?

Image: ONTAP Data Management Software

IT Miscellany

Some internet outages predicted for the coming month as '768k Day' approaches

Kubernetes the easy way - for monolithic apps

NetApp

Drive Infrastructure Investment…Be the Cloud Architect

Building in Security by Default in Next Generation Data Center at NetApp

NetApp ActiveIQ

Download the mobile app:

Introducing Fabric Pool Advisor: Learn which clusters have inactive data and are candidates for tiering. View a summary of aggregates for which Inactive Data Reporting (IDR) is not enabled and learn how to enable IDR. Access this feature from the Advisories tab in the left navigation at the customer level dashboard.


NetApp.io (thePub)

New since the last Tech Roundup!

Bring in the Volumes!

Ansible Roles Make Day to Day Operations Easier

My Name Is Stein!

How to Install and Use Trident with Docker EE 2.1 Universal Control Plane and Kubernetes

NetApp TRs

New/apparent since the last Tech Roundup! Also see here: NetApp TRs 4500 to 4999


Security

Hackers Compromise Microsoft Support Agent to Access Outlook Email Accounts

Emotet hijacks email conversation threads to insert links to malware

TechONTAP Podcast (+ WitIB)

New since the last Tech Roundup!

Sneak Peek! Elastic Sizing for FlexGroup Volumes in ONTAP 9.6

Sneak peek! REST APIs in ONTAP 9.6

BONUS CONTENT: ONTAP 9.6 Feature Overview

Episode 188: FlexGroup Update

Episode 187: MAX Data and Intel Optane DCPMM

Episode 186: ONTAP Storage Efficiency Overview

Veeam

[Whitepaper] How to start with modern authentication in Veeam Backup for Microsoft Office 365 v3

Monday, 22 April 2019

Exploring the StorageGRID 11.0 Graphical Management Interface (GMI): Part 1 of 4 - Main Tabs

Dashboard
https://ADMIN_NODE_IP/grid/#/dashboard

Image: StorageGRID 11.0 Dashboard

Top Bar

Image: Top Bar

Help:
- API Docs
- About

Root:
- Change Password

Tabs Bar (below Top Bar)

Image: Tabs Bar

Dashboard
Alarms
Grid
Tenants

ILM:
- Rules
- Policies
- Storage Pools
- Storage Grades
- Erasure Coding
- Regions
- Object Metadata Lookup

Configuration - System Settings:
-- Domain Names
-- Grid Options
-- Link Cost
-- Storage Options
-- Display Options
-- Server Certificates

Configuration - Monitoring:
-- Global Alarms
-- Notifications
-- Email Setup
-- AutoSupport
-- Audit
-- Events

Configuration - Access Control:
-- Admin Users
-- Admin Groups
-- Identity Federation

Maintenance - Maintenance Tasks:
- Expansion
- Decommission
- Recovery

Maintenance - Network:
- Grid Network
- DNS Servers
- NTP Servers

Maintenance - System:
- License
- Logs
- Recovery Package
- Software Upgrade

Alarms
https://ADMIN_NODE_IP/grid/#/alarms

Image: Alarms

Alarms - Current
Alarms - History

Grid
https://ADMIN_NODE_IP/grid/#/topology

Image: Grid - Overview (Tab)

Image: Grid - Alarms (Tab)

Image: Grid - Reports (Tab)

Image: Grid - Configuration (Tab)

Note: Only services have configuration options here.

Tenants
https://ADMIN_NODE_IP/grid/#/storage-tenants/tenant-accounts

Image: Tenants

Image: Step 1 - Create Tenant Account

Image: Step 2 - Configure Tenant Account

Exploring the StorageGRID 11.0 Graphical Management Interface (GMI): Part 2 of 4 - ILM

ILM - Rules
https://ADMIN_NODE_IP/grid/#/ilm/rules

Image: ILM Rules

Image: Create ILM Rule: Step 1 of 2: Define Basics

Image: Create ILM Rule: Step 2 of 2: Define Placements

ILM - Policies
https://ADMIN_NODE_IP/grid/#/ilm/policies

Image: ILM Policies

Image: Configure ILM Policy

ILM - Storage Pools
https://ADMIN_NODE_IP/grid/#/ilm/storage-pools

Image: ILM Storage Pools

ILM - Storage Grades
https://ADMIN_NODE_IP/grid/#/ilm/storage-grades

Image: ILM Storage Grades

ILM - Erasure Coding
https://ADMIN_NODE_IP/grid/#/ilm/erasure-coding

Image: ILM Erasure Coding Profiles

Image: Create EC Profile

ILM - Regions
https://ADMIN_NODE_IP/grid/#/regions

Image: ILM Regions

ILM - Object Metadata Lookup
https://ADMIN_NODE_IP/grid/#/object-metadata/lookup

Image: Object Metadata Lookup

Exploring the StorageGRID 11.0 Graphical Management Interface (GMI): Part 3.1 of 4 - Configuration: System Settings

Configuration: System Settings - Domain Names
https://ADMIN_NODE_IP/grid/#/domain-names

Image: Endpoint Domain Names

Configuration: System Settings - Grid Options
https://ADMIN_NODE_IP/grid/#/grid-options

Image: Configure Grid Options

Configuration: System Settings - Link Cost
https://ADMIN_NODE_IP/grid/#/link-cost

Image: Link Cost

Configuration: System Settings - Storage Options
https://ADMIN_NODE_IP/grid/#/storage-options

Image: Storage Options Overview

Image: Configure Storage Options

Configuration: System Settings - Display Options
https://ADMIN_NODE_IP/grid/#/display-options

Image: Display Options

Image: Display Options - Entities

Image: Display Options - NMS Names

Configuration: System Settings - Server Certificates
https://ADMIN_NODE_IP/grid/#/server-certificates

Image: Server Certificates

Exploring the StorageGRID 11.0 Graphical Management Interface (GMI): Part 3.2 of 4 - Configuration: Monitoring

Configuration: Monitoring - Global Alarms
https://ADMIN_NODE_IP/grid/#/global-alarms

Image: Global Alarms

Configuration: Monitoring - Notifications
https://ADMIN_NODE_IP/grid/#/notifications

Image: Notifications

Configuration: Monitoring - Email Setup
https://ADMIN_NODE_IP/grid/#/email/server

Image: Email Server

Image: Email Lists

Image: Email Templates

Configuration: Monitoring - AutoSupport
https://ADMIN_NODE_IP/grid/#/autosupport

Image: User-triggered AutoSupport

Image: Weekly AutoSupport

Configuration: Monitoring - Audit
https://ADMIN_NODE_IP/grid/#/audit

Image: Audit

Configuration: Monitoring - Events
https://ADMIN_NODE_IP/grid/#/events

Image: Events

Exploring the StorageGRID 11.0 Graphical Management Interface (GMI): Part 3.3 of 4 - Configuration: Access Control

Configuration: Access Control - Admin Users
https://ADMIN_NODE_IP/grid/#/users

Image: Admin Users

Image: Create User

Configuration: Access Control - Admin Groups
https://ADMIN_NODE_IP/grid/#/users/groups

Image: Admin Groups

Image: Add Group - Type = Local

Image: Add Group - Type = Federated

Configuration: Access Control - Identity Federation
https://ADMIN_NODE_IP/grid/#/users/federation

Image: Identity Federation (with ‘Enable Identity Federation’ ticked)

Exploring the StorageGRID 11.0 Graphical Management Interface (GMI): Part 4 of 4 - Maintenance

Maintenance: Maintenance Tasks - Expansion
https://ADMIN_NODE_IP/grid/#/maintenance/expansion

Image: Grid Expansion

Maintenance: Maintenance Tasks - Decommission
https://ADMIN_NODE_IP/grid/#/maintenance/decommission

Image: Decommission

Maintenance: Maintenance Tasks - Recovery
https://ADMIN_NODE_IP/grid/#/maintenance/recovery

Image: Recovery

Maintenance: Network - Grid Network
https://ADMIN_NODE_IP/grid/#/grid-network

Image: Grid Network

Maintenance: Network - DNS Servers
https://ADMIN_NODE_IP/grid/#/dns

Image: DNS Server

Maintenance: Network - NTP Servers
https://ADMIN_NODE_IP/grid/#/ntp

Image: NTP Servers

Maintenance: System - License
https://ADMIN_NODE_IP/grid/#/license

Image: License

Maintenance: System - Logs
https://ADMIN_NODE_IP/grid/#/maintenance/logs

Image: Logs

Maintenance: System - Recovery Package
https://ADMIN_NODE_IP/grid/#/maintenance/recovery-package

Image: Recovery Package

Maintenance: System - Software Upgrade
https://ADMIN_NODE_IP/grid/#/maintenance/upgrade

Image: Software Upgrade