[ZBX-16371] Unable to execute multiple actions with remote command on Cisco IOS Created: 2019 Jul 15  Updated: 2020 Jun 12

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.0.9
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Smirnov Dmitriy Assignee: Eduards Matuls (Inactive)
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2019-07-15-11-04-43-381.png     PNG File image-2019-07-15-11-05-33-105.png     PNG File image-2019-07-15-11-06-48-993.png    

 Description   

Steps to reproduce:

  1. Create a remote command with several lines in the action field to fix a problem.
  2. Wait for the start of the problem.
    To see that instead of executing several commands from a new line, one command is executed with a carriage return.

Result:

For example, let’s imagine that our problem can be solved in a privileged way by executing such commands:

send log I am logged in
and I expect
each line execute
as sepatate command

 

You can see that IOS perceives each line as a separate command. 

 

But when the commands are executed by Zabbix, all the commands pass as one with several line breaks.

It is important to note that the first line with a send log entry is used to show that the line break did not lead to the execution of the command. In real life scenarios, everything happens in a similar way.

It is also important to note that the problem is not reproduced in RouterOS, for example.

Expected:
Each line is accepted as a separate command.

 


Generated at Sat Apr 20 05:00:17 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.