VMware vFabric tc Server timeout

by GarciaPL on Wednesday 25 July 2012


In recent times I had a small issue with VMware vFabric tc Server which is included in SpringSource Tool Suite. When i was deploying my Spring application and after a long time i have this error :


"Server VMware vFabric tc Server Developer Edition v2.6 was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor."

Solution ? In the Servers view in Eclipse, double click on the Server name, that will open up an editor, there's a Timeouts section, increase the value for Start.



Reference :

LaTeX professional CV

by GarciaPL on Friday 20 July 2012


I would like to show you a professional CV in LaTeX of course ;) Below I put a screenshot of it.

LaTeX CV
CV in LaTeX Page 1/2
LaTeX CV
CV in LaTeX Page 2/2



Quite pretty, right ? ;)

So, If you would like to have this one CV on your own, just write to me via Contact page ;) I will generate CV for you for very very small gift ;)


LaTeX polish fonts

by GarciaPL on Thursday 19 July 2012


I speak Polish, so I wondering why not put some helpful information related with polish fonts in LaTeX. At the beginning I have to say that is very simple to do ;)

If you use Windows put :

\usepackage{polski}
\usepackage[cp1250]{inputenc}


If you use Linux put :


\usepackage{polski}
\usepackage[latin2]{inputenc}


If you use MacOS  put :


\usepackage{polski}
\usepackage[macce]{inputenc}


Simple, isn't it?



Reference :
[1] Polonizacja LaTeX [PL]
[2] LaTeX Quide [PL]

Monitor Cisco HSRP with SNMP

by GarciaPL on Tuesday 17 July 2012

Cisco

In this post I would like to present Perl script for Nagios that can check HSRP state of Cisco host(s) in network using SNMP protocol (only version 3) and return an output about error level (OK, Warning or Critical) related to Nagios.


Main table in MIB where all information related with HSRP state are stored is cHsrpGrpTable, where are many cHsrpGrpEntry objects which correspond with HSRP groups configured on router and each of them contains configuration and status related with this Cisco protocol.

Example snmpwalk over HSRP information in MIB :


SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.2.1.1 = STRING: "pr0jekt"
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.3.1.1 = Gauge32: 105
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.4.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.5.1.1 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.6.1.1 = INTEGER: 2
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.7.1.1 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.8.1.1 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.9.1.1 = Gauge32: 3000
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.10.1.1 = Gauge32: 10000
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.11.1.1 = IpAddress: 10.102.33.1
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.12.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.13.1.1 = IpAddress: 10.102.33.253
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.14.1.1 = IpAddress: 10.102.33.254
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.15.1.1 = INTEGER: 6
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.16.1.1 = Hex-STRING: 00 00 0C 07 AC 01
SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.17.1.1 = INTEGER: 1



The properly way to examine HSRP state is iterate through SNMP interface ID and HSRP group ID (this in one before last and last one digit from above OID for example 1 and 1), but this script skip this step and only fetch information from cHsrpGrpStandbyState parameter ;) :



1: initial
2: learn 
3: listen 
4: speak 
5: standby 
6: active 



Additional functionality of this script is that it can inform Nagios about things that are happening with HSRP protocol of host(s) defined in command line.


Parameters :


-h --help
print this help message

-u --username=USERNAME
username e.g. test_user

-a --authprotocol=PROTOCOL
protocol for auth e.g. SHA

-A --authpassword=PASSWORD
password for auth

-x --privprotocol=PROTOCOL
protocol for auth e.g. DES

-X --privpassword=PASSWORD
password for auth

-H --hostname=HOST(s)
name or IP address of host(s)

-S --switch=SWITCH
name or IP address of switch



Example usage :

./HSRP.pl -u <userName> -a <authProtocol> -A <authPassword> -x <privProtocol> -X <privPassword> -H [<host1>,<host2>,<host3>,...] -S <switch1>




Nagios | The Industry Standard in IT Infrastructure Monitoring



Reference:
[1] Cisco HSRP Documentation
[2] Pierky blog

 [3]  Source GitHub

Telco 2.0 vol.3.

by GarciaPL


A lot of open and neutral API (Application Programming Interface) have been created in recently years which were designed to facilitate access to the functionality of telecommunications networks.

Organizations 3rd Generation Partnership Project (3GPP) and European Telecommunications Standards Institute (ETSI) started joint work on assumptions of new service architecture called Open Service Architecture (OSA). Also Sun Microsystems designed specification of their own interface for telecommunication sector called Java APIs for Integrated Networks (JAIN).

Finally, organizations Parlay Group and ETSI with 3GPP focused joint efforts on designing unified interface Parlay/OSA for telecommunication sector which support concept of developing new service platform for telecoms.


Evolution of Application Programming Interfaces in Telecommunications
Evolution of Application Programming Interfaces in Telecommunications


Next post : Legal and economic environment

(Link)



Reference :
[1] Java APIs for Integrated Networks
[2] ETSI Parlay
[3] 3GPP

Telco 2.0 vol.2.

by GarciaPL


It all started with a process called convergence, which was initiated in the early 90' mainly by technical progress, when telecoms decided to implement in their internal systems intelligent platforms, which allowed them using it to provide integrated and innovative services. Highly simplified model is presented on picture below. Through this process was created a new 'technology branch' called Information and Communication Technologies (ICT).

Due to this occurence were created many solutions which connect (mashup) internet technologies like the Internet, e-mails, digital maps e.g. with functionalities of mobile networks like voice and text services to finally get new products like SMS Gateway, protocols to transmission videos Video over IP (VIP) and sound Voice over IP (VoIP), multiline telephone systems PBX, protocol WAP, digital TV (DVH-B) and many many more. Also this process had a great impact on the assumptions of Telco 2.0.



Convergence
Convergence


In result of synergy of telecommunication and IT sector occurred some new directions of development in future :


  • Internet will become a new medium for transport of phone calls etc.
  • Mobile networks gain hegemony in relation to fixed networks
  • Band telecommunications networks will be dominated mainly by the movement ICT

Thanks to convergence, telecoms changed conception of creation services from strictly related with telecommunication to tools and solutions derived from IT sector.


Technologies in Telecommunications
Technologies in Telecommunications


Next post : New Application Programming Interfaces (API) in Telecommunications

(Telco 2.0 vol.3.)



Reference :
[1] Technologies of the future in telecommunications [PL]
[2] The development of telecommunications and mail in the information society [PL]




Telco 2.0 vol.1.

by GarciaPL on Friday 13 July 2012

On my blog I would also write something about I am currently working on in MSc thesis. Surely I am not able to put all relevant information in one post, so you must be patient and just hold your breath ;)


The main topic of upcoming series of posts will be the explanation of mysterious acronym : Telco 2.0.

At the beginning, I will write a bit about historical background. What happened in the past in global economy and world of technology. How changed conception of the operation of telecoms. A few words about Web 2.0 and marketing concept "Long Tail".

In another post I will put some information about economic and law environment - legislative action in telecommunications sector, market challenges and finally implemented business model corresponding to those circumstences.

After this I will write about right service platform Telco 2.0 and how changed interfaces used by telecoms to nowadays and who made this change.

Some information about technical side of this service platform based on some examples.

Finally, I will place some prediction about how telecommunication market will change in the future using report IBM Telco 2015.



Reference:
[1] Orange Labs Telco 2.0 University
[2] Telco 2.0 Orange Blog
[3] STL Partners Telco 2.0 Initiative
[4] IBM Telco 2015 Five telling years, four future scenarios

Nagios Can't locate utils.pm in @INC

by GarciaPL on Wednesday 11 July 2012

Nagios


I am currently working on a plugin for Nagios and i was faced with small problem :(


Can't locate utils.pm in @INC (@INC contains: /usr/local/nagios/libexec /opt/nagios/perl/lib /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at ./HSRPCheck.pl line 22.



The main reason due to this error is a wrong defined library in Perl script (or whatever other language) for check_snmp_int module. So, the solution of this problem is quite easy. You should just change in your script this line :


use lib "/usr/local/nagios/libexec" ;

to

use lib "/usr/lib/nagios/plugins" ;


and whala! Now it works ;)

PS. Also your Nagios can be installed in other directory, so just execute this one command in terminal :

locate /nagios/plugins

and if you get full path to directory which contains plugins just paste it to your script. (use lib 'Received Path')

Of course i will post my script related with this issue in the separate post ;-)



Nagios | The Industry Standard in IT Infrastructure Monitoring




Reference :

LaTeX fancy quotes

by GarciaPL on Monday 9 July 2012

This time I would like to share with code which will create below nice quotes in LaTeX of course ;)

LaTeX fancy quotes
LaTeX fancy quotes

So, kindly add this snippet to your LaTeX project :

\makeatletter
\newif\if@right
\def\shadequote{\@righttrue\shadequote@i}
\def\shadequote@i{\begin{snugshade}\begin{quote}\openquote}
\def\endshadequote{%
  \if@right\hfill\fi\closequote\end{quote}\end{snugshade}}
\@namedef{shadequote*}{\@rightfalse\shadequote@i}
\@namedef{endshadequote*}{\endshadequote}
\makeatother

and after all just use it :

\begin{shadequote}
\textit{Hello everybody!}
\par\emph{Tom Alexander - dyrektor generalny}
\end{shadequote}


Reference :
[1] Block quote with big quotation marks (TeX.StackExchange.com)

LaTeX nice listing code

by GarciaPL

I'm very fascinated about document markup language and preparation system for the TeX typesetting program called LaTeX. I wrote using it my BSc thesis, curriculum vitae, cover letters, laboratory reports and many many more :-). Furthermore I am currently working on my MSc thesis of course writing it in LaTeX.


It has a lot of advantages - it is absolutely free, cross-platform, open-source (LPPL licence), automation generation components such as table of contents, bibliography, index etc., very good support for mathematical formulas and from community and obviously it can create documents look very nice and professionally in many widely known formats e.g. PDF, PostScript, HTML, DVI etc.


So, I am gona to show some piece of code which helps you create wonderful listing of your code in LaTeX ;) which is widely used for instance in books :

LaTeX code listing
LaTeX code listing

Copy and paste this style to your LaTeX project :

\usepackage{listings}
\usepackage{courier}
\lstset{
  basicstyle=\footnotesize\ttfamily, % Standardschrift
  %numbers=left, % Ort der Zeilennummern
  numberstyle=\tiny, % Stil der Zeilennummern
  %stepnumber=2, % Abstand zwischen den Zeilennummern
  numbersep=5pt, % Abstand der Nummern zum Text
  tabsize=2, % Groesse von Tabs
  extendedchars=true, %
  breaklines=true, % Zeilen werden Umgebrochen
  keywordstyle=\color{red},
    frame=b,
  % keywordstyle=[1]\textbf, % Stil der Keywords
  % keywordstyle=[2]\textbf, %
  % keywordstyle=[3]\textbf, %
  % keywordstyle=[4]\textbf, \sqrt{\sqrt{}} %
  stringstyle=\color{white}\ttfamily, % Farbe der String
  showspaces=false, % Leerzeichen anzeigen ?
  showtabs=false, % Tabs anzeigen ?
  xleftmargin=17pt,
  framexleftmargin=17pt,
  framexrightmargin=5pt,
  framexbottommargin=4pt,
  %backgroundcolor=\color{lightgray},
  showstringspaces=false % Leerzeichen in Strings anzeigen ?
}

\lstloadlanguages{% Check Dokumentation for further languages ...
  %[Visual]Basic
  %Pascal
  %C
  %C++
  %XML
  %HTML
  Java
}

  %\DeclareCaptionFont{blue}{\color{blue}}
  %\captionsetup[lstlisting]{singlelinecheck=false, \
    labelfont={blue}, textfont={blue}}
\usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox[cmyk] \
  {0.43, 0.35, 0.35,0.01}{\parbox{\textwidth} \
   {\hspace{15pt}#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white, \
  textfont=white,singlelinecheck=false, margin=0pt, \
   font={bf,footnotesize}}


Then use this code in LaTeX to invoke source code listing :


\lstinputlisting[label=samplecode,caption=Description]{code/foo.java}


Reference :
[1] MHK's Blog
[2] LaTeX source code listing like in professional books (Stackoverflow)

So, let's begin the journey

by GarciaPL on Thursday 5 July 2012

This blog don't have any special idea to write for. I created it only for typing. Nothing else. Or perhaps to share with other people the solutions of problems which i was faced with.

My name is Lukasz. I live actually in Warsaw the capital of Poland (Over here!). I mostly work there in the IT sector. In spare time I just rest ;)

My hobbies ? Sailing with great people, listening good music (especially progressive) (My LastFm Profile), following the Open Source projects, new technology companies called Startups and IT innovations.

I will do my best to provide for you the most sophisticated informations and issues releated with widely known IT sector and more ;-)

I hope that you are going to visit my blog regularly for instance once a year ;) Of course it is obvious that every your feedback is welcome via comments under posts or by email (Contact page) or LinkedIn profile (Here you are!).


Best regards,
Lucas