I've fixed the issue.
I had as you sent me.

And I have:

send "enable 3\r"
expect {
    "*assword:" {
        send "*$pass\r*"
#        send "$addpass\r"



2016-03-31 18:36 GMT+03:00 dan (ddp) <ddp...@gmail.com>:

> On Thu, Mar 31, 2016 at 11:23 AM, Yurii Shatylo <yuriishat...@gmail.com>
> wrote:
> > when I have put clear password to script I have got error related to
> timeout
> > while running enable on host.
> > This is very fantastic situation :-(
> > Yurii
> >
>
> Assuming this means you added a statement to print the enable
> password, how did you do it?
> It should be (at line 72), something like:
> send_user "DEBUG: $addpass\n"
>
> Then run the script manually. If you could, copy the output and send
> it to us (Change the password it prints to X's).
>
> Troubleshooting agentless stuff is very difficult. We don't have
> access to your systems, and probably don't have access to similar
> systems.
> That combined with likely language barriers and the
> speed/incompleteness of email, it gets very difficult.
>
> > 2016-03-31 18:08 GMT+03:00 dan (ddp) <ddp...@gmail.com>:
> >>
> >> On Thu, Mar 31, 2016 at 11:05 AM, Yurii Shatylo <yuriishat...@gmail.com
> >
> >> wrote:
> >> > I have checked password is the correct password in *.passlist and
> >> > everything
> >> > looks like OK.
> >> > I'm sorry but I didn't understand what do you mean about print out
> >> > password?
> >> > Could you please clarify more detail what I should do?
> >> >
> >>
> >> Add a line to the ssh_asa-fwsmconfig_diff script to print out the
> >> password before it is used. I'm not familiar enough with expect to
> >> know whether it needs to be printed out after it's read but before the
> >> connection starts, but that's probably where I'd put it.
> >>
> >> > Yurii
> >> >
> >> > 2016-03-31 17:59 GMT+03:00 dan (ddp) <ddp...@gmail.com>:
> >> >>
> >> >> On Thu, Mar 31, 2016 at 10:51 AM, Yurii Shatylo
> >> >> <yuriishat...@gmail.com>
> >> >> wrote:
> >> >> > Dear Colleagues,
> >> >> >
> >> >> > I have done all mentions but nothing is helped. Now I have enable
> >> >> > password
> >> >> > with digits and letters without special symbols.
> >> >> > After the testing I have got the same error. Do you know what's
> >> >> > wrong?
> >> >> >
> >> >>
> >> >> Did you try printing out the password it uses in the script to see if
> >> >> it's the correct one?
> >> >>
> >> >> > Yurii
> >> >> >
> >> >> >
> >> >> > On Wednesday, March 16, 2016 at 5:24:29 PM UTC+2, Yurii Shatylo
> >> >> > wrote:
> >> >> >>
> >> >> >> Dear Colleagues,
> >> >> >>
> >> >> >> Could you give me a hand with my issue?
> >> >> >> I've put credentials to the ssh_asa-fwsmconfig_diff and as the
> >> >> >> result
> >> >> >> I've
> >> >> >> got (2016/03/16 11:29:13 ossec-agentlessd: INFO: Test passed for
> >> >> >> 'ssh_asa-fwsmconfig_diff). After that I deleted ACL on the cisco
> asa
> >> >> >> but
> >> >> >> nothing happened. It seems like script which produces difference
> is
> >> >> >> not
> >> >> >> working.
> >> >> >> There is my general config file:
> >> >> >>
> >> >> >> <agentless>
> >> >> >>       <type>ssh_asa-fwsmconfig_diff</type>
> >> >> >>       <frequency>300</frequency>
> >> >> >>       <host>username@192.168.0.1</host>
> >> >> >>       <state>periodic_diff</state>
> >> >> >>     </agentless>
> >> >> >>
> >> >> >> Thank you in advance.
> >> >> >> Yurii
> >> >> >
> >> >> > --
> >> >> >
> >> >> > ---
> >> >> > You received this message because you are subscribed to the Google
> >> >> > Groups
> >> >> > "ossec-list" group.
> >> >> > To unsubscribe from this group and stop receiving emails from it,
> >> >> > send
> >> >> > an
> >> >> > email to ossec-list+unsubscr...@googlegroups.com.
> >> >> > For more options, visit https://groups.google.com/d/optout.
> >> >>
> >> >> --
> >> >>
> >> >> ---
> >> >> You received this message because you are subscribed to a topic in
> the
> >> >> Google Groups "ossec-list" group.
> >> >> To unsubscribe from this topic, visit
> >> >> https://groups.google.com/d/topic/ossec-list/FXo7fizdOII/unsubscribe
> .
> >> >> To unsubscribe from this group and all its topics, send an email to
> >> >> ossec-list+unsubscr...@googlegroups.com.
> >> >> For more options, visit https://groups.google.com/d/optout.
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > С уважением,
> >> > Юрий
> >> >
> >> > --
> >> >
> >> > ---
> >> > You received this message because you are subscribed to the Google
> >> > Groups
> >> > "ossec-list" group.
> >> > To unsubscribe from this group and stop receiving emails from it, send
> >> > an
> >> > email to ossec-list+unsubscr...@googlegroups.com.
> >> > For more options, visit https://groups.google.com/d/optout.
> >>
> >> --
> >>
> >> ---
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "ossec-list" group.
> >> To unsubscribe from this topic, visit
> >> https://groups.google.com/d/topic/ossec-list/FXo7fizdOII/unsubscribe.
> >> To unsubscribe from this group and all its topics, send an email to
> >> ossec-list+unsubscr...@googlegroups.com.
> >> For more options, visit https://groups.google.com/d/optout.
> >
> >
> >
> >
> > --
> > С уважением,
> > Юрий
> >
> > --
> >
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "ossec-list" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to ossec-list+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ossec-list" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ossec-list/FXo7fizdOII/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ossec-list+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
С уважением,
Юрий

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ossec-list+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to