11-18-2007 11:10 PM
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
11-22-2007 06:20 AM
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#
01-15-2008 03:44 AM
up
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: