Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
3
votes
2
answers
5011
views
IBM V7000 scripts for monitoring
Hello (I'm no hard core coder:), I try to develop a script to do some very basic monitoring on an IBM SVC. My goal is to get some information about the nodes and my quroum status and then send this information by mail. here's my code so far (I understood that grep command doesn't "work" on CLI for S...
Hello (I'm no hard core coder:),
I try to develop a script to do some very basic monitoring on an IBM SVC.
My goal is to get some information about the nodes and my quroum status and then send this information by mail.
here's my code so far (I understood that grep command doesn't "work" on CLI for SVC).
#check nodes of the cluster with lsnodes and parse status
ssh admin@SVCName superuser>svcinfo lsnode | while read id name sn wwnn status temp;do echo $name" "$status;done
#check quorum status with lsquorum and parse status
ssh admin@SVCName superuser>svcinfo lsquorum | while read quorum_index status id name controller_id controller_name active temp; do echo $controller_name" "$active;done
My problem is sending an email from the CLI to designed users. I don't find any valuable information anywhere on the internet.
HINT: this script will be deployed on a jumppoint server (probably a windows server) in production, I cannot allow the installation of any exectution environment such as cigwin or perl or anything).
Could you help me with that ?
Foxillon
(31 rep)
Apr 23, 2013, 11:55 AM
• Last activity: Jul 1, 2025, 06:01 AM
0
votes
1
answers
71
views
How to delete file and folder with irregular names
the content of some folder is like that: [![enter image description here][1]][1] [1]: https://i.sstatic.net/H3voq1sO.png Folder name is empty File name is asterisk I can find `inode` of these file and folder OS - z/OS OMVS, so, there is no option `-delete` on `find` command How can I safely delete t...
the content of some folder is like that:
Folder name is empty
File name is asterisk
I can find

inode
of these file and folder
OS - z/OS OMVS, so, there is no option -delete
on find
command
How can I safely delete these?
If there is no safe way, I can leave it as it is.
Barat Sahdzijeu
(185 rep)
May 11, 2024, 09:16 AM
• Last activity: May 11, 2024, 09:20 PM
0
votes
1
answers
10197
views
"gzip: stdin: invalid compressed data--format violated" error when extracting a tgz archive
I have to open a tar file. I used the following command line on my Unix shell: tar xfvz raw-GWA-data.tgz I found the following error message: gzip: stdin: invalid compressed data--format violated tar: Child returned status 1 tar: Error is not recoverable: exiting now Then, I tried the following comm...
I have to open a tar file. I used the following command line on my Unix shell:
tar xfvz raw-GWA-data.tgz
I found the following error message:
gzip: stdin: invalid compressed data--format violated
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Then, I tried the following command lines:
tar -xvzf raw-GWA-data.tgz
tar --extract --file raw-GWA-data.tgz
tar xzf raw-GWA-data.tgz
tar -xf raw-GWA-data.tgz
and I found the same error without the possibility of opening my tar file.
What's wrong? There're alternative ways to open my tar file?
FEDERICA SANTONASTASO
(155 rep)
Dec 8, 2021, 03:24 PM
• Last activity: Apr 16, 2024, 05:49 AM
0
votes
1
answers
56
views
run a MySQL service before service application in Linux?
What are the risks that maybe I get if I run a MySQL service before service application in Linux? [Unit] Description=**** After=mysql.service Requires=mysql.service [Service] ExecStart=**** Restart=always [Install] WantedBy=multi-user.target
What are the risks that maybe I get if I run a MySQL service before service application in Linux?
[Unit]
Description=****
After=mysql.service
Requires=mysql.service
[Service]
ExecStart=****
Restart=always
[Install]
WantedBy=multi-user.target
Qusai Al-Haj Hasan
(3 rep)
Jun 21, 2021, 08:26 AM
• Last activity: Jun 21, 2021, 12:15 PM
-2
votes
1
answers
42
views
Yacs Libraryis not included in standard RHEL distribution
Today morning asking the admin of our server if they could install a library that is missing to run our python code. The answer war, they couldnt do that cause: *"This library is not included in standard RHEL distribution"* What does it means ? Why is the reason cause that library is not include and...
Today morning asking the admin of our server if they could install a library that is missing to run our python code. The answer war, they couldnt do that cause:
*"This library is not included in standard RHEL distribution"*
What does it means ? Why is the reason cause that library is not include and all the othes do ?
Enrique Benito Casado
(99 rep)
May 7, 2021, 07:03 AM
• Last activity: May 7, 2021, 01:20 PM
0
votes
0
answers
182
views
awk on unix AS/400 (Qshell)
In linux, I can do this echo "hello" > a.txt awk 'sub("l", "x" )' a.txt hexlo But if I do it on Qshell, I get: echo "hello" > a.txt awk 'sub("l", "x" )' a.txt awk: 0602-562 Field $($ I have no idea of what's going on, cannot find much about awk on qshell online. Please help...
In linux, I can do this
echo "hello" > a.txt
awk 'sub("l", "x" )' a.txt
hexlo
But if I do it on Qshell, I get:
echo "hello" > a.txt
awk 'sub("l", "x" )' a.txt
awk: 0602-562 Field $($
I have no idea of what's going on, cannot find much about awk on qshell online. Please help...
Sfp
(103 rep)
Sep 16, 2020, 05:27 PM
• Last activity: Sep 16, 2020, 06:47 PM
2
votes
2
answers
10190
views
Xclock does not pop up
I'm trying to ssh a machine via xshell 5. And Xmanager (Passive) is working on background. I try to export display like this export DISPLAY=10.126.*.*:0.0 xclock But nothing shows up. When i type CTRL+Z, it returns [1]+ Stopped xclock *Firewall is turned off. *Im trying to run xclock on remote machi...
I'm trying to ssh a machine via xshell 5. And Xmanager (Passive) is working on background. I try to export display like this
export DISPLAY=10.126.*.*:0.0
xclock
But nothing shows up. When i type CTRL+Z, it returns
+ Stopped xclock
*Firewall is turned off.
*Im trying to run xclock on remote machine and show on the local machine.
YErdogan
(21 rep)
Dec 2, 2015, 01:37 PM
• Last activity: Dec 26, 2018, 05:03 PM
0
votes
1
answers
1078
views
AIX sftp to IBM sftp server using proxy fails
We have support server where would need to upload the snap data to IBM using proxy connection. We have already whitelisted the Server IP Address on the proxy side, Tried the ssh -J proxyjump option getting connection closed error. ssh_exchange_identification: Connection closed by remote host. Server...
We have support server where would need to upload the snap data to IBM using proxy connection. We have already whitelisted the Server IP Address on the proxy side, Tried the ssh -J proxyjump option getting connection closed error.
ssh_exchange_identification: Connection closed by remote host.
Server IP: 10.88.35.12
Proxy Server Details: 10.83.9.75
port: 8080
IBM SFTP Server Details: sftp.ecurep.ibm.com
Port: 22
satsensort
(87 rep)
Dec 21, 2018, 09:41 AM
• Last activity: Dec 26, 2018, 09:02 AM
0
votes
1
answers
119
views
CentOS 6.5 livecd ISO fails to boot in IBM x240 server
CentOS 6.5 live CD ISO downloaded from http://archive.kernel.org/centos-vault/6.5/isos/x86_64/CentOS-6.5-x86_64-LiveCD.iso fails to boot in my IBM x240 server. Boot Failed. IMM1:CD/DVD I tried Optimized boot options enable/disable but it did not work. Do i need to configure anything in the BIOS.
CentOS 6.5 live CD ISO downloaded from http://archive.kernel.org/centos-vault/6.5/isos/x86_64/CentOS-6.5-x86_64-LiveCD.iso fails to boot in my IBM x240 server.
Boot Failed. IMM1:CD/DVD
I tried Optimized boot options enable/disable but it did not work. Do i need to configure anything in the BIOS.
mohammed mujtaba ahmed
(1 rep)
Jul 25, 2017, 03:15 PM
• Last activity: Nov 21, 2018, 09:21 PM
-1
votes
2
answers
192
views
Tail a file on Mainframe that needs conversion
I want to tail a log file in Unix system services on a Mainframe LPAR that needs a ASCII to EBCDIC conversion?
I want to tail a log file in Unix system services on a Mainframe LPAR that needs a ASCII to EBCDIC conversion?
matt
(1 rep)
Dec 22, 2016, 04:08 PM
• Last activity: Dec 22, 2016, 05:13 PM
1
votes
0
answers
628
views
Does RPM automatically retry failed download attempts?
My particular situation isn't on a Linux box, rather an IBM i. But I'm running RPM within a BASH shell and attempted to download and install nano using RPM - it failed. I didn't think anything of it, but now I'm noticing authority failures to the RPM download directory whenever I restart my web serv...
My particular situation isn't on a Linux box, rather an IBM i. But I'm running RPM within a BASH shell and attempted to download and install nano using RPM - it failed. I didn't think anything of it, but now I'm noticing authority failures to the RPM download directory whenever I restart my web server instance.
I'm pulling at strings by now, but my best guess is that RPM is attempting to retry the failed download/install every time I restart the web server instance. I understand IBM i and Linux are different, but from a Linux standpoint, Does RPM automatically retry failed download/install attempts? If not, does it do anything in the event of a failed download/install beyond an error message stating it failed?
**Note***: I really don't think RPM requires a web server to function, but like I said I'm just pulling on any string I can think of at the moment.
d.lanza38
(111 rep)
Jan 27, 2016, 09:23 PM
• Last activity: Jul 24, 2016, 03:32 PM
4
votes
1
answers
545
views
Unix vs OS360 (History)
I read the [history][1] of Unix operating system and also read the original Unix [paper][2] by Thompson and Ritchie. In their paper they mention some key features which Unix uses. Some terminologies including file handling (read, write, ...), process management (fork, ...), user access controls (sup...
I read the history of Unix operating system and also read the original Unix paper by Thompson and Ritchie. In their paper they mention some key features which Unix uses. Some terminologies including file handling (read, write, ...), process management (fork, ...), user access controls (super user, permissions, ...), were defined and explained in that paper.
My question is, were those words and terminologies really new at that time (1974)?
If the answer is yes, then how were mainframes working before Unix? I mean how IBM OS/360 was working? Didn't they (IBM guys) use file and processes for batch jobs and storing information?
If the answer is no, then what was really new in Unix?!
mahmood
(1271 rep)
Apr 19, 2016, 12:54 PM
• Last activity: Apr 19, 2016, 06:53 PM
0
votes
1
answers
1514
views
How to restore a whole OS from TSM image backup?
With a: dsmc b image FSNAMEHERE I can back up all the filesystem in a machine. But how can I restore it? Boot off a liveCD, install TSM client somehow, then restore image backup to local disk? OS is a redhat.
With a:
dsmc b image FSNAMEHERE
I can back up all the filesystem in a machine. But how can I restore it?
Boot off a liveCD, install TSM client somehow, then restore image backup to local disk? OS is a redhat.
LoukiosValentine79
(1569 rep)
Sep 14, 2015, 08:24 AM
• Last activity: Sep 18, 2015, 10:18 AM
6
votes
2
answers
3686
views
What is the best way to find a list of several strings within a large text file
The short, general question is: In Unix/Linux, what is the best way to find a list of several (about 150) strings within a large text file? I am asking this to all Unix/Linux experts as a general question, in the hopes that I can find a solution that pertains to my particular case: I have a feeling...
The short, general question is: In Unix/Linux, what is the best way to find a list of several (about 150) strings within a large text file?
I am asking this to all Unix/Linux experts as a general question, in the hopes that I can find a solution that pertains to my particular case: I have a feeling this is going to take a little tinkering.
I have a large text file (actually, an MVS dataset) on an IBM Unix System Services (USS) machine-- I believe it is somewhere around 6GB.
I also have a list of about 150 5-character identifiers in the format AAAAA that I need to find within this file-- that is, I'd like to extract rows from the file that contain any one of the 150 the specific identifers that I am looking for.
The format of each line in the large file is:
00000000000A00000000000000000AAAAA\n
where 0 represents a digit, and A represents an alphanumeric character. The string that I'm searching for is always at the end of the row.
Working with datasets seems to be a little awkward in USS, and I am not able to copy it over into the Unix environment because it is too large. The standard Unix utilities don't all operate on datasets (dd for example); however sed, awk, and grep seem to work to some degree (although the command line switches seem to be a bit different).
I can grep the dataset as follows:
cat "//'MVS.DATASET'" | grep -e"LOOKFOR1" -e"LOOKFOR2" -e"LOOKFOR3" > output_to_file.txt
However, it won't allow me to grep for all 150 items on one line; I could split it up and run it several times, but I feel like there should a better way.
I tried using a sed script as follows, but I don't know sed at all, and I got an error that said "garbage after command". I saved the following in a file sed-script.txt:
s/AAA01/&/p
s/AAA30/&/p
s/AAA10/&/p
... etc ...
and then ran
sed -f sed-script.txt "//'MVS.DATASET'"
Again, this failed with "sed: FSUM7294 garbage after command".
So,
1. How would one normally tackle this problem in the "average" Unix environment, and 2. Do you have any specific insights to this particular case?
transistor1
(297 rep)
Sep 7, 2012, 05:45 PM
• Last activity: Nov 5, 2013, 02:21 PM
1
votes
1
answers
1015
views
numfsbufs and mount/remount of File Systems
What is the right the procedure to set the numfsbufs parameter? The current value of the parameter is 196 App_Server:>ioo -o numfsbufs numfsbufs = 196 The details of the server (prtconf command) are at http://dpaste.com/1317430/ We want to change the value of numfsbufs parameter to 512 This is based...
What is the right the procedure to set the numfsbufs parameter?
The current value of the parameter is 196
App_Server:>ioo -o numfsbufs
numfsbufs = 196
The details of the server (prtconf command) are at http://dpaste.com/1317430/
We want to change the value of numfsbufs parameter to 512
This is based on the analysis of increasing value of I/O blocked
52534 pending disk I/Os blocked with no pbuf
0 paging space I/Os blocked with no psbuf
2228 filesystem I/Os blocked with no fsbuf
0 client filesystem I/Os blocked with no fsbuf
313699 external pager filesystem I/Os blocked with no fsbuf
The command to do this is
ioo -p -o numfsbufs=512
What I am not sure about is how to handle the mount/unmount of Volume Groups
Do i need to mount and unmount each and every file system? Or can i just restart the server after setting this variable and it will take care of itself
The link at http://dpaste.com/1317412/ shows the various volume groups.
Please guide as I am confused what the procedure should be.
The system administrators are asking a detailed set of instruction and hence I am trying to work out a document detailing the various steps.
Guddu
(253 rep)
Jul 25, 2013, 08:09 PM
• Last activity: Jul 25, 2013, 09:43 PM
Showing page 1 of 15 total questions