The complete Brocade SW4900 command list

April 6th, 2010 bayu No comments

This is the complete list of Brocade SW4900 commands, taken from the output of “help” command

Read more…

Categories: brocade Tags: , , ,

Realtime Earthquake map

October 8th, 2009 bayu No comments

This is the real time worldwide earthquake map, centered in Indonesia.
The color shows age of the earthquake :
Red = Past hour
Orange = Past day
Yellow = Past week

I’m using the worldwide earthquake data (updated every 5 minutes) provided by earthquake.usgs.gov

Categories: geotag Tags:

Cycling on Cirendeu – Pondok Cabe – Sawangan

October 4th, 2009 bayu No comments

This is my bicycling track from Cireundeu, Pondok Cabe, Sawangan, and pay a little visit on Situ (Lake) Sawangan. I just found the lake on the way back. It turns out there is a lake near my current position when I was trying see where I am using the google maps. I always try to go cycling with nearly blind direction, and go back using the GPS guided route.

Track Info:

Start Date/Time 03.10.2009 / 07:45:52
Duration 3hr 19min 47s
Distance 26.4 km
Track is recorded using Shape Services GPSed mobile application provided by gpsed.com
Categories: geotag Tags: , ,

Export OVO templates into xls file

June 8th, 2009 bayu 1 comment

Are you using HP OVO (Openview Operation)/ITO/OMU (Operation Manager for Unix) ? So you must be understand how hard to write a templates document, especially if you have hundreds or thousands templates in your environment .  This is a quick-and-dirty script I use, that similar to my previous released script, tpl2csv, but instead dumping the templates to csv file, this script will generate xls (Microsoft Excel) spreadsheet.

You need to have the node templates first before executing the tpl2xls.pl script, and also the templates has to be in a correct directory hierarchy. But don’t worry, I will also give you the script (gettemplates.pl) to download the templates in correct hierarchy.

The script needs John McNamara’s Spreadsheet-WriteExcel module, but it has been included inside the tpl2xls archive.

Please read terms of use before downloading the script(s)

Download

tpl2xls

tpl2xls-1.0.3


gettemplates

This script will download templates into tpl2xls-readable hierarchy. It reads a node list file like the one included in the package

gettemplates-1.0.2.pl.tar.gz

Categories: openview Tags: , , , , ,

Dump OVO templates into csv file

June 3rd, 2009 bayu No comments

Are you using HP OVO (Openview Operation)/ITO/OMU (Operation Manager for Unix) ? So you must be understand how hard to write a templates document, especially if you have hundreds or thousands templates in your environment .  I started a project to dump OVO templates into a csv file.

The script is in perl, so actually I can generate an Excel spreadsheet file directly but the script will need the spreadsheet perl module. To make it widely usable, i am going to make the script to only generates csv file. csv  files can later be imported to nearly any spreadsheet editor.

Update: If you want to dump/export the OVO templates into a well-formatted MS-Excel file, read this post instead.

You can freely use, modify, and share this script, just keep the attribution intact.

Please read terms of use before downloading the script(s)

Version 1.1.0

  • Unlike the initial build, this script includes downloading templates that has been assigned to nodes. Put node names inside the node list file separated by newlines. Now the script’s first argument is node list file instead of directory name.
  • Backward compatibility (perl 5.0) increased.
  • No longer using Getopt to grab options (to avoid dependency to getopt module)
  • Some minor changes.

tpl2csv-1.1.0.pl

Version 1.0.0

The initial release. The script will dump all templates files inside the specified directory into csv file.

tpl2csv-1.0.0.pl

Categories: openview Tags: , , , , ,

Linux:Creating floppy image file and copying files into it

May 29th, 2009 bayu No comments

The fastest way to do it :

# mkdosfs -C floppydisk.img 1440
# mount -o loop floppydisk.img /media/cdrom
# cp /path/to/files/* /media/cdrom/
# umount /media/cdrom

note: assuming /media/cdrom path is exists (most likely so), and you have root access.

credit: http://untitledfinale.wordpress.com/2007/10/09/create-mount-and-copy-floppy-disks-images-under-linux/

Categories: linux Tags: ,

OVO: RemedySPI is not runing after changing opc_adm password

May 28th, 2009 bayu No comments

When the RemedySPI is not running, and you can’t start it anymore, it might be caused by an unmatched password of opc_adm inside remspi configuration.

Check the remspi log :

tail /var/opt/OV/log/remspi/remspi.log

If you found anywhere in the log says :

05/28/2009 11:05:25 [ERROR] (remspisrv-16080): Can’t connect to ITO as user ‘opc_adm’: ‘No login’. Not a typewriter (SPI215-51)

then most likely the opc_adm user had changed his password.
To fix it, modify the REMSPI_ITO_ADMIN_PASSWD value inside configuration file

/etc/opt/OV/share/conf/remspi/remspi.cfg

The encrypted password has to be generated manually, using

/opt/OV/bin/remspi/remspipasswd <password>
Categories: openview Tags: , , ,

Linux: lowercasing the filenames

May 22nd, 2009 bayu No comments

I really hate uppercase when it comes to filenames. It’s really simple to translate words to lowercase using perl’s “tr”.

  my @FILES=`ls /path/to/bignames`;
  foreach my $line (@FILES){
    $line=trim($line);
 
  	if ($line ne "" &amp;&amp; $line !~ /^./ &amp;&amp; $line =~ /[A-Z]+/) {
  	  my $smalline = $line;
	    $smalline =~ tr/[A-Z]/[a-z]/;
      $out=`mv -v $line $smalline`;
    }

and this is the complete rename-to-lowercase script.

Please read terms of use before downloading the script(s)

Categories: linux Tags: , , , , ,

OVO: Path for user contributed template scripts

May 22nd, 2009 bayu No comments

I always forget this :D
/var/opt/OV/share/databases/OpC/mgd_node/customer/

This is the path to the place where you can put your own scripts to be used in templates. Depends on the target system, you have to put the correct version of scripts under the correct operating system.

Categories: openview Tags: ,

Linux: system crashes when virtualbox installed above the xen kernel

May 20th, 2009 bayu No comments

I did it in Centos 5.2 and RHEL 5.
see http://www.virtualbox.org/ticket/203

Categories: linux Tags: , , ,

Switch to our mobile site