Search Results

Search: Posts Made By: Junaid Subhani
Forum: Linux 08-02-2017
2,505
Posted By Junaid Subhani
Unable to update package.
I am trying to update an openssl package on my node.

# yum update openssl-1.0.1e-60.el7.x86_64
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from...
1,062
Posted By Junaid Subhani
Running a command in another cli
I am writing a script to login to to a mongo DB node and get the status of that machine. The usual work flow is :

[root@mongodb-secondary-1 ~]# mongo admin -u root -p root
MongoDB shell version:...
3,023
Posted By Junaid Subhani
Pgrep not showing desired output
I am searching for a process that should be up and running. Im using the following command

ps -ef | grep elasticsearch

to get

elastic+ 1673 1 0 Jan29 ? 05:08:56 /bin/java...
21,669
Posted By Junaid Subhani
Yes. It is up and is responding to other nodes in...
Yes. It is up and is responding to other nodes in the environment.
21,669
Posted By Junaid Subhani
Unable to ping default gateway
I have setup a Linux machine on my server but for some reason Im unable to reach my default gateway. This is causing me to not communicate with the outside world (unable to connect to CentOS repos)
...
958
Posted By Junaid Subhani
printf "%-25s %s\n" "$name" "$state" I...
printf "%-25s %s\n" "$name" "$state"

I believe the above line is what was missing. Thank you :)
958
Posted By Junaid Subhani
Presenting data in column format
I have written a script that that takes file names and breaks them apart.

File names are :

aal_mock.war.deployed
AuroralMockService-1.0.war.deployed
consumerProfile.war.deployed...
7,167
Posted By Junaid Subhani
I have passwordless access enabled to nodeB. ...
I have passwordless access enabled to nodeB.

[ansible@nodeA]$ ssh eric@nodeB
Last login: Mon Oct 31 12:55:35 2016 from 10.169.102.6
[eric@nodeB ~]$
7,167
Posted By Junaid Subhani
No tty present and no askpass program specified
I am trying to rsync files from NodeA to NodeB.

Using the below command.


/usr/bin/rsync -v -a -e "ssh" --rsync-path="sudo -u msd rsync" /home/ansible/templates/app/Sprint6/webapps...
4,740
Posted By Junaid Subhani
Timeout on while doing yum repodata
I am setting up a repo.

[root@vm1-msdp yum.repos.d]# cat /etc/yum.repos.d/test.repo
[TestRepo]
name=Test
baseurl=http://yum2.linux.test.se/repos/rhel-7-server-rpms/
enabled=1

When I do a...
1,079
Posted By Junaid Subhani
Arranging output for 2 commands
I am trying to run 2 sets of commands but want their output in a particular format.

The 2 commands are :

md5sum $WAR_DIR/$war
and
java -jar $WAR_DIR/$war | grep build.release.version | awk...
5,396
Posted By Junaid Subhani
Expect script not expecting the password prompt
I have a script that does an SSH into a remote node. It should expect the prompt and send the password.

#!/usr/bin/expect


set user [lindex $argv 0];
set pass [lindex...
1,438
Posted By Junaid Subhani
Issue while creating RPM
I am trying to create an RPM that basically creates a JBOss container. At the end it copies folders and files in a particular directory structure.

/root/rpmbuild/SOURCES
...
37,115
Posted By Junaid Subhani
Hello RudiC, Yes its more like if "name" is...
Hello RudiC,

Yes its more like if "name" is "a" , use URL4
If "name" is "b", use URL5
If "name" is "c", use URL6
37,115
Posted By Junaid Subhani
Parsing and Editing a json file with bash script
I am trying to automate editing of a json file using bash script.

The file I initially receive is

{
"appMap": {
"URL1": {
"name": "a"
},
"URL2": {
"name": "b"
...
6,939
Posted By Junaid Subhani
Grep and display multiple lines
Hi guys,

I have a log file that generates multiple logs about a query.

<query time='2016-04-13 13:01:50.825'>
<PagingRequestHandler>
<Before>brand:vmu</Before>
...
1,099
Posted By Junaid Subhani
Day Month Hour Minute I found something like...
Day Month Hour Minute

I found something like this which gives me the same format. Thats what I needed.

OLD=`date --date="$OLD_TIME"`
NEW=`date --date="$NEW_TIME"`
1,099
Posted By Junaid Subhani
Comparing different time formats
I am trying to do a comparison of files based on their last modified date.

I am pulling the first file from a webapp folder using curl.

curl --silent -I http://localhost:8023/conf/log4j2.xml |...
1,708
Posted By Junaid Subhani
Thank You Ravinder. It was a very simple solution...
Thank You Ravinder. It was a very simple solution that you provided and it works.

Can you let me know how it works ? man xargs didnt give much.

How does it even detect the spaces ?
1,708
Posted By Junaid Subhani
Force new line after second space
Hi guys,

I am trying to manipulate a text file.

An example of the file is :

65450524121|2015-11-20 20:17:59.0 15062464121|2015-12-19 11:44:23.0 01419644121|2016-03-19 09:56:41.0...
1,299
Posted By Junaid Subhani
Thanks worked perfectly.
Thanks worked perfectly.
1,299
Posted By Junaid Subhani
Send output of time command to file
I am measuring the time it takes for a wget command to complete.

Right now my command is:

time wget https://`ifconfig -a | grep '32.29.120' | cut -d: -f2 | cut -d' '...
Forum: Infrastructure Monitoring 02-20-2016
7,272
Posted By Junaid Subhani
Monitoring tools that do NOT require root privileges
Hi guys,

I am currently managing an application running on around 150 servers.

I only have application usage rights on those servers and do not have any root privileges.

I have an external...
Forum: IP Networking 02-13-2016
3,115
Posted By Junaid Subhani
SSH to remote host using SOCK5 proxy
I am trying to connect to a remote host C from my node host A.

HostA <====> HostB <====> HostC

A tunnel has already been formed using SOCKS5 between HostA and HostC.

Now I want to SSH from A...
1,309
Posted By Junaid Subhani
StringA can occur along with StringB StringA...
StringA can occur along with StringB
StringA can occur along with StringC

StringB and StringC cannot occur along in the same line.
Showing results 1 to 25 of 184

 
All times are GMT -4. The time now is 04:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy