Notes on using xen in debian lenny

Make a xen image config xen-create-image --hostname=drclaw.toon-net.local --ip=192.168.2.15 --accounts --memory=512mb --size=8gb --role=udev NOTE: #hostname the machines name #ip the ip address of the machine #memory how much RAM you wish to allocate it #size disk space of image #role=udev setups udev on the image you might find you have issues with ssh and console on the image otherwise #accounts = import non system –accounts into image from master server Starting the image xm create /etc/xen/drclaw.

Read more

Share

Enabling SNMP on a Netscaler though the CLI

Useful if you wish to monitor the Netscaler remotely though cacti or some other monitoring/trending software. ## # Display SNMP Community ## sh snmp community ## # Adding SNMP community ## addsnmpcommunity public all Where public is the community string, you can also create traps on the Netscalers as well but i havent done much digging into this yet. More playing with monitoring the different services we have setup.

Read more

Share

Adding a new data file into an Oracle 10g instance

First thing we need to check where the data files are being stored to do this all you need to do is log in as sysdba and then run ‘select * from dba_data_files;’ e.g. SQL> connect / as sysdba Connected. SQL> select * from dba_data_files; Once you have the location the syntax for adding the file is SQL> connect / as sysdba Connected. SQL> alter tablespace data_large add datafile '/lh0-mmm-sync/oracle/oradata/data0/data_large02.dbf' size 1g; Note: Oracle will create the data file for you, you don’t need to make the file though the OS or anything.

Read more

Share

SNMP and XEN Machines on debian lenny

Found out the hard way on this that yes you can install snmpd on the xen domu machines but, you have a very limited amount of snmp mibs to play with, things you can not do unless you create your own snmp mib file. Disk space CPU Connected users to machine If you do some googling though you will find that some people have written some perl scripts which you can use in conjunction with snmp to collect this information.

Read more

Share

Releasing IP from DHCP pool of a cisco router

gateway#show ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 192.168.2.22 0100.123f.8e52.06 Apr 17 2009 03:41 PM Automatic 192.168.2.25 0100.0244.3908.79 Apr 17 2009 03:13 PM Automatic 192.168.2.59 0100.1500.2020.6b Apr 17 2009 03:42 PM Automatic 192.168.2.134 0100.016c.cb00.0e Apr 17 2009 03:12 PM Automatic gateway#clear ip dhcp binding 192.168.2.25 gateway#show ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 192.

Read more

Share

svc:/application/management/sma:default not displaying even though packages have been installed

When you try and manually start the sma up you get the following error bash-3.00# /etc/init.d/init.sma start svcadm: Pattern 'svc:/application/management/sma:default' doesn't match any instances Solution: pkill configd svccfg -v import /var/svc/manifest/application/management/sma.xml svccfg -v import /var/svc/manifest/application/management/seaport.xml svcadm enable svc:/application/management/sma:default Link back: http://www.gnuunix.info/forum?id=12&catid=13&func=fb_pdf

Read more

Share

Rubber Duck method of debugging

We called it the Rubber Duck method of debugging. It goes like this: 1) Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck (bathtub variety) 2) Place rubber duck on desk and inform it you are just going to go over some code with it, if that's all right. 3) Explain to the duck what you code is supposed to do, and then go into detail and explain things line by line 4) At some point you will tell the duck what you are doing next and then realise that that is not in fact what you are actually doing.

Read more

Share

Howto force a cd/DVD eject on a Mac Mini

You hold down the left button on the mouse and then power the mac mini on this will force the system to eject what ever you have in the drive.

Read more

Share

Great ramdisk script for start/stopping and backing up

While i was looking around reading up on ramdisks in Solaris i found this every useful script which might be helpful to people, the key part i like about this is the backup section this saves me some time having to implement my own custom method. http://wikis.sun.com/display/BigAdmin/A+script+to+start+and+stop+ramdisks+in+the+Solaris+OS

Read more

Share

How to change a password in Oracle 10g

sqlplus /nolog SQL> connect / as sysdba SQL> ALTER USER Your_Login IDENTIFIED BY Your_Password;

Read more

Share