how to modify port ( OS is redhat 6.1.0)

beyond911

New Member
Credits
140
Hi Expert
When I update rpm package , I modify port from 26821 to 26822 careless.
how do I modify port to 26821? I have following screenshot. it is the process that I update rpm package.
20210120163256781.png
 

Attachments



f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
Check the software configuration file in /etc somewhere, if not check the documentation of the software you are installing since it doesn't seem to be software from the redhat repositories since you are installing it from an rpm. Unless you have a ELS License you shouldn't be running RHEL6 since it's End of Life was November 2020.
 
Last edited:

beyond911

New Member
Credits
140
Check the software configuration file in /etc somewhere, if not check the documentation of the software you are installing since it doesn't seem to be software from the redhat repositories since you are installing it from an rpm. Unless you have a ELS License you shouldn't be running RHEL6 since it's End of Life was November 2020.
In etc, I don't find any configuration file . i may uninstall it and install it .
 
Last edited:

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
Can you show the output of:
Code:
rpm -ql info2soft-i2node
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
11,451
That is

i2node, NOT 2tnode

Please be careful to follow instructions. :)

Wizard
 

beyond911

New Member
Credits
140
That is

i2node, NOT 2tnode

Please be careful to follow instructions. :)

Wizard
[[email protected] ~]# rpm -ql info2soft-i2node
/etc/init.d/i2node
/etc/sdata/scripts
/etc/sdata/shellenv.conf
/etc/sdata/vddk_version
/etc/sdata/version
/etc/selinux/config.sdata
/usr/bin/DebugCollector
/usr/bin/HaDebug
/usr/bin/RecoverClient
/usr/bin/RecoverSvr
/usr/bin/UpDownload
/usr/bin/backup_cleaner
/usr/bin/checkcdp
/usr/bin/debugctl
/usr/bin/getcdptime
/usr/bin/i2cfg
/usr/bin/i2update
/usr/bin/mksnapshot
/usr/bin/repset
/usr/bin/rpcworkclient
/usr/bin/sdwork
/usr/bin/vumount
/usr/local/sdata/lib/libobk.so
/usr/local/sdata/lib/libvend.so
/usr/local/sdata/modules
/usr/local/sdata/modules/dattobd.ko
/usr/local/sdata/modules/el6
/usr/local/sdata/modules/el6/dattobd.ko
/usr/local/sdata/modules/el6/sfs3.ko
/usr/local/sdata/modules/el60
/usr/local/sdata/modules/el60/dattobd.ko
/usr/local/sdata/modules/el60/sfs3.ko
/usr/local/sdata/modules/el61
/usr/local/sdata/modules/el61/dattobd.ko
/usr/local/sdata/modules/el61/sfs3.ko
/usr/local/sdata/modules/el610
/usr/local/sdata/modules/el610/dattobd.ko
/usr/local/sdata/modules/el610/sfs3.ko
/usr/local/sdata/modules/el62
/usr/local/sdata/modules/el62/dattobd.ko
/usr/local/sdata/modules/el62/sfs3.ko
/usr/local/sdata/modules/el63
/usr/local/sdata/modules/el63/dattobd.ko
/usr/local/sdata/modules/el63/sfs3.ko
/usr/local/sdata/modules/el64
/usr/local/sdata/modules/el64/dattobd.ko
/usr/local/sdata/modules/el64/sfs3.ko
/usr/local/sdata/modules/el65
/usr/local/sdata/modules/el65/dattobd.ko
/usr/local/sdata/modules/el65/sfs3.ko
/usr/local/sdata/modules/el66
/usr/local/sdata/modules/el66/dattobd.ko
/usr/local/sdata/modules/el66/sfs3.ko
/usr/local/sdata/modules/el67
/usr/local/sdata/modules/el67/dattobd.ko
/usr/local/sdata/modules/el67/sfs3.ko
/usr/local/sdata/modules/el68
/usr/local/sdata/modules/el68/dattobd.ko
/usr/local/sdata/modules/el68/sfs3.ko
/usr/local/sdata/modules/el69
/usr/local/sdata/modules/el69/dattobd.ko
/usr/local/sdata/modules/el69/sfs3.ko
/usr/local/sdata/modules/el6uek61
/usr/local/sdata/modules/el6uek61/sfs3.ko
/usr/local/sdata/modules/el6uek610
/usr/local/sdata/modules/el6uek610/sfs3.ko
/usr/local/sdata/modules/el6uek62
/usr/local/sdata/modules/el6uek62/sfs3.ko
/usr/local/sdata/modules/el6uek63
/usr/local/sdata/modules/el6uek63/sfs3.ko
/usr/local/sdata/modules/el6uek64
/usr/local/sdata/modules/el6uek64/sfs3.ko
/usr/local/sdata/modules/el6uek65
/usr/local/sdata/modules/el6uek65/sfs3.ko
/usr/local/sdata/modules/el6uek66
/usr/local/sdata/modules/el6uek66/sfs3.ko
/usr/local/sdata/modules/el6uek67
/usr/local/sdata/modules/el6uek67/sfs3.ko
/usr/local/sdata/modules/el6uek68
/usr/local/sdata/modules/el6uek68/sfs3.ko
/usr/local/sdata/modules/el6uek69
/usr/local/sdata/modules/el6uek69/sfs3.ko
/usr/local/sdata/modules/sfs3.ko
/usr/local/sdata/sbin/HaDetector
/usr/local/sdata/sbin/I2Availability
/usr/local/sdata/sbin/collector
/usr/local/sdata/sbin/i2monitor
/usr/local/sdata/sbin/rpcserver
/usr/local/sdata/sbin/sdatad
/usr/local/sdata/sbin/sdatalogd
/usr/local/sdata/sbin/srepd
/usr/local/sdata/scripts
/usr/local/sdata/scripts/DoFFO.sh
/usr/local/sdata/scripts/ModCfg.sh
/usr/local/sdata/scripts/check_sfs.sh
/usr/local/sdata/scripts/devinfo.sh
/usr/local/sdata/scripts/i2jq
/usr/local/sdata/scripts/i2move.linux
/usr/local/sdata/scripts/script_bootup.sh
/usr/local/sdata/scripts/systemctrl.sh
 

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
Strange would have thought that it would use the have a directory in /etc for it's configuration files. From the list of files you got from the rpm command, create with the name files.txt and past all those files into that file files.txt file. Create a basic script to look for the port number(26821), then run it.
Code:
#!/bin/bash
for file in $(cat files.txt)
do
    grep 26821 $file &> /dev/null
    if [ $? -eq 0 ]
    then    
        echo "$file contains a mention of port 26821."
    fi 

done
Then check the files it returns to see if it is a configuration file for that software, the other option is to reinstall it like you already figured yourself.
 

beyond911

New Member
Credits
140
Strange would have thought that it would use the have a directory in /etc for it's configuration files. From the list of files you got from the rpm command, create with the name files.txt and past all those files into that file files.txt file. Create a basic script to look for the port number(26821), then run it.
Code:
#!/bin/bash
for file in $(cat files.txt)
do
    grep 26821 $file &> /dev/null
    if [ $? -eq 0 ]
    then
        echo "$file contains a mention of port 26821."
    fi

done
Then check the files it returns to see if it is a configuration file for that software, the other option is to reinstall it like you already figured yourself.
When I enter directory to info2soft.txt. I run info2soft.sh. is it ok ?
1611802258250.png

I run over 10mins . But it is runing. Maybe there is some error. And I have to stop it by ctrl+c.

1611803773531.png
 

Attachments

Last edited:

beyond911

New Member
Credits
140
1611885015687.png


I have modified permision with root. but is running over 10 mins and it is not response. At the end I have to terminate it with ctrl+c. It does't seem successful.
1611885092576.png
 

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
I have modified permision with root. but is running over 10 mins and it is not response. At the end I have to terminate it with ctrl+c. It does't seem successful.
You made a mistake typing it over, you typed:
Code:
#!/bin/bash
for file in $(cat files.txt)
do
    grep 26821 $info2soft &> /dev/null
    if [ $? -eq 0 ]
    then
        echo "$file contains a mention of port 26821."
    fi

done
I wrote:
Code:
#!/bin/bash
for file in $(cat files.txt)
do
    grep 26821 $file &> /dev/null
    if [ $? -eq 0 ]
    then
        echo "$file contains a mention of port 26821."
    fi

done
 

beyond911

New Member
Credits
140
You made a mistake typing it over, you typed:
Code:
#!/bin/bash
for file in $(cat files.txt)
do
    grep 26821 $info2soft &> /dev/null
    if [ $? -eq 0 ]
    then
        echo "$file contains a mention of port 26821."
    fi

done
I wrote:
Code:
#!/bin/bash
for file in $(cat files.txt)
do
    grep 26821 $file &> /dev/null
    if [ $? -eq 0 ]
    then
        echo "$file contains a mention of port 26821."
    fi

done
1611912449366.png

it's successful now . the port is 26821 with info2soft ?
 

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
Yes the port definition of the software you installed is in either of those files, I would first check the second file what it looks like where the port is mentioned since the first mention of it is the startup script and I double the want you to configure another port there.
 

beyond911

New Member
Credits
140
Yes the port definition of the software you installed is in either of those files, I would first check the second file what it looks like where the port is mentioned since the first mention of it is the startup script and I double the want you to configure another port there.
you means that I don't need to modify th port now .Because it is 26821. But I don't know how to modify the port from 26822 to 26821 ? but I remember the port is 26822 with it . the user tell me 26822 is still available .
 
Last edited:

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
The port which is used is defined in one of those files or both, can you share those files so I can see what they look like. You are probably just faster off reinstalling the software, but in case you are doing this for learning we can continue.
 

beyond911

New Member
Credits
140
The port which is used is defined in one of those files or both, can you share those files so I can see what they look like. You are probably just faster off reinstalling the software, but in case you are doing this for learning we can continue.
how to transfer it to you ?
 

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
Just post it with code tags here.
 

Members online


Top