ip-stories.com

  •  

    July 2010
    M T W T F S S
    « Jun   Aug »
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
  • Web Stat Counter

    • Search This Blog :

    • Add url
    • Add Me on FB

      Rahman Isnaini's Facebook profile
    • Hurricane Electric IPv6 Cert

      IPv6 Certification Badge for risnaini
    • comments

    • Visitors Referred From :

    • Geo Stats

    • Categories

    Archive for July 29th, 2010

    [MRTG] How To Monitor Number of BGP Prefixes from BGP Peer on Cisco Router(s) using MRTG

    Posted by admin on 29th July 2010

    This is my CFG File.

    The complete OID is 1.3.6.1.4.1.9.9.187.1.2.4.1.1.192.168.150.164.1.1
    The OID of Accepted BGP Routes : 1.3.6.1.4.1.9.9.187.1.2.4.1.1
    The OID of Max BGP Routes : 1.3.6.1.4.1.9.9.187.1.2.4.1.3
    [well this not really important as this just to make the mrtg capturing to work, since mrtg MRTG needs to graph two variables/OIDs].
    The IP Address of the BGP Peer being monitored : 192.168.150.164
    The version of IP & Routing Type : 1.1 > IPv4 & Unicast.

    mrtg# vi /export/cfg/bgp-prefix.cfg

    WorkDir: /var/data-mrtg/bgp
    LogFormat: rrdtool
    PathAdd: /usr/local/bin/
    LibAdd: /usr/local/lib/perl5/5.8.8
    Interval: 5
    Refresh: 300
    Forks: 4

    Options[_]: gauge, nopercent, integer
    Unscaled[_]: ymwd
    YLegend[_]: Number of Prefix
    ShortLegend[_]:
    LegendI[_]:   Received Prefixes
    LegendO[_]:   Withdrawn Prefixes
    Legend1[_]: Number of Accepted Prefixes
    Legend2[_]: Withdrawn

    ### as999
    Target[bgp-as999]: 1.3.6.1.4.1.9.9.187.1.2.4.1.1.192.168.150.164.1.1&1.3.6.1.4.1.9.9.187.1.2.4.1.3.192.168.150.164.1.1:public@192.168.150.129
    MaxBytes[bgp-as999]: 1250
    Title[bgp-as999]: BGP Prefixes AS999
    PageTop[bgp-as999]:

    BGP Prefixes AS999

    System: Cisco Gateway
    Equipment: Cisco 3750
    Maintainer: NOC Jakarta

    =================== Options Information ======================
    More information on : MRTG Website

    gauge

    Treat the values gathered from target as ‘current status’ measurements
    and not as ever incrementing counters.
    This would be useful to monitor things like disk space, BGP Prefixes,
    processor load, temperature, and the like …

    integer

    Print summary lines below graph as integers without commas, if you missed this on your option… MRTG would print / plot the value with additional x.000 for example 50 prefixes > 50.000 prefixes.
    nopercent

    Don’t print usage percentages.

    ==================== Router IOS Version =======================

    3750-GW#sh ver
    Cisco IOS Software, 3700 Software (C3725-ADVIPSERVICESK9-M), Version 12.4(3), RELEASE SOFTWARE (fc2)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2005 by Cisco Systems, Inc.
    Compiled Fri 22-Jul-05 02:27 by hqluong

    ROM: System Bootstrap, Version 12.2(8r)T2, RELEASE SOFTWARE (fc1)

    3750-GW uptime is 20 weeks, 19 hours, 34 minutes
    System returned to ROM by power-on
    System restarted at 11:04:16 UTC Wed Mar 10 2010
    System image file is “flash:c3725-advipservicesk9-mz.124-3.bin”

    It’s 12.4-3 Version….

    a. rahman isnaini r.sutan

    Posted in Cisco, MRTG, Script | No Comments »

    [Mobile] Sending SMS from PC with Sony Ericsson W200 - Error

    Posted by admin on 29th July 2010

    Sending / Receibing SMS on PC may be is a good choice if you have a frequent sms activity.
    Working with Sony Ericsson W200 and refer to Website & Best Simple Guide : ” Developers Home
    Here What I have done :

    1. Install Sony Ericsson W200 Driver
    2. Inspecting which COM Port it’s connected.
    3. Use that port to communicate.
    4. Use Hyper Terminal to check : [Communication between PC & SE W200 is fine].

    AT
    OK
    AT+CMGF=1
    OK
    AT+CMGW=”+628176388704″
    > A simple demo of SMS text messaging.
    +CMGW: 1

    OK
    AT+CMSS=1
    +CMSS: 20

    OK

    Here is a description of what is done in the above example:

    *      Line 1: “AT” is sent to the GSM / GPRS modem to test the connection. The GSM / GPRS modem sends back the result code “OK” (line 2), which means the connection between the HyperTerminal program and the GSM / GPRS modem works fine.
    *      Line 3: The AT command +CMGF is used to instruct the GSM / GPRS modem to operate in SMS text mode. The result code “OK” is returned (line 4), which indicates the command line “AT+CMGF=1″ has been executed successfully. If the result code “ERROR” is returned, it is likely that the GSM / GPRS modem does not support the SMS text mode. To confirm, type “AT+CMGF=?” in the HyperTerminal program. If the response is “+CMGF: (0,1)” (0=PDU mode and 1=text mode), then SMS text mode is supported. If the response is “+CMGF: (0)”, then SMS text mode is not supported.

    My SE W200 Respond : [Not Support SMS Text Mode]
    =========================================
    OK

    +CPIN: READY

    OK

    +CMS ERROR: 303

    OK

    +CMS ERROR: 303

    +CMS ERROR: 303

    +CMGF: (0)

    OK
    ===================

    *      Line 5 and 6: The AT command +CMGW is used to write an SMS text message to the message storage of the GSM / GPRS modem. “+85291234567″ is the recipient mobile phone number. After typing the recipient mobile phone number, you should press the Enter button of the keyboard. The GSM / GPRS modem will then return a prompt “> ” and you can start typing the SMS text message “A simple demo of SMS text messaging.”. When finished, press Ctrl+z of the keyboard.
    *      Line 7: “+CMGW: 1″ tells us that the index assigned to the SMS text message is 1. It indicates the location of the SMS text message in the message storage.
    *      Line 9: The result code “OK” indicates the execution of the AT command +CMGW is successful.
    *      Line 10: The AT command +CMSS is used to send the SMS text message from the message storage of the GSM / GPRS modem. “1″ is the index of the SMS text message obtained from line 7.
    *      Line 11: “+CMSS: 20″ tells us that the reference number assigned to the SMS text message is 20.
    *      Line 13: The result code “OK” indicates the execution of the AT command +CMSS is successful.

    a. rahman isnaini r.sutan

    Posted in Mobile, Script | No Comments »