Thursday, January 20, 2011

Enable the console of the standby supervisor on Cisco routers

By default, the console of the standby supervisor on Cisco routers is disabled.

If for any reason you need to enable it, do the following:


router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#redundancy
router(config-red)#main-cpu
router(config-r-mc)#standby console enable

Tuesday, January 11, 2011

Batch replace a string in several files

At your command prompt type the following

perl -p -i -e 's/oldstring/newstring/g' `grep -il oldstring *`

'oldstring' will be replaced by 'newstring' in all folder files

You can add change the grep command to "grep -ilr oldstring *" in order to make searching recursive