search

Custom Search

dimanche 21 octobre 2012

How to install / upgrade Control-M Server / EM 6.4 to 7.0


Hello, In this post we going to install (or upgrade) Control-M Enterprise Manager, Server and agent 6.4 to 7.0 version.

I choose to make an "All in one" howto, because upgrading have only few steps in addition to the installation.

If you are upgrading, the first step is downloading the "Migration tool kit" (find it in the public BMC repository). If you just want install, skip the first step ;)
 



After the installation you can check in the Control-M Enterprise Manager folder, a new one : migration_export
 

Open a shell and execute the "migration.bat" and choose the good option.
 

This step check your data. If all is OK, the export files are stored in "migration_export" folder.
 

Now move this folder to a temp/secure folder because for the upgrade we must uninstall previous Control-M components (and of course everything will be delete...)

Installation

For upgraders : you need to uninstall all Control-M components before.

Installing Control-M Servers and Enterprise manager is really smooth and easy.
Take your Control-M Enterprise Manager CD/packages Double-click "setup.exe"

!!! If you upgrade sometimes we have some little problems !!!
 

Wait...We have already uninstall all components... Check the regedit

 

Delete all "Control-M" input here. Now we can continue...
 

Choose the default settings (for specific settings, wait another post ^^ ) and...



OK...we must install Microsoft .NET Framework 3.5 before...
After that you need to specify all the settings (Installation path, database size, database passwords...)
 

Check if all is OK
 

Click install and...
 

Go for a coffee ^^ It's done !

Upgraders : now take your "migration_export" folder and rename it to "migration_import"
put it in Windows : <em_home>\migration_import\ Launch "migration.bat" and choose option 1 and follow the on-screen instructions until the import is complete.

Done !


How to add and configure Control-M Agents


Adding Control-M agents is very easy.

I show you the differents methods (graphical via CCM or command line via ctm_menu)  to achieve this.

Like always, i make a short video you'll find at the end of post ;)

First, of course, Agents must be installed ( Installation of Control-M Server and Agents soon... ;)  ).  


First method : Control-M Configuration Manager

The easy way ! ^^ Login to CCM (with Administrator privileges)
Go to "Components" ==> "New" ==> "Control-M Agent"
 

Now put the right Control-M Agent name



Click "OK"

 
"Drumroll"....
  


Done !

Isn't that so easy ? :)

Second method : command line via ctm_menu

Choose option n°9 "Agent Status"
    

Next, option n°6 (the easy way ^^)
 

Enter the correct Agent name
 

Press enter
 

OK...check your "Configuration Control-M Manager client" :
 

Done !   Here a quick video





How to start and stop a Control-M Server


Control-M is for me the best Scheduler out there.

The BMC team is listening to its customers and their needs (that's pretty rare in this business...) and are always innovative. More info here This first post is about checking, starting and stopping the Control-M Server (Windows host).

 First open the cmd:

 



 Now, enter "ctm_menu"

 

 Ok, here the ctm_menu. To check, start or stop a Control-M Server,  enter option n°1
 

We have many options here, we will see this later ;)

Now type 1 "Check All" option
   

This option check all the Control-M Server components on the host.
    

Fine ! Everything is working. Now if you want shutdown all the component : Choose the option n°6
 

You can stop a specific component ==> Stopping the database : 7 Stopping Control-M Server : 8 Stopping the configuration agent : 9   Starting all or a specific component is the same way...Choose the good option ;).

A quick video about ctm_menu :
 



How to start and stop the Listener


A quick video and a little tutorial about the Listener in Oracle 11g

 

Status of the listener

# lsnrctl status

Starting the listener

# lsnrctl start

Stopping the listener

  # lsnrctl stop


Oracle 11g user connection



A quick video about user connection via Sqlplus. Login to oracle system user first.

 

As you can see, you can connect by different way.

Connect as sysdba :

  # sqlplus "/as sysdba"

Connect as normal user : sqlplus user/password

  # sqlplus scott/tiger

View current user

#sql> SHOW USER


mardi 16 octobre 2012

Cloning a Solaris Zone


This procedure describes how to clone a Solaris Zone.

That is make a new working zone from an existing zone.

List the zones :



On the global zone, use the zoneadm list -vc  :

 

Use the export option with zonecfg -z to create a configuration file.

# zonecfg -z <zone name> export <file name>

Edit the configuration file created in the previous step and change the parameters

# vi <new zone name>.cfg


Use zoneadm -z with the halt


# zoneadm -z <zonename> halt

Now clone your halted zone with :

# zoneadm -z <new zone> clone <existing zone>

# zoneadm -z <new zone> boot

Use zlogin -c to the new zone and configure the language, timezone and netw ork parameters.

# zlogin -C <new zone>





vendredi 5 octobre 2012

SUN Cluster 3.3 Commands How to


Some Sun Cluster 3.3 commands 


1. Cluster


The command to use is cluster

# cluster status: the status of the cluster nodes.
# cluster show: Displays the cluster parameters.
# cluster shutdown: shuts down the cluster.
# cluster list: list of cluster nodes configured

2. Management of a resource group


The command to use is CLRG

# CLRG list: list of resource groups.
# CLRG list RG: RG group list.
# CLRG status: the status of resource groups.
# CLRG status RG: RG group status.
# CLRG remaster +: reinstate the resources groups to their preferred nodes.
# CLRG switch-n NODE RG: RG group moves to the node NODE.
# CLRG evacuate-n NODE RG: Move all resources NODE node to the other node.
# CLRG offline RG: stop all resources in the group.
# CLRG online RG: starts all resources in the group.
# RG CLRG restart: restarts all the resources of the group.
# CLRG manage RG: Password group under the control of the cluster.
# CLRG unmanage RG: pass the group beyond the control of the cluster.
# CLRG show RG-v: displays the properties of RG Group.

3. Resource Management


The command to use is clrs

# clrs list: list all resources.
# clrs list: list all the resources of the group RG.
# clrs status: the status of all resources.
# RS clrs status: the status of the RS resources.
# clrs RG-g status: the status of all resources group RG.
# clrs disable RS: RS resource stops.
# clrs enable RS: RS resource starts.
# clrs monitor RS: starts monitoring the resource RS.
# clrs unmonitor RS: stop monitoring the resource RS.
# clrs clear-f STOP_FAILED RS: removes the flag STOP_FAILED RS resource.
# clrs show-v RS: displays the properties of the resource RS.
# clrs set-p property = value RS: Changes the value of the property by value proprité

To add a value to a property already defined, it is possible to use + = instead of =

4. Management Logical Hosts


The command to use is clrslh

# clrslh list: list all logical hosts.
# clrslh status: the status of all logical hosts.
# clrslh disable LH: LH stop resource.
# clrslh enable LH: LH starts resources.
# clrslh monitor LH: LH starts monitoring.
# clrslh unmonitor LH: LH stops monitoring.
# LH clrslh clear: removes the error flag of LH.
# clrslh show LH: displays the properties of LH