Thursday, August 19, 2010

How to Setup the SPSS Network License Manager on Linux

1. Install Red Hat Enterprise Linux 5.5 on your server (or RHEL 6 if you are enlightened) =)

                a. VMware: Install from ISO Library by selecting the “Datastore ISO File” Location. “Check Connect at Power On”. Start the VM and Install, configure Networking and yum –y upgrade RHEL 5.5.

                b. Physical: Install RHEL 5.5 from PXE, Kickstart, or DVD to Physical Server. Install, configure networking and yum –y upgrade RHEL 5.5. NOTE: Physical servers are a pain to manage vs. virtual.

2.  Make Directory’s for SPSS under /opt/ folder. Opt folder is for 3rd party applications on Linux.

NOTE: Do not do anything as root. Configure visudo first and then run your commands under sudo. Root is unforgiving if you make a mistake!!!
               
a. sudo mkdir /opt/SPSS
b. Download the SPSS Linux .tar file or using wget from CLI (e.g. Terminal, Putty, SecureCRT). NOTE: For downloads use /tmp/ only and change directory into /opt/SPSS. [e.g. sudo cp /tmp/linux64-8.2.2.tar.gz /opt/SPSS]

Terminal, Putty, SecureCRT:
Web Browser:

3. Uncompress the SPSS tar.gz file and navigate to sentinellm directory:

                a. Check your directory: [username@server]$ pwd
                b. Make sure you copied the file to /opt/SPSS: [username@server]$ ll /opt/SPSS/
                c. Untar: [username@server]$ sudo tar xzf SPSS-linux64-8.2.2.tar.gz
                d. Change to sentinellm directory: [username@server]$ sudo cd /opt/SPSS/sentinellm

4. Start the SPSS Service: [username@server]$ sudo ./lserv               
a. Make sure that port 5093 is open in SELinux if you have SELinux Enabled:


            b. Check your IPTables configuration also. Restart IPTables if necessary:

[username@server sentinellm]$ sudo cat /etc/sysconfig/iptables
[sudo] password for username:
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 5093 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5093 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
-A RH-Firewall-1-INPUT -p udp --dport 5093 -d 10.10.60.186 -j ACCEPT
COMMIT

5. Add your license keys to the Network Licensing Server:
                a. [username@server]$ sudo ./licenseactivator aaaa000rrrr888ddd999www
NOTE: Only Paste the CTRL+SHIFT+P (RHEL 5.5 Terminal) authorization codes after licenseactivator. It will then give you a validation code saying that the key has been added successfully.
6. Restart the Network License Manager:
                a. Script: sudo /opt/SPSS/SPSSRestart.sh
                NOTE: Use the vi editor. It is the default editor for all Linux/Solaris Servers.
               #!/bin/bash
                # Restart SPSS Services
                #
                /opt/SPSS/lserv
                /opt/SPSS/lsrvdown servername
                 
                chmod a+x /opt/SPSS/SPSSRestart.sh to activate the script so that it will be executable.

                b. Manually: sudo ./lsrvdown servername ; sudo ./lserv
7. Verify that the service is running:
                a. [username@server]$ ps  -ef | egrep lserv
8. Add the Network License Manager Service:
                a. [username@server]$ /sbin/chkconfig --add NOTE: Please reference chkconfig man page for configuration. www.google.com/linux or www.yolinux.com
9. Verify that Service is going to start on Restart of Server:
                a. [username@server]$ /sbin/chkconfig --list |grep lserv

10. Install the Network License Manager Tools on a Windows Server 2008/Windows 7 to Manage the NLM. http://support.spss.com/Tech/default.asp NOTE: You need your IBM SPSS Support Login.
Creative Commons License
How to Setup SPSS Network License Manager on Red Hat Enterprise Linux 5.5 by Shea Bennett is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at blog.migrationking.com.
Share:

Saturday, July 17, 2010

Upgrade vSphere 4.0U2 ESXi to 4.1 ESXi

How to upgrade your ESXi 4.0U2 to ESXi 4.1. Contrary to what some may believe. VMware's documentation is not the simplest to navigate sometimes. However, this is what happens when you have technical writers typing up stuff for Systems Engineers! We don't need 10 pages of text to say the following!

You need vSphere CLI - Download Here vCLI
For Windows or Linux and install on your workstation.
Download the Upgrade Package for 4.0 to 4.1 or the Upgrade Package from 3.5 to 4.1
Power off your VM's and put the host into maintenance mode from the vSphere CLI prompt:

vihostupdate.pl --server hostname or IP -i -b c:\temp\upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip -B ESXi410-GA

vihostupdate.pl --server hostname or IP -i -b c:\temp\upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip -B ESXi410-GA-esxupdate


Thanks to Sebastian: http://blog.jargontech.com/?p=19

Thanks to MicroKid: http://communities.vmware.com/message/1570298

Thanks to Peacon: http://blog.peacon.co.uk/wiki/Upgrading_ESXi_4_to_4.1

VMware vCLI Reference: http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/index.html

Just FYI for new CLI folks on Windows. Make sure you cd into the /bin directory under the vSphere CLI so that you can run the Perl commands or just create an alias in Powershell.

Post installation. You will get a pop-up Window.

The required client support files need to be retrieved from the server 'vsphereclient.vmware.com' and installed. Click Run the Installer or Save the Installer.

I would recommend just running it if you have time.It is just going to update your vClient on your Windows/Linux machine.

Share:

Friday, April 2, 2010

How to Quickly Configure Windows 2008 Server Core

Are you tired of long...drawn...out explanations!!!! And you say...Just Give It To Me! Here you go!

This is how you configure Windows 2008 Server Core fast on VMware or a physical server if you just want the headache of reinstalling the whole operating system all over again! Just to save you a headache...use VMware. This "should" work on RHEV or KVM, but I will let you know when I try.

There is no pathway to upgrade to a full version so if you are scared of CLI (Command Line Interface) and the IT Immortal Internet Searching Dark. Turn on the lights and install the full OS!

1. On VMware ESX/ESXi. Setup a VM (Virtual Machine).

Mount from an NFS share or just create an NFS share on Linux (Preferably, Red Hat Enterprise Linux, Oracle Unbreakable Linux, or Ubuntu LTS Server for work. CentOS if you are in a lab) and mount it. WinSCP or Veeam is your friend.

2. Select the Iso from the Datastore Iso Images location.

3. You will only need 10GB of HDD Space for AD/GC. 2K8 Server Core only requires 1-3GB HDD. Just go by your requirements.

4. Start the VM. Install Windows 2008 Datacenter or Enterprise Edition (Server Core)

5. Change Administrative password and Login to Server.

6. CMD prompt will be shown. Type sconfig.cmd Use the numbers to configure the server.

7. You can cd into c:\Windows\System32\ and type cscript scregedit.wsf /cli for commands

8. Change the server name. Make the IP Address static. Update time zone. Enable RDP.

9. Make sure you do not have automatic updates set. Change it to (M) Manual.

10. Join the server to the domain: domain.org using username / password will need to be typed into the new window that pops up. {Unless you are making this a secondary AD GC DC...then this is another story!}

11. Update the server to the latest patches. If you are not already in the Server Configuration script. Type sconfig.cmd. Then option 6: 6) Download and Install Updates

12. Type slmgr /ipk {Valid Software License}. ***Make sure it validates the key.***

13. Activate the Windows 2008 Server Core license. Exit sconfig.cmd by typing 13.

14. Update the LAN Name {Optional} This is my own OCD I guess for Remote Administration.

15. netsh interface set interface name="Local Area Connection" newname="DNS3-vNIC"

16. Type powershell to go into powershell and run your powershell scripts or write some if you need to.

URL(s):
1.) http://technet.microsoft.com/en-us/library/cc753802%28WS.10%29.aspx

Share: