This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# remove unreplicated avamar clients from the replreport | |
# that are less than a day or so old. | |
# useful in cases where you have a day to get data offsite | |
# and only want to see older unreplicated clients. | |
# | |
BEGIN {printf "%-63s %s %s\n","Client","Difference","Dest Total"} | |
/^[A=]/ {next}; | |
/^SOURCE/ {sgrid=$2}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dumb sed trick for converting GB/MB to bytes.. | |
# awk would be better for detail work as you can do math | |
sed 's/\.[0-9] GB/000000000/' Raw_Status.csv |sed 's/\.[0-9] MB/000000/' | sed 's/0\ bytes/0/' > Cooked_Status.cvs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Automate the testing for Avamar POC | |
# script should be able to log activity and useful status. | |
# TODO | |
# check error on all subprocess.Popen() and file open() functions | |
# Error handling: i.e. catch/log errors before dieing | |
# make sure all the function defs check inputs | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Quick & dirty PowerShell script for polling Windows PerfMon counters and dumping into a CSV file | |
# setup PowerShell internals | |
$1GBInBytes = 1GB | |
$Computer = $env:COMPUTERNAME | |
# Set the log destination directory | |
$LogDir="C:\MTGLogs\" | |
# Set the performance counters below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is not a script, please paste commands direclty into a ssh/putty window. | |
# get the DPN status | |
status.dpn | |
# set the ssh agent keys | |
ssh-agent bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Notes on avamar client configuration using command line | |
Generally scheduling of clients, setting retentions and datasets are done via groups (best practice). | |
It is recommended to work with the backup team to set up an agreed upon set of schedules, retentions and datasets | |
and assign these to group policies as needed. | |
With this in mind it is likely that you will only really need the command to list the group policies, add a client to a group and start a backup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Takes filename as argument. | |
# file should contain clientnames one to a line non qualified | |
# todo: | |
# do initial probe after adding client | |
# prompt for client resourcevalues | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# used to populate the location field in the NetWorker Volume Database | |
$location="OffSite"; | |
# | |
# what is the name of our jukebox | |
$jb="scalar2000"; | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## sysctl.conf recommendations for NetWorker | |
# | |
# These are from the NetWorker Performance Optimization Planning Guide | |
# these are current as of NW 8.1. Please check the guide to insure | |
# that these settings are what you want on your server | |
# | |
# add the following parameters to the /etc/sysctl.conf file | |
# and run the /sbin/sysctl -p command | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#App,Destination,Source,Service, Port, Port Type | |
#DPA,dpaserv,managment-net,SSH,22, TCP | |
#DPA,dpaserv,managment-net,SNMP,161, TCP | |
#DPA,dpaserv,managment-net,DPA HTTPS 9002 TCP | |
#DPA,dpaserv,managment-net,DPA HTTPS 9002 TCP | |
#DPA,dpaserv,managment-net,DPA HTTP, 9003, TCP | |
#DPA,dpaserv,managment-net,DPA HTTP, 9004, TCP | |
#DPA,server-agents,dpaserv,DPA Agent - HTTP, 3741, TCP | |
# | |
#App,Destination,Source,Service,Dest Port, Src Port Proto |
OlderNewer