cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
803
Views
0
Helpful
3
Replies

Regarding GSS script

mayilrajsmm
Level 1
Level 1

Hi,

Could you help us to write a script in Cisco GSS.

We would like to know if running script from DB server it can activate and suspend of answer group instances.

Thanks

Mohan

3 Replies 3

Daniel Arrondo Ostiz
Cisco Employee
Cisco Employee

Hi Mohan,

For this, assuming that your DB server is running linux/solaris, I would recommend a "expect" script that connects to the GSS through telnet/ssh and runs the commands you need to suspend/activate the answer groups.

Daniel

Hi,

Yes, you are correct, We could like to write a script that execute from server and switch over to instance in the Cisco GSS.

Could you help me write standard template.

Thanks

Mohan

Hi Mohan,

Here is a simple script that will telnet into the GSS and go into config mode. You can modify it easily to make changes to the configuration.

To execute it from a linux host, you just need to run "expect "

set force_conservative 0
if {$force_conservative} {
        set send_slow {1 .1}
        proc send {ignore arg} {
                sleep .1
                exp_send -s -- $arg
        }
}
set timeout 8
spawn /bin/bash
match_max 100000
send -- "telnet \r"
expect {
        "login: " {
                send -- "admin\r"
                expect -exact "Password:"
                send -- "\r"
                expect ">"
                send -- "enable\r"
                expect -exact "Password:"
                send -- "\r"
                expect "#"
                send -- "config t\r"
                expect "(config)#"
                send -- "exit\r"
                expect "#"
                send -- "exit\r"
        }
}

Review Cisco Networking for a $25 gift card