| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 874 online users. » 7 Member(s) | 863 Guest(s) Applebot, Bing, Google, Yandex, bongdatructuyenme, broasteezn, jun88cocom2, lakshitagupta, nohu90health2, ntojkuangmu, smithplasters
|
| Latest Threads |
VCL conversion
Forum: Delphi General Discussion
Last Post: marktuan
08-07-2026, 01:20 PM
» Replies: 0
» Views: 324
|
Looking for UI Design Tip...
Forum: Delphi General Discussion
Last Post: chrisjordon232
08-06-2026, 05:17 AM
» Replies: 0
» Views: 62
|
Simply convert PeerIp to ...
Forum: Indy
Last Post: DidierMenant
08-04-2026, 03:50 PM
» Replies: 2
» Views: 219
|
New CGDevTools build is a...
Forum: CGDevTools
Last Post: lfeliz
08-04-2026, 12:03 AM
» Replies: 2
» Views: 1,368
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-02-2026, 04:21 PM
» Replies: 3
» Views: 268
|
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: JuergenS
07-31-2026, 09:44 AM
» Replies: 6
» Views: 1,288
|
Datatables question
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
07-28-2026, 04:34 AM
» Replies: 2
» Views: 272
|
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: CharlieDunn
07-27-2026, 08:27 PM
» Replies: 1
» Views: 456
|
Intraweb components missi...
Forum: IntraWeb General Discussion
Last Post: valmeras
07-27-2026, 03:18 PM
» Replies: 3
» Views: 412
|
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-17-2026, 05:18 PM
» Replies: 6
» Views: 4,895
|
|
|
Problem with SNMP |
|
Posted by: STest6905 - 12-13-2023, 09:31 AM - Forum: Indy
- Replies (5)
|
 |
Hello.
I have a gasoline generator that has the ability to report its status via the SNMP protocol. If I use a third-party app, I can get a response from querying "1.3.6.1.2.1.1.1.0" and "1.3.6.1.4.1.28634.6.2551906584.2.8206" and it works well. When I tried to write it myself, I notice that the first request is successful but on the second one I get a "NoSuchName" error.
ps.
Windows 10 x64
RAD Studio XE6
Indy 10.6.0
Here is my simple code:
Code: procedure TForm2.Button2Click(Sender: TObject);
var
i: Integer;
begin
SNMP.Host := '172.17.40.243';
SNMP.Port := 161;
SNMP.Community := 'public';
SNMP.Query.Clear;
SNMP.Query.Version := 0;
try
if not SNMP.Connected then
begin
SNMP.Connect;
Memo1.Lines.Add('Connected');
end
else
Memo1.Lines.Add('Already connected');
except
on E: Exception do
begin
Memo1.Lines.Add('Error on connect: ' + E.Message);
Exit;
end;
end;
try
SNMP.Query.PDUType := PDUGetRequest;
SNMP.Query.MIBAdd(Edit1.Text, '');
if SNMP.SendQuery then
begin
Memo1.Lines.Add('Value received: ' + SNMP.Reply.Value[0]);
end
else
begin
Memo1.Lines.Add('Error: ' + IntToStr(SNMP.Reply.ErrorStatus));
end;
SNMP.Disconnect;
except
on E: Exception do
begin
Memo1.Lines.Add('Error: ' + E.Message);
end;
end;
end;
This also doesn't work:
Code: procedure TForm2.Button5Click(Sender: TObject);
var
SNMP: TIdSNMP;
dn, PLevel, SRate: string;
p: Extended;
begin
SNMP := TIdSNMP.Create(nil);
try
SNMP.Host := '172.17.40.243';
SNMP.Community := 'public';
SNMP.Query.Version := 6;
SNMP.ReceiveTimeout := 3000;
if SNMP.QuickSend('1.3.6.1.2.1.1.1.0', SNMP.Community, SNMP.Host, dn) then
Memo1.Lines.Add(dn);
if SNMP.QuickSend('1.3.6.1.4.1.28634.6.2551906584.2.8206',
SNMP.Community, SNMP.Host, SRate) then
Memo1.Lines.Add(SRate);
Memo1.Lines.Add('');
finally
SNMP.Free;
end;
end;
In the first case, I have a positive result: (oid=1.3.6.1.2.1.1.1.0)
Code: Connected
Value received: IB-Lite
In the second case I have an error:
Code: Connected
Error: 2 (NoSuchName)
If I use a third-party program (MIBViewer), everything works fine:
Code: Send snmp get request to 172.17.40.243:161
.1.3.6.1.2.1.1.1.0 (not in loaded mib files) --> IB-Lite
Send snmp get request to 172.17.40.243:161
.1.3.6.1.4.1.28634.6.2551906584.2.8213.0 (not in loaded mib files) --> 261
Can anyone tell me what the problem is? I will be very grateful for the information
|
|
|
| How can I set HTMLLanguage per session or form? |
|
Posted by: magosk - 12-11-2023, 10:14 AM - Forum: IntraWeb General Discussion
- Replies (11)
|
 |
Hi, we have IntraWeb applications where we update various UI texts (e.g. TIWLabel.Caption) based on an account language setting for customers of our system, using our own code in base form(s) and helper components, and this in itself is no problem and has been in place since the first version of our applications many years ago. However, the web pages generated by IntraWeb always has a <html lang="en"> element which is incorrect for our customers that use non-English application languages. Previously this was not much of an issue in practice, but with some recent auto-translate features in modern browsers (e.g. Edge) we have seen some weird effects, where not only fixed texts but also some of those coming from the customer's own data have been modified in the browser compared to their actual values in the HTML page in question. Therefore I would like to set a correspondent of the server controller global property HTMLLanguage per session or form, or find a workaround that allows me to adjust the <html lang="en"> element of the generated web page in a more direct way.
So far my searches with AI, Google and in this forum for this have been fruitless. As an experiment, I tried to change ServerController.HTMLLanguage in the BeforeRender event (although I knew this would not be a preferred solution (and probably not thread safe)) but this turned out not to be possible at all (the property setter threw an exception due to being locked in this event). Would be very grateful for feedback on this issue. Currently using IW version 15.2.49 in production.
Best regards
Magnus Oskarsson
|
|
|
| Compatibilidade Delphi 7 |
|
Posted by: liperflores - 12-05-2023, 05:27 PM - Forum: IntraWeb Dúvidas Gerais
- No Replies
|
 |
Fala pessoal,
estou com uma dúvida que talvez já tenham respondido mas não consegui encontrar no forum.
A versão 15 do IntraWeb é compatível com o Delphi 7?
Desde já agradeço!
|
|
|
| Making IW Sessions persistent among servers or in a database |
|
Posted by: ebob42 - 12-04-2023, 06:38 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hi all,
Short story: is there anyone who has experience with persisting IntraWeb sessions on different server machines?
Long story: we have an IntraWeb ISAPI application which is deployed on multiple servers, using a load balancer (and cookies) to distribute the users over the didferent server machines. Normally, this works great. However, when one of the servers goes down, the users have to restart their session on another server. We wonder if it's possible to store the server information (IntraWeb forms, data modules), the User Session information, etc. and to restart a new session at another server re-creating everything that was alive in the original server right before the crash.
This would mean storing everything in the user session (as well as the formlist and details) in a database for example, and reading it when needed. Hopefully, not often.
Although this certainly sounds doable, I wonder if people have tried this before, and/or have strong doubts about the feasibility of this endavour. Note that we still plan to continue using the load balancer, so the sessions will be redirected to the correct server most of the time, it's just that we want to have a failover mechanism so people can continue their work (perhaps after a few seconds of reloading/recreating everyting).
And yes, preventing the crash (or "ping timeout" in our case) should be the best solution, but if never hurts to have a failover option in the first place.
Thanks in advance for any comments, hints or feedback.
Groetjes, Bob Swart
|
|
|
|