Bharat Banate's Work Profile

View Bharat Banate's profile on LinkedIn
Showing posts with label Networking. Show all posts
Showing posts with label Networking. Show all posts

Tuesday, August 19, 2008

How to change IP address from the Windows command line

To do the same thing via the command line, use the netsh tool.

After some experimentation, I found that the following two commands were sufficient to give my machine a static IP address and have everything still work ok. The "interface ip set address" command changes the IP to 192.168.1.101 (this address is outside the range allocated by our DHCP server, therefore it will be different to what we had before) and I also had to provide the subnet mask (255.255.255.0), default gateway (192.168.1.5) and a gateway metric. The second command explicitly sets the DNS server to use for name resolution - normally this is done for us by the DHCP server.

netsh interface ip set address "Local Area Connection" static 192.168.1.101 255.255.255.0 192.168.1.5 1
netsh interface ip set dns "Local Area Connection" static 192.168.1.200 primary

To change the interface back to using DHCP and so have it allocated a different IP address

netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns "Local Area Connection" dhcp

Tuesday, August 5, 2008

Network Monitoring-Nagios

What Is This?

Nagios® is a system and network monitoring application. It watches hosts and services that you specify,
alerting you when things go bad and when they get better.
Nagios was originally designed to run under Linux, although it should work under most other unices as
well.

Some of the many features of Nagios include:


Monitoring of network services (SMTP, POP3, HTTP, NNTP, PING, etc.)
Monitoring of host resources (processor load, disk usage, etc.)
Simple plugin design that allows users to easily develop their own service checks
Parallelized service checks
Ability to define network host hierarchy using "parent" hosts, allowing detection of and distinction
between hosts that are down and those that are unreachable
Contact notifications when service or host problems occur and get resolved (via email, pager, or
user-defined method)
Ability to define event handlers to be run during service or host events for proactive problem
resolution
Automatic log file rotation
Support for implementing redundant monitoring hosts
Optional web interface for viewing current network status, notification and problem history, log
file, etc.

Real world Ruby

I am working on Ruby language since last few months. I really wondered, this is so beautyful language to work with, so what could be various usages of this great language? I Googled a bit for this and found many fascinating facts. I thought like sharing this information with you. Many people use Ruby in their daily jobs, others as hobby. But there are many other useful and important areas where Ruby is being used.

Simulations
NASA Langley Research Center uses Ruby to conduct simulations.

A research group in Motorola uses Ruby to script a simulator, to generate scenarios as well as to post process the data.

3D Modelling
Google SketchUp is a 3D modelling application which uses Ruby for its macro scripting API.

Business
Toranto Rehab uses a RubyWebDialogs based application to manage and track on-call and on-site support for IT help desk and IT operations teams.

Robotics
At MORPHA project, Ruby was used to implement reactive control part for the Siemens service robot.

Networking
Open Domain Server uses Ruby to allow people using dynamic DNS clients to update their IP configuration in real time so that it can be mapped to static domains.

Telephony
Ruby is being used within Lucent on a 3G wireless telephony product.

System Administration
Ruby was used to write the central data collection portion of Level 3 communications Unix capacity and planning system that gathers performance statistics from over 1700 Unix (Solaris and Linux) servers scattered around the globe.

Web Applications
Basecamp, a web-based project management application developed by 37signals is programmed entirely in Ruby.

43 things allows you to keep a list of goals and share it with the world. It was developed entirely in Ruby.

A List Apart, a magazine for people who make websites that has been around since 1997, has recently been revamped and uses a custom application built with Ruby on Rails.

Blue Sequence, a sophisticated mission-critical application which forms part of Toyota Motor Manufacturing's own "Sequence-in-time" production process, has recently been selected as finalist in this years British Computers (BCS) Information Management Awards.