Monday, September 2, 2013

VPN Authentication Failed error Cisco VPN phone

Cisco VPN phones stops communicating to ASA after confguring the ASA in Acitive/Stndby Failover mode.
Cisco VPN phones started throughing the error saying "VPN Authentication Failed" error.

We troubleshoted this and found the stanby ASA disnt had the "anyconnect-win-3.1.00495-k9.pkg" on the falsh, due to that the "svc image disk0:/anyconnect-win-3.1.00495-k9.pkg " was automatically got removed from both the firewalls.

Solution:

Upload the anyconnect-win-3.1.00495-k9.pkg on the standby firewall also and added the  svc image disk0:/anyconnect-win-3.1.00495-k9.pkg command on the firewall.

Wednesday, August 28, 2013

groupadd error while installing quagga on Centos 5.4


While installing the quagga rpm on centos5.4 we got the below error.

[::root@test /var/tmp]# rpm -ivh quagga-0.98.6-11.el5.x86_64.rpm
Preparing...                ########################################### [100%]
error: %pre(quagga-0.98.6-11.el5.x86_64) scriptlet failed, signal 2
error:   install: %pre scriptlet failed (2), skipping quagga-0.98.6-11.el5
[::root@test /var/tmp]#

debug for the same is mentioned below.

[::root@test /var/tmp]# rpm -ivvh quagga-0.98.6-11.el5.x86_64.rpm
D: ============== quagga-0.98.6-11.el5.x86_64.rpm
D: Expected size:      1181289 = lead(96)+sigs(344)+pad(0)+data(1180849)
D:   Actual size:      1181289
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Pubkeys rdonly mode=0x0
D:  read h#     570 Header sanity check: OK
D: ========== DSA pubkey id a8a447dc e8562897 (h#570)
D: quagga-0.98.6-11.el5.x86_64.rpm: Header V3 DSA signature: OK, key ID e8562897
D:     added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ quagga-0.98.6-11.el5 x86_64/linux 0x2
D: opening  db index       /var/lib/rpm/Depends create mode=0x0
D: opening  db index       /var/lib/rpm/Basenames rdonly mode=0x0
D:  read h#      37 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: /bin/bash                                     YES (db files)
D:  Requires: /bin/sh                                       YES (db files)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: config(quagga) = 0:0.98.6-11.el5              YES (added provide)
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D:  read h#      23 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libc.so.6()(64bit)                            YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.2.5)(64bit)                 YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3)(64bit)                   YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3.4)(64bit)                 YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.4)(64bit)                   YES (db provides)
D:  read h#      48 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libcap.so.1()(64bit)                          YES (db provides)
D:  Requires: libcrypt.so.1()(64bit)                        YES (db provides)
D:  Requires: libcrypt.so.1(GLIBC_2.2.5)(64bit)             YES (db provides)
D:  Requires: libm.so.6()(64bit)                            YES (db provides)
D:  Requires: libm.so.6(GLIBC_2.2.5)(64bit)                 YES (db provides)
D:  Requires: libospf.so.0()(64bit)                         YES (added provide)
D:  Requires: libospfapiclient.so.0()(64bit)                YES (added provide)
D:  read h#     368 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libpam.so.0()(64bit)                          YES (db provides)
D:  Requires: libpam.so.0(LIBPAM_1.0)(64bit)                YES (db provides)
D:  Requires: libpam_misc.so.0()(64bit)                     YES (db provides)
D:  Requires: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit)      YES (db provides)
D:  read h#      45 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libreadline.so.5()(64bit)                     YES (db provides)
D:  read h#      36 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libtermcap.so.2()(64bit)                      YES (db provides)
D:  Requires: libzebra.so.0()(64bit)                        YES (added provide)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib provides)
D:  Requires: rtld(GNU_HASH)                                YES (db provides)
D: Conflicts: bird                                          NO 
D: Conflicts: gated                                         NO 
D: Conflicts: mrt                                           NO 
D: Conflicts: zebra                                         NO 
D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
D: closed   db index       /var/lib/rpm/Depends
D: ========== recording tsort relations
D:  Requires: libospf.so.0()(64bit)                         YES (added provide)
D:  Requires: libospfapiclient.so.0()(64bit)                YES (added provide)
D:  Requires: libzebra.so.0()(64bit)                        YES (added provide)
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth, breadth)
D:     0    0    0    0    1    0   +quagga-0.98.6-11.el5.x86_64
D: installing binary packages
D: closed   db index       /var/lib/rpm/Pubkeys
D: closed   db index       /var/lib/rpm/Conflictname
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages create mode=0x42
D: mounted filesystems:
D:     i        dev    bsize       bavail       iavail mount point
D:     0 0x00000802     4096     53388830     60616626 /
D:     1 0x00000003     4096            0           -1 /proc
D:     2 0x00000000     4096            0           -1 /sys
D:     3 0x0000000c     4096            0           -1 /dev/pts
D:     4 0x00000801     1024       455275       128484 /boot
D:     5 0x00000013     4096       496282       496281 /dev/shm
D:     6 0x00000014     4096            0           -1 /proc/sys/fs/binfmt_misc
D:     7 0x00000015     4096            0           -1 /var/lib/nfs/rpc_pipefs
D: sanity checking 1 elements
D: opening  db index       /var/lib/rpm/Name create mode=0x42
D: running pre-transaction scripts
D: computing 73 file fingerprints
Preparing...                D: computing file dispositions
D: opening  db index       /var/lib/rpm/Basenames create mode=0x42
########################################### [100%]
D: ========== +++ quagga-0.98.6-11.el5 x86_64-linux 0x2
D: Expected size:      1181289 = lead(96)+sigs(344)+pad(0)+data(1180849)
D:   Actual size:      1181289
D: quagga-0.98.6-11.el5: Header V3 DSA signature: OK, key ID e8562897
D:   install: quagga-0.98.6-11.el5 has 73 files, test = 0
D: opening  db index       /var/lib/rpm/Triggername create mode=0x42
D:   install: %pre(quagga-0.98.6-11.el5.x86_64) asynchronous scriptlet start
D:   install: %pre(quagga-0.98.6-11.el5.x86_64)    execv(/bin/sh) pid 4199
+ groupadd -g 85 -r quaggavt
D:   install: waitpid(4199) rc 4199 status 2 secs 11.664
error: %pre(quagga-0.98.6-11.el5.x86_64) scriptlet failed, signal 2
error:   install: %pre scriptlet failed (2), skipping quagga-0.98.6-11.el5
D: running post-transaction scripts
D: closed   db index       /var/lib/rpm/Triggername
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: May free Score board((nil))
[::root@apan1.pop4 /var/tmp]# rpm -ivvvh quagga-0.98.6-11.el5.x86_64.rpm
D: ============== quagga-0.98.6-11.el5.x86_64.rpm
D: Expected size:      1181289 = lead(96)+sigs(344)+pad(0)+data(1180849)
D:   Actual size:      1181289
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Pubkeys rdonly mode=0x0
D:  read h#     570 Header sanity check: OK
D: ========== DSA pubkey id a8a447dc e8562897 (h#570)
D: quagga-0.98.6-11.el5.x86_64.rpm: Header V3 DSA signature: OK, key ID e8562897
D:     added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ quagga-0.98.6-11.el5 x86_64/linux 0x2
D: opening  db index       /var/lib/rpm/Depends create mode=0x0
D: opening  db index       /var/lib/rpm/Basenames rdonly mode=0x0
D:  read h#      37 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: /bin/bash                                     YES (db files)
D:  Requires: /bin/sh                                       YES (db files)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: config(quagga) = 0:0.98.6-11.el5              YES (added provide)
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D:  read h#      23 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libc.so.6()(64bit)                            YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.2.5)(64bit)                 YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3)(64bit)                   YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3.4)(64bit)                 YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.4)(64bit)                   YES (db provides)
D:  read h#      48 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libcap.so.1()(64bit)                          YES (db provides)
D:  Requires: libcrypt.so.1()(64bit)                        YES (db provides)
D:  Requires: libcrypt.so.1(GLIBC_2.2.5)(64bit)             YES (db provides)
D:  Requires: libm.so.6()(64bit)                            YES (db provides)
D:  Requires: libm.so.6(GLIBC_2.2.5)(64bit)                 YES (db provides)
D:  Requires: libospf.so.0()(64bit)                         YES (added provide)
D:  Requires: libospfapiclient.so.0()(64bit)                YES (added provide)
D:  read h#     368 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libpam.so.0()(64bit)                          YES (db provides)
D:  Requires: libpam.so.0(LIBPAM_1.0)(64bit)                YES (db provides)
D:  Requires: libpam_misc.so.0()(64bit)                     YES (db provides)
D:  Requires: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit)      YES (db provides)
D:  read h#      45 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libreadline.so.5()(64bit)                     YES (db provides)
D:  read h#      36 Header V3 DSA signature: OK, key ID e8562897
D:  Requires: libtermcap.so.2()(64bit)                      YES (db provides)
D:  Requires: libzebra.so.0()(64bit)                        YES (added provide)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib provides)
D:  Requires: rtld(GNU_HASH)                                YES (db provides)
D: Conflicts: bird                                          NO 
D: Conflicts: gated                                         NO 
D: Conflicts: mrt                                           NO 
D: Conflicts: zebra                                         NO 
D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
D: closed   db index       /var/lib/rpm/Depends
D: ========== recording tsort relations
D:  Requires: libospf.so.0()(64bit)                         YES (added provide)
D:  Requires: libospfapiclient.so.0()(64bit)                YES (added provide)
D:  Requires: libzebra.so.0()(64bit)                        YES (added provide)
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth, breadth)
D:     0    0    0    0    1    0   +quagga-0.98.6-11.el5.x86_64
D: installing binary packages
D: closed   db index       /var/lib/rpm/Pubkeys
D: closed   db index       /var/lib/rpm/Conflictname
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages create mode=0x42
D: mounted filesystems:
D:     i        dev    bsize       bavail       iavail mount point
D:     0 0x00000802     4096     53388827     60616625 /
D:     1 0x00000003     4096            0           -1 /proc
D:     2 0x00000000     4096            0           -1 /sys
D:     3 0x0000000c     4096            0           -1 /dev/pts
D:     4 0x00000801     1024       455275       128484 /boot
D:     5 0x00000013     4096       496282       496281 /dev/shm
D:     6 0x00000014     4096            0           -1 /proc/sys/fs/binfmt_misc
D:     7 0x00000015     4096            0           -1 /var/lib/nfs/rpc_pipefs
D: sanity checking 1 elements
D: opening  db index       /var/lib/rpm/Name create mode=0x42
D: running pre-transaction scripts
D: computing 73 file fingerprints
Preparing...                D: computing file dispositions
D: opening  db index       /var/lib/rpm/Basenames create mode=0x42
########################################### [100%]
D: ========== +++ quagga-0.98.6-11.el5 x86_64-linux 0x2
D: Expected size:      1181289 = lead(96)+sigs(344)+pad(0)+data(1180849)
D:   Actual size:      1181289
D: quagga-0.98.6-11.el5: Header V3 DSA signature: OK, key ID e8562897
D:   install: quagga-0.98.6-11.el5 has 73 files, test = 0
D: opening  db index       /var/lib/rpm/Triggername create mode=0x42
D:   install: %pre(quagga-0.98.6-11.el5.x86_64) asynchronous scriptlet start
D:   install: %pre(quagga-0.98.6-11.el5.x86_64)    execv(/bin/sh) pid 4202
+ groupadd -g 85 -r quaggavt
D:   install: waitpid(4202) rc 4202 status 2 secs 44.222
error: %pre(quagga-0.98.6-11.el5.x86_64) scriptlet failed, signal 2
error:   install: %pre scriptlet failed (2), skipping quagga-0.98.6-11.el5
D: running post-transaction scripts
D: closed   db index       /var/lib/rpm/Triggername
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: May free Score board((nil))
[::root@test /var/tmp]#











If you look at the above logs the rpm was stuck while doing the + groupadd -g 85 -r quaggavt command
When i try running the command separetly it was stuck in the same position.
hence i checked the /etc/nsswitch.conf file for any authentication issue.
and then i found that the /etc/nsswitch.conf has a ldap configuration and the ldap server was not reachable due to that the groupadd command was not working.
Removed the ldap configuration form the /etc/nsswitch.conf and i was able to install the quagga rpm successfully.

Thursday, February 14, 2013

Steps to increase the Virtual box, VDI file size in Linux

To increase the VDI file size in Linux

1) click on Settings--> Storage and click on add harddisk

add a new harddisk with the required size (choose dynamic expanding storage)

2) Create the clone:
Go to the terminal and run the below command with original HDD and newly added HDD path.

sudo VBoxManage clonehd old.vdi new-clone.vdi --existing

3) This will take few minutes depends on your old HDD size.
Once done go to tVirtual Box Settings--> Storage and remove the old.vdi and new.vdi both and only add new.vdi back again.

4) once done login to the server using the new cloned server and go to disk management and click extend volume to extend it.
It will increase the space.
Thanks