Skip to content

Instantly share code, notes, and snippets.

View fapestniegd's full-sized avatar

James S White fapestniegd

View GitHub Profile
SASL_SECPROPS none
TLS_CACERT /tmp/websages_trustchain.crt
TLS_REQCERT allow
#!/bin/bash
domain=$1
ldapsearch -h eftdomain.net \
-b "dc=${domain},cn=MicrosoftDNS,cn=System,dc=eftdomain,dc=net" \
-D "jameswhite@eftdomain.net" \
-s sub -xw ${WINDOWS_PASSWORD} \
"(objectClass=dnsNode)" | tr "\n" '%'| sed -e 's/% //g' | tr '%' "\n"
# dnssearch eftdomain.net
use MIME::Base64;
while(my $line=<STDIN>){
print unpack("H*",decode_base64($line))."\n";
}
perl -le 'use MIME::Base64;print unpack("H*",decode_base64("FwAMAAXwAAADAAAAAAAOEAAAAAAAAAAAFQMFaHlkcmEJZWZ0ZG9tYWluA25ldAA="))."\n";'
040001 0005F000000200000000000E100000000000000000 <--- from : http://windowsitpro.com/Files/07/37719/Listing_01.txt
17000c 0005f000000300000000000e100000000000000000 1503 05 687964726109656674646f6d61696e036e657400
yum install -y nagios nagios-plugins httpd mod_ssl mod_authz_ldap git \
perl-MD5 perl-YAML perl-NetAddr-IP nagiostat net-snmp-utils
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
scp root@newton:/opt/local/openssl/certificate_authority/eftdomain.net//mid_ca/mid-openssl.cnf /root/openssl.cnf
HOST=$(hostname -f)
openssl genrsa -out /etc/pki/tls/private/${HOST}.key 1024
So I want to install an OS on my new Dell 2950. I specifically bought one with a Remote Access Controller so that I don't have to sit in the server room and swap out disks. This particular server is on an a trunk, so pxe is problematic, or normally I'd just netboot it. So I log onto the server where I have racvmcli installed, and type:
newton# racvmcli -r 192.168.1.1 -u root -p calvin -c /opt/store/iso/esx-3.5.0-64607.iso
racvmcli: connecting(1)..
racvmcli: cannot authenticate user
racvmcli: disconnecting..
# this used to work... So I test it on another host.
newton# racvmcli -r 192.168.1.2 -u root -p calvin -c /opt/store/iso/esx-3.5.0-64607.iso
ssh-dss AAAAB3NzaC1kc3MAAACBALJ05POUN198FdByHl/UCvd5yT0TsZFl8m8wY3e44xfx8S0tbbUkfKwND33NsNCyVUxLAz411CzKVQGHiJtTACf9ph6R/B/aQY0L2IaXBzNA9DpviJZ/cmf06TlAGTTI9N41raC+Ea+28M76jNgjHyCFYPvlAXIlmoFFOgeVzmrjAAAAFQCWn89YWskH8VjUGVN35EhlXSsmMwAAAIBekxAesEH40iMoc1YINapPVHyNDZvi6cj2ICBlD2WuT9pRY1ok5WDypvxTOGNsiVKFaQ/dSrwApxHYiE0bBLe2uwWLRZunQtJ5GHuyGVO+zi9UAanTxgTbBHnAu4TpCWCIZyyCOEkEclT/QJ6Ko2Q6Jgkp13xBUXUtQz6Xm6TutwAAAIAkWb+xnLcJiSw1aRE0kJPvpkAgC9NS6WzGrVLb9YkFuDZ7hGThBMjAk94pXOJKOEduNkED+ywu2cGTyXQY47Bi/1FfLLqLtTn6YDl3vzjx/e7FrFSnvHTLlManbKdS+MpCgTpfnPCl8D8Yre/cGtKCXQyUkqKuLnjsQiUOxHMv6w== james.jameswhite.org@fapestniegd
Suggested packages:
apt-doc python-apt debtags libcwidget-dev dbishell libcrypt-des-perl
libdigest-hmac-perl libio-socket-inet6-perl lm-sensors xapian-tools nagios3
whois perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl smbfs
Recommended packages:
aptitude-doc-en aptitude-doc libparse-debianchangelog-perl libgpm2
navicli [-p] [-v|q] [-m] [-np] [-t timeout] [-h hostname]
[-d device] [-help] [-f filename] CMD <optional-args>
Possible commands are:
alpa arrayname arraycommpath bind baseuuid
cachecard chglun chgrg clearlog clearstats
createrg emconfiguration failovermode
flashleds firmware getagent getall getarrayuid
getatf getcache getconfig
getcontrol getcrus getdisk getlog getloop
<?
/*
* Copyright (C) 2006-2009 Zmanda Incorporated.
* All Rights Reserved.
*
* The software you have just accessed, its contents, output and underlying
* programming code are the proprietary and confidential information of Zmanda
* Incorporated. Only specially authorized employees, agents or licensees of
* Zmanda may access and use this software. If you have not been given
* specific written permission by Zmanda, any attempt to access, use, decode,
#!/bin/bash
export MIRROR_DIR="/opt/dists/redhat/rhel-i386-server-5/"
[ -d ${MIRROR_DIR} ] || mkdir -p ${MIRROR_DIR}
yum clean all
export LIST=""
export LIST_COUNTER=0
export LIST_MAX=50 # not sure where the sweet spot is.
yum list available | awk ' {
if(on){if((NF==1)||(NF==3)){print $1;}}
if($0~"^Available Packages"){on=1;}
echo "<html><body>">mrtg/index.html; find mrtg -name "*-day.png" | while read line;do url=$(echo $line|sed -e's/-day.png/.html/'); echo "<a href='https://hubble.eftdomain.net/$url'><img src='https://hubble.eftdomain.net/$line' width='200'></a>"; done >> mrtg/index.html; echo "</body></html>">>mrtg/index.html;