How to check installed perl modules on a server

To check the installed perl modules on a cpanel server, you can use the command provided below.

[email protected] [~]# instmodsh
Available commands are:
   l            - List all installed modules
   m <module>   - Select a module
   q            - Quit the program
cmd? l
Installed modules are:
   CPAN
   Compress::Raw::Bzip2
   Compress::Raw::Zlib
   Crypt::PasswdMD5
   DBI
   Digest::SHA1
   Encode::Locale
   Expect
   ExtUtils::MakeMaker
   File::Listing
   Filesys::Df
   GnuPG
   HTTP::Cookies
   HTTP::Daemon
   HTTP::Date
   HTTP::Message
   HTTP::Negotiate
   IO::Compress
   IO::HTML
   IO::Tty
   LWP
   LWP::MediaTypes
   Module::Build
   Module::Metadata
   Net::HTTP
   Perl
   Perl::OSType
   Regexp::Assemble
   Test::Deep
   Test::NoWarnings
   Test::Tester
   URI
   WWW::RobotRules
   local::lib
   version
cmd?

RTNETLINK answers: No such device on a Virtuozzo VPS

Sometimes a VPS may stop working all of a sudden and while checking the issue, you notice that the ifconfig command is not showing any IP on the server.

[email protected] [~]# ifconfig
[email protected] [~]#

After restarting the network, its showing the following error.

[email protected] [~]# /etc/init.d/network restart

Shutting down loopback interface: [ OK ]

Bringing up loopback interface: RTNETLINK answers: Operation not supported

Failed to bring up lo.

[FAILED]

Bringing up interface venet0: RTNETLINK answers: Operation not supported

Failed to bring up venet0.

[FAILED]

RTNETLINK answers: No such device

RTNETLINK answers: No such device

RTNETLINK answers: No such device

[email protected] [~]#

The issue is because of the iproute package which got updated causing issues on the server. You need to downgrade the package. To downgrade the package, use the steps provided below.

Login to the main node and download the RPM as per the arch.

[[email protected] ~]# wget http://repo.smartservermanagement.com/misc/iproute-2.6.32-23.el6.x86_64.rpm
[[email protected] ~]# cp iproute-2.6.32-23.el6.x86_64.rpm /vz/private/455113/fs/root/

Where 455113 is the container ID

[[email protected] ~]# vzctl enter 455113
[email protected] [~]# rpm -qa |grep iproute
iproute-2.6.32-31.el6.x86_64
[email protected] [~]#
[email protected] [/]# rpm -e iproute-2.6.32-31.el6.x86_64 --nodeps
[email protected]r [/]# rpm -ivh iproute-2.6.32-23.el6.x86_64.rpm
warning: iproute-2.6.32-23.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Preparing... ########################################### [100%]
1:iproute ########################################### [100%]
[email protected] [/]# service network restart
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface venet0: Determining if ip address 127.0.0.1 is already in use for device venet0...

The server is up now. 🙂