Skip to main content


Showing posts from April, 2015

PERL can't locate module in @ INC

Hi, recently when I'm trying to install some linux daemon in CentOS 7 I have encountered a PERL issue, indicating that some module are missing e.g. Can't locate sys/ in @INC It means it can't find the pear-sys-syslog. So I have to install this daemon to continue my installation. In my case its but you may encounter different than this. I mean the module name is different, but the error code is same. You need to search that package and install it. In my case I have just used this module root@localhost#yum install -y perl-sys-syslog Now the installation has been working. 

show command juniper switch

Here are some useful command in day to day life while troubleshooting the juniper switch.  1. show mac add of specific vlan   root@jpudasaini#show ethernet-switching table vlan 608 2. compare configure before commit    root@jpudasaini #show | compare 3. check mac add    root@jpudasaini #show ethernet-switching table brief 4. show perticular Mac in Juniper    root@jpudasaini #show ethernet-switching table | match d4ca.6dea.d420 5. show port description/status    root@jpudasaini #show interfaces descriptions statistics 6. Show configuration in configuration mode    root@jpudasaini #show configuration | display set 7. show correctness of the command before commit    root@jpudasaini #commit check 8. Show Link Layer detection Protocol     root@jpudasaini # show protocols lldp  9. Show vlan in configuration mode root@jpudasaini#show vlans | display set

PEAR Succeeded but it is not a valid package archive

Recently I encounter following problem while installing PEAR in Ubuntu 14.04 server, after long search I found that, it is a bug already reported a long before. Solution at bottom of the page. root@dns:~# pear install DB WARNING: "pear/DB" is deprecated in favor of "pear/MDB2" WARNING: "pear/Console_Getopt" is deprecated in favor of "pear/Console_GetoptPlus" downloading DB-1.8.2.tgz ... Starting to download DB-1.8.2.tgz (131,693 bytes) .............................done: 131,693 bytes could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/DB-1.8.2.tgz" Download of "pear/DB" succeeded, but it is not a valid package archive Error: cannot download "pear/DB" downloading PEAR-1.9.5.tgz ... Starting to download PEAR-1.9.5.tgz (290,006 bytes) ...done: 290,006 bytes could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/PEAR-1