Wednesday, February 27, 2008

[ Tips: ] Reboot a remote Cisco router after an misconfiguration

Human error!!! ..... it is common, even in network administration. But if this happen on the remote router or switch that do not have person/human that can physically reboot the device then it is become....disaster!!!!

So what is the option? We can use a simple and tricky way to avoid this situation.
In Cisco router we can use command reload in minutes before you do the command input. So when everything become unaccessible, the router will reboot to startup-configuration .

In my case I use 5 minutes (may be different to other) :

Cisco# reload in 5

so when my router cannot be accessed, it will reboot in 5 minutes . After that I can access it again.

Then do the configurations. You must do it 5 minutes otherwise the router will be reboot.

But if the configuration is successfully done, do not forget to cancel it with:

Cisco# reload cancel

That's all !!

Using Network Share in Windows XP

Do you have to connect to different folder in remote Windows XP share folder with different rights? For example, I sometimes need to copy a file to share folder "NOC" and after that I need to copy another file to share folder "ITDEPT".

Both of them located in remote windows computer that has different login and password for each (since this NOC and ITDEPT has different members). FYI the setting of rights of those folder in the remote server will be not provided here, but it it must be have read and write rights both on those folders with different logins. For this kind situation we can use below step:

For example in remote windows share you login as user "noc" with its password and will be directed to folder NOC automatically. Use this command from command prompt:

net use m: \\remotefileserver\NOC /user:Accounts\NOC

or you can use windows explorer to browse to that remote folder in the network neighborhood.
Then you copy a file to that folder. File copied succesfully.
After that you can disconnect the connection:

net use m: /delete

then reconnect to the same server with user "itdept" and its password:

net use m: \\remotefileserver\ITDEPT /user:Accounts\ITDEPT

Try to copy a file to "ITDEPT" folder. Now you can copy a file to it !!!