Wednesday, December 23, 2015

HP StoreOnce firmware upgrade

Upload the firmware rpm file to the StoreOnce unit via SFTP.  It goes into the repository directory.


SSH into the StoreOnce unit, update is done via CLI.


To list or show the rpm file you copied over,
system show repository


To load and unpack the package,
system load package EJ022-10544.rpm


To show packages that are staged and ready to update,
system show packages


To start the upgrade process and reboot the system,
system update packages



Friday, November 6, 2015

Oracle JDK on Centos 7

Download and install the Oracle JDK
rpm -ivh jdk-7u80-Linux-x64.rpm


Set the Java environment variables
vi /etc/profile.d/java.sh


Add the following lines to java.sh
#!/bin/bash
JAVA_HOME=/usr/java/jdk1.7.0_80/
PATH=$JAVA_HOME/bin:$PATH
export PATH JAVA_HOME
export CLASSPATH=.



Make java.sh executable
chmod +x /etc/profile.d/java.sh


Set the variables,
source /etc/profile.d/java.sh







Thursday, November 5, 2015

Copy / Move Outlook Profile to new computer

Copy or move your PST to the new location / computer.


Account Settings, POP servers, logins and all that info is stored in the registry.  Open the registry and export this key,


HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook


Import the key into the new computer.

Wednesday, November 4, 2015

Ubuntu, extend LVM

- add new disk to the VM and reboot
- fdisk -l , should see the new disk, make note of its device name, ex. /dev/sdb or /dev/sda
- create a partition on the new space,
cfdisk /dev/sdb
or
fdisk /dev/sdb
- create physical volume and reboot,
pvcreate /dev/sdb
reboot
- vgdisplay to get the name of your volume group
- extend the volume group onto the new physical volume
vgextend Ubuntu-vg /dev/sdb1
- lvdisplay to get the name of our main logical volume
- extend the logical volume
lvextend -L +XXG LogicalVolumeName  , where XX is the number of gigs to add
lvextend -l +100%FREE LogicalVolumeName   , extends using all free space
lvextend -l +100%FREE /dev/Ubuntu-vg/root
- extend the filesystem
resize2fs /dev/ubuntu-vg/root

Friday, October 30, 2015

Ubuntu 14 Updates

apt-get install cron-apt
apt-get install unattended-upgrades


Edit the /etc/apt/apt.conf.d/50unattended-upgrades file
Remove the // to uncomment a line


Uncomment some lines shown below,


// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}-security";
        "${distro_id}:${distro_codename}-updates";


// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";


// Automatically reboot *WITHOUT CONFIRMATION*
//  if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";


// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
//  Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "05:20";




Edit the /etc/apt/apt.conf.d/10periodic file to look like this,
APT::Periodic::Enable "1";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";


Verify that /etc/apt/apt.conf.d/20auto-upgrades is correct,
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";






Wednesday, August 26, 2015

Outlook only starts maximized

Outlook will only start maximized.  Disappears if you select to resize or normal window.


Delete the following reg key and restart Outlook: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Office Explorer]
'Frame'=

Friday, July 3, 2015

Ubuntu 14

Change hostname
format is  hostname.domain.TLD   , ex.   server.domain.com
edit /etc/hostname,  vi /etc/hostname  , enter just the hostname
edit /etc/hosts, vi /etc/hosts   , format should be
127.0.0.1   localhost
127.0.0.1   hostname
192.168.168.99   hostname.domain.com hostname


reboot to see changes, type in hostname to see the hostname,  hostname -f  for the FQDN


Install gui without extras
sudo apt-get install --no-install-recommends ubuntu-desktop



Change to Static IP
need to edit /etc/network/interfaces

auto eth0
iface eth0 inet static
  address 192.168.67.23
  netmask 255.255.255.0
  network 192.168.67.0
  broadcast 192.168.67.255
  gateway 192.168.67.1
  dns-nameservers 8.8.8.8 4.2.2.2
  dns-search domain.com




Install VMWare Tools
Mount the cdrom, sudo mount /dev/cdrom /media/cdrom
Copy the tools to /tmp , sudo cp /VM.... /tmp
Extract file ,  tar zxvf VM....
Run Installer ,  sudo ./vmware-install.pl -d


Install Open VM Tools
sudo apt-get install open-vm-tools


Update
sudo apt-get update && sudo apt-get upgrade
or
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


/boot is Full
uname -r to find the running kernel
cd into /boot , then rm -rf *3.16.0-41* for the different kernels not being used
apt-get -f install
apt-get autoremove
reboot














Friday, May 8, 2015

HP Procurve & VMWare & VLAN


Default VLAN - leave it alone - all ports left untagged


HP Switch - create a trunk - combines multiple ports into one logical port.
conf
trunk 10-13 trk1 trunk

to see it -> show trunk


VMWare side - set the vSwitch load balancing properties to "Route based on IP hash"


Voice VLAN - ID 2
- create vlan and assign IP
- add ports ( tag them )


create VLAN's on all switches
create trunk ports (multiple ports for speed) , tag the trunks with the vlans
enable routing on the "core or main" switch

Monday, March 23, 2015

Exchange 2010 Powershell

Use to find messages sent TO any users at a domain ,  domain.com

Get-MessageTrackingLog -ResultSize Unlimited -Start "04/1/2014" -End "12/29/2014" | where{$_.recipients -like "*@domain.com"} | select-object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$_.Recipients} | export-csv C:\ExchangeLogResults.txt

Use to find messages RECEIVED from a domain, domain.com

Get-MessageTrackingLog -ResultSize Unlimited -Start "04/1/2014" -End "12/29/2014" | where{$_.sender -like "*@domain.com"} | select-object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$_.Recipients} | export-csv C:\ExchangeLogResults.txt

Wednesday, March 4, 2015

Patch / Update / Downgrade ESXi



- place host into maintenance mode

- connect to host using SSH

- allow outbound http-client connections in local firewall,
esxcli network firewall ruleset set -e true -r httpClient

- view available Image Profiles,
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

- install a new Image Profile,
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.1.0-799733-standard

- downgrading, add --allow-downgrades
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.1.0-799733-standard --allow-downgrades

Standard profiles will include VMWare tools

- reboot the host

- when done, disable the http-client in local firewall,
esxcli network firewall ruleset set -e false -r httpClient

Thursday, February 26, 2015

MDT Captures not working

Not being prompted during capture process for image name and so on....

First, be sure in CustomSettings.ini you have set,
SkipCapture=NO

Next, edit the CustomSettings.ini file and comment out the following lines  (add  ;  ),
;JoinDomain=DOMAIN
;DomainAdmin=USERNAME
;DomainAdminDomain=DOMAIN
;DomainAdminPassword=PASSWORD