[SOLVED] bin doesn't have otrs.ITSMConfigItemDelete.pl

Moderator: crythias

Locked
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

[SOLVED] bin doesn't have otrs.ITSMConfigItemDelete.pl

Post by gecelann »

Hi!

Good day!
I would like to know if there are other way to delete config items?
Because in my otrs otrs.ITSMConfigItemDelete.pl is not availble in my bin folder
Please see my configuration below.

Code: Select all

[root@sbfac2 ~]# cd /opt
[root@sbfac2 opt]# ls
otrs
[root@sbfac2 opt]# cd otrs
[root@sbfac2 otrs]# ls
ARCHIVE     CONTRIBUTING.md      doc         README.md     var
AUTHORS.md  COPYING              i18n        RELEASE
bin         COPYING-Third-Party  INSTALL.md  scripts
CHANGES.md  Custom               Kernel      UPGRADING.md
[root@sbfac2 otrs]# cd bin
[root@sbfac2 bin]# ls
cgi-bin   otrs.CheckModules.pl  otrs.Daemon.pl
Cron.sh   otrs.CheckSum.pl      otrs.PostMaster.pl
fcgi-bin  otrs.Console.pl       otrs.SetPermissions.pl
[root@sbfac2 bin]# ./otrs.ITSMConfigItemDelete.pl
-bash: ./otrs.ITSMConfigItemDelete.pl: No such file or directory
[root@sbfac2 bin]# /opt/otrs/bin/otrs.ITSMConfigItemDelete.pl --help
-bash: /opt/otrs/bin/otrs.ITSMConfigItemDelete.pl: No such file or directory
[root@sbfac2 bin]# 
Selection_135.png
You do not have the required permissions to view the files attached to this post.
Last edited by gecelann on 08 Sep 2016, 10:19, edited 1 time in total.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: bin doesn't have otrs.ITSMConfigItemDelete.pl

Post by reneeb »

It's a console command now. Please run

perl bin/otrs.Console.pl Admin::ITSM::ConfigItem::Delete
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: bin doesn't have otrs.ITSMConfigItemDelete.pl

Post by gecelann »

reneeb wrote:It's a console command now. Please run

perl bin/otrs.Console.pl Admin::ITSM::ConfigItem::Delete
But it says can't open perl script :(

Code: Select all

[root@sbfac2 bin]# perl bin/otrs.Console.pl Admin::ITSM::ConfigItem::Delete
Can't open perl script "bin/otrs.Console.pl": No such file or directory
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: bin doesn't have otrs.ITSMConfigItemDelete.pl

Post by reneeb »

You're already in bin, so it's

perl otrs.Console.pl ...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: bin doesn't have otrs.ITSMConfigItemDelete.pl

Post by gecelann »

BTW,these are the modules i have installed in my centos6.

Code: Select all

[root@sbfac2 ~]# perl /opt/otrs/bin/otrs.CheckModules.pl
  o Apache::DBI......................ok (v1.12)
  o Apache2::Reload..................ok (v0.13)
  o Archive::Tar.....................ok (v1.58)
  o Archive::Zip.....................ok (v1.30)
  o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
  o Crypt::SSLeay....................ok (v0.57)
  o Date::Format.....................ok (v2.22)
  o DBI..............................ok (v1.609)
  o DBD::mysql.......................ok (v4.013)
  o DBD::ODBC........................Not installed! (optional - Required to connect to a MS-SQL database.)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................Not installed! Use: 'yum install "perl(DBD::Pg)"' (optional - Required to connect to a PostgreSQL database.)
  o Encode::HanExtra.................ok (v0.23)
  o IO::Socket::SSL..................ok (v1.31)
  o JSON::XS.........................ok (v2.27)
  o List::Util::XS...................ok (v1.21)
  o LWP::UserAgent...................ok (v6.13)
  o Mail::IMAPClient.................ok (v3.37)
    o IO::Socket::SSL................ok (v1.31)
  o ModPerl::Util....................ok (v2.000004)
  o Net::DNS.........................ok (v0.65)
  o Net::LDAP........................ok (v0.40)
  o Template.........................ok (v2.22)
  o Template::Stash::XS..............ok (undef)
  o Text::CSV_XS.....................ok (v0.85)
  o Time::HiRes......................ok (v1.9721)
  o Time::Piece......................ok (v1.15)
  o XML::LibXML......................ok (v1.70)
  o XML::LibXSLT.....................ok (v1.70)
  o XML::Parser......................ok (v2.36)
  o YAML::XS.........................ok (v0.38)
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: bin doesn't have otrs.ITSMConfigItemDelete.pl

Post by gecelann »

reneeb wrote:You're already in bin, so it's

perl otrs.Console.pl ...
Hi reneeb!
It's already okay! Thank you so much! :)

Code: Select all

[otrs@sbfac2 bin]$ perl otrs.Console.pl  Admin::ITSM::Configitem::Delete --all
Deleting config items...

Are you sure that you want to delete ALL 91 config items?
This is irrevocable. [y/n] 
y
Deleting all config items...
Deleted 91 config item(s).

Done.
Locked