cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
487
Views
0
Helpful
2
Replies

Problem with RSH access on 7204-G2

seducer666
Level 1
Level 1

Hi

I want to "add" "delete" lines in dynamic access-list by RSH from Linux.

I can only delete lines from access-list,but when I add lines I receive message:

"Line has invalid autocommand "access-template 105 test1 host 192.168.3.246 any

Here my script:

----------------------------------------------

#!/bin/bash

rsh -l voip 192.168.55.49 access-template 105 test1 host 192.168.3.246 any

rsh -l voip 192.168.55.49 clear access-template 105 test1 host 192.168.3.246 any

-----------------------------------------------

Here my config:

-----------------------------------------------

Cisco IOS Software, 7200 Software (C7200P-ADVENTERPRISEK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)

!

no ip domain lookup

!

ip rcmd rcp-enable

ip rcmd rsh-enable

ip rcmd remote-host voip 192.168.3.246 rsh enable

2 Replies 2

seducer666
Level 1
Level 1

Here some logs:

From Linux server:

[root@Scripts]# ./auto_acl.sh

Line has invalid autocommand "access-template 105 test1 host 192.168.3.246 any"

[root@Scripts]# ./auto_acl.sh

Line has invalid autocommand "access-template 105 test1 host 192.168.3.246 any"

[root@Scripts]# ./auto_acl.sh

Line has invalid autocommand "access-template 105 test1 host 192.168.3.246 any"

[root@Scripts]#

From 7204:

Nov 22 14:17:28.782: RCMD: [514 <- 192.168.255.247:1023] recv 1022\0

Nov 22 14:17:28.982: RCMD: [514 <- 192.168.255.247:1023] recv root\0voip\0access-template 105 test1 host 192.168.3.246 any\0

Nov 22 14:17:28.982: RCMD: [514 -> 192.168.255.247:1023] send

Nov 22 14:18:04.968: RCMD: [514 <- 192.168.255.247:1023] recv 1022\0

Nov 22 14:18:05.168: RCMD: [514 <- 192.168.255.247:1023] recv root\0voip\0access-template 105 test1 host 192.168.3.246 any\0

Nov 22 14:18:05.168: RCMD: [514 -> 192.168.255.247:1023] send

Nov 22 14:18:10.376: RCMD: [514 <- 192.168.255.247:1023] recv 1022\0

Nov 22 14:18:10.576: RCMD: [514 <- 192.168.255.247:1023] recv root\0voip\0access-template 105 test1 host 192.168.3.246 any\0

Nov 22 14:18:10.576: RCMD: [514 -> 192.168.255.247:1023] send

7204#

up