« Back
You are in :
Recent Topics »
OpManager »
Opmanager as a Linux service
Yes, you can do that.
Follow the steps as mentioned below to install OpManager as a service on a linux box.
1. Copy the attached opmanager.txt file to /etc/init.d directory as opmanager
2. Edit the MDIR variable in this file which should point to the bin folder of OpManager Installation directory. Typically, the default installation folder on a Linux box will be /opt/AdventNet/ME/OpManager. Hence the value for MDIR will be
3. Provide executable permissions for this script using
4. Use chkconfig command to add opmanager as a service
Hope this helps.
-Kevin-
Follow the steps as mentioned below to install OpManager as a service on a linux box.
1. Copy the attached opmanager.txt file to /etc/init.d directory as opmanager
mv /etc/init.d/opmanager.txt /etc/init.d/opmanager
2. Edit the MDIR variable in this file which should point to the bin folder of OpManager Installation directory. Typically, the default installation folder on a Linux box will be /opt/AdventNet/ME/OpManager. Hence the value for MDIR will be
MDIR=/opt/AdventNet/ME/OpManager/bin
3. Provide executable permissions for this script using
chmod 755 /etc/init.d/opmanager
4. Use chkconfig command to add opmanager as a service
chkconfig --add opmanager
Hope this helps.
-Kevin-
Please note that all the above-mentioned commands are to be executed as the root user.
Hi folks,
I used the method mentioned in this topic that works with Fedora Core 2, but give error with Core 3 installation.
Reboot of the Core 3 will show the following message:
"Feb 5 11:43:21 netmon opmanager: execvp: No such file or directory
Feb 5 11:43:21 netmon rc: Starting opmanager: failed"
Please shed some light on this matter or pointer that will enable to solve this issue.
Regards,
Kevin Chen
I used the method mentioned in this topic that works with Fedora Core 2, but give error with Core 3 installation.
Reboot of the Core 3 will show the following message:
"Feb 5 11:43:21 netmon opmanager: execvp: No such file or directory
Feb 5 11:43:21 netmon rc: Starting opmanager: failed"
Please shed some light on this matter or pointer that will enable to solve this issue.
Regards,
Kevin Chen
Hi Kevin,
Please check if /etc/init.d/opmanager file exists. Also, check if the link to the file exists in the correct location. It would be helpful if you could send the /var/log/opmanager.log and /var/log/opmanager1.log for analysis to support@opmanager.com
Regards
Support Team
Please check if /etc/init.d/opmanager file exists. Also, check if the link to the file exists in the correct location. It would be helpful if you could send the /var/log/opmanager.log and /var/log/opmanager1.log for analysis to support@opmanager.com
Regards
Support Team
has tis be solved...because I'am getting the same error...file not found in etc/init.d
The error should be due to the presence of CTRL-M characters in the file. You can remove the CTRL-M characters from the above file using the script attached with this post.
[ download the file and rename it as .sh and provide executable permissions to this file using "chmod 755 rmcntrlm.sh"]
-Kevin
[ download the file and rename it as .sh and provide executable permissions to this file using "chmod 755 rmcntrlm.sh"]
-Kevin
where do I run this file after I've made the changes...am I runing it from /rtc/initi.d dir or from opamager dir?
thanks
thanks
You can download the opmanager.txt file and give executable permissions to it. Download the rmcntrlm.txt file and rename it as rmcntrlm.sh file and copy to the same directory where opmanager.txt is present. Give executable permissions to this script file as well. Execute the script as
# sh rmcntrlm.sh opmanager
You can later on copy this opmanager script to the /etc/init.d directory.
Revert to me for further clarifications.
# sh rmcntrlm.sh opmanager
You can later on copy this opmanager script to the /etc/init.d directory.
Revert to me for further clarifications.
The above solution doesnt work on fedora core 4, does anyone tried opmanager to start as a service on FC4?
error on FC4 while executing the rmcntrlm.sh script
sh rmcntrlm.sh opmanager
: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do
sh rmcntrlm.sh opmanager
: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do
Execute the following command before running the script.
# chmod 755 rmcntrlm.sh
(ie., you should give executable permission for the script).
# chmod 755 rmcntrlm.sh
(ie., you should give executable permission for the script).
I did that, still the same result.
I did the same thing and still got the same thing.
[root@fedora init.d]# sh rmcntrlm.sh
: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do
please help
arbarnes@reamsasset.com
[root@fedora init.d]# sh rmcntrlm.sh
: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do
please help
arbarnes@reamsasset.com
Try using the vim replace command to remove the control-M characters. this worked for me. The command is
:%s/^M//g
Execute this command from the Vim editor. To get the ^M character, press CTRL+V,CTRL+M simultaneously.
-Partha-
:%s/^M//g
Execute this command from the Vim editor. To get the ^M character, press CTRL+V,CTRL+M simultaneously.
-Partha-
Found the problem. In line 15:
DIR=
should be
MDIR
As the variable refers to $MDIR. I would also recommend using VIM and copy the file over to native linux format.
After that it worked.
DIR=
should be
MDIR
As the variable refers to $MDIR. I would also recommend using VIM and copy the file over to native linux format.
After that it worked.
Found the problem. In line 15:help
DIR=
should be
MDIR
As the variable refers to $MDIR. I would also recommend using VIM and copy the file over to native linux format.
After that it worked.
please, I can not run opmanager as a linux service, my error is:
#sh rmcntrlm.sh opmanager
: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do
I tried typing
# chmod 755 rmcntrlm.sh
but the result is the same.
I am using red hat enterprise edition, please help.
#sh rmcntrlm.sh opmanager
: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do
I tried typing
# chmod 755 rmcntrlm.sh
but the result is the same.
I am using red hat enterprise edition, please help.
Hi,
Make sure that you remove the CTRL+M characters. To check the CTRL+M characters execute the command
After removing the character you should be able to start OpManager Service.
With Regards
Ramesh
OpManager Support
Make sure that you remove the CTRL+M characters. To check the CTRL+M characters execute the command
vim -b opmanager
After removing the character you should be able to start OpManager Service.
With Regards
Ramesh
OpManager Support
Is there a way to shutdown the server from this script without requiring the admin password be stored in insecure clear text?
Hi,
It is not allowed to shutdown the OpManager Server without the admin password.
Thanks
Sam
OpManager Support Team
It is not allowed to shutdown the OpManager Server without the admin password.
Thanks
Sam
OpManager Support Team
Post Actions
Corp