From smal at ccmb.res.in Tue Sep 1 05:01:33 2009 From: smal at ccmb.res.in (Mahalingam Subramaniam) Date: Tue, 1 Sep 2009 10:31:33 +0530 (IST) Subject: start up issue with mysql daemon Message-ID: <1257147902.561821251781293178.JavaMail.root@127.0.0.1> Dear All While trying to install mysql ( binary distro mysql-5.1.37.tar.gz ) on RHEL 5.2 platform, I am unable to start off the mysql daemon which throws an error message as follows: # /etc/rc.d/init.d/mysql start Starting MySQL.Manager of pid-file quit without updating fi [FAILED] # /etc/rc.d/rc3.d/S64mysql start Starting MySQL.Manager of pid-file quit without updating fi[FAILED] ]# mysqladmin version mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! Help to debug above mentioned errors are highly regarded and appreciated. with regards s.mahalingam -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmathias at gmail.com Tue Sep 1 13:54:38 2009 From: fmathias at gmail.com (Fabio Rampazzo Mathias) Date: Tue, 1 Sep 2009 10:54:38 -0300 Subject: start up issue with mysql daemon In-Reply-To: <1257147902.561821251781293178.JavaMail.root@127.0.0.1> References: <1257147902.561821251781293178.JavaMail.root@127.0.0.1> Message-ID: check /var/log/mysqld.log.... check if there's a mysqld already running (ps afx | grep -i mysql)... mysql.sock could be at other place, try mysql -h 127.0.0.1 it will use TCP/IP protocol instead.... cheers On Tue, Sep 1, 2009 at 2:01 AM, Mahalingam Subramaniam wrote: > Dear All > > While trying to install mysql ( binary distro mysql-5.1.37.tar.gz ) on RHEL > 5.2 platform, I am unable to start off the mysql daemon which throws an > error message as follows: > > # /etc/rc.d/init.d/mysql start > Starting MySQL.Manager of pid-file quit without updating fi [FAILED] > > # /etc/rc.d/rc3.d/S64mysql start > Starting MySQL.Manager of pid-file quit without updating fi[FAILED] > > ]# mysqladmin version > mysqladmin: connect to server at 'localhost' failed > error: 'Can't connect to local MySQL server through socket > '/tmp/mysql.sock' (2)' > Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! > > Help to debug above mentioned errors are highly regarded and appreciated. > > with regards > s.mahalingam > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From smal at ccmb.res.in Wed Sep 2 06:31:55 2009 From: smal at ccmb.res.in (Mahalingam Subramaniam) Date: Wed, 2 Sep 2009 12:01:55 +0530 (IST) Subject: [rhn-users] start up issue with mysql daemon In-Reply-To: <6019.48740.qm@web57806.mail.re3.yahoo.com> Message-ID: <534889846.557951251873115755.JavaMail.root@127.0.0.1> thanks for your reply. I had to reinstall the binary distro of mysql-5.1.37 once again and things are fine now. with thanks s.mahalingam -- Original Message -- From: raj10 sangvikar To: redhat-sysadmin-list at redhat.com, "Discussions about Red Hat Network \(rhn.redhat.com\)" Cc: rhn-users at redhat.com Date: Tue, 1 Sep 2009 15:32:16 -0700 (PDT) Subject: Re: [rhn-users] start up issue with mysql daemon It appears that mysqld is not running. have you installed the server and clients both ? two possibilities: 1) either the selinux policy OR permissions issue. -Raj --- On Tue, 9/1/09, Mahalingam Subramaniam wrote: From: Mahalingam Subramaniam Subject: [rhn-users] start up issue with mysql daemon To: redhat-sysadmin-list at redhat.com Cc: rhn-users at redhat.com Date: Tuesday, September 1, 2009, 1:01 AM Dear All While trying to install mysql ( binary distro mysql-5.1.37.tar.gz ) on RHEL 5.2 platform, I am unable to start off the mysql daemon which throws an error message as follows: # /etc/rc.d/init.d/mysql start Starting MySQL.Manager of pid-file quit without updating fi [FAILED] # /etc/rc.d/rc3.d/S64mysql start Starting MySQL.Manager of pid-file quit without updating fi[FAILED] ]# mysqladmin version mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! Help to debug above mentioned errors are highly regarded and appreciated. with regards s.mahalingam -----Inline Attachment Follows----- _______________________________________________ rhn-users mailing list rhn-users at redhat.com https://www.redhat.com/mailman/listinfo/rhn-users _______________________________________________ rhn-users mailing list rhn-users at redhat.com https://www.redhat.com/mailman/listinfo/rhn-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Wed Sep 2 13:19:42 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Wed, 2 Sep 2009 18:49:42 +0530 Subject: System monitoring Message-ID: Hi We have server which hanging quit often . There are now Hardware issues. I suspect some application making server to hang hence I was looking for some script which can run in back ground to collect memory usage of running application, Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbourne at hardrock.org Wed Sep 2 13:36:33 2009 From: jbourne at hardrock.org (Jim Bourne) Date: Wed, 2 Sep 2009 07:36:33 -0600 (MDT) Subject: System monitoring In-Reply-To: References: Message-ID: On Wed, 2 Sep 2009, nitin.gizare at wipro.com wrote: > Hi > > We have server which hanging quit often . There are now Hardware issues. > > I suspect some application making server to hang hence I was looking > for some script which can run in back ground to collect memory usage of > running application, If it's not already installed, install the sysstat RPM. This will enable sa2 via cron and collect information on your system activity. See the sar manual page for reporting information. Regards Jim > > > > Rgds > > Nitin > > -- James Bourne | Email: jbourne at hardrock.org UNIX Systems Administration | WWW: http://www.hardrock.org Custom UNIX Programming | Linux: The choice of a GNU generation ---------------------------------------------------------------------- "All you need's an occasional kick in the philosophy." Frank Herbert Need an inexpensive domain alternative? http://fastforwarddomains.com From dbacon at mail.owls.lib.wi.us Wed Sep 2 17:20:30 2009 From: dbacon at mail.owls.lib.wi.us (Dave Bacon) Date: Wed, 02 Sep 2009 12:20:30 -0500 Subject: Can't Run Executable Files on DVD - fstab issue? Message-ID: <4A9EA95E.4050404@mail.owls.lib.wi.us> Hello, When attempting to run executables from DVDs on our new Red Hat Enterprise 5 server, we receive the following error. bash: ./suu: /bin/sh: bad interpreter: Permission denied I was told that the problem is possibly related to not having the exec option enabled in /etc/fstab for the DVD drive. Could I please get assistance on what I should change or add to fstab to allow running executable files on the DVD drive? Please see below for a copy of our "df -h" and fstab information. Thank you - Dave Bacon (df -h) Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 3.9G 592M 3.1G 16% / /dev/mapper/VolGroup00-LogVol05 3.9G 137M 3.6G 4% /home /dev/mapper/VolGroup00-LogVol04 3.9G 350M 3.4G 10% /var /dev/mapper/VolGroup00-LogVol03 3.9G 137M 3.6G 4% /tmp /dev/mapper/VolGroup00-LogVol02 7.8G 3.7G 3.7G 50% /usr /dev/sda3 190M 28M 153M 16% /boot tmpfs 5.8G 0 5.8G 0% /dev/shm /dev/scd0 3.7G 3.7G 0 100% /media/610OMG_81 (/etc/fstab) /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 /dev/VolGroup00/LogVol05 /home ext3 defaults 1 2 /dev/VolGroup00/LogVol04 /var ext3 defaults 1 2 /dev/VolGroup00/LogVol03 /tmp ext3 defaults 1 2 /dev/VolGroup00/LogVol02 /usr ext3 defaults 1 2 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 -- _________________________________________ Dave G. Bacon Computer Network Manager Outagamie Waupaca Library System 225 N. Oneida St., Appleton, WI 54911 920/832-6193(voice), 920/832-6422(FAX) dbacon at mail.owls.lib.wi.us http://www.owlsweb.info _________________________________________ --------------------------------------- Checked by MailScan Anti-Virus Software From gshobowale at nextworksltd.com Thu Sep 3 16:48:12 2009 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Thu, 3 Sep 2009 17:48:12 +0100 Subject: DHCP on Aliase eth0 Message-ID: <001c01ca2cb6$6db44080$491cc180$@com> Hello All, I need to know if it is possible to run dhcp server on an aliase interface eth0:0 ? I have configured a dhcp server for a network that should be on this interface but I can't get it to work. Anyone worked on something like this? Best regards Oluwagbenga -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruprech at jilau1.colorado.edu Thu Sep 3 17:20:56 2009 From: ruprech at jilau1.colorado.edu (Peter Ruprecht) Date: Thu, 03 Sep 2009 11:20:56 -0600 Subject: DHCP on Aliase eth0 In-Reply-To: <001c01ca2cb6$6db44080$491cc180$@com> References: <001c01ca2cb6$6db44080$491cc180$@com> Message-ID: <4A9FFAF8.8030502@jilau1.colorado.edu> Oluwagbenga Shobowale wrote: > Hello All, > I need to know if it is possible to run dhcp server on an aliase > interface eth0:0 ? > > I have configured a dhcp server for a network that should be on this > interface but I can't get it to work. > Anyone worked on something like this? > Maybe this will help. Here's part of my dhcpd.conf file showing a pool that gives out addresses on an overlaid private network: # private subnet / trusted devices subnet 192.168.107.0 netmask 255.255.255.0 { pool { range 192.168.107.20 192.168.107.252; option routers 192.168.107.1; # NAT interface allow members of "trustednat"; default-lease-time 900; max-lease-time 900; authoritative; } } Then I configure a virtual network interface for that network, in /etc/sysconfig/network-scripts/ifcfg-eth0:192 : DEVICE=eth0:192 BOOTPROTO=none BROADCAST=192.168.107.255 IPADDR=192.168.107.254 NETMASK=255.255.255.0 NETWORK=192.168.107.0 TYPE=Ethernet USERCTL=no HWADDR=00:15:17:85:7b:ab ONBOOT=yes If the alias interface is up when dhcpd starts, everything just seems to work. Can you give more details on how your setup is not working? Peter Ruprecht From gshobowale at nextworksltd.com Thu Sep 3 18:27:11 2009 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Thu, 3 Sep 2009 19:27:11 +0100 Subject: DHCP on Aliase eth0 In-Reply-To: <4A9FFAF8.8030502@jilau1.colorado.edu> References: <001c01ca2cb6$6db44080$491cc180$@com> <4A9FFAF8.8030502@jilau1.colorado.edu> Message-ID: <003801ca2cc4$4f4710b0$edd53210$@com> Thanks ... In my own case I had one network on the 192.168.1.0/24 subnet however a friend needed to use our infrastructure hence I needed to set up another ip range 192.168.4.0/24 since I wanted them to share my internet. Hence I created an aliase on the eth0 which my network is on but when I configure dhcp ... Below is my config DHCPDARGS="eth0:0"; # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. subnet 192.168.1.0 netmask 255.255.255.0 { } # This is a very basic subnet declaration. subnet 192.168.4.0 netmask 255.255.255.0 { pool { range 192.168.4.20 192.168.4.252; option routers 192.168.4.2; # NAT interface default-lease-time 900; max-lease-time 7200; } } Virtual Interface DEVICE=eth0:0 HWADDR=00:1f:29:e0:70:ce ONBOOT=yes BOOTPROTO=none IPADDR=192.168.4.2 USERCTL=no PEERDNS=yes IPV6INIT=no NM_CONTROLLED=no TYPE=Ethernet NETMASK=255.255.255.0 Not sure what I am doing wrong ... -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter Ruprecht Sent: Thursday, September 03, 2009 6:21 PM To: redhat-sysadmin-list at redhat.com Subject: Re: DHCP on Aliase eth0 Oluwagbenga Shobowale wrote: > Hello All, > I need to know if it is possible to run dhcp server on an aliase > interface eth0:0 ? > > I have configured a dhcp server for a network that should be on this > interface but I can't get it to work. > Anyone worked on something like this? > Maybe this will help. Here's part of my dhcpd.conf file showing a pool that gives out addresses on an overlaid private network: # private subnet / trusted devices subnet 192.168.107.0 netmask 255.255.255.0 { pool { range 192.168.107.20 192.168.107.252; option routers 192.168.107.1; # NAT interface allow members of "trustednat"; default-lease-time 900; max-lease-time 900; authoritative; } } Then I configure a virtual network interface for that network, in /etc/sysconfig/network-scripts/ifcfg-eth0:192 : DEVICE=eth0:192 BOOTPROTO=none BROADCAST=192.168.107.255 IPADDR=192.168.107.254 NETMASK=255.255.255.0 NETWORK=192.168.107.0 TYPE=Ethernet USERCTL=no HWADDR=00:15:17:85:7b:ab ONBOOT=yes If the alias interface is up when dhcpd starts, everything just seems to work. Can you give more details on how your setup is not working? Peter Ruprecht -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From mbrown at skyroadasp.com Thu Sep 3 18:38:06 2009 From: mbrown at skyroadasp.com (Matt Brown (Sky Road LLC)) Date: Thu, 3 Sep 2009 13:38:06 -0500 Subject: DHCP on Aliase eth0 In-Reply-To: <003801ca2cc4$4f4710b0$edd53210$@com> References: <001c01ca2cb6$6db44080$491cc180$@com> <4A9FFAF8.8030502@jilau1.colorado.edu>, <003801ca2cc4$4f4710b0$edd53210$@com> Message-ID: I have not played with DNS in a while, but I think the eth0:0 interface has to be within the range of ips for DHCP. try changing the range from .20 to .2 or the ip of the interface to .21. Could be totally wrong though since the option routers line looks sane. Matt ________________________________________ From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Oluwagbenga Shobowale [gshobowale at nextworksltd.com] Sent: Thursday, September 03, 2009 1:27 PM To: redhat-sysadmin-list at redhat.com Subject: RE: DHCP on Aliase eth0 Thanks ... In my own case I had one network on the 192.168.1.0/24 subnet however a friend needed to use our infrastructure hence I needed to set up another ip range 192.168.4.0/24 since I wanted them to share my internet. Hence I created an aliase on the eth0 which my network is on but when I configure dhcp ... Below is my config DHCPDARGS="eth0:0"; # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. subnet 192.168.1.0 netmask 255.255.255.0 { } # This is a very basic subnet declaration. subnet 192.168.4.0 netmask 255.255.255.0 { pool { range 192.168.4.20 192.168.4.252; option routers 192.168.4.2; # NAT interface default-lease-time 900; max-lease-time 7200; } } Virtual Interface DEVICE=eth0:0 HWADDR=00:1f:29:e0:70:ce ONBOOT=yes BOOTPROTO=none IPADDR=192.168.4.2 USERCTL=no PEERDNS=yes IPV6INIT=no NM_CONTROLLED=no TYPE=Ethernet NETMASK=255.255.255.0 Not sure what I am doing wrong ... -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter Ruprecht Sent: Thursday, September 03, 2009 6:21 PM To: redhat-sysadmin-list at redhat.com Subject: Re: DHCP on Aliase eth0 Oluwagbenga Shobowale wrote: > Hello All, > I need to know if it is possible to run dhcp server on an aliase > interface eth0:0 ? > > I have configured a dhcp server for a network that should be on this > interface but I can't get it to work. > Anyone worked on something like this? > Maybe this will help. Here's part of my dhcpd.conf file showing a pool that gives out addresses on an overlaid private network: # private subnet / trusted devices subnet 192.168.107.0 netmask 255.255.255.0 { pool { range 192.168.107.20 192.168.107.252; option routers 192.168.107.1; # NAT interface allow members of "trustednat"; default-lease-time 900; max-lease-time 900; authoritative; } } Then I configure a virtual network interface for that network, in /etc/sysconfig/network-scripts/ifcfg-eth0:192 : DEVICE=eth0:192 BOOTPROTO=none BROADCAST=192.168.107.255 IPADDR=192.168.107.254 NETMASK=255.255.255.0 NETWORK=192.168.107.0 TYPE=Ethernet USERCTL=no HWADDR=00:15:17:85:7b:ab ONBOOT=yes If the alias interface is up when dhcpd starts, everything just seems to work. Can you give more details on how your setup is not working? Peter Ruprecht -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list Sky Road LLC Message Disclaimer This message and any attachment transmitted with it (collectively, this "Message") may contain confidential or privileged information. It is for the sole use of the intended recipient(s). Any unauthorized review, use or disclosure is prohibited. If you are not the intended recipient, please advise the sender by reply message (e.g., email, fax or telephone) and destroy all copies of this Message. The information in this Message is not intended to replace a recipient's own internal processes for evaluating a transaction. This Message should not be regarded as (i) a recommendation to buy or refrain from buying any security; (ii) an offer to sell or solicitation of an offer to buy any security; or (iii) an official confirmation of any transaction. Sky Road cannot guarantee that the transmission and content of this Message is secure or error-free. Sky Road does not represent that this Message is accurate, uncorrupted, or free of viruses or other harmful code. From mbrown at skyroadasp.com Thu Sep 3 18:48:17 2009 From: mbrown at skyroadasp.com (Matt Brown (Sky Road LLC)) Date: Thu, 3 Sep 2009 13:48:17 -0500 Subject: DHCP on Aliase eth0 In-Reply-To: References: <001c01ca2cb6$6db44080$491cc180$@com> <4A9FFAF8.8030502@jilau1.colorado.edu>, <003801ca2cc4$4f4710b0$edd53210$@com>, Message-ID: Totally wrong. take a look at this: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch08_:_Configuring_the_DHCP_Server#The_.2Fetc.2Fdhcpd.conf_File See the section toward the bottom of the page titled: DHCP Servers with Multiple NICs it might be what you are looking for. Matt ________________________________________ From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Matt Brown (Sky Road LLC) [mbrown at skyroadasp.com] Sent: Thursday, September 03, 2009 1:38 PM To: redhat-sysadmin-list at redhat.com Subject: RE: DHCP on Aliase eth0 I have not played with DNS in a while, but I think the eth0:0 interface has to be within the range of ips for DHCP. try changing the range from .20 to .2 or the ip of the interface to .21. Could be totally wrong though since the option routers line looks sane. Matt ________________________________________ From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Oluwagbenga Shobowale [gshobowale at nextworksltd.com] Sent: Thursday, September 03, 2009 1:27 PM To: redhat-sysadmin-list at redhat.com Subject: RE: DHCP on Aliase eth0 Thanks ... In my own case I had one network on the 192.168.1.0/24 subnet however a friend needed to use our infrastructure hence I needed to set up another ip range 192.168.4.0/24 since I wanted them to share my internet. Hence I created an aliase on the eth0 which my network is on but when I configure dhcp ... Below is my config DHCPDARGS="eth0:0"; # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. subnet 192.168.1.0 netmask 255.255.255.0 { } # This is a very basic subnet declaration. subnet 192.168.4.0 netmask 255.255.255.0 { pool { range 192.168.4.20 192.168.4.252; option routers 192.168.4.2; # NAT interface default-lease-time 900; max-lease-time 7200; } } Virtual Interface DEVICE=eth0:0 HWADDR=00:1f:29:e0:70:ce ONBOOT=yes BOOTPROTO=none IPADDR=192.168.4.2 USERCTL=no PEERDNS=yes IPV6INIT=no NM_CONTROLLED=no TYPE=Ethernet NETMASK=255.255.255.0 Not sure what I am doing wrong ... -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter Ruprecht Sent: Thursday, September 03, 2009 6:21 PM To: redhat-sysadmin-list at redhat.com Subject: Re: DHCP on Aliase eth0 Oluwagbenga Shobowale wrote: > Hello All, > I need to know if it is possible to run dhcp server on an aliase > interface eth0:0 ? > > I have configured a dhcp server for a network that should be on this > interface but I can't get it to work. > Anyone worked on something like this? > Maybe this will help. Here's part of my dhcpd.conf file showing a pool that gives out addresses on an overlaid private network: # private subnet / trusted devices subnet 192.168.107.0 netmask 255.255.255.0 { pool { range 192.168.107.20 192.168.107.252; option routers 192.168.107.1; # NAT interface allow members of "trustednat"; default-lease-time 900; max-lease-time 900; authoritative; } } Then I configure a virtual network interface for that network, in /etc/sysconfig/network-scripts/ifcfg-eth0:192 : DEVICE=eth0:192 BOOTPROTO=none BROADCAST=192.168.107.255 IPADDR=192.168.107.254 NETMASK=255.255.255.0 NETWORK=192.168.107.0 TYPE=Ethernet USERCTL=no HWADDR=00:15:17:85:7b:ab ONBOOT=yes If the alias interface is up when dhcpd starts, everything just seems to work. Can you give more details on how your setup is not working? Peter Ruprecht -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list Sky Road LLC Message Disclaimer This message and any attachment transmitted with it (collectively, this "Message") may contain confidential or privileged information. It is for the sole use of the intended recipient(s). Any unauthorized review, use or disclosure is prohibited. If you are not the intended recipient, please advise the sender by reply message (e.g., email, fax or telephone) and destroy all copies of this Message. The information in this Message is not intended to replace a recipient's own internal processes for evaluating a transaction. This Message should not be regarded as (i) a recommendation to buy or refrain from buying any security; (ii) an offer to sell or solicitation of an offer to buy any security; or (iii) an official confirmation of any transaction. Sky Road cannot guarantee that the transmission and content of this Message is secure or error-free. Sky Road does not represent that this Message is accurate, uncorrupted, or free of viruses or other harmful code. -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list Sky Road LLC Message Disclaimer This message and any attachment transmitted with it (collectively, this "Message") may contain confidential or privileged information. It is for the sole use of the intended recipient(s). Any unauthorized review, use or disclosure is prohibited. If you are not the intended recipient, please advise the sender by reply message (e.g., email, fax or telephone) and destroy all copies of this Message. The information in this Message is not intended to replace a recipient's own internal processes for evaluating a transaction. This Message should not be regarded as (i) a recommendation to buy or refrain from buying any security; (ii) an offer to sell or solicitation of an offer to buy any security; or (iii) an official confirmation of any transaction. Sky Road cannot guarantee that the transmission and content of this Message is secure or error-free. Sky Road does not represent that this Message is accurate, uncorrupted, or free of viruses or other harmful code. From ruprech at jilau1.colorado.edu Thu Sep 3 19:11:19 2009 From: ruprech at jilau1.colorado.edu (Peter Ruprecht) Date: Thu, 03 Sep 2009 13:11:19 -0600 Subject: DHCP on Aliase eth0 In-Reply-To: <003801ca2cc4$4f4710b0$edd53210$@com> References: <001c01ca2cb6$6db44080$491cc180$@com> <4A9FFAF8.8030502@jilau1.colorado.edu> <003801ca2cc4$4f4710b0$edd53210$@com> Message-ID: <4AA014D7.1030505@jilau1.colorado.edu> Does the output of ifconfig look ok with both interfaces? Make sure iptables is not blocking dhcp traffic. Are there dhcpd errors in the logs? -Peter Oluwagbenga Shobowale wrote: > Thanks ... > In my own case I had one network on the 192.168.1.0/24 subnet however a > friend needed to use our infrastructure hence I needed to set up another ip > range 192.168.4.0/24 since I wanted them to share my internet. Hence I > created an aliase on the eth0 which my network is on but when I configure > dhcp ... > Below is my config > DHCPDARGS="eth0:0"; > # No service will be given on this subnet, but declaring it helps the > # DHCP server to understand the network topology. > > subnet 192.168.1.0 netmask 255.255.255.0 { > } > > # This is a very basic subnet declaration. > subnet 192.168.4.0 netmask 255.255.255.0 { > pool { > range 192.168.4.20 192.168.4.252; > option routers 192.168.4.2; # NAT interface > default-lease-time 900; > max-lease-time 7200; > } > } > > > > > Virtual Interface > > DEVICE=eth0:0 > HWADDR=00:1f:29:e0:70:ce > ONBOOT=yes > BOOTPROTO=none > IPADDR=192.168.4.2 > USERCTL=no > PEERDNS=yes > IPV6INIT=no > NM_CONTROLLED=no > TYPE=Ethernet > NETMASK=255.255.255.0 > > > Not sure what I am doing wrong ... > > > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter Ruprecht > Sent: Thursday, September 03, 2009 6:21 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: DHCP on Aliase eth0 > > Oluwagbenga Shobowale wrote: >> Hello All, >> I need to know if it is possible to run dhcp server on an aliase >> interface eth0:0 ? >> >> I have configured a dhcp server for a network that should be on this >> interface but I can't get it to work. >> Anyone worked on something like this? >> > > Maybe this will help. Here's part of my dhcpd.conf file showing a pool > that gives out addresses on an overlaid private network: > > # private subnet / trusted devices > subnet 192.168.107.0 netmask 255.255.255.0 { > pool { > range 192.168.107.20 192.168.107.252; > option routers 192.168.107.1; # NAT interface > allow members of "trustednat"; > default-lease-time 900; > max-lease-time 900; > authoritative; > } > } > > > Then I configure a virtual network interface for that network, in > /etc/sysconfig/network-scripts/ifcfg-eth0:192 : > > DEVICE=eth0:192 > BOOTPROTO=none > BROADCAST=192.168.107.255 > IPADDR=192.168.107.254 > NETMASK=255.255.255.0 > NETWORK=192.168.107.0 > TYPE=Ethernet > USERCTL=no > HWADDR=00:15:17:85:7b:ab > ONBOOT=yes > > If the alias interface is up when dhcpd starts, everything just seems to > work. Can you give more details on how your setup is not working? > > Peter Ruprecht > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From gshobowale at nextworksltd.com Thu Sep 3 21:25:59 2009 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Thu, 3 Sep 2009 22:25:59 +0100 Subject: DHCP on Aliase eth0 In-Reply-To: <4AA014D7.1030505@jilau1.colorado.edu> References: <001c01ca2cb6$6db44080$491cc180$@com> <4A9FFAF8.8030502@jilau1.colorado.edu> <003801ca2cc4$4f4710b0$edd53210$@com> <4AA014D7.1030505@jilau1.colorado.edu> Message-ID: <000001ca2cdd$22b98aa0$682c9fe0$@com> Yeah it looks ok [root at axentra ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:1F:29:E0:70:CE inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21f:29ff:fee0:70ce/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:44817051 errors:0 dropped:0 overruns:0 frame:0 TX packets:49767930 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2412738116 (2.2 GiB) TX bytes:1912042361 (1.7 GiB) Interrupt:16 Memory:f8000000-f8012700 eth0:0 Link encap:Ethernet HWaddr 00:1F:29:E0:70:CE inet addr:192.168.4.2 Bcast:192.168.4.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:16 Memory:f8000000-f8012700 eth1 Link encap:Ethernet HWaddr 00:1F:29:E0:70:CC inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::21f:29ff:fee0:70cc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:43891190 errors:0 dropped:0 overruns:0 frame:0 TX packets:38284064 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1798349665 (1.6 GiB) TX bytes:1175781166 (1.0 GiB) Interrupt:17 Memory:fa000000-fa012700 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:301738 errors:0 dropped:0 overruns:0 frame:0 TX packets:301738 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:42687199 (40.7 MiB) TX bytes:42687199 (40.7 MiB) -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter Ruprecht Sent: Thursday, September 03, 2009 8:11 PM To: redhat-sysadmin-list at redhat.com Subject: Re: DHCP on Aliase eth0 Does the output of ifconfig look ok with both interfaces? Make sure iptables is not blocking dhcp traffic. Are there dhcpd errors in the logs? -Peter Oluwagbenga Shobowale wrote: > Thanks ... > In my own case I had one network on the 192.168.1.0/24 subnet however a > friend needed to use our infrastructure hence I needed to set up another ip > range 192.168.4.0/24 since I wanted them to share my internet. Hence I > created an aliase on the eth0 which my network is on but when I configure > dhcp ... > Below is my config > DHCPDARGS="eth0:0"; > # No service will be given on this subnet, but declaring it helps the > # DHCP server to understand the network topology. > > subnet 192.168.1.0 netmask 255.255.255.0 { > } > > # This is a very basic subnet declaration. > subnet 192.168.4.0 netmask 255.255.255.0 { > pool { > range 192.168.4.20 192.168.4.252; > option routers 192.168.4.2; # NAT interface > default-lease-time 900; > max-lease-time 7200; > } > } > > > > > Virtual Interface > > DEVICE=eth0:0 > HWADDR=00:1f:29:e0:70:ce > ONBOOT=yes > BOOTPROTO=none > IPADDR=192.168.4.2 > USERCTL=no > PEERDNS=yes > IPV6INIT=no > NM_CONTROLLED=no > TYPE=Ethernet > NETMASK=255.255.255.0 > > > Not sure what I am doing wrong ... > > > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter Ruprecht > Sent: Thursday, September 03, 2009 6:21 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: DHCP on Aliase eth0 > > Oluwagbenga Shobowale wrote: >> Hello All, >> I need to know if it is possible to run dhcp server on an aliase >> interface eth0:0 ? >> >> I have configured a dhcp server for a network that should be on this >> interface but I can't get it to work. >> Anyone worked on something like this? >> > > Maybe this will help. Here's part of my dhcpd.conf file showing a pool > that gives out addresses on an overlaid private network: > > # private subnet / trusted devices > subnet 192.168.107.0 netmask 255.255.255.0 { > pool { > range 192.168.107.20 192.168.107.252; > option routers 192.168.107.1; # NAT interface > allow members of "trustednat"; > default-lease-time 900; > max-lease-time 900; > authoritative; > } > } > > > Then I configure a virtual network interface for that network, in > /etc/sysconfig/network-scripts/ifcfg-eth0:192 : > > DEVICE=eth0:192 > BOOTPROTO=none > BROADCAST=192.168.107.255 > IPADDR=192.168.107.254 > NETMASK=255.255.255.0 > NETWORK=192.168.107.0 > TYPE=Ethernet > USERCTL=no > HWADDR=00:15:17:85:7b:ab > ONBOOT=yes > > If the alias interface is up when dhcpd starts, everything just seems to > work. Can you give more details on how your setup is not working? > > Peter Ruprecht > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From gshobowale at nextworksltd.com Thu Sep 3 21:31:01 2009 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Thu, 3 Sep 2009 22:31:01 +0100 Subject: DHCP on Aliase eth0 In-Reply-To: References: <001c01ca2cb6$6db44080$491cc180$@com> <4A9FFAF8.8030502@jilau1.colorado.edu>, <003801ca2cc4$4f4710b0$edd53210$@com>, Message-ID: <000101ca2cdd$d59f6c70$80de4550$@com> Thanks I have looked at it ... before and it does not work ... in fact I just saw an article ... which says alias interface is not supported by DHCP... So I guess this is the end of the road except if someone has tried this before http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_ Guide/sect-Configuring_a_Multihomed_DHCP_Server.html Thanks again -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Matt Brown (Sky Road LLC) Sent: Thursday, September 03, 2009 7:48 PM To: redhat-sysadmin-list at redhat.com Subject: RE: DHCP on Aliase eth0 Totally wrong. take a look at this: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch08_:_Confi guring_the_DHCP_Server#The_.2Fetc.2Fdhcpd.conf_File See the section toward the bottom of the page titled: DHCP Servers with Multiple NICs it might be what you are looking for. Matt ________________________________________ From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Matt Brown (Sky Road LLC) [mbrown at skyroadasp.com] Sent: Thursday, September 03, 2009 1:38 PM To: redhat-sysadmin-list at redhat.com Subject: RE: DHCP on Aliase eth0 I have not played with DNS in a while, but I think the eth0:0 interface has to be within the range of ips for DHCP. try changing the range from .20 to .2 or the ip of the interface to .21. Could be totally wrong though since the option routers line looks sane. Matt ________________________________________ From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Oluwagbenga Shobowale [gshobowale at nextworksltd.com] Sent: Thursday, September 03, 2009 1:27 PM To: redhat-sysadmin-list at redhat.com Subject: RE: DHCP on Aliase eth0 Thanks ... In my own case I had one network on the 192.168.1.0/24 subnet however a friend needed to use our infrastructure hence I needed to set up another ip range 192.168.4.0/24 since I wanted them to share my internet. Hence I created an aliase on the eth0 which my network is on but when I configure dhcp ... Below is my config DHCPDARGS="eth0:0"; # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. subnet 192.168.1.0 netmask 255.255.255.0 { } # This is a very basic subnet declaration. subnet 192.168.4.0 netmask 255.255.255.0 { pool { range 192.168.4.20 192.168.4.252; option routers 192.168.4.2; # NAT interface default-lease-time 900; max-lease-time 7200; } } Virtual Interface DEVICE=eth0:0 HWADDR=00:1f:29:e0:70:ce ONBOOT=yes BOOTPROTO=none IPADDR=192.168.4.2 USERCTL=no PEERDNS=yes IPV6INIT=no NM_CONTROLLED=no TYPE=Ethernet NETMASK=255.255.255.0 Not sure what I am doing wrong ... -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter Ruprecht Sent: Thursday, September 03, 2009 6:21 PM To: redhat-sysadmin-list at redhat.com Subject: Re: DHCP on Aliase eth0 Oluwagbenga Shobowale wrote: > Hello All, > I need to know if it is possible to run dhcp server on an aliase > interface eth0:0 ? > > I have configured a dhcp server for a network that should be on this > interface but I can't get it to work. > Anyone worked on something like this? > Maybe this will help. Here's part of my dhcpd.conf file showing a pool that gives out addresses on an overlaid private network: # private subnet / trusted devices subnet 192.168.107.0 netmask 255.255.255.0 { pool { range 192.168.107.20 192.168.107.252; option routers 192.168.107.1; # NAT interface allow members of "trustednat"; default-lease-time 900; max-lease-time 900; authoritative; } } Then I configure a virtual network interface for that network, in /etc/sysconfig/network-scripts/ifcfg-eth0:192 : DEVICE=eth0:192 BOOTPROTO=none BROADCAST=192.168.107.255 IPADDR=192.168.107.254 NETMASK=255.255.255.0 NETWORK=192.168.107.0 TYPE=Ethernet USERCTL=no HWADDR=00:15:17:85:7b:ab ONBOOT=yes If the alias interface is up when dhcpd starts, everything just seems to work. Can you give more details on how your setup is not working? Peter Ruprecht -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list Sky Road LLC Message Disclaimer This message and any attachment transmitted with it (collectively, this "Message") may contain confidential or privileged information. It is for the sole use of the intended recipient(s). Any unauthorized review, use or disclosure is prohibited. If you are not the intended recipient, please advise the sender by reply message (e.g., email, fax or telephone) and destroy all copies of this Message. The information in this Message is not intended to replace a recipient's own internal processes for evaluating a transaction. This Message should not be regarded as (i) a recommendation to buy or refrain from buying any security; (ii) an offer to sell or solicitation of an offer to buy any security; or (iii) an official confirmation of any transaction. Sky Road cannot guarantee that the transmission and content of this Message is secure or error-free. Sky Road does not represent that this Message is accurate, uncorrupted, or free of viruses or other harmful code. -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list Sky Road LLC Message Disclaimer This message and any attachment transmitted with it (collectively, this "Message") may contain confidential or privileged information. It is for the sole use of the intended recipient(s). Any unauthorized review, use or disclosure is prohibited. If you are not the intended recipient, please advise the sender by reply message (e.g., email, fax or telephone) and destroy all copies of this Message. The information in this Message is not intended to replace a recipient's own internal processes for evaluating a transaction. This Message should not be regarded as (i) a recommendation to buy or refrain from buying any security; (ii) an offer to sell or solicitation of an offer to buy any security; or (iii) an official confirmation of any transaction. Sky Road cannot guarantee that the transmission and content of this Message is secure or error-free. Sky Road does not represent that this Message is accurate, uncorrupted, or free of viruses or other harmful code. -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From p.lambooy at narmida.com Fri Sep 4 18:59:25 2009 From: p.lambooy at narmida.com (Patrick Lambooy) Date: Fri, 4 Sep 2009 20:59:25 +0200 Subject: DHCP on Aliase eth0 In-Reply-To: <000101ca2cdd$d59f6c70$80de4550$@com> References: <001c01ca2cb6$6db44080$491cc180$@com> <4A9FFAF8.8030502@jilau1.colorado.edu>, <003801ca2cc4$4f4710b0$edd53210$@com>, <000101ca2cdd$d59f6c70$80de4550$@com> Message-ID: Just barging in this discussion. make a virtual ip suited in a vlan and configure this vlan also on the switch side. then it will work, done this for a company with 1000+ voip devices. (on 1 ethernet) But it requires good network and linux knowledge to make it work. But it is doable On Sep 3, 2009, at 11:31 PM, Oluwagbenga Shobowale wrote: > Thanks I have looked at it ... before and it does not work ... in > fact I > just saw an article ... which says alias interface is not supported > by > DHCP... > So I guess this is the end of the road except if someone has tried > this > before > http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_ > Guide/sect-Configuring_a_Multihomed_DHCP_Server.html > > Thanks again > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Matt > Brown > (Sky Road LLC) > Sent: Thursday, September 03, 2009 7:48 PM > To: redhat-sysadmin-list at redhat.com > Subject: RE: DHCP on Aliase eth0 > > Totally wrong. > > take a look at this: > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch08_:_Confi > guring_the_DHCP_Server#The_.2Fetc.2Fdhcpd.conf_File > See the section toward the bottom of the page titled: > DHCP Servers with Multiple NICs > it might be what you are looking for. > > Matt > ________________________________________ > From: redhat-sysadmin-list-bounces at redhat.com > [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Matt Brown > (Sky Road > LLC) [mbrown at skyroadasp.com] > Sent: Thursday, September 03, 2009 1:38 PM > To: redhat-sysadmin-list at redhat.com > Subject: RE: DHCP on Aliase eth0 > > I have not played with DNS in a while, but I think the eth0:0 > interface has > to be within the range of ips for DHCP. > try changing the range from .20 to .2 or the ip of the interface to . > 21. > > Could be totally wrong though since the option routers line looks > sane. > > Matt > ________________________________________ > From: redhat-sysadmin-list-bounces at redhat.com > [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Oluwagbenga > Shobowale > [gshobowale at nextworksltd.com] > Sent: Thursday, September 03, 2009 1:27 PM > To: redhat-sysadmin-list at redhat.com > Subject: RE: DHCP on Aliase eth0 > > Thanks ... > In my own case I had one network on the 192.168.1.0/24 subnet > however a > friend needed to use our infrastructure hence I needed to set up > another ip > range 192.168.4.0/24 since I wanted them to share my internet. > Hence I > created an aliase on the eth0 which my network is on but when I > configure > dhcp ... > Below is my config > DHCPDARGS="eth0:0"; > # No service will be given on this subnet, but declaring it helps the > # DHCP server to understand the network topology. > > subnet 192.168.1.0 netmask 255.255.255.0 { > } > > # This is a very basic subnet declaration. > subnet 192.168.4.0 netmask 255.255.255.0 { > pool { > range 192.168.4.20 192.168.4.252; > option routers 192.168.4.2; # NAT interface > default-lease-time 900; > max-lease-time 7200; > } > } > > > > > Virtual Interface > > DEVICE=eth0:0 > HWADDR=00:1f:29:e0:70:ce > ONBOOT=yes > BOOTPROTO=none > IPADDR=192.168.4.2 > USERCTL=no > PEERDNS=yes > IPV6INIT=no > NM_CONTROLLED=no > TYPE=Ethernet > NETMASK=255.255.255.0 > > > Not sure what I am doing wrong ... > > > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter > Ruprecht > Sent: Thursday, September 03, 2009 6:21 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: DHCP on Aliase eth0 > > Oluwagbenga Shobowale wrote: >> Hello All, >> I need to know if it is possible to run dhcp server on an aliase >> interface eth0:0 ? >> >> I have configured a dhcp server for a network that should be on this >> interface but I can't get it to work. >> Anyone worked on something like this? >> > > Maybe this will help. Here's part of my dhcpd.conf file showing a > pool > that gives out addresses on an overlaid private network: > > # private subnet / trusted devices > subnet 192.168.107.0 netmask 255.255.255.0 { > pool { > range 192.168.107.20 192.168.107.252; > option routers 192.168.107.1; # NAT interface > allow members of "trustednat"; > default-lease-time 900; > max-lease-time 900; > authoritative; > } > } > > > Then I configure a virtual network interface for that network, in > /etc/sysconfig/network-scripts/ifcfg-eth0:192 : > > DEVICE=eth0:192 > BOOTPROTO=none > BROADCAST=192.168.107.255 > IPADDR=192.168.107.254 > NETMASK=255.255.255.0 > NETWORK=192.168.107.0 > TYPE=Ethernet > USERCTL=no > HWADDR=00:15:17:85:7b:ab > ONBOOT=yes > > If the alias interface is up when dhcpd starts, everything just > seems to > work. Can you give more details on how your setup is not working? > > Peter Ruprecht > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > Sky Road LLC Message Disclaimer > > This message and any attachment transmitted with it (collectively, > this > "Message") may contain confidential or privileged information. It is > for the sole use of the intended recipient(s). Any unauthorized > review, > use or disclosure is prohibited. If you are not the intended > recipient, > please advise the sender by reply message (e.g., email, fax or > telephone) and destroy all copies of this Message. The information in > this Message is not intended to replace a recipient's own internal > processes for evaluating a transaction. This Message should not be > regarded as (i) a recommendation to buy or refrain from buying any > security; (ii) an offer to sell or solicitation of an offer to buy any > security; or (iii) an official confirmation of any transaction. Sky > Road cannot guarantee that the transmission and content of this > Message > is secure or error-free. Sky Road does not represent that this > Message > is accurate, uncorrupted, or free of viruses or other harmful code. > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > Sky Road LLC Message Disclaimer > > This message and any attachment transmitted with it (collectively, > this > "Message") may contain confidential or privileged information. It is > for the sole use of the intended recipient(s). Any unauthorized > review, > use or disclosure is prohibited. If you are not the intended > recipient, > please advise the sender by reply message (e.g., email, fax or > telephone) and destroy all copies of this Message. The information in > this Message is not intended to replace a recipient's own internal > processes for evaluating a transaction. This Message should not be > regarded as (i) a recommendation to buy or refrain from buying any > security; (ii) an offer to sell or solicitation of an offer to buy any > security; or (iii) an official confirmation of any transaction. Sky > Road cannot guarantee that the transmission and content of this > Message > is secure or error-free. Sky Road does not represent that this > Message > is accurate, uncorrupted, or free of viruses or other harmful code. > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From gaurav79 at gmail.com Fri Sep 4 19:45:21 2009 From: gaurav79 at gmail.com (Gaurav Shukla) Date: Sat, 5 Sep 2009 01:15:21 +0530 Subject: Unsubscribtion In-Reply-To: References: Message-ID: PLEASE UNSUBSCRIBE ME FROM THIS MAILING LIST. On Sun, Aug 9, 2009 at 2:16 AM, Gaurav Shukla wrote: > Let me know how I can unsubscribe myself from this list. > > -- > Regards, > Gaurav -- Regards, Gaurav Gaurav Shukla __________________________ Mob: +91 98731 98236 Email: gaurav79 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristopher.kane at gmail.com Fri Sep 4 19:51:33 2009 From: kristopher.kane at gmail.com (Kristopher Kane) Date: Fri, 4 Sep 2009 15:51:33 -0400 Subject: Unsubscribtion In-Reply-To: References: Message-ID: <481bcd1b0909041251o4b41a515uf55e5838a5dccbee@mail.gmail.com> > PLEASE UNSUBSCRIBE ME FROM THIS MAILING LIST. Loud noises! There is a link at the bottom of each list email that will lead to unsubscription. -Kristopher Kane From Jeffrey.Thomas at sierra-bravo.com Fri Sep 4 19:53:46 2009 From: Jeffrey.Thomas at sierra-bravo.com (Jeffrey G Thomas) Date: Fri, 4 Sep 2009 14:53:46 -0500 Subject: Unsubscribtion In-Reply-To: References: Message-ID: <200909041453.52544.Jeffrey.Thomas@sierra-bravo.com> > PLEASE UNSUBSCRIBE ME FROM THIS MAILING LIST. OK LETS LOOK AT WHAT THE INSTRUCTIONS SAID WHEN YOU JOINED: " If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: https://www.redhat.com/mailman/options/redhat-sysadmin-list/gaurav79%40gmail.com " Jeffrey -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: From gaurav79 at gmail.com Fri Sep 4 20:03:31 2009 From: gaurav79 at gmail.com (Gaurav Shukla) Date: Sat, 5 Sep 2009 01:33:31 +0530 Subject: Unsubscribtion In-Reply-To: <481bcd1b0909041251o4b41a515uf55e5838a5dccbee@mail.gmail.com> References: <481bcd1b0909041251o4b41a515uf55e5838a5dccbee@mail.gmail.com> Message-ID: I have done it many times now but I still receive mails. On Sat, Sep 5, 2009 at 1:21 AM, Kristopher Kane wrote: > > PLEASE UNSUBSCRIBE ME FROM THIS MAILING LIST. > Loud noises! > > There is a link at the bottom of each list email that will lead to > unsubscription. > > -Kristopher Kane > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- Regards, Gaurav Gaurav Shukla __________________________ Mob: +91 98731 98236 Email: gaurav79 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gshobowale at nextworksltd.com Sat Sep 5 21:31:57 2009 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Sat, 5 Sep 2009 22:31:57 +0100 Subject: DHCP on Aliase eth0 In-Reply-To: References: <001c01ca2cb6$6db44080$491cc180$@com> <4A9FFAF8.8030502@jilau1.colorado.edu>, <003801ca2cc4$4f4710b0$edd53210$@com>, <000101ca2cdd$d59f6c70$80de4550$@com> Message-ID: <003101ca2e70$4e0d9bd0$ea28d370$@com> Very true .. the issue is the switch does not have Vlan capability .. in fact I think that would have solved my problem.. hence I am trying to improvise based on the hardware I have else we need to get a switch with that capability. Thanks again -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Patrick Lambooy Sent: Friday, September 04, 2009 7:59 PM To: redhat-sysadmin-list at redhat.com Subject: Re: DHCP on Aliase eth0 Just barging in this discussion. make a virtual ip suited in a vlan and configure this vlan also on the switch side. then it will work, done this for a company with 1000+ voip devices. (on 1 ethernet) But it requires good network and linux knowledge to make it work. But it is doable On Sep 3, 2009, at 11:31 PM, Oluwagbenga Shobowale wrote: > Thanks I have looked at it ... before and it does not work ... in > fact I > just saw an article ... which says alias interface is not supported > by > DHCP... > So I guess this is the end of the road except if someone has tried > this > before > http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_ > Guide/sect-Configuring_a_Multihomed_DHCP_Server.html > > Thanks again > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Matt > Brown > (Sky Road LLC) > Sent: Thursday, September 03, 2009 7:48 PM > To: redhat-sysadmin-list at redhat.com > Subject: RE: DHCP on Aliase eth0 > > Totally wrong. > > take a look at this: > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch08_:_Confi > guring_the_DHCP_Server#The_.2Fetc.2Fdhcpd.conf_File > See the section toward the bottom of the page titled: > DHCP Servers with Multiple NICs > it might be what you are looking for. > > Matt > ________________________________________ > From: redhat-sysadmin-list-bounces at redhat.com > [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Matt Brown > (Sky Road > LLC) [mbrown at skyroadasp.com] > Sent: Thursday, September 03, 2009 1:38 PM > To: redhat-sysadmin-list at redhat.com > Subject: RE: DHCP on Aliase eth0 > > I have not played with DNS in a while, but I think the eth0:0 > interface has > to be within the range of ips for DHCP. > try changing the range from .20 to .2 or the ip of the interface to . > 21. > > Could be totally wrong though since the option routers line looks > sane. > > Matt > ________________________________________ > From: redhat-sysadmin-list-bounces at redhat.com > [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Oluwagbenga > Shobowale > [gshobowale at nextworksltd.com] > Sent: Thursday, September 03, 2009 1:27 PM > To: redhat-sysadmin-list at redhat.com > Subject: RE: DHCP on Aliase eth0 > > Thanks ... > In my own case I had one network on the 192.168.1.0/24 subnet > however a > friend needed to use our infrastructure hence I needed to set up > another ip > range 192.168.4.0/24 since I wanted them to share my internet. > Hence I > created an aliase on the eth0 which my network is on but when I > configure > dhcp ... > Below is my config > DHCPDARGS="eth0:0"; > # No service will be given on this subnet, but declaring it helps the > # DHCP server to understand the network topology. > > subnet 192.168.1.0 netmask 255.255.255.0 { > } > > # This is a very basic subnet declaration. > subnet 192.168.4.0 netmask 255.255.255.0 { > pool { > range 192.168.4.20 192.168.4.252; > option routers 192.168.4.2; # NAT interface > default-lease-time 900; > max-lease-time 7200; > } > } > > > > > Virtual Interface > > DEVICE=eth0:0 > HWADDR=00:1f:29:e0:70:ce > ONBOOT=yes > BOOTPROTO=none > IPADDR=192.168.4.2 > USERCTL=no > PEERDNS=yes > IPV6INIT=no > NM_CONTROLLED=no > TYPE=Ethernet > NETMASK=255.255.255.0 > > > Not sure what I am doing wrong ... > > > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Peter > Ruprecht > Sent: Thursday, September 03, 2009 6:21 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: DHCP on Aliase eth0 > > Oluwagbenga Shobowale wrote: >> Hello All, >> I need to know if it is possible to run dhcp server on an aliase >> interface eth0:0 ? >> >> I have configured a dhcp server for a network that should be on this >> interface but I can't get it to work. >> Anyone worked on something like this? >> > > Maybe this will help. Here's part of my dhcpd.conf file showing a > pool > that gives out addresses on an overlaid private network: > > # private subnet / trusted devices > subnet 192.168.107.0 netmask 255.255.255.0 { > pool { > range 192.168.107.20 192.168.107.252; > option routers 192.168.107.1; # NAT interface > allow members of "trustednat"; > default-lease-time 900; > max-lease-time 900; > authoritative; > } > } > > > Then I configure a virtual network interface for that network, in > /etc/sysconfig/network-scripts/ifcfg-eth0:192 : > > DEVICE=eth0:192 > BOOTPROTO=none > BROADCAST=192.168.107.255 > IPADDR=192.168.107.254 > NETMASK=255.255.255.0 > NETWORK=192.168.107.0 > TYPE=Ethernet > USERCTL=no > HWADDR=00:15:17:85:7b:ab > ONBOOT=yes > > If the alias interface is up when dhcpd starts, everything just > seems to > work. Can you give more details on how your setup is not working? > > Peter Ruprecht > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > Sky Road LLC Message Disclaimer > > This message and any attachment transmitted with it (collectively, > this > "Message") may contain confidential or privileged information. It is > for the sole use of the intended recipient(s). Any unauthorized > review, > use or disclosure is prohibited. If you are not the intended > recipient, > please advise the sender by reply message (e.g., email, fax or > telephone) and destroy all copies of this Message. The information in > this Message is not intended to replace a recipient's own internal > processes for evaluating a transaction. This Message should not be > regarded as (i) a recommendation to buy or refrain from buying any > security; (ii) an offer to sell or solicitation of an offer to buy any > security; or (iii) an official confirmation of any transaction. Sky > Road cannot guarantee that the transmission and content of this > Message > is secure or error-free. Sky Road does not represent that this > Message > is accurate, uncorrupted, or free of viruses or other harmful code. > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > Sky Road LLC Message Disclaimer > > This message and any attachment transmitted with it (collectively, > this > "Message") may contain confidential or privileged information. It is > for the sole use of the intended recipient(s). Any unauthorized > review, > use or disclosure is prohibited. If you are not the intended > recipient, > please advise the sender by reply message (e.g., email, fax or > telephone) and destroy all copies of this Message. The information in > this Message is not intended to replace a recipient's own internal > processes for evaluating a transaction. This Message should not be > regarded as (i) a recommendation to buy or refrain from buying any > security; (ii) an offer to sell or solicitation of an offer to buy any > security; or (iii) an official confirmation of any transaction. Sky > Road cannot guarantee that the transmission and content of this > Message > is secure or error-free. Sky Road does not represent that this > Message > is accurate, uncorrupted, or free of viruses or other harmful code. > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From herta.vandeneynde at gmail.com Sun Sep 6 22:50:47 2009 From: herta.vandeneynde at gmail.com (Herta Van den Eynde) Date: Mon, 7 Sep 2009 00:50:47 +0200 Subject: Can't Run Executable Files on DVD - fstab issue? In-Reply-To: <4A9EA95E.4050404@mail.owls.lib.wi.us> References: <4A9EA95E.4050404@mail.owls.lib.wi.us> Message-ID: Hi Dave, "bad interpreter: Permission denied" can be the result of a number of causes. What does the command "mount" return for your dvd drive? What is the permission on the files you're trying to execute? ('ls -l' + 'id' from the process from which you are trying to run the executables) What does 'ls /bin/sh' return? When you "vi -b" the file, do the lines terminate with "^M"? What does "lsattr" of the file return? Kind regards, Herta Can you tell us more about the way the dvd was created? 2009/9/2 Dave Bacon > Hello, > > When attempting to run executables from DVDs on our new Red Hat > Enterprise 5 server, we receive the following error. > > bash: ./suu: /bin/sh: bad interpreter: Permission denied > > I was told that the problem is possibly related to not having the exec > option enabled in /etc/fstab for the DVD drive. Could I please get > assistance on what I should change or add to fstab to allow running > executable files on the DVD drive? Please see below for a copy of our > "df -h" and fstab information. Thank you - Dave Bacon > > (df -h) > Filesystem Size Used Avail Use% Mounted on > /dev/mapper/VolGroup00-LogVol00 > 3.9G 592M 3.1G 16% / > /dev/mapper/VolGroup00-LogVol05 > 3.9G 137M 3.6G 4% /home > /dev/mapper/VolGroup00-LogVol04 > 3.9G 350M 3.4G 10% /var > /dev/mapper/VolGroup00-LogVol03 > 3.9G 137M 3.6G 4% /tmp > /dev/mapper/VolGroup00-LogVol02 > 7.8G 3.7G 3.7G 50% /usr > /dev/sda3 190M 28M 153M 16% /boot > tmpfs 5.8G 0 5.8G 0% /dev/shm > /dev/scd0 3.7G 3.7G 0 100% /media/610OMG_81 > > (/etc/fstab) > /dev/VolGroup00/LogVol00 / ext3 defaults 1 > 1 > /dev/VolGroup00/LogVol05 /home ext3 defaults 1 > 2 > /dev/VolGroup00/LogVol04 /var ext3 defaults 1 > 2 > /dev/VolGroup00/LogVol03 /tmp ext3 defaults 1 > 2 > /dev/VolGroup00/LogVol02 /usr ext3 defaults 1 > 2 > LABEL=/boot /boot ext3 defaults 1 2 > tmpfs /dev/shm tmpfs defaults 0 0 > devpts /dev/pts devpts gid=5,mode=620 0 0 > sysfs /sys sysfs defaults 0 0 > proc /proc proc defaults 0 0 > /dev/VolGroup00/LogVol01 swap swap defaults 0 > 0 > > > -- > > _________________________________________ > > Dave G. Bacon > Computer Network Manager > Outagamie Waupaca Library System > 225 N. Oneida St., Appleton, WI 54911 > 920/832-6193(voice), 920/832-6422(FAX) > dbacon at mail.owls.lib.wi.us > http://www.owlsweb.info > _________________________________________ > > > --------------------------------------- > Checked by MailScan Anti-Virus Software > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- "Life on Earth may be expensive, but it comes with a free ride around the Sun." -------------- next part -------------- An HTML attachment was scrubbed... URL: From ccampbell at brueggers.com Tue Sep 8 15:27:05 2009 From: ccampbell at brueggers.com (Christian Campbell) Date: Tue, 8 Sep 2009 11:27:05 -0400 Subject: Rollback Patches Message-ID: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> What is the supported method for doing patch rollbacks? I'm attempting to upgrade some RPMs via up2date, and need a back-out strategy if it breaks our core application, without having to restore from backup. I see a deprecated --rollback which once did transactional rollbacks. Is there a replacement command or method? Thanks, Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: From mweber at alliednational.com Tue Sep 8 15:49:52 2009 From: mweber at alliednational.com (Michael Weber) Date: Tue, 08 Sep 2009 10:49:52 -0500 Subject: Rollback Patches In-Reply-To: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> Message-ID: <4AA636D002000013000F4231@alliednational.com> Good morning, Christian. Ghost is your friend! Before I do something that is potentially destructive to my systems, I clone the OS partition on a cheap drive. That way I can always put it back EXACTLY as it was. If you don't have a license for Ghost, grab a copy of Knoppix and use the dd command to image the drive onto another location. That has saved my bacon more than once when an OS upgrade failed. My $0.02. -Michael >>> "Christian Campbell" 9/8/2009 10:27 AM >>> What is the supported method for doing patch rollbacks? I'm attempting to upgrade some RPMs via up2date, and need a back-out strategy if it breaks our core application, without having to restore from backup. I see a deprecated --rollback which once did transactional rollbacks. Is there a replacement command or method? Thanks, Christian E-MAIL CONFIDENTIALITY NOTICE: This communication and any associated file(s) may contain privileged, confidential or proprietary information or be protected from disclosure under law ("Confidential Information"). Any use or disclosure of this Confidential Information, or taking any action in reliance thereon, by any individual/entity other than the intended recipient(s) is strictly prohibited. This Confidential Information is intended solely for the use of the individual(s) addressed. If you are not an intended recipient, you have received this Confidential Information in error and have an obligation to promptly inform the sender and permanently destroy, in its entirety, this Confidential Information (and all copies thereof). E-mail is handled in the strictest of confidence by Allied National, however, unless sent encrypted, it is not a secure communication method and may have been intercepted, edited or altered during transmission and therefore is not guaranteed. From ben.kevan at gmail.com Tue Sep 8 15:55:29 2009 From: ben.kevan at gmail.com (Ben Kevan) Date: Tue, 08 Sep 2009 08:55:29 -0700 Subject: Rollback Patches In-Reply-To: <4AA636D002000013000F4231@alliednational.com> References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> <4AA636D002000013000F4231@alliednational.com> Message-ID: On Tue, 08 Sep 2009 08:49:52 -0700, Michael Weber wrote: > Good morning, Christian. > > Ghost is your friend! Before I do something that is potentially > destructive to my systems, I clone the OS partition on a cheap drive. > That way I can always put it back EXACTLY as it was. > > If you don't have a license for Ghost, grab a copy of Knoppix and use > the dd command to image the drive onto another location. > > That has saved my bacon more than once when an OS upgrade failed. > > My $0.02. > > -Michael He's not asking about OS Upgrades.. but more patches etc, so singular application updates. Christian, You can always rollback with rpm -Uvh --force to the old version of the rpm (do you have up2date set to keep the rpm's locally?). What version of RHEL are you running? -- If you don't know what you want, you end up with a lot you don't. -Fight Club From james.oden at gmail.com Tue Sep 8 16:35:04 2009 From: james.oden at gmail.com (James Olin Oden) Date: Tue, 8 Sep 2009 12:35:04 -0400 Subject: Rollback Patches In-Reply-To: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> Message-ID: Actually, --rollback may work but there is some reading you need to do: http://www.linuxjournal.com/article/7034 Cheers...james On Tue, Sep 8, 2009 at 11:27 AM, Christian Campbell wrote: > What is the supported method for doing patch rollbacks?? I?m attempting to > upgrade some RPMs via up2date, and need a back-out strategy if it breaks our > core application, without having to restore from backup. > > > > I see a deprecated --rollback which once did transactional rollbacks.? Is > there a replacement command or method? > > > > Thanks, > > Christian > > > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From lists at brimer.org Tue Sep 8 16:36:49 2009 From: lists at brimer.org (Barry Brimer) Date: Tue, 08 Sep 2009 11:36:49 -0500 Subject: Rollback Patches In-Reply-To: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> Message-ID: <1252427809.4aa68821d7c3f@mail.toucanhost.com> Quoting Christian Campbell : > What is the supported method for doing patch rollbacks? I'm attempting > to upgrade some RPMs via up2date, and need a back-out strategy if it > breaks our core application, without having to restore from backup. > > > > I see a deprecated --rollback which once did transactional rollbacks. > Is there a replacement command or method? This article does a good job of explaining what you are trying to accomplish. Barry From ccampbell at brueggers.com Tue Sep 8 16:45:35 2009 From: ccampbell at brueggers.com (Christian Campbell) Date: Tue, 8 Sep 2009 12:45:35 -0400 Subject: Rollback Patches In-Reply-To: References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net><4AA636D002000013000F4231@alliednational.com> Message-ID: <10E4ED50A76BD246BD69A81DE450F6C87EC35F@neptune.brueggers.net> > He's not asking about OS Upgrades.. but more patches etc, so singular > application updates. > > Christian, > You can always rollback with rpm -Uvh --force to the old version of the > rpm (do you have up2date set to keep the rpm's locally?). > > What version of RHEL are you running? RHEL 4.5. Keepafterinstall is set to 0 currently. So I understand, if I upgraded cpp from 3.4.6-10 to 3.4.6-11, and I needed to roll it back, I could do: rpm -Uvh --force cpp-3.4.6-10 and a rpm -qi cpp would then show: cpp-3.4.6-10? This obviously wouldn't roll back any dependencies it had to satisfy for the upgraded rpm to be installed...correct? I found some old documentation and it's unfortunate this can't be done anymore: rpm -Uvh --rollback '2 hours ago' Any idea why they removed it? Christian From trevor.hemsley at codefarm.com Tue Sep 8 16:47:30 2009 From: trevor.hemsley at codefarm.com (Trevor Hemsley) Date: Tue, 08 Sep 2009 17:47:30 +0100 Subject: Rollback Patches In-Reply-To: <10E4ED50A76BD246BD69A81DE450F6C87EC35F@neptune.brueggers.net> References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net><4AA636D002000013000F4231@alliednational.com> <10E4ED50A76BD246BD69A81DE450F6C87EC35F@neptune.brueggers.net> Message-ID: <4AA68AA2.3080408@codefarm.com> Christian Campbell wrote: >> He's not asking about OS Upgrades.. but more patches etc, so singular >> application updates. >> >> Christian, >> You can always rollback with rpm -Uvh --force to the old version of the >> rpm (do you have up2date set to keep the rpm's locally?). >> >> What version of RHEL are you running? >> > > RHEL 4.5. Keepafterinstall is set to 0 currently. > > So I understand, if I upgraded cpp from 3.4.6-10 to 3.4.6-11, and I needed to roll it back, I could do: > > rpm -Uvh --force cpp-3.4.6-10 > While --force works, --oldpackage is probably more correct -- Trevor Hemsley Infrastructure Engineer ................................................. * C A L Y P S O * Brighton, UK OFFICE +44 (0) 1273 666 350 FAX +44 (0) 1273 666 351 ................................................. www.calypso.com This electronic-mail might contain confidential information intended only for the use by the entity named. If the reader of this message is not the intended recipient, the reader is hereby notified that any dissemination, distribution or copying is strictly prohibited. * P * /*/ Please consider the environment before printing this e-mail /*/ From ccampbell at brueggers.com Tue Sep 8 16:48:35 2009 From: ccampbell at brueggers.com (Christian Campbell) Date: Tue, 8 Sep 2009 12:48:35 -0400 Subject: Rollback Patches In-Reply-To: References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> Message-ID: <10E4ED50A76BD246BD69A81DE450F6C87EC361@neptune.brueggers.net> > > Actually, --rollback may work but there is some reading you need to do: > > http://www.linuxjournal.com/article/7034 > > Cheers...james Thanks, but that is an article from 2004, and the commands, such as: up2date --list-rollbacks don't work anymore... Christian From ccampbell at brueggers.com Tue Sep 8 16:50:23 2009 From: ccampbell at brueggers.com (Christian Campbell) Date: Tue, 8 Sep 2009 12:50:23 -0400 Subject: Rollback Patches In-Reply-To: <4AA68AA2.3080408@codefarm.com> References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net><4AA636D002000013000F4231@alliednational.com> <10E4ED50A76BD246BD69A81DE450F6C87EC35F@neptune.brueggers.net> <4AA68AA2.3080408@codefarm.com> Message-ID: <10E4ED50A76BD246BD69A81DE450F6C87EC363@neptune.brueggers.net> > Christian Campbell wrote: > >> He's not asking about OS Upgrades.. but more patches etc, so > singular > >> application updates. > >> > >> Christian, > >> You can always rollback with rpm -Uvh --force to the old version of > the > >> rpm (do you have up2date set to keep the rpm's locally?). > >> > >> What version of RHEL are you running? > >> > > > > RHEL 4.5. Keepafterinstall is set to 0 currently. > > > > So I understand, if I upgraded cpp from 3.4.6-10 to 3.4.6-11, and I > needed to roll it back, I could do: > > > > rpm -Uvh --force cpp-3.4.6-10 > > > > While --force works, --oldpackage is probably more correct > Is there a difference? Man rpm shows: --force Same as using --replacepkgs, --replacefiles, and --oldpackage Christian From ccampbell at brueggers.com Tue Sep 8 16:53:12 2009 From: ccampbell at brueggers.com (Christian Campbell) Date: Tue, 8 Sep 2009 12:53:12 -0400 Subject: Rollback Patches In-Reply-To: <1252427809.4aa68821d7c3f@mail.toucanhost.com> References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> <1252427809.4aa68821d7c3f@mail.toucanhost.com> Message-ID: <10E4ED50A76BD246BD69A81DE450F6C87EC365@neptune.brueggers.net> > > What is the supported method for doing patch rollbacks? I'm > attempting > > to upgrade some RPMs via up2date, and need a back-out strategy if it > > breaks our core application, without having to restore from backup. > > > > > > > > I see a deprecated --rollback which once did transactional rollbacks. > > Is there a replacement command or method? > > This article does a good job of explaining what you are trying to > accomplish. > > Why-Repackaging-and-Rollbacks.html> > Barry, Thanks, but that's from 2007, and it doesn't seem that rpm-4.3.3 supports the --rollback option anymore. Hence, why I posted my original question... Thanks, Christian From TNeu at sjm.com Tue Sep 8 21:34:30 2009 From: TNeu at sjm.com (Neu, Timothy) Date: Tue, 8 Sep 2009 16:34:30 -0500 Subject: Rollback Patches In-Reply-To: <10E4ED50A76BD246BD69A81DE450F6C87EC365@neptune.brueggers.net> References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net><1252427809.4aa68821d7c3f@mail.toucanhost.com> <10E4ED50A76BD246BD69A81DE450F6C87EC365@neptune.brueggers.net> Message-ID: If you are using mirrored disk, you can always break the mirror prior to the upgrade. If it is successful, reconnect the disk and let it resync. If not, just boot from the disk you took out beforehand. Tim Neu Tel +1 651 756 6383 Mobile +1 651 238 8816 tneu at sjm.com -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Christian Campbell Sent: Tuesday, September 08, 2009 11:53 AM To: redhat-sysadmin-list at redhat.com Subject: RE: Rollback Patches > > What is the supported method for doing patch rollbacks? I'm > attempting > > to upgrade some RPMs via up2date, and need a back-out strategy if it > > breaks our core application, without having to restore from backup. > > > > > > > > I see a deprecated --rollback which once did transactional rollbacks. > > Is there a replacement command or method? > > This article does a good job of explaining what you are trying to > accomplish. > > Why-Repackaging-and-Rollbacks.html> > Barry, Thanks, but that's from 2007, and it doesn't seem that rpm-4.3.3 supports the --rollback option anymore. Hence, why I posted my original question... Thanks, Christian -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system. From alfred.hovdestad at usask.ca Tue Sep 8 21:44:23 2009 From: alfred.hovdestad at usask.ca (Alfred Hovdestad) Date: Tue, 08 Sep 2009 15:44:23 -0600 Subject: Rollback Patches In-Reply-To: References: <10E4ED50A76BD246BD69A81DE450F6C87EC304@neptune.brueggers.net> <1252427809.4aa68821d7c3f@mail.toucanhost.com> <10E4ED50A76BD246BD69A81DE450F6C87EC365@neptune.brueggers.net> Message-ID: <4AA6D037.5090905@usask.ca> Have you looked at RHN provisioning? https://rhn.redhat.com/rhn/help/reference/rhn500/en/s1-intro-rhn-provisioning.jsp Snapshot Rollbacks ? Provisioning-level users have the ability to revert the package profile and RHN settings of systems. -- Alfred Hovdestad University of Saskatchewan >>> What is the supported method for doing patch rollbacks? I'm >> attempting >>> to upgrade some RPMs via up2date, and need a back-out strategy if it >>> breaks our core application, without having to restore from backup. From gebser at mousecar.com Wed Sep 9 08:13:05 2009 From: gebser at mousecar.com (ken) Date: Wed, 09 Sep 2009 04:13:05 -0400 Subject: login to console disabled Message-ID: <4AA76391.8070304@mousecar.com> We have two servers both running redhat. On one of them it's possible to log in (as superuser or user) via the console, but on the other it is not (neither user nor superuser). Both connect through an Avocent console server to the serial ports. Both have the same securetty file with "console" at the top. What do I need to change to allow console login (to both user and superuser) in through the console? (I looked at a couple pam files, but they are identical also. Thanks very much. -- Everything's easy one you know how to do it. --Tulku Zlo From nitin.gizare at wipro.com Wed Sep 9 09:42:10 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Wed, 9 Sep 2009 15:12:10 +0530 Subject: NIS passwd expiry Message-ID: Hi We have requirement of implementing password expiry in Linux . We have NIS running RHEL 4.0 OS Can some body help us how we can enable the same Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From lincoln.fessenden at jefferson.edu Wed Sep 9 11:31:57 2009 From: lincoln.fessenden at jefferson.edu (Lincoln Fessenden) Date: Wed, 09 Sep 2009 07:31:57 -0400 Subject: login to console disabled In-Reply-To: <4AA76391.8070304@mousecar.com> References: <4AA76391.8070304@mousecar.com> Message-ID: <4AA7922D.6010105@jefferson.edu> ken wrote: > We have two servers both running redhat. On one of them it's possible > to log in (as superuser or user) via the console, but on the other it is > not (neither user nor superuser). Both connect through an Avocent > console server to the serial ports. Both have the same securetty file > with "console" at the top. What do I need to change to allow console > login (to both user and superuser) in through the console? (I looked at > a couple pam files, but they are identical also. > > Thanks very much. > > /etc/securetty maybe and http://www.redhat.com/docs/manuals/linux/RHL-6.2-Manual/ref-guide/s1-sysadmin-console-access.html -- Lincoln Fessenden Jeff-IT Linux Systems Administrator From gebser at mousecar.com Thu Sep 17 16:26:04 2009 From: gebser at mousecar.com (ken) Date: Thu, 17 Sep 2009 12:26:04 -0400 Subject: increasing memory usage Message-ID: <4AB2631C.1090700@mousecar.com> Has anyone experienced on their machines the amount of memory and swap used to be ever increasing? This is more of a server problem because it takes a week for all the memory and swap to run out (and then, of course, the system hangs). On this note, are there any tools for examining the contents of swap in order to see which processes are holding it? tia, ken From rvandolson at esri.com Thu Sep 17 16:26:12 2009 From: rvandolson at esri.com (Ray Van Dolson) Date: Thu, 17 Sep 2009 09:26:12 -0700 Subject: increasing memory usage In-Reply-To: <4AB2631C.1090700@mousecar.com> References: <4AB2631C.1090700@mousecar.com> Message-ID: <20090917162612.GA11421@esri.com> On Thu, Sep 17, 2009 at 09:26:04AM -0700, ken wrote: > Has anyone experienced on their machines the amount of memory and swap > used to be ever increasing? This is more of a server problem because it > takes a week for all the memory and swap to run out (and then, of > course, the system hangs). > > On this note, are there any tools for examining the contents of swap in > order to see which processes are holding it? > You'll probably have pretty good luck by just starting up 'top' and hitting 'M' to sort by memory usage. Ray From gebser at mousecar.com Thu Sep 17 20:16:22 2009 From: gebser at mousecar.com (ken) Date: Thu, 17 Sep 2009 16:16:22 -0400 Subject: increasing memory usage In-Reply-To: <20090917162612.GA11421@esri.com> References: <4AB2631C.1090700@mousecar.com> <20090917162612.GA11421@esri.com> Message-ID: <4AB29916.9040807@mousecar.com> On 09/17/2009 12:26 PM Ray Van Dolson wrote: > On Thu, Sep 17, 2009 at 09:26:04AM -0700, ken wrote: >> Has anyone experienced on their machines the amount of memory and swap >> used to be ever increasing? This is more of a server problem because it >> takes a week for all the memory and swap to run out (and then, of >> course, the system hangs). >> >> On this note, are there any tools for examining the contents of swap in >> order to see which processes are holding it? >> > > You'll probably have pretty good luck by just starting up 'top' and > hitting 'M' to sort by memory usage. > > Ray Ray, thanks for your reply. Yeah, I've used "top" a lot, but it doesn't really give the granularity I'm looking for... so the reason for asking after another tool, one to read the pages in swap, their origin and status. tnx++, ken From rvandolson at esri.com Thu Sep 17 22:12:55 2009 From: rvandolson at esri.com (Ray Van Dolson) Date: Thu, 17 Sep 2009 15:12:55 -0700 Subject: increasing memory usage In-Reply-To: <4AB29916.9040807@mousecar.com> References: <4AB2631C.1090700@mousecar.com> <20090917162612.GA11421@esri.com> <4AB29916.9040807@mousecar.com> Message-ID: <20090917221254.GA19482@esri.com> On Thu, Sep 17, 2009 at 01:16:22PM -0700, ken wrote: > On 09/17/2009 12:26 PM Ray Van Dolson wrote: > > On Thu, Sep 17, 2009 at 09:26:04AM -0700, ken wrote: > >> Has anyone experienced on their machines the amount of memory and swap > >> used to be ever increasing? This is more of a server problem because it > >> takes a week for all the memory and swap to run out (and then, of > >> course, the system hangs). > >> > >> On this note, are there any tools for examining the contents of swap in > >> order to see which processes are holding it? > >> > > > > You'll probably have pretty good luck by just starting up 'top' and > > hitting 'M' to sort by memory usage. > > > > Ray > > Ray, thanks for your reply. Yeah, I've used "top" a lot, but it doesn't > really give the granularity I'm looking for... so the reason for asking > after another tool, one to read the pages in swap, their origin and status. > For that type of granularity, you might want to look at using SystemTap. It comes with several very good example scripts that might get you started.... Ray From elnone at mstuca.ru Sun Sep 20 12:28:31 2009 From: elnone at mstuca.ru (Vasiliy Kotikov) Date: Sun, 20 Sep 2009 16:28:31 +0400 Subject: rhnget loses session connection ? Message-ID: <4AB61FEF.20401@mstuca.ru> Hello! Not so long ago I found that up2date's utility rhnget does no download files. Here it goes rhnget -v -v -v -v -v --delete --systemid="/var/www/mrepo/src/rhel5c-i386/systemid" --release="5Client" --username="my_username" --password="my_password" 'rhns:///rhel-i386-client-5' '/var/www/mrepo/src/rhel5c-i386/updates' Verbosity set to level 5 Using RHN systemid from /var/www/mrepo/src/rhel5c-i386/systemid Using RHN release 5Client BEFORE LOGIN: logininfo: {} AFTER LOGIN: logininfo: {'X-RHN-Auth-Server-Time': '1253448874.37', 'X-RHN-Auth': AOCjqUmJZpxcSVb0k3NUdfg==', 'X-RHN-Server-Id': 1007677539, 'X-RHN-Auth-Channels': [['rhel-i386-client-5', '20090911042638', '1', '1'], ['rhel-i386-client-workstation-5', '20090918132959', '0', '1'], ['rhel-i386-client-vt-5', '20090902095934', '0', '1'], ['rhel-i386-client-supplementary-5', '20090904094938', '0', '1'], ['rhn-tools-rhel-i386-client-5', '20090827141308', '0', '1'], ['rhel-i386-client-fastrack-5', '20090622141743', '0', '1'], ['rhel-i386-client-workstation-fastrack-5', '20090622141611', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'} File Deployment_Guide-as-IN-5.2-11.noarch.rpm is already in /var/www/mrepo/src/rhel5c-i386/updates ... then the first not downloaded package from rhn.redhat.com appears is downloaded ok and the packages after: File openoffice.org-langpack-da_DK-2.3.0-6.11.el5_4.1.i386.rpm is already in /var/www/mrepo/src/rhel5c-i386/updates openoffice.org-langpack-de- ########################## Done. openoffice.org-langpack-el_ openoffice.org-langpack-el_ openoffice.org-langpack-el_ rhnget: CommunicationError: Error downloading package openoffice.org-langpack-el_GR-2.3.0-6.11.el5_4.1.i386.rpm from rhel-i386-client-5. Skipping. Error communicating with server. The message was: Forbidden openoffice.org-langpack-es- openoffice.org-langpack-es- openoffice.org-langpack-es- rhnget: CommunicationError: Error downloading package openoffice.org-langpack-es-2.3.0-6.11.el5_4.1.i386.rpm from rhel-i386-client-5. Skipping. Error communicating with server. The message was: GUgle did not help me to find the right point to the issue above. Anyone met such a problem? Vasiliy From nitin.gizare at wipro.com Sun Sep 20 12:31:18 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Sun, 20 Sep 2009 18:01:18 +0530 Subject: Running top in batch mode Message-ID: Hello All I have requirement of running top command in batch mode. I have gone through some link and -b option can be used with same. But this is not printing all options. Can some body help with good script Thanks and Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Wed Sep 23 02:48:22 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Wed, 23 Sep 2009 08:18:22 +0530 Subject: Running top in batch mode Message-ID: Hello All I have requirement of running top command in batch mode. I have gone through some link and -b option can be used with same. But this is not printing all options. Can some body help with good script Thanks and Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Anthony.Doyle at nab.com.au Wed Sep 23 02:57:35 2009 From: Anthony.Doyle at nab.com.au (Anthony Doyle) Date: Wed, 23 Sep 2009 12:57:35 +1000 Subject: Running top in batch mode In-Reply-To: References: Message-ID: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> Hi Nitin , Maybe if you tell us what your trying to achieve,, someone on the list can help you, what data are you trying to capture from top as the requirement ? Cheers Anthony From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: Wednesday, 23 September 2009 12:48 PM To: redhat-sysadmin-list at redhat.com Subject: Running top in batch mode Hello All I have requirement of running top command in batch mode. I have gone through some link and -b option can be used with same. But this is not printing all options. Can some body help with good script Thanks and Rgds Nitin ________________________________ National Australia Bank Ltd - ABN 12 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at postmaster at nab.com.au or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to Unsubscriptions at nab.com.au in order to stop marketing emails from this sender. National Australia Bank Ltd does not represent that this email is free of errors, viruses or interference. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Wed Sep 23 03:05:01 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Wed, 23 Sep 2009 08:35:01 +0530 Subject: Running top in batch mode In-Reply-To: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> Message-ID: HI Thanks for reply, I want to capture initial header part in which we have info process , total memory usages etc ... Then process and memory usage usage of process , it can be only first 100 process. I tried running top -b -n 1 command but which does not show initial header information. Please help me in this regards. Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Anthony Doyle Sent: Wednesday, September 23, 2009 8:28 AM To: redhat-sysadmin-list at redhat.com Subject: RE: Running top in batch mode Hi Nitin , Maybe if you tell us what your trying to achieve,, someone on the list can help you, what data are you trying to capture from top as the requirement ? Cheers Anthony From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: Wednesday, 23 September 2009 12:48 PM To: redhat-sysadmin-list at redhat.com Subject: Running top in batch mode Hello All I have requirement of running top command in batch mode. I have gone through some link and -b option can be used with same. But this is not printing all options. Can some body help with good script Thanks and Rgds Nitin ________________________________ National Australia Bank Ltd - ABN 12 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at postmaster at nab.com.au or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to Unsubscriptions at nab.com.au in order to stop marketing emails from this sender. National Australia Bank Ltd does not represent that this email is free of errors, viruses or interference. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tirloni at gmail.com Wed Sep 23 10:52:11 2009 From: tirloni at gmail.com (Giovanni P. Tirloni) Date: Wed, 23 Sep 2009 07:52:11 -0300 Subject: Running top in batch mode In-Reply-To: References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> Message-ID: <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> On Sep 23, 2009, at 12:05 AM, wrote: > HI > > Thanks for reply, > > I want to capture initial header part in which we have info > process , total memory usages etc ? > Then process and memory usage usage of process , it can be only > first 100 process. > > > I tried running top ?b ?n 1 command but which does not show initial > header information. > > Please help me in this regards. What exactly are you getting with that command that is different from what you want ? $ top -b -n1 | head -n5 top - 07:43:10 up 12:49, 1 user, load average: 0.30, 0.10, 0.03 Tasks: 89 total, 1 running, 88 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2064872k total, 472040k used, 1592832k free, 68092k buffers Swap: 2096472k total, 0k used, 2096472k free, 336832k cached Giovanni P. Tirloni tirloni at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Wed Sep 23 10:59:19 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Wed, 23 Sep 2009 16:29:19 +0530 Subject: Running top in batch mode In-Reply-To: <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> Message-ID: HI Thanks allot for info . Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Giovanni P. Tirloni Sent: Wednesday, September 23, 2009 4:22 PM To: redhat-sysadmin-list at redhat.com Subject: Re: Running top in batch mode On Sep 23, 2009, at 12:05 AM, wrote: HI Thanks for reply, I want to capture initial header part in which we have info process , total memory usages etc ... Then process and memory usage usage of process , it can be only first 100 process. I tried running top -b -n 1 command but which does not show initial header information. Please help me in this regards. What exactly are you getting with that command that is different from what you want ? $ top -b -n1 | head -n5 top - 07:43:10 up 12:49, 1 user, load average: 0.30, 0.10, 0.03 Tasks: 89 total, 1 running, 88 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2064872k total, 472040k used, 1592832k free, 68092k buffers Swap: 2096472k total, 0k used, 2096472k free, 336832k cached Giovanni P. Tirloni tirloni at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Wed Sep 23 11:03:23 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Wed, 23 Sep 2009 16:33:23 +0530 Subject: Running top in batch mode In-Reply-To: <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> Message-ID: HI Can some body help with script which can take top out put snapshot every 5 min with memory usage in sorted mode.( say top is highest and bottom lowest). Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Giovanni P. Tirloni Sent: Wednesday, September 23, 2009 4:22 PM To: redhat-sysadmin-list at redhat.com Subject: Re: Running top in batch mode On Sep 23, 2009, at 12:05 AM, wrote: HI Thanks for reply, I want to capture initial header part in which we have info process , total memory usages etc ... Then process and memory usage usage of process , it can be only first 100 process. I tried running top -b -n 1 command but which does not show initial header information. Please help me in this regards. What exactly are you getting with that command that is different from what you want ? $ top -b -n1 | head -n5 top - 07:43:10 up 12:49, 1 user, load average: 0.30, 0.10, 0.03 Tasks: 89 total, 1 running, 88 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2064872k total, 472040k used, 1592832k free, 68092k buffers Swap: 2096472k total, 0k used, 2096472k free, 336832k cached Giovanni P. Tirloni tirloni at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason at rampaginggeek.com Thu Sep 24 00:58:35 2009 From: jason at rampaginggeek.com (Jason Edgecombe) Date: Wed, 23 Sep 2009 20:58:35 -0400 Subject: Running top in batch mode In-Reply-To: References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> Message-ID: <4ABAC43B.4090708@rampaginggeek.com> nitin.gizare at wipro.com wrote: > Can some body help with script which can take top out put snapshot every > 5 min with memory usage in sorted mode.( say top is highest and bottom > lowest). > It sounds like you want something like sar. See http://linux.die.net/man/1/sar or install the sysstat rpm and run "man sar" Jason From nitin.gizare at wipro.com Thu Sep 24 04:50:57 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Thu, 24 Sep 2009 10:20:57 +0530 Subject: Running top in batch mode In-Reply-To: <4ABAC43B.4090708@rampaginggeek.com> References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> <4ABAC43B.4090708@rampaginggeek.com> Message-ID: HI But using sar we can not get info about system process and memory used by them Nitin -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Jason Edgecombe Sent: Thursday, September 24, 2009 6:29 AM To: redhat-sysadmin-list at redhat.com Subject: Re: Running top in batch mode nitin.gizare at wipro.com wrote: > Can some body help with script which can take top out put snapshot every > 5 min with memory usage in sorted mode.( say top is highest and bottom > lowest). > It sounds like you want something like sar. See http://linux.die.net/man/1/sar or install the sysstat rpm and run "man sar" Jason -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From jason at rampaginggeek.com Thu Sep 24 12:38:03 2009 From: jason at rampaginggeek.com (Jason Edgecombe) Date: Thu, 24 Sep 2009 08:38:03 -0400 Subject: Running top in batch mode In-Reply-To: References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> <4ABAC43B.4090708@rampaginggeek.com> Message-ID: <4ABB682B.9030300@rampaginggeek.com> Hmmm, you're right. that sounds like a feature request for future versions of sar. Jason nitin.gizare at wipro.com wrote: > HI > > But using sar we can not get info about system process and memory used > by them > > Nitin > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Jason > Edgecombe > Sent: Thursday, September 24, 2009 6:29 AM > To: redhat-sysadmin-list at redhat.com > Subject: Re: Running top in batch mode > > nitin.gizare at wipro.com wrote: > >> Can some body help with script which can take top out put snapshot >> > every > >> 5 min with memory usage in sorted mode.( say top is highest and bottom >> lowest). >> >> > > It sounds like you want something like sar. See > http://linux.die.net/man/1/sar > or install the sysstat rpm and run "man sar" > > Jason > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > From nitin.gizare at wipro.com Fri Sep 25 02:13:19 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Fri, 25 Sep 2009 07:43:19 +0530 Subject: Running top in batch mode In-Reply-To: <4ABB682B.9030300@rampaginggeek.com> References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> <4ABAC43B.4090708@rampaginggeek.com> <4ABB682B.9030300@rampaginggeek.com> Message-ID: HI Which option in sar I can use to measure load of server? Nitin -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Jason Edgecombe Sent: Thursday, September 24, 2009 6:08 PM To: redhat-sysadmin-list at redhat.com Subject: Re: Running top in batch mode Hmmm, you're right. that sounds like a feature request for future versions of sar. Jason nitin.gizare at wipro.com wrote: > HI > > But using sar we can not get info about system process and memory used > by them > > Nitin > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Jason > Edgecombe > Sent: Thursday, September 24, 2009 6:29 AM > To: redhat-sysadmin-list at redhat.com > Subject: Re: Running top in batch mode > > nitin.gizare at wipro.com wrote: > >> Can some body help with script which can take top out put snapshot >> > every > >> 5 min with memory usage in sorted mode.( say top is highest and bottom >> lowest). >> >> > > It sounds like you want something like sar. See > http://linux.die.net/man/1/sar > or install the sysstat rpm and run "man sar" > > Jason > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From nitin.gizare at wipro.com Fri Sep 25 02:16:34 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Fri, 25 Sep 2009 07:46:34 +0530 Subject: ssh timeout Message-ID: HI I am running script using ssh to capture load of some parameters of remote machine. But if one of machine is down script does not go forward and will be waiting for to come up and complete ssh connections. I would like to set some time out in which case if machine does not response it should time out on ssh and proceed for next steps. Please help me with this settings Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From stan.hearn at nscorp.com Fri Sep 25 03:11:32 2009 From: stan.hearn at nscorp.com (Hearn, Stan J.) Date: Thu, 24 Sep 2009 23:11:32 -0400 Subject: ssh timeout In-Reply-To: References: Message-ID: <538F89E3C87A57448992D542F6B02C0364CE8345E4@GATUCEXCH03ASV.nscorp.ad.nscorp.com> check out man ssh_config and look at the ConnectionTimeout option. I have found that if I background the process I don't have to worry about the stragglers. for H in `cat my-system.lst` do ssh $H uptime > $H.uptime & done ________________________________________ From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com [nitin.gizare at wipro.com] Sent: Thursday, September 24, 2009 10:16 PM To: redhat-sysadmin-list at redhat.com Subject: ssh timeout HI I am running script using ssh to capture load of some parameters of remote machine. But if one of machine is down script does not go forward and will be waiting for to come up and complete ssh connections. I would like to set some time out in which case if machine does not response it should time out on ssh and proceed for next steps. Please help me with this settings Rgds Nitin From mailinglist at arthurkao.com Fri Sep 25 03:18:18 2009 From: mailinglist at arthurkao.com (Arthur Kao) Date: Thu, 24 Sep 2009 21:18:18 -0600 Subject: Running top in batch mode In-Reply-To: References: <47493895070ABF4399D7E7F022C5367A21C8A6D62A@MELWVSMES01.global.thenational.com> <3C909C71-1678-471C-BA15-F60B1EEFDD85@gmail.com> <4ABAC43B.4090708@rampaginggeek.com> <4ABB682B.9030300@rampaginggeek.com> Message-ID: man sar says sar -q --- Arthur Kao On Thu, Sep 24, 2009 at 8:13 PM, wrote: > HI > > Which option in sar I can use to measure load of server? > > Nitin > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Jason > Edgecombe > Sent: Thursday, September 24, 2009 6:08 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: Running top in batch mode > > Hmmm, > > you're right. that sounds like a feature request for future versions of > sar. > > Jason > > nitin.gizare at wipro.com wrote: >> HI >> >> But using sar we can not get info about system process and memory used >> by them >> >> Nitin >> >> -----Original Message----- >> From: redhat-sysadmin-list-bounces at redhat.com >> [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Jason >> Edgecombe >> Sent: Thursday, September 24, 2009 6:29 AM >> To: redhat-sysadmin-list at redhat.com >> Subject: Re: Running top in batch mode >> >> nitin.gizare at wipro.com wrote: >> >>> Can some body help with script which can take top out put snapshot >>> >> every >> >>> 5 min with memory usage in sorted mode.( say top is highest and > bottom >>> lowest). >>> >>> >> >> It sounds like you want something like sar. See >> http://linux.die.net/man/1/sar >> or install the sysstat rpm and run "man sar" >> >> Jason >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >> >> > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From nitin.gizare at wipro.com Fri Sep 25 04:44:58 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Fri, 25 Sep 2009 10:14:58 +0530 Subject: ssh timeout In-Reply-To: <538F89E3C87A57448992D542F6B02C0364CE8345E4@GATUCEXCH03ASV.nscorp.ad.nscorp.com> References: <538F89E3C87A57448992D542F6B02C0364CE8345E4@GATUCEXCH03ASV.nscorp.ad.nscorp.com> Message-ID: HI Thanks I will test it Nitin -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Hearn, Stan J. Sent: Friday, September 25, 2009 8:42 AM To: redhat-sysadmin-list at redhat.com Subject: RE: ssh timeout check out man ssh_config and look at the ConnectionTimeout option. I have found that if I background the process I don't have to worry about the stragglers. for H in `cat my-system.lst` do ssh $H uptime > $H.uptime & done ________________________________________ From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com [nitin.gizare at wipro.com] Sent: Thursday, September 24, 2009 10:16 PM To: redhat-sysadmin-list at redhat.com Subject: ssh timeout HI I am running script using ssh to capture load of some parameters of remote machine. But if one of machine is down script does not go forward and will be waiting for to come up and complete ssh connections. I would like to set some time out in which case if machine does not response it should time out on ssh and proceed for next steps. Please help me with this settings Rgds Nitin -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From unixadm28 at gmail.com Fri Sep 25 13:21:31 2009 From: unixadm28 at gmail.com (mahima kaushik) Date: Fri, 25 Sep 2009 09:21:31 -0400 Subject: Options available for nfs debugging RHEL 5.3 Message-ID: Hi, Having trouble with nfs mounts on red hat system. NFS server is a MAC OSX server and it mounts fine for solaris clients. Problem is only with red hat clients. It is not allowing anyone to vi or cp on files that are owned by groups that users are part of. commands like mv or :wq! works fine. for example: # df -k nfsserver:/dir /localdir # cd /localdir # ls -la rwxrwxr-x user1 group1 file.txt # id user3 (group1) # echo hi > file.txt file exists # echo hi >> file.txt (works fine) rpc_debug and nfs_debug are not generating enough output for me to troubleshoot it correctly. Any help is appreciated! mk -------------- next part -------------- An HTML attachment was scrubbed... URL: From HowardC at prpa.org Fri Sep 25 15:16:47 2009 From: HowardC at prpa.org (Howard, Chris) Date: Fri, 25 Sep 2009 09:16:47 -0600 Subject: ssh timeout In-Reply-To: References: Message-ID: <1305E9F69BC3CE49ABCDC8E00492F70204EE716C@titan.internal.prpa.org> You can kill a child process after a certain time has elapsed. So, you would have a parent shell script start up the ssh script and put it in the background (&). Then call sleep for some number of seconds. When it wakes up if the child is still running ('kill -0 $pid') then you send it a kill signal ('kill -9 $pid'). Use a file in /tmp for the child to pass back results to the parent process if it succeeds. Or, I think you could use a timeout signal in a perl script. Or, I think you could have the remote machine use ssh to put its information onto a central monitoring machine periodically using cron or similar. Then your monitoring program would just look at that centralized information and not do an ssh at all. > -----Original Message----- > From: nitin.gizare at wipro.com [mailto:nitin.gizare at wipro.com] > Sent: Thursday, September 24, 2009 8:17 PM > To: redhat-sysadmin-list at redhat.com > Subject: ssh timeout > > HI > > > > I am running script using ssh to capture load of some parameters of > remote machine. > > But if one of machine is down script does not go forward and will be > waiting for to come up and complete ssh connections. > > I would like to set some time out in which case if machine does not > response it should time out on ssh and proceed for next steps. > > > > Please help me with this settings > > > > Rgds > > Nitin From harry.sutton at hp.com Fri Sep 25 15:36:11 2009 From: harry.sutton at hp.com (Sutton, Harry (MSE)) Date: Fri, 25 Sep 2009 11:36:11 -0400 Subject: ssh timeout In-Reply-To: <1305E9F69BC3CE49ABCDC8E00492F70204EE716C@titan.internal.prpa.org> References: <1305E9F69BC3CE49ABCDC8E00492F70204EE716C@titan.internal.prpa.org> Message-ID: <4ABCE36B.8020001@hp.com> But as someone else pointed out earlier, ssh already has built-in mechanisms for dealing with this (TCPKeepAlive, ClientAliveInterval, ClientAliveCountMax), so why jump through all these other hoops to attain this functionality? /Harry On 09/25/2009 11:16 AM, Howard, Chris wrote: > You can kill a child process after a certain time > has elapsed. > > So, you would have a parent shell script start > up the ssh script and put it in the background (&). > Then call sleep for some > number of seconds. When it wakes up if the > child is still running ('kill -0 $pid') > then you send it a kill signal ('kill -9 $pid'). > Use a file in /tmp for the child to pass back results > to the parent process if it succeeds. > > Or, I think you could use a timeout signal > in a perl script. > > Or, I think you could have the remote machine > use ssh to put its information onto a central > monitoring machine periodically using cron or > similar. Then your monitoring program would > just look at that centralized information and > not do an ssh at all. > > > > >> -----Original Message----- >> From: nitin.gizare at wipro.com [mailto:nitin.gizare at wipro.com] >> Sent: Thursday, September 24, 2009 8:17 PM >> To: redhat-sysadmin-list at redhat.com >> Subject: ssh timeout >> >> HI >> >> >> >> I am running script using ssh to capture load of some parameters of >> remote machine. >> >> But if one of machine is down script does not go forward and will be >> waiting for to come up and complete ssh connections. >> >> I would like to set some time out in which case if machine does not >> response it should time out on ssh and proceed for next steps. >> >> >> >> Please help me with this settings >> >> >> >> Rgds >> >> Nitin >> > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6148 bytes Desc: S/MIME Cryptographic Signature URL: From nitin.gizare at wipro.com Fri Sep 25 15:47:21 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Fri, 25 Sep 2009 21:17:21 +0530 Subject: ssh timeout References: <1305E9F69BC3CE49ABCDC8E00492F70204EE716C@titan.internal.prpa.org> <4ABCE36B.8020001@hp.com> Message-ID: HI Thanks Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com on behalf of Sutton, Harry (MSE) Sent: Fri 9/25/2009 9:06 PM To: redhat-sysadmin-list at redhat.com Subject: Re: ssh timeout But as someone else pointed out earlier, ssh already has built-in mechanisms for dealing with this (TCPKeepAlive, ClientAliveInterval, ClientAliveCountMax), so why jump through all these other hoops to attain this functionality? /Harry On 09/25/2009 11:16 AM, Howard, Chris wrote: > You can kill a child process after a certain time > has elapsed. > > So, you would have a parent shell script start > up the ssh script and put it in the background (&). > Then call sleep for some > number of seconds. When it wakes up if the > child is still running ('kill -0 $pid') > then you send it a kill signal ('kill -9 $pid'). > Use a file in /tmp for the child to pass back results > to the parent process if it succeeds. > > Or, I think you could use a timeout signal > in a perl script. > > Or, I think you could have the remote machine > use ssh to put its information onto a central > monitoring machine periodically using cron or > similar. Then your monitoring program would > just look at that centralized information and > not do an ssh at all. > > > > >> -----Original Message----- >> From: nitin.gizare at wipro.com [mailto:nitin.gizare at wipro.com] >> Sent: Thursday, September 24, 2009 8:17 PM >> To: redhat-sysadmin-list at redhat.com >> Subject: ssh timeout >> >> HI >> >> >> >> I am running script using ssh to capture load of some parameters of >> remote machine. >> >> But if one of machine is down script does not go forward and will be >> waiting for to come up and complete ssh connections. >> >> I would like to set some time out in which case if machine does not >> response it should time out on ssh and proceed for next steps. >> >> >> >> Please help me with this settings >> >> >> >> Rgds >> >> Nitin >> > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From HowardC at prpa.org Fri Sep 25 15:48:02 2009 From: HowardC at prpa.org (Howard, Chris) Date: Fri, 25 Sep 2009 09:48:02 -0600 Subject: ssh timeout In-Reply-To: <4ABCE36B.8020001@hp.com> References: <1305E9F69BC3CE49ABCDC8E00492F70204EE716C@titan.internal.prpa.org> <4ABCE36B.8020001@hp.com> Message-ID: <1305E9F69BC3CE49ABCDC8E00492F70204EE718E@titan.internal.prpa.org> I wasn't advocating a particular solution, just pointing out some. Since not all processes are as well apportioned as ssh, maybe a shell timeout technique will come in handy for other purposes someday. Or maybe not. > -----Original Message----- > From: Sutton, Harry (MSE) [mailto:harry.sutton at hp.com] > Sent: Friday, September 25, 2009 9:36 AM > To: redhat-sysadmin-list at redhat.com > Subject: Re: ssh timeout > > But as someone else pointed out earlier, ssh already has built-in > mechanisms for dealing with this (TCPKeepAlive, ClientAliveInterval, > ClientAliveCountMax), so why jump through all these other hoops to > attain this functionality? > > /Harry > > On 09/25/2009 11:16 AM, Howard, Chris wrote: > > You can kill a child process after a certain time > > has elapsed. > > > > So, you would have a parent shell script start > > up the ssh script and put it in the background (&). > > Then call sleep for some > > number of seconds. When it wakes up if the > > child is still running ('kill -0 $pid') > > then you send it a kill signal ('kill -9 $pid'). > > Use a file in /tmp for the child to pass back results > > to the parent process if it succeeds. > > > > Or, I think you could use a timeout signal > > in a perl script. > > > > Or, I think you could have the remote machine > > use ssh to put its information onto a central > > monitoring machine periodically using cron or > > similar. Then your monitoring program would > > just look at that centralized information and > > not do an ssh at all. > > > > > > > > > >> -----Original Message----- > >> From: nitin.gizare at wipro.com [mailto:nitin.gizare at wipro.com] > >> Sent: Thursday, September 24, 2009 8:17 PM > >> To: redhat-sysadmin-list at redhat.com > >> Subject: ssh timeout > >> > >> HI > >> > >> > >> > >> I am running script using ssh to capture load of some parameters of > >> remote machine. > >> > >> But if one of machine is down script does not go forward and will be > >> waiting for to come up and complete ssh connections. > >> > >> I would like to set some time out in which case if machine does not > >> response it should time out on ssh and proceed for next steps. > >> > >> > >> > >> Please help me with this settings > >> > >> > >> > >> Rgds > >> > >> Nitin > >> > > > > -- > > redhat-sysadmin-list mailing list > > redhat-sysadmin-list at redhat.com > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > From harry.sutton at hp.com Fri Sep 25 15:51:15 2009 From: harry.sutton at hp.com (Sutton, Harry (MSE)) Date: Fri, 25 Sep 2009 11:51:15 -0400 Subject: ssh timeout In-Reply-To: <1305E9F69BC3CE49ABCDC8E00492F70204EE718E@titan.internal.prpa.org> References: <1305E9F69BC3CE49ABCDC8E00492F70204EE716C@titan.internal.prpa.org> <4ABCE36B.8020001@hp.com> <1305E9F69BC3CE49ABCDC8E00492F70204EE718E@titan.internal.prpa.org> Message-ID: <4ABCE6F3.6050207@hp.com> Understood - TMTOWTDI* is one of the founding principles ;-) /Harry *There's More Than One Way To Do It On 09/25/2009 11:48 AM, Howard, Chris wrote: > I wasn't advocating a particular solution, just pointing > out some. > > Since not all processes are as well apportioned as > ssh, maybe a shell timeout technique will come in handy > for other purposes someday. > > Or maybe not. > > > >> -----Original Message----- >> From: Sutton, Harry (MSE) [mailto:harry.sutton at hp.com] >> Sent: Friday, September 25, 2009 9:36 AM >> To: redhat-sysadmin-list at redhat.com >> Subject: Re: ssh timeout >> >> But as someone else pointed out earlier, ssh already has built-in >> mechanisms for dealing with this (TCPKeepAlive, ClientAliveInterval, >> ClientAliveCountMax), so why jump through all these other hoops to >> attain this functionality? >> >> /Harry >> >> On 09/25/2009 11:16 AM, Howard, Chris wrote: >> >>> You can kill a child process after a certain time >>> has elapsed. >>> >>> So, you would have a parent shell script start >>> up the ssh script and put it in the background (&). >>> Then call sleep for some >>> number of seconds. When it wakes up if the >>> child is still running ('kill -0 $pid') >>> then you send it a kill signal ('kill -9 $pid'). >>> Use a file in /tmp for the child to pass back results >>> to the parent process if it succeeds. >>> >>> Or, I think you could use a timeout signal >>> in a perl script. >>> >>> Or, I think you could have the remote machine >>> use ssh to put its information onto a central >>> monitoring machine periodically using cron or >>> similar. Then your monitoring program would >>> just look at that centralized information and >>> not do an ssh at all. >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: nitin.gizare at wipro.com [mailto:nitin.gizare at wipro.com] >>>> Sent: Thursday, September 24, 2009 8:17 PM >>>> To: redhat-sysadmin-list at redhat.com >>>> Subject: ssh timeout >>>> >>>> HI >>>> >>>> >>>> >>>> I am running script using ssh to capture load of some parameters of >>>> remote machine. >>>> >>>> But if one of machine is down script does not go forward and will >>>> > be > >>>> waiting for to come up and complete ssh connections. >>>> >>>> I would like to set some time out in which case if machine does not >>>> response it should time out on ssh and proceed for next steps. >>>> >>>> >>>> >>>> Please help me with this settings >>>> >>>> >>>> >>>> Rgds >>>> >>>> Nitin >>>> >>>> >>> -- >>> redhat-sysadmin-list mailing list >>> redhat-sysadmin-list at redhat.com >>> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >>> >>> >>> >> > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6148 bytes Desc: S/MIME Cryptographic Signature URL: From ben.kevan at gmail.com Fri Sep 25 08:51:59 2009 From: ben.kevan at gmail.com (Ben Kevan) Date: Fri, 25 Sep 2009 08:51:59 -0000 Subject: ssh timeout In-Reply-To: References: Message-ID: On Fri, 25 Sep 2009 02:16:34 -0000, wrote: > HI > > > I am running script using ssh to capture load of some parameters of > remote machine. > > But if one of machine is down script does not go forward and will be > waiting for to come up and complete ssh connections. > > I would like to set some time out in which case if machine does not > response it should time out on ssh and proceed for next steps. > > > Please help me with this settings > > > Rgds > > Nitin > I think everyone missed his point.. he didn't want ssh timeouts.. the original request is: "But if one of machine is down" So what you want is to do a ping to the machine, if ping fails then don't run the script: ping -c 1 -w 1 $SERV 1>/dev/null 2>&1 if [ $? -eq 0 ]; then Run the code you want to run else echo "$SERV is not up" fi -- If you don't know what you want, you end up with a lot you don't. -Fight Club From nitin.gizare at wipro.com Fri Sep 25 16:46:33 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Fri, 25 Sep 2009 22:16:33 +0530 Subject: ssh timeout References: Message-ID: HI Thanks but, some time I see that we can ping machine but server is hung state in which case I can not run ssh or can not connect at all. in such cases my script just stops and wating for host to respond Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com on behalf of Ben Kevan Sent: Fri 9/25/2009 2:21 PM To: redhat-sysadmin-list at redhat.com Subject: Re: ssh timeout On Fri, 25 Sep 2009 02:16:34 -0000, wrote: > HI > > > I am running script using ssh to capture load of some parameters of > remote machine. > > But if one of machine is down script does not go forward and will be > waiting for to come up and complete ssh connections. > > I would like to set some time out in which case if machine does not > response it should time out on ssh and proceed for next steps. > > > Please help me with this settings > > > Rgds > > Nitin > I think everyone missed his point.. he didn't want ssh timeouts.. the original request is: "But if one of machine is down" So what you want is to do a ping to the machine, if ping fails then don't run the script: ping -c 1 -w 1 $SERV 1>/dev/null 2>&1 if [ $? -eq 0 ]; then Run the code you want to run else echo "$SERV is not up" fi -- If you don't know what you want, you end up with a lot you don't. -Fight Club -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From stan.hearn at nscorp.com Fri Sep 25 17:05:15 2009 From: stan.hearn at nscorp.com (Hearn, Stan J.) Date: Fri, 25 Sep 2009 13:05:15 -0400 Subject: ssh timeout In-Reply-To: References: Message-ID: <538F89E3C87A57448992D542F6B02C0364CE838BB1@GATUCEXCH03ASV.nscorp.ad.nscorp.com> >From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of >nitin.gizare at wipro.com >Sent: Friday, September 25, 2009 12:47 PM >To: redhat-sysadmin-list at redhat.com; redhat-sysadmin-list at redhat.com >Subject: RE: ssh timeout > >HI >? >Thanks but, some time I see that we can ping machine but server is hung state in which case I can not run ssh >or can not connect at all. >? >in such cases my script just stops and wating for host to respond >? >Rgds >Nitin Good point, just because ping is working doesn't mean ssh will. Doesn't the ssh connection eventually time out and then your script continues? You mentioned "But if one of machine is down script does not go forward and will be waiting for to come up and complete ssh connections." It should wait about 60 seconds, right? But then continues to process the rest? My suggestion was to take a single threaded process and make it multi-threaded by back grounding the individual connections. Keep in mind that lowering the ConnectionTimeout value may have an adverse effect for busy systems that take longer than usual to respond. The built-in TCP timeout should be enough of timeout. If your script is hanging that could be another completely different issue. Thanks, Stan From nitin.gizare at wipro.com Sat Sep 26 07:46:12 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Sat, 26 Sep 2009 13:16:12 +0530 Subject: ssh timeout References: <538F89E3C87A57448992D542F6B02C0364CE838BB1@GATUCEXCH03ASV.nscorp.ad.nscorp.com> Message-ID: HI ssh connections is not getting timed out.. Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com on behalf of Hearn, Stan J. Sent: Fri 9/25/2009 10:35 PM To: redhat-sysadmin-list at redhat.com Subject: RE: ssh timeout >From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of >nitin.gizare at wipro.com >Sent: Friday, September 25, 2009 12:47 PM >To: redhat-sysadmin-list at redhat.com; redhat-sysadmin-list at redhat.com >Subject: RE: ssh timeout > >HI > >Thanks but, some time I see that we can ping machine but server is hung state in which case I can not run ssh >or can not connect at all. > >in such cases my script just stops and wating for host to respond > >Rgds >Nitin Good point, just because ping is working doesn't mean ssh will. Doesn't the ssh connection eventually time out and then your script continues? You mentioned "But if one of machine is down script does not go forward and will be waiting for to come up and complete ssh connections." It should wait about 60 seconds, right? But then continues to process the rest? My suggestion was to take a single threaded process and make it multi-threaded by back grounding the individual connections. Keep in mind that lowering the ConnectionTimeout value may have an adverse effect for busy systems that take longer than usual to respond. The built-in TCP timeout should be enough of timeout. If your script is hanging that could be another completely different issue. Thanks, Stan -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4836 bytes Desc: not available URL: From nitin.gizare at wipro.com Sat Sep 26 07:46:54 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Sat, 26 Sep 2009 13:16:54 +0530 Subject: Passwd NIS expiry References: Message-ID: Hi all We have NIS server with RHEL 4.0 and have requirment of implemeting 45 days user passwd expiry for NIS account. Please let me know how do this. Thanks and Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From henson at acm.org Sat Sep 26 08:33:33 2009 From: henson at acm.org (Paul B. Henson) Date: Sat, 26 Sep 2009 01:33:33 -0700 (PDT) Subject: Passwd NIS expiry In-Reply-To: References: Message-ID: On Sat, 26 Sep 2009 nitin.gizare at wipro.com wrote: > We have NIS server with RHEL 4.0 and have requirment of implemeting 45 > days user passwd expiry for NIS account. Please let me know how do this. I don't mean to be rude, but have you considered hiring a consultant to help you out? You've asked a lot of questions recently, most of them pretty basic, and almost all of them exactly like this one: no specific problem or issue you need help with, but simply a statement of a general goal and a desire for someone to tell you how to do it. I'm not the list owner by any means, but I don't think it's the intention of this list to provide daily support for you to do your job. -- Paul B. Henson | (909) 979-6361 | http://www.csupomona.edu/~henson/ Operating Systems and Network Analyst | henson at csupomona.edu California State Polytechnic University | Pomona CA 91768 From nitin.gizare at wipro.com Sat Sep 26 09:34:48 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Sat, 26 Sep 2009 15:04:48 +0530 Subject: Passwd NIS expiry References: Message-ID: HI Thanks for u r comets, these are real issues we are facing. I was not lucky enough to get answers by searching in web. I am posting with hope I will get some fixes from expert. Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com on behalf of Paul B. Henson Sent: Sat 9/26/2009 2:03 PM To: redhat-sysadmin-list at redhat.com Subject: Re: Passwd NIS expiry On Sat, 26 Sep 2009 nitin.gizare at wipro.com wrote: > We have NIS server with RHEL 4.0 and have requirment of implemeting 45 > days user passwd expiry for NIS account. Please let me know how do this. I don't mean to be rude, but have you considered hiring a consultant to help you out? You've asked a lot of questions recently, most of them pretty basic, and almost all of them exactly like this one: no specific problem or issue you need help with, but simply a statement of a general goal and a desire for someone to tell you how to do it. I'm not the list owner by any means, but I don't think it's the intention of this list to provide daily support for you to do your job. -- Paul B. Henson | (909) 979-6361 | http://www.csupomona.edu/~henson/ Operating Systems and Network Analyst | henson at csupomona.edu California State Polytechnic University | Pomona CA 91768 -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From ravi.channavajhala at dciera.com Sat Sep 26 12:12:22 2009 From: ravi.channavajhala at dciera.com (Ravi Channavajhala) Date: Sat, 26 Sep 2009 17:42:22 +0530 Subject: Passwd NIS expiry In-Reply-To: References: Message-ID: <73739dc10909260512s6f51785er420f25bad2961881@mail.gmail.com> On Sat, Sep 26, 2009 at 3:04 PM, wrote: > HI > > Thanks for u r comets, these are real issues we are facing. > I was not lucky enough to get answers by searching in web. > I am posting with hope I will get some fixes from expert. > > Rgds > Nitin This is not really that hard. Here is a script called pwaging http://srv1.homeunix.com/twiki/bin/view/SunSA/PasswordAgeing Which is used for passwd expiry in NIS repositories. However, you read the script completely and thoroughly before going for implementation, and you need some serious changes in NIS maps, including modifying the yp Makefile. You also need to run this in batch mode only via cron, no real time update. The script doesn't have a man page but really self explanatory. It is not straight forward but it works, I know it coz I used it and was happy with it. On the other hand, why NIS? If you have AD authentication, simply integrate the Linux into AD with LDAP and Kerberos. > From: redhat-sysadmin-list-bounces at redhat.com on behalf of Paul B. Henson > Sent: Sat 9/26/2009 2:03 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: Passwd NIS expiry > > On Sat, 26 Sep 2009 nitin.gizare at wipro.com wrote: > >> We have NIS server with RHEL 4.0 and have requirment of implemeting 45 >> days user passwd expiry for NIS account. Please let me know how do this. > > I don't mean to be rude, but have you considered hiring a consultant to > help you out? You've asked a lot of questions recently, most of them pretty > basic, and almost all of them exactly like this one: no specific problem or > issue you need help with, but simply a statement of a general goal and a > desire for someone to tell you how to do it. I'm not the list owner by any > means, but I don't think it's the intention of this list to provide daily > support for you to do your job. > > > -- > Paul B. Henson? |? (909) 979-6361? |? http://www.csupomona.edu/~henson/ > Operating Systems and Network Analyst? |? henson at csupomona.edu > California State Polytechnic University? |? Pomona CA 91768 > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- Ravi Channavajhala CTO DCiEra (Extreme Data Center Efficiency) Plot #247, Road #78, Ground Floor Jubilee Hills Hyderabad 500 034 (AP) +91 96521 84670 From tirloni at gmail.com Sat Sep 26 12:33:23 2009 From: tirloni at gmail.com (Giovanni P. Tirloni) Date: Sat, 26 Sep 2009 09:33:23 -0300 Subject: Options available for nfs debugging RHEL 5.3 In-Reply-To: References: Message-ID: On Sep 25, 2009, at 10:21 AM, mahima kaushik wrote: > Hi, > > Having trouble with nfs mounts on red hat system. NFS server is a > MAC OSX server and it mounts fine for solaris clients. Problem is > only with red hat clients. > It is not allowing anyone to vi or cp on files that are owned by > groups that users are part of. commands like mv or :wq! works fine. > for example: > # df -k > nfsserver:/dir /localdir > # cd /localdir > # ls -la > rwxrwxr-x user1 group1 file.txt > # id > user3 (group1) > # echo hi > file.txt > file exists > # echo hi >> file.txt (works fine) > > rpc_debug and nfs_debug are not generating enough output for me to > troubleshoot it correctly. > Any help is appreciated! > mk Any special permissions/attributes for this directory on the MAC OSX server ? Have you checked if the user/group IDs match? Giovanni P. Tirloni tirloni at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Sat Sep 26 13:05:37 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Sat, 26 Sep 2009 18:35:37 +0530 Subject: Passwd NIS expiry References: <73739dc10909260512s6f51785er420f25bad2961881@mail.gmail.com> Message-ID: HI Thanks million for help and I will check this Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com on behalf of Ravi Channavajhala Sent: Sat 9/26/2009 5:42 PM To: redhat-sysadmin-list at redhat.com Subject: Re: Passwd NIS expiry On Sat, Sep 26, 2009 at 3:04 PM, wrote: > HI > > Thanks for u r comets, these are real issues we are facing. > I was not lucky enough to get answers by searching in web. > I am posting with hope I will get some fixes from expert. > > Rgds > Nitin This is not really that hard. Here is a script called pwaging http://srv1.homeunix.com/twiki/bin/view/SunSA/PasswordAgeing Which is used for passwd expiry in NIS repositories. However, you read the script completely and thoroughly before going for implementation, and you need some serious changes in NIS maps, including modifying the yp Makefile. You also need to run this in batch mode only via cron, no real time update. The script doesn't have a man page but really self explanatory. It is not straight forward but it works, I know it coz I used it and was happy with it. On the other hand, why NIS? If you have AD authentication, simply integrate the Linux into AD with LDAP and Kerberos. > From: redhat-sysadmin-list-bounces at redhat.com on behalf of Paul B. Henson > Sent: Sat 9/26/2009 2:03 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: Passwd NIS expiry > > On Sat, 26 Sep 2009 nitin.gizare at wipro.com wrote: > >> We have NIS server with RHEL 4.0 and have requirment of implemeting 45 >> days user passwd expiry for NIS account. Please let me know how do this. > > I don't mean to be rude, but have you considered hiring a consultant to > help you out? You've asked a lot of questions recently, most of them pretty > basic, and almost all of them exactly like this one: no specific problem or > issue you need help with, but simply a statement of a general goal and a > desire for someone to tell you how to do it. I'm not the list owner by any > means, but I don't think it's the intention of this list to provide daily > support for you to do your job. > > > -- > Paul B. Henson | (909) 979-6361 | http://www.csupomona.edu/~henson/ > Operating Systems and Network Analyst | henson at csupomona.edu > California State Polytechnic University | Pomona CA 91768 > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- Ravi Channavajhala CTO DCiEra (Extreme Data Center Efficiency) Plot #247, Road #78, Ground Floor Jubilee Hills Hyderabad 500 034 (AP) +91 96521 84670 -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From gebser at mousecar.com Sat Sep 26 13:20:38 2009 From: gebser at mousecar.com (ken) Date: Sat, 26 Sep 2009 09:20:38 -0400 Subject: segmentation fault on firefox 3.0.12 Message-ID: <4ABE1526.4060807@mousecar.com> Yep, this is the wrong group, but I thought I'd let folks here know this popped up on my vt screen...... I'm also asking where's a good place/person to submit this to. ---------------------------------------------------------------- /usr/lib/firefox-3.0.12/run-mozilla.sh: line 131: 19629 Segmentation fault "$prog" ${1+"$@"} [2]- Exit 139 firefox (wd: ~) ---------------------------------------------------------------- $ /usr/bin/firefox -v Mozilla Firefox 3.0.12, Copyright (c) 1998 - 2009 mozilla.org -- War is a failure of the imagination. --William Blake From trevor.hemsley at codefarm.com Sat Sep 26 17:46:32 2009 From: trevor.hemsley at codefarm.com (Trevor Hemsley) Date: Sat, 26 Sep 2009 18:46:32 +0100 Subject: segmentation fault on firefox 3.0.12 In-Reply-To: <4ABE1526.4060807@mousecar.com> References: <4ABE1526.4060807@mousecar.com> Message-ID: <4ABE5378.2060204@codefarm.com> ken wrote: > $ /usr/bin/firefox -v > Mozilla Firefox 3.0.12, Copyright (c) 1998 - 2009 mozilla.org Why so old? [root at here ~]# yum list firefox Loaded plugins: protectbase, rhnplugin, security 128 packages excluded due to repository protections Available Packages firefox.i386 3.0.14-1.el5_4 rhel-i386-server-5 [root at here ~]# -- Trevor Hemsley Infrastructure Engineer ................................................. * C A L Y P S O * 4th Floor, Tower Point, 44 North Road, Brighton, BN1 1YR, UK OFFICE +44 (0) 1273 666 350 FAX +44 (0) 1273 666 351 ................................................. www.calypso.com This electronic-mail might contain confidential information intended only for the use by the entity named. If the reader of this message is not the intended recipient, the reader is hereby notified that any dissemination, distribution or copying is strictly prohibited. * P * /*/ Please consider the environment before printing this e-mail /*/ From p.lambooy at narmida.com Sat Sep 26 20:51:06 2009 From: p.lambooy at narmida.com (Patrick Lambooy) Date: Sat, 26 Sep 2009 22:51:06 +0200 Subject: segmentation fault on firefox 3.0.12 In-Reply-To: <4ABE5378.2060204@codefarm.com> References: <4ABE1526.4060807@mousecar.com> <4ABE5378.2060204@codefarm.com> Message-ID: <5669B849-9295-4D66-97B9-14BF9AF0E657@narmida.com> this is a sysadmin list not google Sent from my iPhone 3Gs regards, Patrick Lambooy On 26 sep 2009, at 19:46, Trevor Hemsley wrote: > ken wrote: >> $ /usr/bin/firefox -v >> Mozilla Firefox 3.0.12, Copyright (c) 1998 - 2009 mozilla.org > Why so old? > > [root at here ~]# yum list firefox > Loaded plugins: protectbase, rhnplugin, security > 128 packages excluded due to repository protections > Available Packages > firefox.i386 > 3.0.14-1.el5_4 rhel-i386-server-5 > [root at here ~]# > > -- > > Trevor Hemsley > Infrastructure Engineer > ................................................. > * C A L Y P S O > * 4th Floor, Tower Point, > 44 North Road, > Brighton, BN1 1YR, UK > > OFFICE +44 (0) 1273 666 350 > FAX +44 (0) 1273 666 351 > > ................................................. > www.calypso.com > > This electronic-mail might contain confidential information intended > only for the use by the entity named. If the reader of this message is > not the intended recipient, the reader is hereby notified that any > dissemination, distribution or copying is strictly prohibited. > > * P * /*/ Please consider the environment before printing this e- > mail /*/ > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From ben.kevan at gmail.com Sun Sep 27 04:02:01 2009 From: ben.kevan at gmail.com (Ben Kevan) Date: Sat, 26 Sep 2009 21:02:01 -0700 Subject: ssh timeout In-Reply-To: References: Message-ID: Ok, them learn how to ask your question.. You indicated a server ip, not define by being able to ssh in. On 9/25/09, nitin.gizare at wipro.com wrote: > HI > > Thanks but, some time I see that we can ping machine but server is hung > state in which case I can not run ssh or can not connect at all. > > in such cases my script just stops and wating for host to respond > > Rgds > Nitin > > ________________________________ > > From: redhat-sysadmin-list-bounces at redhat.com on behalf of Ben Kevan > Sent: Fri 9/25/2009 2:21 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: ssh timeout > > > > On Fri, 25 Sep 2009 02:16:34 -0000, wrote: > >> HI >> >> >> I am running script using ssh to capture load of some parameters of >> remote machine. >> >> But if one of machine is down script does not go forward and will be >> waiting for to come up and complete ssh connections. >> >> I would like to set some time out in which case if machine does not >> response it should time out on ssh and proceed for next steps. >> >> >> Please help me with this settings >> >> >> Rgds >> >> Nitin >> > > > I think everyone missed his point.. he didn't want ssh timeouts.. the > original request is: > > "But if one of machine is down" > > So what you want is to do a ping to the machine, if ping fails then don't > run the script: > > ping -c 1 -w 1 $SERV 1>/dev/null 2>&1 > if [ $? -eq 0 ]; then > Run the code you want to run > else > echo "$SERV is not up" > fi > > > -- > If you don't know what you want, you end up with a lot you don't. -Fight > Club > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > From unixadm28 at gmail.com Mon Sep 28 11:43:37 2009 From: unixadm28 at gmail.com (mk) Date: Mon, 28 Sep 2009 07:43:37 -0400 Subject: Options available for nfs debugging RHEL 5.3 In-Reply-To: References: Message-ID: thanks Giovanni, No special attributes on mac side since other clients like solaris is mounting OK and not showing the same issue. UID and GID is matching. On Sat, Sep 26, 2009 at 8:33 AM, Giovanni P. Tirloni wrote: > On Sep 25, 2009, at 10:21 AM, mahima kaushik wrote: > > Hi, > > Having trouble with nfs mounts on red hat system. NFS server is a MAC OSX > server and it mounts fine for solaris clients. Problem is only with red hat > clients. > It is not allowing anyone to vi or cp on files that are owned by groups > that users are part of. commands like mv or :wq! works fine. > for example: > # df -k > nfsserver:/dir /localdir > # cd /localdir > # ls -la > rwxrwxr-x user1 group1 file.txt > # id > user3 (group1) > # echo hi > file.txt > file exists > # echo hi >> file.txt (works fine) > > rpc_debug and nfs_debug are not generating enough output for me to > troubleshoot it correctly. > Any help is appreciated! > mk > > > Any special permissions/attributes for this directory on the MAC OSX server > ? > > Have you checked if the user/group IDs match? > > Giovanni P. Tirloni > tirloni at gmail.com > > > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tirloni at gmail.com Mon Sep 28 12:11:25 2009 From: tirloni at gmail.com (Giovanni Tirloni) Date: Mon, 28 Sep 2009 09:11:25 -0300 Subject: Options available for nfs debugging RHEL 5.3 In-Reply-To: References: Message-ID: On Mon, Sep 28, 2009 at 8:43 AM, mk wrote: > thanks Giovanni, > No special attributes on mac side since other clients like solaris is > mounting OK and not showing the same issue. UID and GID is matching. > I would try to force NFS v2 or v3 on the Linux side and see what happens. This looks very strange. Giovanni P. Tirloni tirloni at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From unixadm28 at gmail.com Wed Sep 30 11:54:08 2009 From: unixadm28 at gmail.com (mk) Date: Wed, 30 Sep 2009 07:54:08 -0400 Subject: Options available for nfs debugging RHEL 5.3 In-Reply-To: References: Message-ID: Linux is using nfs3 by default. Forcing to nfs2 is actually automatically pushing it up to nfs3. this problem is very strange. Seems like ACL is being enforced for some reason when ACL is not applied in this case. MK On Mon, Sep 28, 2009 at 8:11 AM, Giovanni Tirloni wrote: > On Mon, Sep 28, 2009 at 8:43 AM, mk wrote: > >> thanks Giovanni, >> No special attributes on mac side since other clients like solaris is >> mounting OK and not showing the same issue. UID and GID is matching. >> > > I would try to force NFS v2 or v3 on the Linux side and see what happens. > This looks very strange. > > Giovanni P. Tirloni > tirloni at gmail.com > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: