Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not print custom messages on device connection failure #36

Open
Balakrishnan-Easwaran opened this issue Oct 27, 2017 · 2 comments
Assignees

Comments

@Balakrishnan-Easwaran
Copy link

Hi Team,

It is not possible to print custom messages if the script could not connect to the device (through SSH/Netconf or ICMP reachability).

In the sample script get_system_information.pl , the below line doesn't work.

if(! $jnx ) {
       print STDERR "Unable to connect to Junos device \n";
       exit 1;
}

I would like to write a syslog message if the script wasn't able to connect to the device. But it is not working. It is not working in the sample script as well.

Waiting for your kind response.

Thank you.

@Balakrishnan-Easwaran
Copy link
Author

Hi Team,

Is there any update on this?

Regards,
Bala

@vnitinv
Copy link
Contributor

vnitinv commented Oct 30, 2017

Hi @ankitjain093. Can you help @Balakrishnan-Easwaran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants