search

Custom Search
Affichage des articles dont le libellé est Howto. Afficher tous les articles
Affichage des articles dont le libellé est Howto. Afficher tous les articles

jeudi 21 janvier 2016

How to install MongoDB on Centos7 part2 and fix about smallpages start issue

MariaDB how to connect database

Here a quick video about how to connect to a MariaDB database :


How to connect Postgresl database

How to connect Postgresl database
Here a quick how to video about Postgresl PSQL connection :


mardi 25 décembre 2012

Control-M V8 presentation

Control-M V8 is here ! (and i love it ! ^^)

A quick video introducing the new Control-M interface



Stay tuned for job creation and more how to about the new Control-M V8

vendredi 2 novembre 2012

Great alternative to Backtrack Linux for security and pentesting


 

Backtrack is a great security and pentesting Linux distro.

But 2 others distro deserve some attention :

Pentoo :





More information and download here : Pentoo

BackBox 3.0 :






More informations and download here : BackBox




jeudi 1 novembre 2012

ALOM / ILOM Shell Configuration Commands


ALOM ILOM Shell Configuration Commands



ALOM CMT CommandSummaryComparable ILOM Command
passwordChanges the login password of the current user.set /SP/users/username password
restartsshRestarts the SSH server so that new host keys generated by the ssh-keygen command are reloaded.set /SP/services/ssh restart_sshd_action=true
setdate [[mmdd]HHMM |mmddHHMM[cc]yy][.SS]Sets ALOM CMT date and time.set /SP/clock datetime=value
setdefaults setdefaults –aResets all ALOM CMT configuration parameters to their default values. The –a option resets the user information to the factory default (one admin account only).set /SP reset_to_defaults=configuration
set /SP reset_to_defaults=all
setkeyswitch [normal|stby|diag| locked]Sets the status of the virtual keyswitch. Setting the virtual keyswitch to standby (stby) powers off the server. Before powering off the host server, ALOM CMT asks for a confirmation.set /SYS keyswitch_state=value
setsc [param] [value]Sets the specified ALOM CMT parameter to the assigned value.set target property=value
setupscRuns the interactive configuration script. This script configures the ALOM CMT configuration variables.No equivalent in ILOM
showplatform [–v]Displays information about the host system’s hardware configuration, and whether the hardware is providing service. The –v option displays verbose information about the displayed components.show /HOST
showfruDisplays information about the field-replaceable units (FRUs) in a host server.No equivalent in ILOM
showusers
showusers –g lines
Displays a list of users currently logged in to ALOM CMT. The display for this command has a similar format to that of the UNIX command who. The –g option pauses the display after the number of lines you specify for lines.show /SP/sessions
No equivalent in ILOM
showhost
showhost version
Displays version information for host-side components. The version option displays the same information as the showhost command with no option.show /HOST
showkeyswitchDisplays status of virtual keyswitch.show /SYS keyswitch_state
showsc [param]Displays the current non-volatile random access memory (NVRAM) configuration parameters.show target property
showdateDisplays the ALOM CMT date. ALOM CMT time is expressed in Coordinated Universal Time (UTC) rather than local time. The Solaris OS and ALOM CMT time are not synchronized.show /SP/clock datetime
ssh-keygen –l
ssh-keygen –r
ssh-keygen –t {rsa|dsa}
Generates Secure Shell (SSH) host keys and displays the host key fingerprint on the SC.show /SP/services/ssh/keys rsa|dsa
set /SP/services/ssh generate_new_key_action=true
set /SP/services/ssh generate_new_key_type=[rsa|dsa]
usershow [username]Displays a list of all user accounts, permission levels, and whether passwords are assigned.show /SP/users
useradd usernameAdds a user account to ALOM CMT.create /SP/users/username
userdel username
userdel –y username
Deletes a user account from ALOM CMT. The –y option enables you to skip the confirmation question.delete /SP/users/username
delete –script /SP/users/username
userpassword [username]Sets or changes a user password.set /SP/users/username password
userperm [username] [c] [u] [a] [r]Sets the permission level for a user account.set /SP/users/username role=permissions
(where permissions are Administrator or Operator)



ALOM CMT Shell Log Commands




ALOM CMT CommandSummaryComparable ILOM Command
showlogs [–b lines|–e lines|–v] [–g lines] [-p logtype[r|p]]Displays the history of all events logged in the ALOM CMT RAM event log, or major and critical events in the persistent log. The –p option selects whether to display entries only from the RAM event log (logtype r) or the persistent event log (logtype p).show /SP/logs/event/list
No equivalent in ILOM
consolehistory [–b lines|–e lines|–v] [–g lines] [boot|run]Displays the host server console output buffers.No equivalent in ILOM


ALOM CMT Shell Status and Control Commands




ALOM CMT CommandSummaryComparable ILOM Command
showenvironmentDisplays the environmental status of the host server. This information includes system temperatures, power supply status, front panel LED status, hard disk drive status, fan status, voltage, and current sensor status.show –o table –level all /SYS
showpower [–v]Displays power metrics for the host server.show /SP/powermgmt
shownetwork [–v]Displays the current network configuration information. The –v option shows additional information about your network, including information about your DHCP server.show /SP/network
console
console –f
Connects to the host system console. The –f option forces the console write lock from one user to another.start /SP/console
No equivalent in ILOM
break –c
break –D
Drops the host server from running the Solaris OS software into OpenBoot PROM or kmdb depending upon the mode in which the Solaris software was booted.set /HOST send_break_action=break
set /HOST send_break_action=dumpcore
bootmode [normal] [reset_nvram] [config=configname][bootscript =string]Controls the host server OpenBoot PROM firmware method of booting.set /HOST/bootmode property=value
[where property is state, config, or script]
flashupdate –s IPaddr –f pathname [–v]Downloads and updates system firmware (both host firmware and ALOM CMT firmware). For ILOM, ipaddr must be a TFTP server. If DHCP is used, ipaddr can be replaced by the name of the TFTP host.load –source tftp://ipaddr/pathname
reset [–c]
reset [–y][–c]
reset –f
reset –d
reset [–d][–f]
reset [–d][–n]
reset [–d][–f][–n]
Attempts to gracefully reset the system. If that fails, this option forcefully reset the system.
Forcfully resets the system.
Attempts to gracefully reset the control domain. If that fails, this option forcefully reset the control domain.
Forcefully resets the control domain.
When resetting the control domain, this option may automatically boot (this is the default behavior when the auto-boot option is not specified).
When resetting the control domain, this option does not automatically boot and stays at the OpenBoot ok prompt. This option overrides all reboot variables and stops the control domain at the OpenBoot ok prompt after host reset. The auto-boot? option remains unchanged, thus subsequest reset commands automatically reboot host if the auto-boot? option is set to true.
reset /SYS
reset -script /SYS
reset -f /SYS
reset /HOST/domain/control
reset - f /HOST/domain/control
set /HOST/domain/control auto-boot=disable reset /HOST/domain/control
set /HOST/domain/control auto-boot=disable reset -f /HOST/domain/control
powercycle [–y] [–f]
powercycle –y
powercycle -f
poweroff followed by poweron. The –f option forces an immediate poweroff, otherwise the command attempts a graceful shutdown.stop /SYS
start /SYS
stop –script /SYS
start –script /SYS
stop –force /SYS
start –force /SYS
poweroff
poweroff –y
poweroff –f
Removes the main power from the host server. The –y option enables you to skip the confirmation question. ALOM CMT attempts to shut the server down gracefully. The –f option forces an immediate shutdown.stop /SYS
stop –script /SYS
stop –force /SYS
poweronApplies the main power to the host server or FRU.start /SYS
setlocator [on/off]Turns the Locator LED on the server on or off.set /SYS/LOCATE value=value
showfaults [–v]Displays current valid system faults.show /SP/faultmgmt
clearfault UUIDManually repairs system faults.set /SYS/component clear_fault_action=true
showlocatorDisplays the current state of the Locator LED as either on or off.show /SYS/LOCATE


ALOM CMT Shell FRU Commands


ALOM CMT CommandSummaryComparable ILOM Command
setfru –c dataThe –c option enables you to store information (such as inventory codes) on all FRUs in a system.set /SYS customer_frudata=data
[showfru –g lines] [–s|–d] [FRU]Displays information about the FRUs in a host server.No equivalent in ILOM
removefru [–y] [FRU]Prepares a FRU (for example, a power supply) for removal. The –y option enables you to skip the confirmation question.set /SYS/PS0 prepare_to_remove_action=true


ALOM CMT Shell Automatic System Recovery (ASR) Commands


ALOM CMT CommandSummaryComparable ILOM Command
enablecomponent asr-keyRemoves a component from the asr-db blacklist.set /SYS/component component_state=enabled
disablecomponent asr-keyAdds a component to the asr-db blacklist.set /SYS/component component_state=disabled
showcomponent asr-keyDisplays system components and their test status (ASR state).show /SYS/component component_state
clearasrdbRemoves all entries from the asr-db blacklist.No equivalent in ILOM


ALOM CMT Shell Miscellaneous Commands

ALOM CMT CommandSummaryComparable ILOM Command
help [command]Displays a list of all ALOM CMT commands with their syntax and a brief description of how each command works. Specifying a command name as an option enables you to view the help for that command.help
resetsc
resetsc –y
Reboots ALOM CMT. The –y option enables you to skip the confirmation question.reset /SP
reset –script /SP
userclimodeSets the type of shell to shelltype, where shelltype is default or alom.set /SP/users/username cli_mode=shelltype
logoutLogs out from an ALOM CMT shell session.exit

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 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


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