-
Notifications
You must be signed in to change notification settings - Fork 275
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
torch not working #58
Comments
|
I also tries that, but it keeps the page loading.
|
Are you sure you understand the second parameter?
|
i also tried to add duration parameter and interchanging false between these two statements
they return command does not exist
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Pavel Skuratovich ***@***.***>
Sent: Tuesday, November 16, 2021 9:19:37 PM
To: BenMenking/routeros-api ***@***.***>
Cc: Muhammad Arsalan Siddiqui ***@***.***>; Author ***@***.***>
Subject: Re: [BenMenking/routeros-api] torch not working (Issue #58)
1. This should be
$API->write('/tool/torch', false);
$API->write("=interface=NOC-40G");
Are you sure you understand the second parameter?
1. Torch is constantly running command, it produces infinite output. If you need to stop at some point - add duration parameter, like
$API->write('/tool/torch', false);
$API->write("=interface=NOC-40G", false);
$API->write("=duration=1s");
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#58 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIYPAA545P6YQQDMZEFXOKDUMKABTANCNFSM5IEEFVAQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Please post exact code and the result. |
okay my problem is solved now, it was duration issue, 1s is not giving me results |
thank you for your support. |
Please close the issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is my code and its not working.
output:
Connection attempt #1 to 10.0.1.1:5891... <<< [6] /login <<< [13] =name=username_api<<< [26] =password=password_api >>> [5/5] bytes read. >>> [5, 1]!done Connected... <<< [11] /tool/torch <<< [19] =interface=vlan3212 <<< [25] =src-address=10.31.126.21 >>> [5/5] bytes read. >>> [5, 40]!trap >>> [31/31] bytes read. >>> [31, 8]=message=no such command prefix >>> [5/5] bytes read. >>> [5, 1]!done Array ( [0] => !trap [1] => =message=no such command prefix [2] => !done ) Disconnected... Disconnected...
The text was updated successfully, but these errors were encountered: