Friday, August 4, 2017

Convert Cisco 3502i AP to Autonomous

AP Model at the Camp - AIR-CAP3502I-N-K9
Wireless Access Points has been setup in Autonomous Mode. When an AP is taken out of box it is LWAP (Lightweight)

Autonomous Mode - When an Access Point (AP) does not require a Wireless Controller (WLC) to get it configure from. The AP works in single mode

Lightweight Mode - When an Access Point (AP) requires an Wireless Controller (WLC) to connect to get it configure from.


Following are the three type of IOS needs for each mode to be downloaded on the AP.
k9w7 – autonomous IOS
k9w8 – full lightweight IOS (this is what is bundled in the WLC .aes image, and is factory installed on “mesh” APs)
rcvk9w8 – lightweight recovery image – this is factory installed on lightweight APs, unless a “mesh” image is specified; it lacks radio firmware

Step 1:Clear AP's Lightweight config
#clear lwapp private-config
#delete flash:/ap3g1-rcvk9w8-mx/ap3g1-rcvk9w8-mx - Make sure you delete this file
#debug capwap console cli
#erase /all nvram:
#undebug all
#reload

Step 2: method using ROMMON setup after Step 1
ap: set IP_ADDR 192.168.100.100
ap: set NETMASK 255.255.255.0
ap: set DEFAULT_ROUTER 192.168.100.1
ap: tftp_init
ap: ether_init
ap: flash_init
ap: tar -xtract tftp://192.168.100.101/ap3g1-k9w7-tar.153-3.JC.tar flash:
ap: boot


Thursday, April 20, 2017

SSH into Cisco routers and switches with Ansible - step by step guide


Host File Example


Location: /etc/ansible/hosts
Copy and paste the following to your ansible host file

# A collection of Cisco devices                          

##IP Address
[cisco]
sw1 host=1.1.1.1

##Python Version
[all:vars]
ansible_python_interpreter=/usr/bin/python2.7
ansible_connection=local

[local]
localhost

##Credentials to login to Cisco devices
[cisco:vars]
device_type=cisco_ios
username=test
password=test

Playbook Example

Location: /etc/ansible/test.yml
Copy and paste the following to your ansible yml test file

---
- name: Show Run                
  hosts: cisco
  vars:
    creds:
      host: "{{ host }}"
      username: "{{ username }}"
      password: "{{ password }}"
      auth_pass: "{{ password }}"
      authorize: yes
  tasks:
    - ios_command:
        provider: "{{ creds }}"
        commands: show run  

      register: show_run

    - debug:
        msg: "{{ show_run.stdout[0] }}"

Once you have host file and playbook setup completed, run the following command
ansible-playbook /etc/ansible/test.yml -vvv -c ssh

Saturday, May 7, 2016

Load Cisco IOS on router from ROMMON

rommon 50 > IP_ADDRESS=192.168.2.20
rommon 51 >IP_SUBNET_MASK=255.255.255.0
rommon 52 >DEFAULT_GATEWAY=192.168.2.1
rommon 53 > TFTP_SERVER=192.168.2.7
rommon 54> TFTP_FILE=/private/tftpboot/"filename.bin"
rommon 55 >tftpdnld

Once Done issue reset command
rommon 56 > reset

Copy Cisco IOS from router to tftp Mac OSX


Install tftp server for Mac or enable tftp server using 
sudo launchctl load -w /System/Library/LaunchDaemons/tftp.plist 

Create file name  on server l
sudo touch /private/tftpboot/"filename.bin"

Change permission for the file 
sudo chmod a+w /private/tftpboot/"filename.bin"

On router type this command 
R1#copy flash: tftp:
Source filename [filename.bin]? 
Address or name of remote host []? 192.168.2.10      
Destination filename ["filename.bin"]? /private/tftpboot/"filename.bin"



Saturday, May 9, 2015

How to Reset Local Admin Password Mac

Login to Single-Sign in mode - Power of the machine, Press Command+s


  • Type fsck -fy (Check or repair file system)
  • Type mount -uw /
  • Type passwd administrator
  • Enter the new password twice
  • Type reboot


  • Thursday, May 7, 2015

    Windows Printing - Mac

    Recently at my workplace, we had an issue printing from mac through windows print queue. While doing research on this I discovered some secrets of Mac-Windows Printing and i instantly thought I should share this with others.
    So let's go through a step-by-step guide

    • Open Printers & Scanners in System Preferences



    • Click on + button


    • Right click on Menubar

    • Drag the Advanced option to the Menubar

    • Open Advanced settings
    • Finally, add the printer as shown in the picture.

    Sunday, March 9, 2014

    TPG Internet connection issue??

    Having problem TPG connection? Frequently dropping out connection? not able reestablish the connectivity? Using D-Link modem with TPG connection?
    I had same problem when i contacted TPG. The typical answer was to change the modem. However, my instinct and knowledge told me it is not the modem. Hence, i started digging the modem and i found the problem which was merely a problem.

    Step 1:Enter your gateway address, such as 192.168.1.1 in the browser you are using.

    Click on Log In button












    Step 2: Next Screen once logged in
    Do not use the Setup wizard button instead use the Internet Setup as the arrow indicates. You will soon find out why?









    Step 3: WAN Service Setup
    Click on Edit link.
    On WAN SERVICE CONFIGURATION page click Next button (Leave it as default).




    Step 4: PPP Username and Password -Enter TPG Credential here.
    The problem is here. Once your Internet connection is down and you call TPG. They will ask you to use Setup Wizard using that button i told you not use in Step 2. When you do that some how the PPP username and password changes to gateway username and password. Hence once you complete the set up; it will give Authentication Error- because of that wrong Username and Password. Thus, Make sure the Username and Password you enter is the TPG account credential and not gateway credential. Press apply at the last step.

    Step 5: Status
    Check the status tab and wait for couple of minutes for status to come up as CONNECTED.



    Friday, March 7, 2014

    Investment Ideas!


    HCL Tech-Sell
    HCL Daily and weekly chart comparison.
    HCL daily chart shows clear down trend. As per the moving averages indicating.(SMA 10 & EMA 30).
    HCL Daily
    HCL Weekly
    HCL is going down.















    Enter around 1240 as per the weekly chart indicates.














    Tata Motors- Enter around 385.
    Why one should enter? 
    There are couple of indicators here. One is the stock is in the traders action zone(Swing Traders) and other is the retracements at 38.2% (Not sure what Fibonacci Retracement is click here).





    Trent  -Trent has found support at 1000 and To follow the news click on link.














    Titan Company - Swing buy around 235


















    Monday, March 3, 2014

    VolaTile - Memory Forensic Tool (GUI)

    If you are reading this post than you already know something about "Volatility". Our team of four developed a GUI for Volatility named VolaTile. The amount of  time and scope we had to develop this product was limited as a university students. Hence, It is not a comprehensive product. However, Because i have completed my graduation, i would like to further develop this product and so i will appreciate your feed back and ideas on extension.

    Thursday, October 4, 2012

    Share folder between Mac and Windows machine

    To share folder from Mac to windows PC, follow the steps below.
    Mac side configuration.
    Step 1
    Open System Preferences
    System Preference





    Step 2
    Open Sharing folder
    Sharing




    Step 3
    Turn on file sharing, Check file sharing checkbox as shown below.
    Sharing Window











    Add folder to be shared using add button as shown in screen shot.Here, you can add users and also manage their permissions to the shared folder.

    Step 4
    Click on Add button under the Users list to add users, that should open new window as below.














    If the user is new User Click on New Person button. you can also add user from your contacts.
    Enter new user name and password, verify password.Finally, Press Create Account button.
    Once the account is created select user from the list.Hence, the user will be added to the Sharing Window, Users column  as shown in previous screen shot.

    Step 5
    If the sharing is successful you will find this text on top of your shared folder.



    OnWindows
    Goto Windows Explorer(Not Internet Explorer) and click on Network option. You should find the shared folder in Mac machine.

    Tuesday, October 2, 2012

    Useful softwares for mac users

    Looking for Secure File Transfer (SFTP) client on Mac OS?
    Do you want to download or upload files, from or to command line OS(FreeBSD)?
    If you have This questions then you are looking for Fugu
    FuguLogo

    To read more about Fugu click here.






    Covert PDF to Word on mac
    It is easy to save and covert word doc as pdf but in reverse is not easy. If you have no more than three pages to convert here is the free version to convert pdf to word. You can also buy paid version.











    Do you have just enough memory available on your mac and also using virtual machines?
    if you are running out of memory and don't have money for memory upgrade, then you should try Free memory.Track your memory usage on menubar and free up some memory. Available on mac App store for free.










    AVG Cleaner
    Don't have enough space on hard drive!!
    Use this software to find and clean duplicate files on your hard plus use disk cleaner to clean histories and stuff.

    Sunday, September 30, 2012

    Start investing in the share(stock) market


    I heard once Warren Buffet saying that he was bit late, investing in the stock market. Infect he was 11 years old when he first bought shares! Don't worry you can still start and learn how to invest in shares since the key for success is "PATIENCE". i want to share with you some of the good sites and ideas about investment. but remember one thing do not be greedy and rush for quick money. remember learning is key to success thus let's learn about investment.Do not jump into market unless you have basic knowledge about investing.
    First thing you need to know about trading is buy/sell and believe me it is all about buying and selling nothing else.Well, buy /and sell is not that easy otherwise every person investing in a share would be Warren Buffet.For me stock trading is the most complex process on t he earth.Since it involves many aspects of the real, emotional and sentimental world! Sorry if i am discouraging you here but that are facts of trading world.There are people and website who advertises that how to make a million dollar from market if it is that is why don't you go on do it and not trying to make penny from your book or advertising.oops we are drifting out of topic here.Coming back to the point of buy /and sell, what is important here is the time, time to buy or time to sell. i read once some where in one of those books about investing and there was a smart investor who use to let people know when he is buying in a market but no one knows when he is selling. you see smart investor. There are many ways to learn about when to buy or sell but a very good indicator is Candlestick Pattern. a series of videos available on YouTube about this pattern very helpful for beginners.
    I know your question is what sources to follow for guidance. I'll say do not believe in any one believe in yourself and your knowledge. Learn from various sources available on internet.Google is the best friend and it is free.There are some Do's and Don't while investing. Discipline is very important.Don't be emotional towards particular stock. Don't be sentimental as well. Don't invest more than 8 to 10% of your total savings. Don't be greedy, means take profit at around 20% if you are long-term investor.There are many types of investors such as Short Term, Long Term, Momentum, Swing Trader, Intra-day Trader. Get familiar with all those terms. Know your risk appetite.
    If you're new to investment, a good way to start with is Mutual Fund. since MF's are managed by professionals AMC's and gives idea about good companies to invest in. I am not saying you do what they are doing but instead you should keep an eye on them for their strategies and what sectors they are investing in.There is also comprehensive guide available on this website about MF.
    The way I found convenient to invest in share market is the way of Swing Trading.
    Other thing I would like to discuss is about investment jargons.Some of them are easy to understand and some of them are a bit confusing(Click here for Learn and Discover about Technical Analysis).
    • Limit order
    • Stop loss order
    • Market order
    • Trigger price
    Do your home work before investing. Don't know where to start? here is some points to remember and some useful links.
    1. Do not follow brokers call in fact do otherwise.
    2. Look for BlueChip Shares. Moneycontrol Mutual funds section is the best place to start with.
    3. Market cap is good way to start with. Watch this video
    4. Don't get trapped with intraday trading. Learn different ways of trading.
    5. Learn trading discipline before investing.
    6. Learn Technical analysis. There are plenty of sources available but this one is my favourite.Swing Trading
    7. TradeTiger (Sharekhan) is an excellent trading platform.
    8. Moving averages(SMA 10 and EMA 30) are the simplest and easiest way to find when to buy a particular stock.
    9. Stochastic is another excellent indicator to learn about stock trend.
    Please write your comment below about this article and please do share your knowledge.
    Investment Ideas

    How to use torrent- step by step guide


    Want to Download movies from torrent but don't know how to use torrent? Here is the comprehensive guide.
    1. First thing you need is a torrent client. click on link to download torrent client or google bit torrent client and open a first link you find.
    2. Install torrent client to your Windows PC or Mac .
    3. Now time to search for torrent file. Click here to goto torrent search page.
    4. now search for anything for example search for a movie. once a search is performed by a search engine you will find links, click any of the first few links.
    5. Again, there will be another links for where to download from click on any one of the free available sources and download .torrent file.
    6. Another hint is look for several Seeder & Leecher, secondly look for about size such that movie file should be around 700 MB.
    7. Read the comments from users for link confirmation.
    8. Finally, when you click on a link, you will find that the link should open in the torrent client you should have downloaded and install earlier.