Flux
Articles
Commentaires

Quand on enregistre un nouveau serveur Xen avec 8 ou 9 NICs, vous pouvez voir que eth0 sur serveur A n’est pas la même chose que sur serveur B. Mais, si vous courez un cluster, vous devez avoir le même chose sure chaque serveur.

Voila:

1. Voir le MAC address avec ifconfig.
2. xe pif-list device=ethX Ou X est le NIC (vous avez besoin de regardez les macs sur un switch!!!!)
3. xe pif-forget uuid=
4. xe pif-introduce host-uuid= device=ethX mac=

En numero 4, utilisiez le mac et ethX que vous voulez. Par example si l’addresse 00:01 est sur eth2 mais vous aimeriaz le mettez sur eth1 vous courez numero4 avec 1 et 00:01 sur le host.

Premier, laissez-moi dit je suis delsole que c’est en anglais.  Mais je pense que plupart de mes lecteurs est anglais.  Cette article est comment mourir dhcp leases sans modifier dhcpd.lease fichier. Si vous pouvez lire francais, je pense qeu vous pouvez lire cette article.

There is an article floating around on the internet which has a similar procedure as below  but it lacks the client IP section of the DHCP packet.  That section is critical to getting the DHCP server to release.

Ever had a case where you want to delete DHCP leases?  Sure, you can install webmin and try it that way.  But I have had some bad experiences with external utilites to edit sensitive data files such as dhcpd.leases.

Enter SHO-CLI from our folks at http://www.cubsystems.com (the download link is here: http://www.cubsystem.com/sho/).

Just install it into your linux box (its just a simple library file and a tiny client).

Then, do the following to send a dhcp release for a particular ip / mac (yes, you need to know the mac):

sho-cli
Then type in this in the shell:
eth :: Ethernet
eth.sourceMAC = 00:01:02:03:04:05
eth.destinationMAC = FF:FF:FF:FF:FF:FF

ip :: IP
ip.sourceIP = 0.0.0.0
ip.destinationIP = 255.255.255.255
ip.protocol = 17

udp :: UDP
udp.sourcePort = 68
udp.destinationPort = 67
dhcp :: DHCP
dhcp.clientMAC = 00:01:02:03:04:05
dhcp.clientIP = 10.1.2.3
dhcp.AddOption MESSAGE_TYPE DHCP_RELEASE
eth << ip
ip << udp
udp << dhcp
compile eth
set interface = eth0
send eth

Now can someone please write me a perl script to parse through dhcpd.leases and ping addreses, then release those addresses which don't reply?

Vraiment!  Ils ont terrorists.  Il n’est pas possible telercharger mysql-4.1.13.tar.gz de leurs site.

Renom cette fichier:  http://rattyboy.files.wordpress.com/2011/04/mysql-4-1-13-tar-renom-a-tar-gz.doc

Et let md5 est: 49d7a7314a2c9cf49e34777e73e66562

Je ne peu pas me souvenir.

Essayez:  admin / superuser, admin/motorola, admin/symbol

Je ne sais pas si ce travaille sur xp ou’ vista. Mais voila:

Changez le registry cle’ hkey_current_user/control panel/desktop/foregroundlocktimeout de 0 a’ 30d40.

Je suis l’assaye maintenant.

AIX Queue Migrations

Taken from an old PMR, not sure of original source:

Migrating print queues from one system to another/os level independent.
(this only addresses the queue names and virtual printers). print
devices (lp’s) must still be made independent of these actions and this
will not work for ny queues with non-AIX backends or most network queue
connections (host names and routes being the primary issue).

Also depending on what kind of connection the queue has, the file and or
backend directory path in /etc/qconfig stanzas will be different between os
level 3.2.5 and 4.x.x

The reason there is no cut and dry answer to this issue is that
customer’s systems vary so much in adapter/network connectivity,
filesystem structure, host naming conventions, etc., that
years of experience have taught us most people are much
better off just making the queues via smit. A few hours work and
it’s done rather then 20 hours later and still trying to
figure out one more piece of the puzzle which is stopping the cloned
system from working.

SUGGESTION:

NOTE: Save all files which will be over-written by this process before
attempting the migration.

1. copy the /etc/qconfig to the target system.

2. cycle the printer subsystem on target machine.
stopsrc -cg spooler
startsrc -g spooler

3. copy all the /var/spool/lpd/pio/@local/custom files to target system
(/var/spool/lpd/pio/custom <– for AIX 3.2.x)

3b. copy all the /var/spool/lpd/pio/@local/dev directory files
(this is the queue device place holder)

4. change the permission on the copied files in
/var/spool/lpd/pio/@local/custom/(files)
to 664 and make ownership of root owner and printq group.

5. digest the colonfile: #chvirprt -q(queue name) -d(device name) of
each file in
/var/spool/lpd/pio/@local/custom
(or run the below sm_file script)

The sm_file Script:

#!/bin/ksh

echo “\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n”
echo “This operation will refresh the printing system smit screens”
echo “and relink the system queues to the new screens. To complete”
echo “the operation I will stop qdaemon and restart it after I am
done.\n”
echo “Any job currently printing will start over from the begining.\n”
echo “If you want me to continue with this operation type YES in
capital”
echo “letters, and hit <enter>. If not type NO and hit <enter>.\n”
echo “Shall I continue?”
while read QSTOP
do
{
if [[ -z $QSTOP ]] #tests for a null (just hit enter)
then
echo “\n”
elif test $QSTOP = “NO”
then
echo “stopping with no change to smit queue screens”
exit #exits this shell script
elif test $QSTOP = “YES”
then
break #exits the while loop after the
fi
}
echo “Please enter NO or YES”
done
echo “\n”
echo “Stopping qdaemon.”
echo “\n”
stopsrc -cs qdaemon
echo “I will now copy backup smit screen files to the directory of:”
echo “/var/spool/lpd/pio/@local/smit.”
echo “one moment please…\n”
sleep 5

cp /usr/lpp/printers.rte/inst_root/var/spool/lpd/pio/@local/smit/* \
/var/spool/lpd/pio/@local/smit

echo “Done with smit screen refresh.\n”
sleep 2
cd /var/spool/lpd/pio/@local/custom
echo “I will now link the currently existing queues on the system, with
the”
echo “refreshed smit screens.\n”
sleep 3
for file in `ls`
do
echo “Now linking queue and device $file”
/usr/lib/lpd/pio/etc/piodigest $file
done
echo “\n”
echo “Starting qdaemon”
startsrc -s qdaemon
echo “\n”
echo “The print queue refresh/relink operation is complete. If you have”
echo “any questions or problems please call: 1-800-225-5249 (AIX
SUPPORT).”
echo “Thank you for using AIX SUPPORT.”
#End of script

This has worked in a test environment but it is not guaranteed to work
in any particular OS or hardware environment. If it does not work, return
to the supported method of queue construction as laid out in the AIX system
manuals.

Thank you for using AIX SUPPORT.

** NOT SUPPORTED ** ** NOT SUPPORTED ** ** NOT SUPPORTED **

I used this trick to successfully install steam and play under Linux:

1.  Install wine with your distro (I am using Ubuntu maverick)

2.  delete ~/.wine if it exists or change your prefix to something new

3. Downnload steam’s installer and run wine msiexec /a SteamInstall.msi

4. Logged into steam to make sure its working.

5. Exit steam — be sure to exit the system tray part too.

6. ran winecfg and on the libraries tab added in an override for d3d8 and edited it to be only builtin – not the default.7. vi ~/.wine/user.reg and added these lines (taken from another website):

“d3d8″=”builtin”

“d3d9″=”builtin”
“d3dim”=”native”

“d3drm”=”native”

“d3dx8″=”native”

“d3dx9_24″=”native”

“d3dx9_25″=”native”

“d3dx9_26″=”native”

“d3dx9_27″=”native”

“d3dx9_28″=”native”

“d3dx9_29″=”native”

“d3dx9_30″=”native”

“d3dx9_31″=”native”

“d3dx9_32″=”native”

“d3dx9_33″=”native”

“d3dx9_34″=”native”

“d3dx9_35″=”native”

“d3dx9_36″=”native”

“d3dxof”=”native”

“dciman32″=”native”

“ddrawex”=”native”

“devenum”=”native”

“dinput”=”builtin”

“dinput8″=”builtin”

“dmband”=”native”

“dmcompos”=”native”

“dmime”=”native”

“dmloader”=”native”

“dmscript”=”native”

“dmstyle”=”native”

“dmsynth”=”native”

“dmusic”=”native”

“dmusic32″=”native”

“dnsapi”=”native”

“dplay”=”native”

“dplayx”=”native”

“dpnaddr”=”native”

“dpnet”=”native”

“dpnhpast”=”native”

“dpnlobby”=”native”

“dsound”=”builtin”
“dswave”=”native”

“dxdiagn”=”native”

“mscoree”=”native”

“msdmo”=”native”

“qcap”=”native”

“quartz”=”native”

“streamci”=”native”
Note that you don’t want to duplicate the 1st entry — so overwrite /delete the d3d8 line.
8. Put a copy of streamci.dll into ~/.wine/drive_c/windows/system32 — you can get it from your windows CD or from dll-files.com.
9. Download the directx10 redistributable from Microsoft and run it with wine — extract it to c:\tempdx
10. cd to the tempdx folder you created (cd ~/.wine/drive_c/tempdx) and run wine DXSETUP.exe — and setup directx.
11. cd to ~/.wine/drive_c/Program Files/Steam and run wine ./Steam.exe
12. Download FM2010
13.  Hit play — and it worked!!!!!

I hate that this is copied from IBM’s site, however I don’t want to lose it and have to find it again:

This document discusses migrating users from one AIX system to another. This does not include transferring the user’s personal data or home directories.

The information in this document applies to AIX 5.2 and above.

Since the files involved in the following procedure are flat ASCII files and their format has not changed from V4 to V5, the users can be migrated between systems running the same or different versions of AIX (for example, from V4 to V5).
Files that can be copied over

/etc/group
/etc/passwd
/etc/security/group
/etc/security/limits
/etc/security/passwd
/etc/security/.ids
/etc/security/environ
/etc/security/.profile

NOTE: Edit the passwd file so the root entry is as follows:

root:!:0:0::/:/usr/bin/ksh

When you copy the /etc/passwd and /etc/group files, make sure they contain at least a minimum set of essential user and group definitions.

Listed specifically as users are the following:

* root
* daemon
* bin
* sys
* adm
* uucp
* guest
* nobody
* lpd

Listed specifically as groups are the following:

* system
* staff
* bin
* sys
* adm
* uucp
* mail
* security
* cron
* printq
* audit
* ecs
* nobody
* usr

If the bos.compat.links fileset is installed, you can copy the /etc/security/mkuser.defaults file over. If it is not installed, the file belongs in the /usr/lib/security directory.

If you copy over mkuser.defaults, changes must be made to the stanzas. Replace group with pgrp, and program with shell. A proper stanza should look like the following:

user:
pgrp = staff
groups = staff
shell = /usr/bin/ksh
home = /home/$USER

The following files may also be copied over, as long as the AIX version in the new machine is the same:

/etc/security/login.cfg
/etc/security/user

NOTE: If you decide to copy these two files, open the /etc/security/user file and make sure that variables such as tty, registry, auth1 and so forth are set properly with the new machine. Otherwise, do not copy these two files, and just add all the user stanzas to the new created files in the new machine.

Once the files are moved over, execute the following:

usrck -t ALL
pwdck -t ALL
grpck -t ALL

This will clear up any discrepancies (such as uucp not having an entry in /etc/security/passwd). Ideally this should be run on the source system before copying over the files as well as after porting these files to the new system.

NOTE: It is possible to find user ID conflicts when migrating users from older versions of AIX to newer versions. AIX has added new user IDs in different release cycles. These are reserved IDs and should not be deleted. If your old user IDs conflict with the newer AIX system user IDs, it is advised that you assign new user IDs to these older IDs.

Telechargez Process Explorer. (www.sysinternals.com)
1. System Idle Process->System
2. Cherchez le nom \Device\VSPSnapshot0\_vxfiVspCacheFile_1.tmp
3. Droight-Clicquez et choissez "close handle"
4. Cherchez le "system handle" (ie. c:\_vxfiVspCacheFile_1.tmp) et le fermez aussi.

Une autre commande que je ne peu pas me souvinir.

smtctl <– vous pouvez aussi les changer ici.

Articles Précédents »

Suivre

Get every new post delivered to your Inbox.