unix command openssl ciphers

ciphers – SSL cipher display and cipher list tool. SYNOPSIS openssl ciphers [-s] [-v] [-V] [-ssl2] [-ssl3] [-tls1] [-stdname] [cipherlist] DESCRIPTION The ciphers command converts textual OpenSSL cipher lists into ordered SSL cipher preference lists. It can be used as a test tool to determine the appropriate cipherlist. COMMAND OPTIONS -s Only list supported ciphers: those consistent with the […]

ubuntu – migrate packages from one server as a source to target server

The initial-status.gz and dpkg-query method from https://unix.stackexchange.com/a/80520/9132gives the most accurate and concise list for my needs. comm -13 \ <(gzip -dc /var/log/installer/initial-status.gz | sed -n ‘s/^Package: //p’ | sort) \ <(comm -23 \ <(dpkg-query -W -f=’${Package}\n’ | sed 1d | sort) \ <(apt-mark showauto | sort) \ )   Check_diff   for i in `cat diff.txt`;do echo $i […]

using sar to check Network stats / Packets

Monitoring network interface statistics command: sar -n DEV The report contains the following IFACE: Name of the network interface for which statistics are reported. rxpck/s: packet receiving rate (unit: packets/second) txpck/s: packet transmitting rate (unit: packets/second) rxkB/s: data receiving rate (unit: Kbytes/second) txkB/s: data transmitting rate (unit: Kbytes/second) rxcmp/s: compressed packets receiving rate (unit: Kbytes/second) […]

puppet dev environment with lxc

  credit: https://blkperl.github.io/puppet-dev-with-lxc.html   Install LXC On Ubuntu installing LXC is easy and the package comes with working Ubuntu and Debian templates. sudo apt-get install lxc Create a puppet master The first thing we need is a puppet master. To do this we are going to use the lxc-create command to create a minimal Ubuntu Precise […]

vsphere powercli/powershell – VM average performance stats for x number of days

execute the code below after connecting to your VI server: change values as needed:   example: C:\PS>Connect-VIServer -Server 10.23.112.235 -Protocol https -User Administrator -Password pass01   Get-VM | where {$_.name -like “*publ*”} | Select Name, VMHost, NumCpu, MemoryMB, ` @{N=”CPU Usage (Average), Mhz” ; E={[Math]::Round((($_ | Get-Stat -Stat cpu.usagemhz.average -Start (Get-Date).AddDays(-30) -IntervalMins 5 | Measure-Object […]

CURL – test for website response

command line: for i in `seq 1 10`;do curl -s -w ‘\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n’ -o /dev/null http://www.google.com;done; Lookup time: 0.009 Connect time: 0.036 PreXfer time: 0.036 StartXfer time: 0.115 Total time: 0.143 Lookup time: 0.010 Connect time: 0.037 PreXfer time: 0.037 StartXfer time: 0.117 Total time: 0.145 Lookup time: 0.012 Connect time: […]

Categories

Best Buy Co, Inc.
Best Buy Co, Inc.
Best Buy Co, Inc.