Posts

shutdown / restart remote windows servers by single command

Image
There will be requirement to restart or shutdown all windows servers within domain. As system guy you can do it by few clicks. assumptions: you have administrator domain privilege to  shutdown all windows servers steps: in command prompt type shutdown -i and click OK button then it will prompt you following window. click on ADD button and type all windows server names you want to shut down or you can use Browse button to browse and select all servers you need. caution : Please make sure the Domain controller and the PC/server you logged in  are not selected. :) then specify the action you need to do with drop down menu.(restart/shutdown etc) then enter the warning time. in my image selected servers will  restart after 30 seconds. then under options and comments please specify the reason for the action.(For audit purposes) after completing those please click on OK button.

Boot a Cisco router off of a USB Drive (Recovery option)

Hi all, I would like to post this because this method has saved me when I upgrade my router with new ios. I used this as a recovery option. This will come in real handy if you are on-site with 128 MB to 1 GB USB Drive.     Format your USB drive with FAT file system. This needs to be FAT and not FAT32   :)     Copy the IOS image to the USB drive.     Power off the router, plug in the USB flash drive to the USB port on the router.     Power on the router and when it starts to boot up press the Break key to enter ROMMON mode.     In ROMMON mode enter the following command to boot to USB:                      boot usbflash0:     (e.g. boot usbflash0:c1800-io3-mz.123-26.bin) When you are upgrading your IOS image after upload it via tftp please check the checksum before you boot from that image. it will help you to upgrade...

T1 Link with VWIC-2MFT-T1

First insert the new VWIC card when router is power off. fix screws tightly Connect the T1 cable which is from the ISP side to the controller you want to configure power up the router log in to router using prefer method (telnet / console/etc) configure controller as follow MPLS(config)#controller T1 0/0 MPLS(config-controller)# framing esf MPLS(config-controller)# linecode b8zs  MPLS(config-controller)#channel-group 0 timeslots 1-24 speed 64 In here you have to calculate/inquire the speed before you configure the speed under channel-group. calculate is simple as follows   speed = bandwidth / number of channels if you configure controller then issue a sh run and see the virtual serial is appeared or not. if not you did not configure it correctly or your controller is not active ex: interface Serial0/0:0 then you can configure the serial interface according to ISP given settings after that you can issue sh ip interface brief command and see the interfa...

how to Bridge a cisco router

Go to global configuration mode disable ALL ip routing(you must disable all routing before bridge the router) (config)#no ip routing enable bridging protocol (config)#bridge number protocol ieee (number - use numeric character) to enable bridging on interface goto the interface mode. example: (config)#int fa0 (config-if)#bridge-group number you can use encapsulation and etc under the interface mode.

ADSL configuration on Cisco router

PPPoA   with   Cisco 1700+ WIC-1ADSL I have configured following with Cisco 1700 series router which includes  WIC-1ADSL Card. Please make sure the IOS is latest than 12.2 Configure ATM interface with the PVC number, DSL Mode , encapsulation and dialer pool interface ATM0   no ip address   no atm ilmi-keepalive   dsl operating-mode auto   pvc 0/38   encapsulation aal5mux ppp dialer   dialer pool-member 1 In here please check the dsl operating mode and encapsulation with your ISP. Most probably dsl operating mode   will works with auto. But you should   have to check the encapsulation   with ISP[aal5snap/ aal5mux]. BT(United Kingdom) use aal5mux. After that you have to configure the dialler interface with ADSL username and password accordingly PPPoA with Dynamic IP interface Dialer1   ip address negotiated   ip nat outside   encapsulation ppp   dialer pool 1 ...

Map Network Drive by .bat file

open notepad and type following on the notepad net use :<\\path to the file> Example: net use Z: \\fileserver\my_file if you have spaces within the path please use double quotations around the path. ne t use : " <\\path to the file> " Example: net use Z: "\\fileserver\my file" Then save the notepad as MapDrive.bat Send the .bat file to the user who want to map the drive. But be sure that he/she has permission to the network shared folder. if you want to delete network mapped drive using cmd(command prompt) use following command net use : /delete Example: net use Z: /delete if you want to do it when system bootup put it into "startup" in MS Windows. But remember to add one more line into the .bat file to delete the .bat file after mapped the drive. please add "del MapDrive.bat " into the end of batch file without quotes. Hope this will help you.

How to install CVS on centOS / RHEL 5

Here I am trying to guide you, to install CVS within a few minutes without any hassle. here we go....... Install cvs yum install cvs Logged in as root Add group cvs # groupadd cvs Add user cvs #useradd -g cvs cvs Create repository cvs -d /path_to_repository init Change ownership of cvs repository to cvs chown cvs:cvs /Path_to_cvsroot cat /etc/services and check is there followings exist cvspserver 2401/tcp #CVS Pserver cvspserver 2401/udp #CVS PServer If not add them into /etc/services Edit /etc/xinetd.d/cvs service cvspserver { disable = no port = 2401 socket_type = stream protocol = tcp wait = no user = root passenv = PATH server = /usr/bin/cvs env = HOME=/path_to_repository server_args = -f --allow-ro...