Thursday, November 27, 2014

Cisco ASR IOS-XR - How to remove comments

IOS-XR accepts all ! comands and they stay in the configuration !

If execute the command
! Hi all
l2vpn


The comments stays there and it is associated with the next command you execute.
Now, how can we remove it!

Just do it with the "clear comment" command.
Example:

router static
 vrf MYVRF
  address-family ipv4 unicast
   ! This is server A route
   10.1.1.1/32 2.2.2.2
commit


router static
 vrf MYVRF
  address-family ipv4 unicast
   clear comment
   10.1.1.1/32 2.2.2.2
commit

Thursday, August 14, 2014

Apache forbidden message for files with underscore

In my automation server for my cisco equipament, after reboot, things stopped working with apache. After some time troubleshooting I found out that images with underscore in the file name would be forbidden while images wihout would be shown by apache. Really strange!

After trying everything:
- permissions
- directory http files
- etc

The problem was with SELINUX.
Executing echo 0 > /selinux/enforce

To be permanent, do the folling:
On /etc/sysconfig/selinux
change from:
SELINUX=enforcing

to :
SELINUX=disabled

Then, reboot again!
Good luck