RHEL 7: No Output From Ip Commands

Hi,

Apologies if this is in the wrong forum, wasn't sure which was most appropriate...

I've built a Redhat 7 VM from an ISO and I've carried out various configuration on it and for some reason when I now run ip commands (for examnple 'ip addr show') I no longer get any output on screen.

Example...
[root@rhel-7-xx2 ~]# ip addr show
[root@rhel-7-xx2 ~]#

Version I'm using is:
Red Hat Enterprise Linux Server release 7.0 (Maipo)

I built another server and had the same problem and managed to fix it by yum updating all packages so it looks like a package needs to be updated but not sure which one.

If I pipe the output to a text file I can see the output okay in the file.

I have a ticket open with Redhat but it's taking a while to troubleshoot with them so thought I'd see if anyone else had seen this in the meantime...

Thanks
James


Similar Content



Server Hang - Linux RedHat 5.7

Hi,

Please view this log below. Can you tell me the reason why I can not ping to server (server hang, or network services down, ...)

Thank you.

Code:
[root@mediaserver ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
[root@mediaserver ~]# uname -a
Linux mediaserver 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@mediaserver ~]#

log file: https://onedrive.live.com/redir?resi...int=file%2ctxt

At May 20 10:26:11, I reset server.

Shell Scripts

I am taking a Linux class and am doing horribly, I just do not understand Linux. Can anyone please tell me how to create a shell script containing the `echo`, `whoami`, `groups`, and `pwd` commands?

I can do these as individual commands but cannot figure out how to do this in a shell script and get the output to produce output similar to the following:

You a
root
You are a member of the following groups:
root bin daemon sys adm disk wheel
Your current working directory is:
/tmp

My hair is getting thinner and grayer because of this.. Please help!

Fail To Install Vsftpd

I use Redhat 6.3 , when I install run "yum install vsftpd" , it pops the following error, does it mean the library is not support , I have to update the kernel ? thanks

Code:
Loaded plugins: product-id, security
file:///media/localrepos/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/localrepos/Server/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.2.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                    Arch                       Version                            Repository                    Size
=============================================================================================================================
Installing:
 vsftpd                     x86_64                     2.2.2-11.el6                       RHEL-6.3                     151 k

Transaction Summary
=============================================================================================================================
Install       1 Package(s)

Total download size: 151 k
Installed size: 331 k
Is this ok [y/N]: 

Error Downloading Packages:
  vsftpd-2.2.2-11.el6.x86_64: failu  ../Packages/vsftpd-2.2.2-11.el6.x86_64.rpm from RHEL-6.3: [Errno 256] No more mirrors to try.
Loaded plugins

What Ftp Server Is Running

in my RHEL 4 server , I want to know what ftp server is running but can't find it.

I tried "ps -ef |grep ftp" but no output , chkconfig --list |grep ftp also no output related to ftp , /etc/rc.d/init.d can't find ftp service , ftp localhost is not allow .

when use FileZilla to connect it , it is ok , the ftp should be running , I tried to use "ps -ef |grep ftp" , it pops the following output , would advise what ftp server is running in server ? thanks

Code:
edp 11027 11026  0 12:39 ?        00:00:00 tcsh -c /usr/libexec/openssh/sftp-server
edp 11037 11027  0 12:39 ?        00:00:00 /usr/libexec/openssh/sftp-server
user   11050  7747  0 12:48 pts/2    00:00:00 grep ftp

Problem Regarding Vsftp And /var/log/message !!

Friends ,

Recently I got two problem in my redhat machine :


version :

[root@pbltest ~]# cat /etc/issue
Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
Kernel \r on an \m

my vsftpd service is not started . I remove it and clean install and when I make restart then it stops but not started successfully .

When I check the log of "/var/log/messages" , then I found 'message' file is empty . I rename it and reboot the server but it doesnt generate any messages .

Please help me to resolve it .. ...

Changing The Output Of CPU And RAM Usage

I am using the following two commands to output CPU and RAM usage on a Linux machine.

Code:
/bin/grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'

/usr/bin/free | grep Mem | awk '{print $3/$2 * 100.0 "%"}'

My problem is that the output is like this

Quote:
5.33672%
13.9723%
Is there a way to output a single number? For example

Quote:
5
13
Thank you

Error After Running Yum Update - Black Screen

Can you guys advise on how to resolve this? We have a machine (RHEL 6 32bit 2.6.32-504.8.1.el6.i686) that boots to a black screen. I can SSH into it from my machine, but when you're physically at the machine it just displays a black screen.

I have tried booting from the previous 2 kernels, but still get the black screen.

I am assuming something got hosed with the video stuff? Its an ATI Radeon 4000series card. Should I install the ATI driver from their website and try? We have never had to do that with these machines though.


Also, when running a yum update, we receive this error. I'm not sure how to resolve this and if resolving this will fix the video issues.

Code:
# yum update
Loaded plugins: downloadonly, product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package libudev.i686 0:147-2.46.el6 will be updated
--> Processing Dependency: libudev = 147-2.46.el6 for package: libgudev1-147-2.46.el6.i686
---> Package libudev.i686 0:147-2.57.el6 will be an update
---> Package libudev-devel.i686 0:147-2.46.el6 will be updated
---> Package libudev-devel.i686 0:147-2.57.el6 will be an update
---> Package udev.i686 0:147-2.46.el6 will be updated
---> Package udev.i686 0:147-2.57.el6 will be an update
--> Finished Dependency Resolution
Error: Package: libgudev1-147-2.46.el6.i686 (@rhel-i386-workstation-6)
           Requires: libudev = 147-2.46.el6
           Removing: libudev-147-2.46.el6.i686 (@rhel-i386-workstation-6)
               libudev = 147-2.46.el6
           Updated By: libudev-147-2.57.el6.i686 (rhel-i386-workstation-6)
               libudev = 147-2.57.el6
           Available: libudev-147-2.29.el6.i686 (rhel-i386-workstation-6)
               libudev = 147-2.29.el6
           Available: libudev-147-2.35.el6.i686 (rhel-i386-workstation-6)
               libudev = 147-2.35.el6
           Available: libudev-147-2.40.el6.i686 (rhel-i386-workstation-6)
               libudev = 147-2.40.el6
           Available: libudev-147-2.41.el6.i686 (rhel-i386-workstation-6)
               libudev = 147-2.41.el6
           Available: libudev-147-2.42.el6.i686 (rhel-i386-workstation-6)
               libudev = 147-2.42.el6
           Available: libudev-147-2.46.el6_4.2.i686 (rhel-i386-workstation-6)
               libudev = 147-2.46.el6_4.2
           Available: libudev-147-2.51.el6.i686 (rhel-i386-workstation-6)
               libudev = 147-2.51.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


Heres after running yum update --skip-broken:

Code:
# yum update --skip-broken
Loaded plugins: downloadonly, product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package libudev.i686 0:147-2.46.el6 will be updated
--> Processing Dependency: libudev = 147-2.46.el6 for package: libgudev1-147-2.46.el6.i686
---> Package libudev.i686 0:147-2.57.el6 will be an update
---> Package libudev-devel.i686 0:147-2.46.el6 will be updated
---> Package libudev-devel.i686 0:147-2.57.el6 will be an update
---> Package udev.i686 0:147-2.46.el6 will be updated
---> Package udev.i686 0:147-2.57.el6 will be an update
--> Running transaction check
---> Package libudev.i686 0:147-2.46.el6 will be updated
---> Package libudev.i686 0:147-2.57.el6 will be an update
--> Processing Dependency: libudev = 147-2.57.el6 for package: libudev-devel-147-2.57.el6.i686
--> Running transaction check
---> Package udev.i686 0:147-2.46.el6 will be updated
--> Processing Dependency: udev = 147-2.46.el6 for package: libudev-devel-147-2.46.el6.i686
---> Package udev.i686 0:147-2.57.el6 will be an update

Packages skipped because of dependency problems:
    libudev-147-2.57.el6.i686 from rhel-i386-workstation-6
    libudev-devel-147-2.57.el6.i686 from rhel-i386-workstation-6
    udev-147-2.57.el6.i686 from rhel-i386-workstation-6

Thanks in advance.

Network Configuration For Redhat 7

I just installed Redhat 7 and try to config the network , add the IP address to network card , but I got the problem.

I modify the file /etc/sysconfig/network-scripts/ifcfg-enp0s3 , the configuration is as below , and then reboot .

DEVICE="enp0s3"
NETBOOT="yes"
HWADDR="08:00:27:15:38:B7"
TYPE="Ethernet"
BOOTPROTO="none"
NAME="enp0s3"
UUID="462f4834-4fe7-43a7-84e7-83b2722e94c1"
ONBOOT="yes"
IPADDR="192.168.1.1"
NETMASK="255.255.255.0"

After reboot , I use "ip addr show" still not shown the ip address , the ip address is still blank , would advise what is wrong ? thanks

TimeZone Problem

Dear Friends ,

My date value shows One hour ahead from the present time in BDT . I stay on Asia/Dhaka zone and +6.00 . Please look @ the below output :

------------------------------------------------------------
[root@pbldc-ntpsrv Asia]# cat /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="Asia/Dhaka"
UTC=true
ARC=false
-------------------------------------------------------------


But , My problem is , the below Date command output shows 'BDST' instead of 'BDT' .
------------------------------------
"[root@pbldc-ntpsrv Asia]# date
Sat May 9 16:59:37 BDST 2015
-------------------------------------
But it should be :

---------------------------------
[root@pbldc-ntpsrv Asia]# date
Sat May 9 15:59:37 BDT 2015
---------------------------------

---------------------
[root@pbldc-ntpsrv ~]# date +Z
BDST --Should be BDT
[root@pbldc-ntpsrv ~]# date +%z
+0700 --Should bt +0600
[root@pbldc-ntpsrv ~]#

------------------------------------


How I fix it in redhat lnux 5.5 server .

Error While Installing Openshift With Redhat Subscrtiption Via Openshift.sh

Hi
I am getting the below error while trying to install openshift by script openshift.sh

subscription-manager repos --enable=rhel-6-server-ose-2.1-infra-rpms
Error: rhel-6-server-ose-2.1-infra-rpms is not a valid repo ID