Re: pid swap space used
On Fri, Apr 13th, 2012 at 3:41 PM, Mark Post wrote: /proc/*/smaps exists in SLES10, but there's no Swap: fields in them. Arrgggh. That'll certainly get a bunch of zeroes out of that script. Note to self, _never_ presume nuthin ... Thanks Mark. -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: bash question.
Hi John, On Thu, Apr 12, 2012 at 10:42:33PM -0500, John McKown wrote: bash has variables, such as $PATH and $HOME and maybe even $i. If a variable has been the subject of an export command, you find all of them which are export'd using the printenv command. But is there some way to find the ones which exist, but have not been export'd? No, I guess I don't have a real need for this. But I'm curious. You can use declare -p. Exported variables are displyed with -x, for example: declare -x EDITOR=vim Take a look at help declare for other options like if a variable is an array... -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: bash question.
I must learn how to read the manuals. Yes, I did do an info bash. It's nice and easy to use to find what a command does, if you know the command. But it is difficult, at least for me, to find a command based on what it does. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Mark Post Sent: Thursday, April 12, 2012 10:48 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: bash question. On 4/12/2012 at 11:42 PM, John McKown joa...@swbell.net wrote: bash has variables, such as $PATH and $HOME and maybe even $i. If a variable has been the subject of an export command, you find all of them which are export'd using the printenv command. But is there some way to find the ones which exist, but have not been export'd? I use env or set. Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: bash question.
Very nice! Thanks. I guess that I'm going to end up dedicating a weekend day to just read the entire output from info bash. Luckily, I can create a text file from it, convert it to PDF format, then read the PDF directly on my Kindle DX or Android tablet. I really don't like reading manuals on my PC screen because it is landscape instead of portrait. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Hendrik Brueckner Sent: Friday, April 13, 2012 3:47 AM To: LINUX-390@VM.MARIST.EDU Subject: Re: bash question. Hi John, On Thu, Apr 12, 2012 at 10:42:33PM -0500, John McKown wrote: bash has variables, such as $PATH and $HOME and maybe even $i. If a variable has been the subject of an export command, you find all of them which are export'd using the printenv command. But is there some way to find the ones which exist, but have not been export'd? No, I guess I don't have a real need for this. But I'm curious. You can use declare -p. Exported variables are displyed with -x, for example: declare -x EDITOR=vim Take a look at help declare for other options like if a variable is an array... -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: bash question.
McKown, John writes: Very nice! Thanks. I guess that I'm going to end up dedicating a weekend day to just read the entire output from info bash. Luckily, I can create a text file from it, convert it to PDF format, then read the PDF directly on my Kindle DX or Android tablet. In case you weren't aware of it already, the utilities used to process the *roff macros used in man pages support typesetting to PostScript as well as generating simple text output. So typing man -t bash bash-man.ps will generate you a nicely formatted PostScript version of the man page in bash-man.ps, fancy fonts and all, instead of what you'd get from just taking the text version. That's suitable for direct pringting but you can instead just ps2pdf bash-man.ps to produce your bash-man.pdf PDF version. Using info bash instead of man bash uses a slightly different source of documentation (the FSF document their own programs in their own GNU info format instead of man pages) but you'll nearly always find that some nice people have already ensured that your distro has man pages for the programs as well and that they have either exactly the same content or are close enough for most purposes. There are ways of generating various typeset-like formats from info format too but I forget what they are and I don't think they are as simple as just adding -t to your man command invocation. --Malcolm -- Malcolm Beattie Mainframe Systems and Software Business, Europe IBM UK -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: bash question.
Oh, that is beautiful! Thank you very much. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Malcolm Beattie Sent: Friday, April 13, 2012 11:01 AM To: LINUX-390@VM.MARIST.EDU Subject: Re: bash question. snip In case you weren't aware of it already, the utilities used to process the *roff macros used in man pages support typesetting to PostScript as well as generating simple text output. So typing man -t bash bash-man.ps will generate you a nicely formatted PostScript version of the man page in bash-man.ps, fancy fonts and all, instead of what you'd get from just taking the text version. That's suitable for direct pringting but you can instead just ps2pdf bash-man.ps to produce your bash-man.pdf PDF version. Using info bash instead of man bash uses a slightly different source of documentation (the FSF document their own programs in their own GNU info format instead of man pages) but you'll nearly always find that some nice people have already ensured that your distro has man pages for the programs as well and that they have either exactly the same content or are close enough for most purposes. There are ways of generating various typeset-like formats from info format too but I forget what they are and I don't think they are as simple as just adding -t to your man command invocation. --Malcolm -- Malcolm Beattie -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Linux router
I've been working on setting up a zLinux (SLES 11) system to act as a router between two networks (its on an ensemble, but that doesn't really matter at the moment). Everything is set up within Linux (yes, I have IP routing turned on) and the real network has been updated to have a static route to this system. Pings are successful to the main IP address on the adapter (on a vswitch connected to a 1000BaseT OSA). Pings are also successful from the other adapter as well. However, when we try to ping the adapter on the far side of the router from the network, the packets make it as far as the OSA and then drop. Our TCPIP routing guru, Alan Altmark, reminded me that the PRIROUTER setting has to be turned on in the vswitch for the OSA to recognize that it will be routing other traffic through it. I've got that set now, but am still seeing the problem. If this were a VM TCPIP machine, I would have to also set PRIROUTER on the DEVICE statement to get this to work (I'm tempted to switch over to this if I can't get it working). Is there an equivelent setting for qeth? I've been googling around, but haven't found anything. Martha -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: Linux router
Hi, Martha, -- Maybe set the default route on the inside guests? But also, with OSA, you may need to tickle it into playing nice. Alan would know more, but am guessing you either need to explicitly set it to allow forwarding (which PRIROUTER may affect) or run it in layer 2 mode. I've used Linux as a router for years. Until a hardware failure about 18 months ago, a Linux box served as my primary router/gateway on the home network. Never heard of anything quite like PRIROUTER per se. But ... all parties had to know about the routes. The outside guys needed to know to get to that subnet via the external addr of the Linux box. The inside guys needed to know that their default route was by way of the internal addr of the Linux box. As it happens, I still use a Linux box as a primary router. Since my ISP does not yet provide native IPv6, I use a tunnel for IPv6. The details are a little different, but the concept is the same. Outside world knows the path into my subnet. Machines on my subnet know to use the internal addr of that host as their default route. I hope this helps. -- R; Rick Troth Velocity Software http://www.velocitysoftware.com/ On Fri, Apr 13, 2012 at 2:52 PM, Martha McConaghy u...@vm.marist.edu wrote: I've been working on setting up a zLinux (SLES 11) system to act as a router between two networks (its on an ensemble, but that doesn't really matter at the moment). Everything is set up within Linux (yes, I have IP routing turned on) and the real network has been updated to have a static route to this system. Pings are successful to the main IP address on the adapter (on a vswitch connected to a 1000BaseT OSA). Pings are also successful from the other adapter as well. However, when we try to ping the adapter on the far side of the router from the network, the packets make it as far as the OSA and then drop. Our TCPIP routing guru, Alan Altmark, reminded me that the PRIROUTER setting has to be turned on in the vswitch for the OSA to recognize that it will be routing other traffic through it. I've got that set now, but am still seeing the problem. If this were a VM TCPIP machine, I would have to also set PRIROUTER on the DEVICE statement to get this to work (I'm tempted to switch over to this if I can't get it working). Is there an equivelent setting for qeth? I've been googling around, but haven't found anything. Martha -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- -- R; Rick Troth Velocity Software http://www.velocitysoftware.com/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: Linux router
Martha, If your SLES11 is SP1 and if, when you receive a ping, you see the RX count tick up, while the TX count remains the same, you might want to consider: Applying SLES 11 SP 1 Causing Communication Issues at http://www.novell.com/support/search.do?cmd=displayKCdocType=kcexternalId=7007649sliceId=1docTypeID=DT_TID_1_1 Mike O'Reilly IBM Linux Change Team Martha McConaghy URMM@vm.marist.e duTo Sent by: Linux on LINUX-390@vm.marist.edu, 390 Port cc linux-...@vm.mar ist.edu Subject Linux router 04/13/2012 11:52 AM Please respond to Linux on 390 Port linux-...@vm.mar ist.edu I've been working on setting up a zLinux (SLES 11) system to act as a router between two networks (its on an ensemble, but that doesn't really matter at the moment). Everything is set up within Linux (yes, I have IP routing turned on) and the real network has been updated to have a static route to this system. Pings are successful to the main IP address on the adapter (on a vswitch connected to a 1000BaseT OSA). Pings are also successful from the other adapter as well. However, when we try to ping the adapter on the far side of the router from the network, the packets make it as far as the OSA and then drop. Our TCPIP routing guru, Alan Altmark, reminded me that the PRIROUTER setting has to be turned on in the vswitch for the OSA to recognize that it will be routing other traffic through it. I've got that set now, but am still seeing the problem. If this were a VM TCPIP machine, I would have to also set PRIROUTER on the DEVICE statement to get this to work (I'm tempted to switch over to this if I can't get it working). Is there an equivelent setting for qeth? I've been googling around, but haven't found anything. Martha -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Linux router
We ran into this issue on a multi-homed Intel Linux box running Samba months about a year ago when we upgraded the server. In our case, we had to set the value for rp_filter to zero. You can read more about this change here: http://ifup.org/2011/02/03/reverse-path-filter-rp_filter-by-example/ Aria -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Michael O'Reilly Sent: Friday, April 13, 2012 4:28 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: Linux router Martha, If your SLES11 is SP1 and if, when you receive a ping, you see the RX count tick up, while the TX count remains the same, you might want to consider: Applying SLES 11 SP 1 Causing Communication Issues at http://www.novell.com/support/search.do?cmd=displayKCdocType=kcexternalId= 7007649sliceId=1docTypeID=DT_TID_1_1 Mike O'Reilly IBM Linux Change Team Martha McConaghy URMM@vm.marist.e duTo Sent by: Linux on LINUX-390@vm.marist.edu, 390 Port cc linux-...@vm.mar ist.edu Subject Linux router 04/13/2012 11:52 AM Please respond to Linux on 390 Port linux-...@vm.mar ist.edu I've been working on setting up a zLinux (SLES 11) system to act as a router between two networks (its on an ensemble, but that doesn't really matter at the moment). Everything is set up within Linux (yes, I have IP routing turned on) and the real network has been updated to have a static route to this system. Pings are successful to the main IP address on the adapter (on a vswitch connected to a 1000BaseT OSA). Pings are also successful from the other adapter as well. However, when we try to ping the adapter on the far side of the router from the network, the packets make it as far as the OSA and then drop. Our TCPIP routing guru, Alan Altmark, reminded me that the PRIROUTER setting has to be turned on in the vswitch for the OSA to recognize that it will be routing other traffic through it. I've got that set now, but am still seeing the problem. If this were a VM TCPIP machine, I would have to also set PRIROUTER on the DEVICE statement to get this to work (I'm tempted to switch over to this if I can't get it working). Is there an equivelent setting for qeth? I've been googling around, but haven't found anything. Martha -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: 2012 VM Workshop details updated
Sorry to say, I probably won't be able to make it. I was looking forward to this with it being the 40th anniversary of VM. However, this has been scheduled against the Canada Day holiday (our 4th of July). I know most of the attendees will be from the US, but this will pretty much kill any chance of Canadians coming. PS: SHARE did the same thing by scheduling SHARE in Anaheim against the August 1 long weekend in Canada! Jim -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/