Force refresh (re-scan) wireless networks from command line? - windows

in my program i use command " netsh wlan SHOW NETWORKS MODE=BSSID" to show the available SSID and pass them into my program , the problem is the command don't refresh the available network list it's just show the cash of the last scanning and i need to re-scan Immediately when i told the program i found some thing disable then re-enable the interface through the netsh commands , and it's work for while , but i update the program now and i need to re-scan when i already connect to some network if i re-scan by this way , I'll disconnecting to this network at least 2 sec, i need another solution please

Ahmed,
if you haven't solved this problem yet, i think, i can help you.
I have the same issue and I found a solution, kind of.
It is possible to refresh, by clicking the wifi-symbol in the right-bottom corner of your computer. Here is a screenshot of this symbol.
It will take one or two seconds and then it's refreshed.
I hope I could help you and if you have found a better solution by now, it would be nice to let me know.
Greetings, Max

Related

How to attach all tap dev by cilium/ebpf ? What's the best way except attach tap dev one by one if it is not support?

How to attach all tap dev by cilium/ebpf ? What's the best way except attach tap dev one by one if it is not support ?
I read document not found mutil attach function.
As of the writing of this answer, there is no way to attach XDP/TC programs to multiple network devices within a single "call".
I believe the only program type where something like this is possible is with kprobes.
So you will have to list all devices and attach one by one.

Accidentally deleted IOS on 3750G Switch

I accidentally deleted the IOS on 3750G Switch. As a result, I am thrown in the ROMMON mode when I console into the switch via Putty. I tried the following:
1) I set up my static IP as 192.168.168.167 255.255.255.0 with default gateway as the same as my switch's IP 192.168.168.168
2) I set the IP on the switch as 192.168.168.168 255.255.255.0 and default gateway as 192.168.168.167. I set the TFTP Server's IP same as my laptop's static IP.
3) Then I typed tftpdnld after I placed the new IOS on the to TFTP root folder.
That failed when I did all this on Putty. The switch was not able to read the Ethernet cable.
By the way, the show command does not work on ROMMON mode via Putty
Furthermore, the show command does not work on ROMMON mode. I have the IOS that will be uploaded into the switch. But how do I do that? Please help. Thanks. I am doing all this via console. Here is the site I used as a guide: http://www.mikcx.com/cisco-ios-deleted-by-mistake-recovery-guide/
I got it fixed and followed the rules below (I used ExtraPutty!!)
There are times when the IOS on a switch may crash and (as a last resort) you need to use the painfully slow Xmodem transfer to save your life. I bought a 3550 a while back and that is precisely what happened with me. Without much else to try, I decided to give Xmodem a shot. I want to share how this can be used and I hope that this may be useful to others.
Since the device is in ROMMON, there’s not much that you can do. There is, however, a method to transfer another IOS using a direct console connection with a PC (the transfer is over your console cable itself). This wonderful little thing is called Xmodem. Now the rate of transfer depends on the baud rate that you set for your console connection. I tried this with baud set to 9600 and man, it seemed like it would take over 3 hours for the transfer to complete. With a little trial and error, I found that the maximum baud rate I could set it up to work perfectly with was 57600. You can set the baud rate in ROMMON using the set BAUD command. See below:
switch: set BAUD 57600
This MUST also match on the terminal program setting as well. So (I’m using TeraTerm) under Setup -> Serial Port, set the baud rate to match whatever you set it as in ROMMON. Now we’re ready to transfer the file. The command is very straight forward:
switch: copy xmodem: flash:c3550-ipservicesk9-mz.122-44.SE6.bin
Once you press enter, you see the following:
Begin the Xmodem or Xmodem-1K transfer now…
C
At this point, you need to choose the file location from the terminal program. Go under File -> Transfer -> Xmodem -> Send and choose the file that you wish the transfer. The transfer will start and you will see a transfer window pop up. I made sure when the following image popped on ExtraPutty terminal ---> flash:c3750-ipbasek9-mz.150-2.SE8.bin Begin the Xmodem or Xmodem-1K transfer now... CCCCCCCCCCxmodem and I quickly went to the panel and click Xmodem located at the panel on top and click send and drag the c3750-ipbasek9-mz.150-2.SE8.bin file and have it sent through. Hence it explained why I kept get an I/O error, which made sense. Input error because the switch was waiting for me to send it the OS file.
Please take a look at this link for future reference and many thanks to this author who wrote this up: https://supportforums.cisco.com/blog/151336/loading-ios-switch-xmodem

Using Google Chrome Frame as a "closed container" with HandleTopLevelRequests

Can anyone explain what using GCF as a "closed container" actually means?
I understand from this link that you enable this mode of operation using the HandleTopLevelRequests registry key.
I actually stumbled onto this setting as a way to prevent the Developer Tools window from automatically closing upon postbacks/redirects. That default behavior really makes the Network tab almost useless. :(
By setting the HandleTopLevelRequests registry key as described in the link above, the Developer Tools window remains open like I want.
I just don't know if this is a setting I should leave in place because I don't really understand what it's doing.
Or I suppose another way to ask it is, why wouldn't you want the HandleTopLevelRequests setting in place?
**Another registry key named UseChromeNetworking seems to often be used in conjunction with HandleTopLevelRequests. Bonus points for any details on it as well. :)
Any info at all would be appreciated-

Any way to find out what my shared hosting "lag" is?

I have shared hosting with hostgator and until about a month ago, things were dandy. Now.. every 2 to 3 minutes, I'll click a link and the browser won't resolve for about a full minute. This is any of my sites.. and links that are both database calls or very simply html hyperlinks. It's with any browser and at work or home.
I've opened 2 tickets with hostgator and they swear all their tests show that there are no problems, but.. I get this over and over and over again.. and have for weeks now.
Is there any kind of error outputting I could do.. or tools of any kind that would allow me to troubleshoot this myself?
Not sure about other browsers, but Google Chrome has a tool to measure the time a website took to load. Click the wrench icon in the top right, then go to Tools -> Developer Tools. Then you will see a new section at the bottom of the screen. Click the Network tab and it will show you a lot of data about the latency etc. It will also show you which file is the one that is taking the longest. Hope this helps.
From a console on the server itself, use the wget command to pull a page. Do it periodically in a script, logging to a file. Put it in cron. That'll show you if there are any lag issues with the server itself. If that looks good, then it's somewhere in the network. You could do a similar test from another box on another provider, which if comes up clean, points to your ISP or DNS as the culprit.

Tools/code to automatically click ok on dialogs

We have an 'enterprisey' system with a scheduling component which gets floored if any dialogs come up. If any modal dialogs come up in the processes it is running, it gets 'paused' and can't kick off any new processes.
Excuse me a minute ...
*goes outside*
*laughs*
*cries*
*comes back*
.. ahem ... so anyway we need some sort of tool/technique that can lurk in the background and automatically detect specific dialogs and click OK on them. Any recommendations?
The offending system is running in Windows XP.
(NB: changing the third-party-enterprisey system or making its developers sit on the naughty step until they improve it are not options in the short term)
From this similar question I found:
Buzof by Basta Computing
which did the trick.
There is also a product called DialogDevil which looked promising but didn't work in our situation for some reason.
AutoIT is absolutely perfect for this. You can use the tool to help identify the dialog, write your own simple code and distribute the "auto clicker" via exe. It lurks in the background by running from the task tray.
DialogDavil will require exact same parameters on your dialog (for which you want buttons to be autoclicked) every time that same dialog pops up. And thats why it didnt work for me in first pass. Then i changed the control file at the following path to remove the changing items (a text box text in my case)
C:\Users\userName\AppData\Roaming\DAIR\DialogDevil\control.xml
And then it worked like a charm.
HTH,

Resources