For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp End of comment */

Αρχείο κατηγορίας IT

apt-get: No space left on device (12.04)

 
sudo dpkg --configure -a
sudo apt-get autoclean
 df -i
dpkg -l linux-headers-\* linux-image-\* | grep ^ii
sudo dpkg --remove linux-headers-3.8.0-18


sudo -i

sudo apt-get purge linux-image-x.x.x.x-generic 
sudo apt-get purge linux-image-3.2.0-3{0..5}-generic (removes 30,31,..,35) 
sudo update-grub2 
http://askubuntu.com/questions/317763/apt-get-no-space-left-on-device-12-04

Disk shrink on ESXi guests

  1. Zero all unused space inside the VM:

    dd if=/dev/zero bs=1048576 of=/zero ; sync ; rm /zero

  2. Do the same with other mount points, swap partitions, etc.
  3. Shut down the VM.
  4. SSH to ESXi, and issue this command:

    vmkfstools -K /vmfs/volumes/volumename/vmname/vmname.vmdk

This will take some time… vmkfstools “punches holes” inside your VMDK, e.g. deallocates all blocks that are filled with zeros, effectively shrinking your VMDK.

 

http://serverfault.com/questions/398162/disk-shrink-does-not-work-on-esxi-guests

Install Idrac without boot

RACADM Command Line Interface for DRAC

SYSTEMS MANAGEMENT – WIKI

Overview

The Dell RACADM (Remote Access Controller Admin) utility is a command line tool that allows for remote or local management of Dell Servers via the iDRAC or DRAC. RACADM provides similar functionality to the iDRAC/DRAC Graphical User Interface (GUI). The Dell Chassis Management Controller (CMC) can also be managed remotely with RACADM.

RACADM commands can be run remotely from a management station and/or locally on the managed system.

RACADM commands allow you to view managed system information, perform power operations on the managed system, perform firmware updates, configure settings and more. Because RACADM is run from a command line interface (CLI), system administrators can create scripts that control and update Dell systems in a one-to-many fashion. See the links to the RACADM documentation at the end of this article for a complete listing of features for your product version.

Terminology

Managed System – The Dell PowerEdge Server containing the iDRAC or DRAC, or the Dell Blade Chassis containing the Chassis Management Controller (CMC).

Management Station – A computer used for accessing the iDRAC, DRAC, or CMC remotely.

iDRAC – Integrated Dell Remote Access Controller. Available on newer and current generations of Dell PowerEdge Servers (11G and 12G).

DRAC – Dell Remote Access Controller. Available on older generations of Dell PowerEdge Servers.

The Different RACADM Utilities

The following RACADM utilities are available:

  • Remote RACADM – utility is installed on a management station.
  • Local RACADM – utility is installed on the managed system.
  • SSH/Telnet/Serial RACADM (also known as Firmware RACADM) – utility is built into the iDRAC, DRAC, and CMC firmware.

NOTES: Local RACADM is not required if you will be managing your server from a management station via Remote RACADM. Remote RACADM and Local RACADM cannot be installed at the same time on the same system.

Locating and Installing RACADM Utilities

Remote RACADM

Remote RACADM supports executing RACADM commands from a remote management station such as a laptop or desktop computer. It is available on the Dell OpenManage Systems Management Tools and Documentation DVD or at support.dell.com.

To download Remote RACADM:

  1. Go to http://support.dell.com
  2. If prompted, select Start Here under Small Businesses or Enterprise IT.
  3. Enter the Service Tag of the managed system and Submit, or use one of the Choose options to locate your managed system model.
  4. Select Drivers and Downloads > select the Operating System of your Management Station from the drop-down menu. Note: The drop-down menu only contains supported server operating systems. If you are running a supported Windows management station OS (Windows 7 for example), choose a Windows Server version from the drop-down menu instead.
  5. Expand Systems Management
    1. For Windows Operating Systems, locate the DRAC Tools application.
    2. For Linux operating systems, locate the Linux Remote Access Utilities application.
  6. Click Download File.

 Desc

Remote RACADM Download – Windows Operating System

Remote RACADM Download – Linux Operating System

Remote RACADM Installation – Windows Management Station

If downloaded, extract the downloaded file and run the .msi file provided. Depending on the version downloaded, the file will be named DRAC.msi, RACTools.msi, or RACTools64Bit.msi.

-OR-

If using the DVD, run <path>\SYSMGMT\ManagementStation\windows\DRAC\<.msi file name>

Accept the license agreement > Next > Select the folder to install to > Next > Install > Finish.

Open an administrative command prompt, type racadm and press Enter. If you get the RACADM help instructions it is installed correctly.

Remote RACADM Installation – Linux Management Station

If downloaded, extract the downloaded file and cd to the directory containing the rpm files:

<path>/linux/rac/<linux distribution name>/<i386 or x86_64>

-OR-

If using the DVD,  cd to the directory containing the rpm files:

<path>/SYSMGMT/ManagementStation/linux/rac/<linux_distribution_name>/<i386 or x86_64>

From the i386 or x86_64 directory, run:

rpm -ivh *.rpm

Open a shell prompt with root privileges, type racadm and press Enter. If you get the RACADM help instructions it is installed correctly.  

NOTE: The racadm executable is located under /opt/dell/srvadmin/sbin. You may need to log out and log back in to reset the PATH environment variable to include this location.

Local RACADM

Local RACADM supports executing RACADM commands from the managed system’s operating system. It is available on the Dell OpenManage Systems Management Tools and Documentation DVD or atsupport.dell.com.

To download Local RACADM:

  1. Go to http://support.dell.com
  2. If prompted, select Start Here under Small Businesses or Enterprise IT.
  3. Enter the Service Tag of the managed system and Submit, or use one of the Choose options to locate your managed system model.
  4. Select Drivers and Downloads > select the Operating System of your Managed System > expand Systems Management. 
  5. Locate the OpenManage Server Administrator Managed Node application and click Download File.

Local RACADM Download

Local RACADM Installation – Windows Managed System

If downloaded, extract the downloaded file and run <path>\windows\setup.exe

-OR-

If using the DVD, run <path>\SYSMGMT\srvadmin\windows\setup.exe

After the prerequisite checker runs, click Server Administrator.

Click Next > Accept the license agreement > Next > select Custom > Next.

At a minimum, make sure Remote Access Controller will be installed > Next > Install > Finish.

Open an administrative command prompt, type racadm and press Enter. If you get the RACADM help instructions it is installed correctly.

Local RACADM Installation – Linux Managed System

If downloaded, extract the downloaded file and run:

<path>/linux/supportscripts/srvadmin-install.sh

-OR-

If using the DVD, run:

<path>/SYSMGMT/srvadmin/linux/supportscripts/srvadmin-install.sh

Accept the license agreement and, at a minimum, select option 5 – Remote Access Core Component from the menu.

Open a shell prompt with root privileges, type racadm and press Enter. If you get the RACADM help instructions it is installed correctly.

NOTE: The racadm executable is located under /opt/dell/srvadmin/sbin. You may need to log out/log back in to reset the PATH environment variable to include this location.

SSH/Telnet/Serial RACADM (Firmware RACADM)

SSH/Telnet/Serial RACADM (Firmware RACADM) is built into the iDRAC, DRAC or CMC firmware and there is no separate download or installation required. See your user’s guide for connecting via these methods.

Once connected via SSH, Telnet or Serial, type racadm help for the online help instructions.

NOTE: On some interfaces if you type racadm and press Enter, you will be taken to a racadm>> prompt. Commands can then be entered from this prompt without the “racadm” prefix. To exit the prompt, type quit or use Ctrl+C.

Syntax Usage

The following shows an example of a simple RACADM subcommand, getsysinfo, used with each RACADM utility. See the end of this article for links to documentation containing the full list of RACADM commands.

Remote RACADM

Remote RACADM commands must include the ip address or hostname of the idrac, and the idrac username and password.

racadm -r <ip address or hostname> -u <username> -p <password> <subcommand>

racadm -r 10.1.1.1 -u root -p calvin getsysinfo

NOTE: Remote racadm uses the web server SSL certificate of the iDRAC to authenticate the session. You will receive a warning message if certificates have not been configured or if the certificate is invalid. However, the command will execute normally following the message. If you wish to halt the command on certificate errors, use the -S option in the command. For information on configuring certificates on the iDRAC, see the user’s guide for your iDRAC linked at the end of this article.

Local RACADM

You do not have to specify the ip address, username, or password in Local RACADM commands.

racadm <subcommand>

racadm getsysinfo

SSH/Telnet/Serial (Firmware) RACADM

You do not have to specify the ip address, username, or password in Firmware RACADM commands.

racadm <subcommand>

racadm getsysinfo

or

racadm <Enter> – takes you to a racadm>> prompt

racadm>>getsysinfo

RACADM Documentation

See the RACADM Command Line Reference Guide at the link below for detailed information on supported RACADM commands and features. This guide is available for iDRAC7, iDRAC6, and the CMC. For DRAC5, this information is combined with the DRAC5 User’s Guide.

See the Readme or Release Notes file posted alongside the guide for a complete listing of supported operating systems.

To locate a particular document, go to http://www.dell.com/esmmanuals , select Remote Access Controller (or Chassis Management Controller for CMC), then select your product version.

 

racadm getniccfg

racadm getsysinfo

 

 

 

racadm setniccfg -s 147.27.15.52 255.255.255.192 147.27.15.62

racadm setniccfg -o

racadm setniccfg -d6

racadm getniccfg

racadm config -g cfgLanNetworking -o cfgDNSServer1 147.27.15.11

racadm config -g cfgLanNetworking -o cfgDNSRacName whv-1-mgmt

 

racadm config -g cfgLanNetworking -o cfgDNSDomainName isc.tuc.gr

 

racadm config -g cfglannetworking -o cfgnicselection 0

racadm getconfig -g cfgLanNetworking

 

racadm set idrac.users.2.password 

 

Adding an iDRAC User

To add a new user to the iDRAC, perform the following steps:

  1. Set the user name.
  2. Set the password.
  3. Set the Login to iDRAC user privilege.
  4. Enable the user.

Example

The following example describes how to add a new user named “John” with a “123456” password and login privileges to the iDRAC:

racadm config -g cfgUserAdmin -o cfgUserAdminUserName -i 2 john

racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 123456

racadm config -g cfgUserAdmin -o cfgUserPrivilege -i 2 0x00000001

racadm config -g cfgUserAdmin -o cfgUserAdminEnable -i 2 1

To verify the new user, use one of the following commands:

racadm getconfig -u john

racadm getconfig –g cfgUserAdmin –i 2

racadm quick dirty cheatsheet

iDRAC racadm quick and dirty cheatsheet. racadm command can be issues via iDRAC/CMC/OS if svradmin-racadm is installed. Also you can specify -h option to access remote servers RAC as long as you have network access. Also if you are having problems with racadm “Failed to initialize transport” install openssl-devel. full documentation for iDRAC7 can be found here.

% Get all iDRAC settings in a file

racadm get -f config.txt

If you like you can change the contents of config.txt and apply it back to iDRAC
racadm set -f config.txt

% Set password for root user
racadm set iDRAC.Users.2.Password PASSWORD"

% List all ssh keys for root user
racadm sshpkauth -i 2 -v -k all

% Add ssh key to root user
racadm sshpkauth -i 2 -k 1 "CONTENTS OF PUBLIC KEY"

% Delete ssh key for root user
racadm sshpkauth -i 2 -d -k 1

% Get iDRAC IP config

racadm getniccfg
racadm get iDRAC.NIC

% set iDRAC IP

Using config command:
racadm config -g cfgLanNetworking -o cfgNicEnable 1
racadm config -g cfgLanNetworking -o cfgNicIpAddress x.x.x.x
racadm config -g cfgLanNetworking -o cfgNicNetmask 255.255.255.0
racadm config -g cfgLanNetworking -o cfgNicGateway x.x.x.x
racadm config -g cfgLanNetworking -o cfgNicUseDHCP 0
racadm config -g cfgLanNetworking -o cfgDNSServersFromDHCP 0
racadm config -g cfgLanNetworking -o cfgDNSServer1 y.y.y.y
racadm config -g cfgLanNetworking -o cfgDNSServer2 y.y.y.y
• Using set command:
racadm set iDRAC.Nic.Enable 1
racadm set iDRAC.IPv4.Address x.x.x.x
racadm set iDRAC.IPv4.Netmask 255.255.255.0
racadm set iDRAC.IPv4.Gateway x.x.x.x
racadm set iDRAC.IPv4.DHCPEnable 0
racadm set iDRAC.IPv4.DNSFromDHCP 0
racadm set iDRAC.IPv4.DNS1 y.y.y.y
racadm set iDRAC.IPv4.DNS2 y.y.y.y

% Set iDRAC DNS Name
racadm set iDRAC.NIC.DNSRacName iDRACNAME

% Set iDRAC domain name
racadm set iDRAC.NIC.DNSDomainName DOMAIN.NAME

% Set iDRAC DNS Server

racadm config -g cfgLanNetworking -o cfgDNSServer1 x.x.x.x
racadm config -g cfgLanNetworking -o cfgDNSServer2 y.y.y.y

% Set Front LCD to hostname
racadm set System.LCD.Configuration 16

% Reset iDRAC to factory defaults
racadm racresetcfg

% Reset/Reboot iDRAC

racadm racreset OPTIONS

Options : soft, hard, cold
or
racadm serveraction powercycle

% Get Serial number (service tag)
racadm getsvctag

% Get current system information
racadm getsysinfo

% Configure one-time-boot to PXE

racadm set BIOS.OneTimeBoot.OneTimeBootMode OneTimeBootSeq
racadm set BIOS.OneTimeBoot.OneTimeBootSeqDev NIC.Integrated.1-1-1

% Configure persistent Boot Device

racadm config -g cfgServerInfo -o cfgServerBootOnce 0
racadm config -g cfgServerInfo -i cfgServerFirstBootDevice HDD

% Check boot order list
racadm get BIOS.BiosBootSettings.bootseq

% Disable HyperThreading
racadm set BIOS.ProcSettings.LogicalProc Disabled

% Disable OS to iDRAC pass-thru for iDRAC service module (automatically create a pseudo NIC in OS)
racadm set iDRAC.OS-BMC.AdminState Disabled

% Change SNMP public community string
racadm set iDRAC.SNMP.AgentCommunity NEW STRING

% Disable ASR
racadm config -g cfgRacTuning -o cfgRacTuneAsrEnable 0

% Configure Serial redirection

racadm config -g cfgSerial -o cfgSerialConsoleEnable 1
racadm config -g cfgSerial -o cfgSerialBaudRate 115200
racadm config -g cfgSerial -o cfgSerialCom2RedirEnable 1
racadm config -g cfgSerial -o cfgSerialTelnetEnable 0
racadm config -g cfgSerial -o cfgSerialSshEnable 1

to access console via ssh console com2

% Disable Serial On Lan
racadm config -g cfgImpiSol -o cfgIpmiSolEnable 0

% Change Power Profile
racadm set BIOS.SysProfileSettings PerfPerWattOptimizedOs

% Set AC Power Recovery

racadm set BIOS.SysSecurity.AcPwdRcvry Last
racadm set BIOS.SysSecurity.AcPwdRcvryDelay Immediate

% Get RAID physical Disk information

racadm raid get pdisks
racadm raid get pdisks -o (all information)
racadm raid get pdisks -o -p state,size (specific information)

% Get RAID Virtual Disk Information
Racadm raid get vdisks

http://en.community.dell.com/techcenter/systems-management/w/wiki/3205.racadm-command-line-interface-for-drac

Install HP iLO UBUNTU 14.04

sudo echo “deb http://downloads.linux.hp.com/SDR/downloads/MCP/ubuntu precise/current non-free” >>/etc/apt//sources.list.d/hp-proliant-support-pack.list

 

wget http://downloads.linux.hpe.com/SDR/downloads/MCP/GPG-KEY-mcp

sudo apt-key add GPG-KEY-mcp

apt-get install cpqacuxe hp-ams hp-health hpacucli hponcfg

hponcfg -w /tmp/ilo-conf.txt

nano /tmp/ilo-conf.txt

 

<!– HPONCFG VERSION = “4.4.0” –>
<!– Generated 11/7/2016 13:56:25 –>
<RIBCL VERSION=”2.1″>
<LOGIN USER_LOGIN=”Administrator” PASSWORD=”password”>
<DIR_INFO MODE=”write”>
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = “N”/>
<DIR_LOCAL_USER_ACCT VALUE = “Y”/>
<DIR_SERVER_ADDRESS VALUE = “”/>
<DIR_SERVER_PORT VALUE = “636”/>
<DIR_OBJECT_DN VALUE = “”/>
<DIR_OBJECT_PASSWORD VALUE = “”/>
<DIR_USER_CONTEXT_1 VALUE = “”/>
<DIR_USER_CONTEXT_2 VALUE = “”/>
<DIR_USER_CONTEXT_3 VALUE = “”/>
</MOD_DIR_CONFIG>
</DIR_INFO>
<RIB_INFO MODE=”write”>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “147.27.15.57”/>
<SUBNET_MASK VALUE = “255.255.255.192”/>
<GATEWAY_IP_ADDRESS VALUE = “147.27.15.62”/>
<DNS_NAME VALUE = “smb-1-mgmt”/>
<PRIM_DNS_SERVER value = “147.27.15.11”/>
<DHCP_ENABLE VALUE = “N”/>
<DOMAIN_NAME VALUE = “isc.tuc.gr”/>
<DHCP_GATEWAY VALUE = “Y”/>
<DHCP_DNS_SERVER VALUE = “Y”/>
<DHCP_STATIC_ROUTE VALUE = “Y”/>
<DHCP_WINS_SERVER VALUE = “Y”/>
<REG_WINS_SERVER VALUE = “Y”/>
<PRIM_WINS_SERVER value = “0.0.0.0”/>
<STATIC_ROUTE_1 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
<STATIC_ROUTE_2 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
<STATIC_ROUTE_3 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
</MOD_NETWORK_SETTINGS>
</RIB_INFO>
<USER_INFO MODE=”write”>
</USER_INFO>
</LOGIN>
</RIBCL

 

nano /tmp/ilo-conf.txt

<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “147.27.15.57”/>
<SUBNET_MASK VALUE = “255.255.255.192”/>
<GATEWAY_IP_ADDRESS VALUE = “147.27.15.62”/>
<DNS_NAME VALUE = “smb-1-mgmt”/>
<PRIM_DNS_SERVER value = “147.27.15.11”/>
<DHCP_ENABLE VALUE = “N”/>
<DOMAIN_NAME VALUE = “isc.tuc.gr”/>

 

hponcfg -f /tmp/ilo-conf.txt

 

 

 

Install HP iLO esxi 5.5

Configuration of HP ILO can be done using reboot of your HP server and Press <F8> to configure the ILO settings but you need a down time to your ESXi host and all the virtual machines running on it if it is a standalone host and no option to vMotion to other host. It is really a tough task to get downtime for your virtuali machines just for your ILO configurations like Reset ILO configuration, Reconfigure ILO IP address and reset ILO administrative password.

Now ILO configuration of ESXi host can easily be done without need of host restart using HP ESXi utilities.
HP ESXi Utilities Offline bundle for VMware ESXi 5.5 will be available as part of HP customized ESXi installer image but if it is not a HP customized ESXi image then you may need to download and install  HP ESXi Utilities Offline bundle for VMware ESXi 5. It downloads the HP ESXi Utilities Offline bundle Zip file.This ZIp file contains 3 different utilities HPONCFG , HPBOOTCFG and HPACUCLI utilities for remote online configuration of servers.

HPONCFG can be used to set up and reconfigure the iLO (Integrated Lights-Out) management controller of a server.
HPBOOTCFG can be used to set up the boot configuration for the server.
HPACUCLI can be used in the configuration of HP Smart Array controllers and attached storage

esxcli software vib install  -d /vmfs/volumes/54916ea3-2489c019-e8cd-001e0bd2583c/HP-iLO/hp-HPUtil-esxi5.5-bundle-1.5-27.zip 

Once it is installed. Browse towards the directory /opt/hp/tools and execute  the below commands to perform the below operations. Below are the available help options for HPONCFG utility

cd /opt/hp/tools/

./hponcfg -w /tmp/ilo-conf.txt

cat /tmp/ilo-conf.txt

<!– HPONCFG VERSION = “4.0-11.0″ –>
<!– Generated 11/7/2016 11:19:55 –>
<RIBCL VERSION=”2.1″>
<LOGIN USER_LOGIN=”Administrator” PASSWORD=”password”>
<DIR_INFO MODE=”write”>
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = “N”/>
<DIR_LOCAL_USER_ACCT VALUE = “Y”/>
<DIR_SERVER_ADDRESS VALUE = “”/>
<DIR_SERVER_PORT VALUE = “636”/>
<DIR_OBJECT_DN VALUE = “”/>
<DIR_OBJECT_PASSWORD VALUE = “”/>
<DIR_USER_CONTEXT_1 VALUE = “”/>
<DIR_USER_CONTEXT_2 VALUE = “”/>
<DIR_USER_CONTEXT_3 VALUE = “”/>
</MOD_DIR_CONFIG>
</DIR_INFO>
<RIB_INFO MODE=”write”>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “0.0.0.0”/>
<SUBNET_MASK VALUE = “0.0.0.0”/>
<GATEWAY_IP_ADDRESS VALUE = “0.0.0.0”/>
<DNS_NAME VALUE = “ILOCZC8160J5H”/>
<PRIM_DNS_SERVER value = “0.0.0.0”/>
<DHCP_ENABLE VALUE = “Y”/>
<DOMAIN_NAME VALUE = “”/>
<DHCP_GATEWAY VALUE = “Y”/>
<DHCP_DNS_SERVER VALUE = “Y”/>
<DHCP_STATIC_ROUTE VALUE = “Y”/>
<DHCP_WINS_SERVER VALUE = “Y”/>
<REG_WINS_SERVER VALUE = “Y”/>
<PRIM_WINS_SERVER value = “0.0.0.0”/>
<STATIC_ROUTE_1 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
<STATIC_ROUTE_2 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
<STATIC_ROUTE_3 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
</MOD_NETWORK_SETTINGS>
</RIB_INFO>
<USER_INFO MODE=”write”>
</USER_INFO>
</LOGIN>
</RIBCL>

 

 

Configuring IP address for HP ILO from ESXi host

Edit the exported config file /tmp/ilo-conf.txt from above step and change the following IP address variables
vi ilo-conf.txt 
<IP_ADDRESS VALUE = “147.27.15.56”/>
<SUBNET_MASK VALUE = “255.255.255.192”/>
<GATEWAY_IP_ADDRESS VALUE = “147.27.15.62”/>
<DNS_NAME VALUE = “vs-2-mgmt”/>
<PRIM_DNS_SERVER value = “147.27.15.11”/>
<DHCP_ENABLE VALUE = “N”/>
<DOMAIN_NAME VALUE = “isc.tuc.gr”/>
Commit the updated IP address configuration from the file (ilo-conf.txt) to the ILO cofig  using th below command
/opt/hp/tools/hponcfg -f /tmp/ilo-conf.txt
Thats it .You should be able to reach the ILO of the server using the IP address 147.27.15.56 now.

 

 

Reset the ILO from ESXi host

Browse to /opt/hp/tools and execute the below command to reset the HP ILO configuration.

./hponcfg -r 

Reset the ILO administrator password from ESXi host

Create a file named reset_admin_pw.xml with the below info and add the new password in the password section:

<ribcl VERSION=”2.0″>
<login USER_LOGIN=”Administrator” PASSWORD=”YOUR-NEW-PASSWORD“>
<user_INFO MODE=”write”>
<mod_USER USER_LOGIN=”Administrator”>
<password value=”newpass”/>
</mod_USER>
</user_INFO>
</login>
</ribcl>

Commit the Updated administrator password information from the file (reset_admin_pw.xml) to ILO using the below command ./hponcfg -f reset_admin_pw.xml

That’s it you should be able to login to ILO of your ESXi host using the password specified in the above xml file. I hope this is informative for you.

 

http://www.vmwarearena.com/how-to-configure-hp-ilo-from-esxi-host/

http://h20564.www2.hpe.com/hpsc/swd/public/detail?swItemId=MTX_261d74ac60c24580aeccde8c28#tab3

 

iLO, iLO2, iLO3 and iLO4 Advanced License Activation Keys

iLO, iLO2, iLO3 and iLO4 Advanced License Activation Keys
iLO 2 Advanced features have been activated.

iLO Advanced License Keys:
247RH-ZPJ8S-7B17D-FCE55-DDD17

Ключ от iLO 2 подходит к iLO 3 и iLO 3

LO100i Advanced License Keys:
35DRP-7B3TX-78VVM-7KX4Y-XS74X — Advanced

iLO 2 Advanced License Keys:
35DPH-SVSXJ-HGBJN-C7N5R-2SS4W
35SCR-RYLML-CBK7N-TD3B9-GGBW2

iLO MP (hp Integrity) Advanced License Keys:
32Q8Y-XZVGQ-4SGJB-4KY3R-M9ZBN — MP Advanced

Проверено на работоспособность на iLO 2 Firmware Version: 2.17 и 2.20
На серверах:
HP ProLiant DL380 G6
HP ProLiant DL360 G5
rx2660.17
rx2660
rx6600

 

 

http://inet6.alphasca.net/ilo-ilo2-ilo3-and-ilo4-advanced-license-activation-keys/

 

 

 

Reset MySQL root password

How can I reset my MySQL password?
Following this procedure, you will disable access control on the MySQL server. All connexions will have a root access. It is a good thing to unplug your server from the network or at least disable remote access.

To reset your mysqld password just follow these instructions :

  1. Stop the mysql demon process using this command :
    sudo /etc/init.d/mysql stop
  2.  Start the mysqld demon process using the –skip-grant-tables option with this command
    sudo /usr/sbin/mysqld –skip-grant-tables –skip-networking &

Because you are not checking user privs at this point, it’s safest to disable networking. In Dapper, /usr/bin/mysqld… did not work. However, mysqld –skip-grant-tables did.

  1. start the mysql client process using this command
    mysql -u root
  2. from the mysql prompt execute this command to be able to change any password
    FLUSH PRIVILEGES;
  3. Then reset/update your password
    SET PASSWORD FOR root@’localhost’ = PASSWORD(‘password’);
  4. If you have a mysql root account that can connect from everywhere, you should also do:
    UPDATE mysql.user SET Password=PASSWORD(‘newpwd’) WHERE User=’root’;
  5. Alternate Method:
    USE mysql
    UPDATE user SET Password = PASSWORD(‘newpwd’)
    WHERE Host = ‘localhost’ AND User = ‘root’;
  6. And if you have a root account that can access from everywhere:
    USE mysql
    UPDATE user SET Password = PASSWORD(‘newpwd’)
    WHERE Host = ‘%’ AND User = ‘root’;

For either method, once have received a message indicating a successful query (one or more rows affected), flush privileges:

FLUSH PRIVILEGES;
Then stop the mysqld process and relaunch it with the classical way:

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start
When you have completed all this steps ,you can easily access to your mysql server with the password you have set in the step before. An easy way to have a full control of your mysql server is phpmyadmin (www.phpmyadmin.net), software made in php that can give you a web interface that can be very usefull to people that havent got a lot of confidence with bash .To install phpmyadmin on you server you will need to have 4 things:

  1. web server apache
  2. php
  3. mysql server/mysql client installed
  4. php_mysql support for apache

All packages can be found browsing synaptic.


Another way, purge
I also had some problems with mysql just not accepting my password. I tried the other way as well and it just ended up being difficult. I had not been able to use mysql so it was empty anyway. If this is also your case you may opt for the PURGE way. This removes every file related to mysql. Depending on your installation the packages might be diffrent, mysql-server in 6.10 is called mysql-server-5.0 as an example.

USE THIS AS A LAST RESORT METHOD, YOU WILL LOSE ALL YOUR MYSQL DATA

sudo apt-get –purge remove mysql-server mysql-common mysql-client

sudo apt-get install mysql-server mysql-common mysql-client
In the next step be sure to chance the your-new-password with the password you want!

mysqladmin -u root password your-new-password
sudo /etc/init.d/mysql restart

mysql -u root -p
You should now be logged in as root. Make sure to notedown your password! Thanks to Illuvator for posting this method in the ubuntu forum.

The Easiest Method

sudo dpkg-reconfigure mysql-server-N.N


https://help.ubuntu.com/community/MysqlPasswordReset

Change gcc from 4.8 to 6.2 ubuntu 12.04LTS

dpkg -l | grep gcc | awk '{print $2}'

First erased the current update-alternatives setup for gcc and g++: (not Neccesery)

# sudo update-alternatives --remove-all gcc
# sudo update-alternatives --remove-all g++

Install Packages

It seems that both gcc-4.3 and gcc-4.4 are installed after install build-essential. However, we can explicitly install the following packages:

sudo apt-get install gcc-6 g++-6

Install Alternatives

Symbolic links cc and c++ are installed by default. We will install symbol links for gcc and g++, then link cc and c++ to gcc and g++ respectively.

#sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 20

#sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 20

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
 sudo update-alternatives --set cc /usr/bin/gcc

sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
 sudo update-alternatives --set c++ /usr/bin/g++

Configure Alternatives

The last step is configuring the default commands for gcc, g++. It’s easy to switch between 4.3 and 4.4 interactively:

sudo update-alternatives --config gcc
 sudo update-alternatives --config g++


gcc -v
g++ -v

http://askubuntu.com/questions/26498/choose-gcc-and-g-version



Compile tinyos3

Download tinyos3.zip
unzip tinyos3.zip
sudo apt-get install valgrind
nano kernel_sched.c

--- Line 59 ---

//#define MMAPPED_THREAD_MEM

replace

#define MMAPPED_THREAD_MEM
touch .depend
 make

./validate_api basic_tests

 

Μετάβαση στο περιεχόμενο