Disable Websense scanning for specific src networks

Hi all,
I have an installation of Forefront TMG 2010 with Websense Web Filter Plug-In. The task I am supposed to do is to disable redirecting requests to Websense for specific source networks. It is impossible to do it from Websense Server, due to license limitations.
I know there's a way to ignore some source users from isa_ignore.txt but I should filter this basing on source IP addresses. Please help me solving this issue.
Kind Regards,

Hi,
You could try to create a network for these IP addresses and create a account for this network. Then add this account into isa_ignore.txt.( I haven't tested it)
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • How to disable an alert for specific time period in SCOM 2012 R2

    Hello,
    Is there any option to disable an alert for specific time period in SCOM 2012 R2
    Regards,
    angs

    No. But you can use the scheduler module in your rule or monitor, which will dictate when the workflow will actively run on the agent - hence disabling alerting for that time period.
    http://msdn.microsoft.com/en-us/library/ff453828.aspx
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • TS1398 iphone2 can not scan for my wireless network; i tried all troubleshoots but still same problem. Can anyone help?

    iPhone2 can not scan for my wireless network; i tried all troubleshoots but still same problem. Can anyone help?

    Anyone have any ideas or information to help with this?  Any help and consideration is MUCH appreciated.

  • Error Code:22 when scanning for available WiFi-Networks using CoreWLAN

    Hi ,
    I use the following code to scan for Wi-Fi networks on Mac book pro , 10.6 and above OS
                                  Class pc;
                                  NSArray *interfaces;
                                  framework = [NSBundle bundleWithPath: @"/System/Library/Frameworks/CoreWLAN.framework"];
                                  if([framework load])
                            NSLog(@"Framework loaded");
      else
                                            NSLog(@"Error, framework failed to load\nAborting.");
      return NULL;
    if ((pc = [framework classNamed:@"CWInterface"]))
      interfaces = [pc supportedInterfaces];
      self.interfaceName = [interfaces objectAtIndex:0];
       airportInterface = [[pc alloc] initWithInterfaceName:[interfaces objectAtIndex:0]];
    NSDictionary *argsDict = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:@"SCAN_MERGE"];
    NSArray *scanResults=[airportInterface scanForNetworksWithParameters:argsDict error:&scanErr];
    My test software will work fine for about 30 to 40 mins returning the scanned Wi-Fi networks
    After 40 Minutes, i usually get an error stating
    Error code: 22, Error domain com.apple.coreWLAN.error, Error userinfo: (null)
    Can you please let me know the work around or fix for this solution.
    Regards
    Rakesh

    Hi Mike,
    We have had this problem. Please delete the change log table of the ODS in the QA or Prod system (whichever is the target for your transport request) and then reimport the transport request.
    <i>
    534
    if generated ODS InfoSource,
    | 535|* no PSA versioning possible |</i>
    Hope this helps...

  • Disable esmtp Inspection for Specific Host

    Hello.  Is it possible to disable esmtp inspection for a specific INSIDE host with use of a policy-map?  If so, could you provide an example configuration.
     

    Yes it is possible.  You could do something like the following:
    access-list ESMTP deny ip host 1.1.1.10 any
    access-list ESMTP permit ip 1.1.1.0 255.255.255.0 any
    class-map CMAP
    match access-list ESMTP
    policy-map PMAP
    class CMAP
    inspect esmtp
    service-policy PMAP interface inside
    Please remember to select a correct answer and rate helpful posts

  • OSX 10.9.2 iMac won't scan for new Wifi networks.

    Sometimes I will tether the mac to my cell phone (because roomates hog bandwidth).  The problem is that when I click the Wi-fi icon in the upper-right hand corner, it shows Wifi networks it has found before but it will not scan for new ones (such as the tether I just started).  I have mac laptops and this works just fine on older versions of Mac OsX.  Is there something I'm missing?
    <Edit> I just found that I can open the "Wireless diagnostic tool" and then choose "Utilities" and then ask it to "Wi-fi scan".  It's just hard to believe that something that used to happen with one click is now buried under secret menus and hidden options.

    It's just hard to believe that something that used to happen with one click is now buried under secret menus and hidden options.
    That is not normal because I am running 10.9.3 on my MBP and it is constantly looking for networks. However, mine is a regular router, not a phone. I could be wrong, but I thought I read that cell providers did not support using computers with their cell network as it wasn't meant for "heavy" traffic - not sure if that could have something to do with your problem.

  • MacBook Pro Retina late 2013 not scanning for new WiFi networks

    My late-2013 Macbook Pro w. retina screen is usually connected to my workplace wi-fi network.
    Sometimes I need to disconnect from the usual network and connect to my Samsung S4's personal hotspot network.
    I start the hotspot on the phone and I click on the wi-fi icon on the top bar.
    Since a few weeks, the MacBook appears not to scan for new networks and does not show the phone's hotspot.
    Earlier it used to display a "scanning for networks" message, and in a few seconds the phone hotspot's SSID appeared.
    I am able to connect to the phone's hotspot using a workaround: from the icon, I click network preferences at the bottom of the list.
    From the Network Preferences pane, in the middle, there is a droplist. I shows just the current network (the workplace network). I click the double arrow icon on the right and select "join other network". Then I cancel the popup window. The list now shows all networks around, including my phone's hotspot.
    Is it a common/known issue? Will it be fixed? Thanks in advance

    Apparently, the 10.9.2 update fixed this.
    the "Wi-Fi: Looking for Wi-Fi networks..." is back.

  • IsCellEditable() to disable cell editing for specific columns

    Hello experts:
    My SSCCE for this question is at the below link:
    http://forum.java.sun.com/thread.jspa?threadID=5293914&messageID=10244030#10244030
    My question is how do I disable cell editing for all but the "Price" column of my table in the SSCCE. I tried adding the below lines of code right after creating the JTable. But get compilation errors.
    //Here is the block of code that I am trying to include.
         @Override                                                       
         public boolean isCellEditable(int row, int col) {     
         if (col == 7) {                                                  
                   return true;
              } else {
                   return false;
         } //Below is the method in detail03.java showing the block of code added
    private JScrollPane BuildEmptyTable() {
         model = new DefaultTableModel();
         model.addTableModelListener( this );
         model.setColumnIdentifiers(new String[] { "SKU","Qty", "Price"});
            tblDetailTest = new JTable(model);
         @Override                                                       
         public boolean isCellEditable(int row, int col) {     //     <----- I tried placing the
         if (col == 7) {                                        //                  the code block here
                   return true;
              } else {
                   return false;
         tblDetailTest.setRowHeight(20);
         tblDetailTest.setPreferredScrollableViewportSize(new Dimension(900, 100));
         JTableHeader tblHdr = tblDetailTest.getTableHeader();
         tblHdr.setBackground(Color.yellow);
         JScrollPane scrollPane = new JScrollPane(tblDetailTest);
         return scrollPane;
    }Can somebody please guide me? Thank you very much.

    oops!
    Sorry, my bad! I did not tell you what I tried. Following your suggestion, I made the following 2 changes to the code:
    In the method, BuildEmptyTable(), where I build the table structure, I have the following statement:
         tblDetail = new JTable(model){
    public boolean isCellEditable(int row, int col) {
           return col == 8;
    };And in a separate method after the table is populated with data, I have the below code:
         tblDetail.getModel().addTableModelListener(new TableModelListener() {
         public void tableChanged(TableModelEvent e) {
         if (e.getType() == TableModelEvent.UPDATE)
              int row = e.getFirstRow();
              int column = e.getColumn();
                 if (column == 8){
                   //code here
                   System.out.println("Updating item price!");
         }I do understand that the message gets displayed as many number of times equal to number of rows inserted into the table, because of the UPDATE event. But my problem is I do not know how to make a code change to do what I exactly want, as I have indicated in my previous note. Meaning I want the listener to be called only when the
    data in the editable cell changes.
    Thank You.

  • Disable disk sleep for specific drive?

    My Mac Pro is running 24/7 with sleep enabled.
    Hard disks are set to sleep, when possible. One of my SSDs is on an internal PCIe card. With disk sleep enabled, it does not come up quickly enough and the computer keeps thinking, it was ejected. The problem goes away, when disabling disk sleep.
    No sleep is no problem with SSDs, but there are some spinning 4TB disks on the system only used infrequently, so I would like to let them sleep.
    Is there a way to disable sleep for a specific disk only?
    -- Harald

    Hi BahaSs,
    It generally is safe to "Enable write caching on disk" unless you are dealing with broken applications which are not using
    FILE_FLAG_WRITE_THROUGH but need every write to be persistent. Disabling this would not hurt too much.  It's really not recommend "Enable advanced performance" or
    "Turn off Windows write-cache buffer flushing on the device" on a system where you value uptime or require data integrity.
    Best Regards,
    Elaine
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Why won't my time capsule show up when I scan for a wireless network when I plug in the ethernet cable from my comcast modem?

    I just setup my cable and internet at my new place yesterday thru comcast.  The internet works when it is plugged directly from my modem to my iMac but when I try to plug the modem up to my time capsule to set up wireless and go through air port utilites it can not find my time capsule

    Anytime you change networking hardware, it is always a good idea to perform a complete power recycle of your networking components.
    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    Disconnect the AirPort base station from the Internet broadband modem.
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Reconnect the AirPort base station to the Internet broadband modem. For the Extreme and Time Capsule, be sure to connect the cable to the base station's WAN (circle-of-dots) port.
    Power-up the modem; wait at least 10-15 minutes to allow it adequate time to initialize.
    Power-up the AirPort base station; wait at least 5-10 minutes. Note: The AirPort's status light may continue to flash amber after it has intialized. That is because, there may be some additional configuration items necessary, like setting up wireless security, before the overall setup is completed to get a green status.
    Power-up your computer(s).
    In this basic configuration, the AirPort base station will broadcast an unsecured wireless network with a Network Name (SSID) of Apple Network NNNNNN. Network clients, connected to the base station either by wire or wireless, should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options. Please post back your results.

  • Disabling TAB key for specific users

    Good day,
    I am new to SAPand the company will start pretty soon using SAP B1 8.8. We are facing the problem of disabling the TAB key function which give access to a complete list of some tables (in the particular case of financials, all G/L accounts) which is considered confidential and should not be available to any employee. Our actual SAP consultant says that the only solution is to make a special chargeable modification to standard SAP. I find it strange that SAP gives such an open an uncontrolled access to such vital information of the company. I am sure some one on this forum will give me a practical, elegant solution built in SAP authorization mecanism.

    Hello,
    Yes we can do it by Addional authorization
    You can do it by Additional Authorization windows using by Form ID.
    and then goto general authorization select Additinal Athorization as (No authorization) for selected user.
    now selected user can not open Buisness partner on any transaction form .
    then Make a Query for selected BP for selected User and set in on that field .
    1>
    First make new Authorization in Additional Authorization Creator window.
    And select Edit button fill 10001 as form ID.
    OK
    2 >
    Goto General Authorization select perticular user and select same Subject which was created in Additional Authorization window setup. and give no authorization for selected user. ok
    3.Make a FMS from OCRD ,but first you should make filter in master for selected user in SAP. so with the help of we can filetr the record on transaction .
    4.After make FMS with then help of UDF set it in where you want .
    Now Your system is ready for your client requirement.
    Please visit this link
    Re: BP according to user
    Thanks
    Manvendra Singh Niranjan

  • Disabling commons logging for specific application

    Hi
    Is there some possiblity to disable default logging (commons) on glassfish? I have configured log4j and the default commons logging polluts my logs...
    Regards

    For those items that are to be disabled, you could add a new style class to each cell control to indicate it's disabled. You could use a formatter function:
    addStyleClass : {
        parts : [ 'isRecordLocked' ],
        formatter : function(isRecordLocked) {
            return isRecordLocked ? "disabledStyle" : "";
    where 'isRecordLocked' is the indicator in your data whether your record is locked, and 'disabledStyle' is the custom CSS class which caters for a disabled look of your cell.
    If you need to suppress any press events for the locked records, you could do it in the same way.

  • Web Dynpro ALV disable column sort for specific column

    Hi,
    I have the above mentioned problem. The Coding I use is:
    DATA:  lr_field_settings  TYPE REF TO if_salv_wd_field_settings,
                lt_fields          TYPE SALV_WD_T_FIELD_REF.
    FIELD-SYMBOLS:  <fs_field>  LIKE LINE OF lt_fields.
    lr_field_settings ?= lr_config.
    lt_fields = lr_field_settings->get_fields( ).
    READ TABLE lt_fields ASSIGNING <fs_field> WITH KEY fieldname = 'ANSPRECH_DETAILS'.
    IF sy-subrc EQ 0.
      <fs_field>-r_field->if_salv_wd_sort~set_sort_allowed( abap_false ).
      <fs_field>-r_field->if_salv_wd_sort~set_grouping_allowed( abap_false ).
    ENDIF.
    When debugging I can see that the object attributes for sort_allowed and grouping_allowed are changed from 'X' to ' '
    but the running application still allows sorting and grouping for the column 'ANSPRECH_DETAILS'.
    So what did I forget or what is my mistake ????
    Thx for your help.
    Dino Dini

    I got the similar requirement and I tried to do the below way.. it worked for me..
    DATA: lr_field_settings TYPE REF TO if_salv_wd_field_settings.
    DATA: lr_field TYPE REF TO cl_salv_wd_field.
    lr_field_settings ?= lr_table.
    lr_field = lr_field_settings->get_field( 'MATNR' ).
    lr_field->IF_SALV_WD_SORT~SET_SORT_ALLOWED( abap_false
    you can observe in the below image that sort option is not enabled for MATNR in the ALV.

  • Any kind of bandwith limiting or priority for specific network services ?

    I tried IPQoS to limit the bandwith for a ftp-service. This is very well documented in the IPQoS Administration Guide, but it seems to have no effect at all in my lan. The ftp-transfer still consumes all
    available bandwith and any other interactive traffic like ssh is slow as hell. I think this is due to the fact that i do not have a diffserv capable router. Is it correct that IPQoS in Solaris 9 only marks packages but don't do anything else ?
    My kstat output says:
    "kstat -m tokenmt"
    module: tokenmt instance: 10
    name: tokenmt statistics class: meterftp
    crtime 171043.6888275
    epackets 0
    green_bits 369888
    green_packets 196
    red_bits 205079496
    red_packets 18160
    snaptime 174628.7017885
    yellow_bits 0
    yellow_packets 0
    Nearly all packets are marked red and the target for red packets is markAF31 with dscp_map{0-63:26}.
    Strange to see that "kstat -m dscpmk" shows no results at all. This is possible a bug or not well
    documented in the IPQoS Administration Guide.
    Is there any (other) way to priorize interactive traffic or limit/shape the bandwith for specific services without additional Hardware in my network ?

    You may have already resolved your problem, but here is what I've been using -- I'm just recently (like two days ago) trying IPQoS.
    As you can see from my code I really restricted bandwith so I could see the reaction, and tested with a specific machine so it wouldn't mess with other stuff. Turn on ftp hash and watch it crawl. I've only tested outgoing so far, but will also test incoming.
    We are not using DiffServ on our routers, so I just drop 'red' packets. I'm using yellow just to play and get stats.
    Am looking for tools to read the flowacct data when I came across your post.
    good luck!
    fmt_version 1.0
    # TEST configuration
    # Monitor and gather ftp statistics from pilasvp101 (only)
    # this host: ssrv194bw (163.241.195.249)
    # this host: pilasrp101 (163.241.205.147)
    # remote hosts: pilasvp101 (163.241.195.240)
    action {
    module ipgpc
    name ipgpc.classify
    params {
    global_stats TRUE
    class {
    name ftp_traffic
    enable_stats TRUE
    next_action meter_ftp
    filter {
    name ftp_in
    sport ftp
    saddr 163.241.195.240
    direction LOCAL_IN
    ip_version V4
    class ftp_traffic
    filter {
    name ftp_data_in
    sport ftp-data
    saddr 163.241.195.240
    direction LOCAL_IN
    ip_version V4
    class ftp_traffic
    filter {
    name ftp_out
    dport ftp
    daddr 163.241.195.240
    direction LOCAL_OUT
    ip_version V4
    class ftp_traffic
    filter {
    name ftp_data_out
    dport ftp-data
    daddr 163.241.195.240
    direction LOCAL_OUT
    ip_version V4
    class ftp_traffic
    # 10 Mbps, or 10000000 bits per second.
    # 100 Mbps, or 100000000 bits per second.
    # 1000 Mbps, or 1000000000 bits per second.
    # USED BELOW:
    # committed_rate - 100000 bits per second = 0.10 Mbps.
    # committed_burst - 100000 bits per second = 0.10 Mbps.
    # peak_rate - 150000 bits per second = 0.15 Mbps.
    # peak_burst - 150000 bits per second = 0.15 Mbps.
    # committed_rate - allowable transmission rate
    # committed_burst - allowable burst size. Defines how many outgoing packets
    # of a particular class can pass onto the network at the
    # committed rate.
    # peak_rate - peak rate in bits per second
    # peak_burst - peak or excess burst size in bits. The peak burst parameter
    # grants to a traffic class a peak-burst size that exceeds
    # the committed rate.
    # color_aware - turns on color-aware mode for tokenmt, which expects the
    # bits to have already been modified for DSCP
    # color_map - defines an integer array that maps DSCP values to
    # green, yellow, or red.
    # red_action - action to take when traffic flow exceeds peak rate
    # yellow_action - the packet causes the flow to exceed its committed_rate
    # but not its peak rate (committed_burst). This must be used
    # if 'peak_rate' is defined.
    # green_action - action to take for conforming traffic flow
    # global_stats - enable metering stats for the class
    action {
    module tokenmt
    name meter_ftp
    params {
    global_stats TRUE
    committed_rate 100000
    committed_burst 100000
    peak_rate 150000
    peak_burst 150000
    red_action_name red_accounting
    yellow_action_name yellow_accounting
    green_action_name green_accounting
    color_aware FALSE
    # timer - scanning interval in milliseconds (default 15 seconds)
    # timout - a flow "times-out" when its packets are no longer seen
    # by the IPQoS system in milliseconds (default 60 seconds)
    # max_limit - maximum number of entries a flow table can contain
    action {
    module flowacct
    name red_accounting
    params {
    global_stats TRUE
    timer 10000
    timeout 10000
    max_limit 2048
    next_action drop
    action {
    module flowacct
    name yellow_accounting
    params {
    global_stats TRUE
    timer 10000
    timeout 10000
    max_limit 2048
    next_action continue
    action {
    module flowacct
    name green_accounting
    params {
    global_stats TRUE
    timer 10000
    timeout 10000
    max_limit 2048
    next_action continue
    }

  • Scan for and connect to networks from an openbox pipe menu (netcfg)

    So the other day when i was using wifi-select (awesome tool) to connect to a friends hot-spot, i realized "hey! this would be great as an openbox pipe menu."  i'm fairly decent in bash and i knew both netcfg and wifi-select were in bash so why not rewrite it that way?
    Wifi-Pipe
    A simplified version of wifi-select which will scan for networks and populate an openbox right-click menu item with available networks.  displays security type and signal strength.  click on a network to connect via netcfg the same way wifi-select does it.
    zenity is used to ask for a password and notify of a bad connection.  one can optionally remove the netcfg profile if the connection fails.
    What's needed
    -- you have to be using netcfg to manage your wireless
    -- you have to install zenity
    -- you have to save the script as ~/.config/openbox/wifi-pipe and make it executable:
    chmod +x ~/.config/openbox/wifi-pipe
    -- you have to add a sudoers entry to allow passwordless sudo on this script and netcfg (!)
    USERNAME ALL=(ALL) NOPASSWD: /usr/bin/netcfg
    USERNAME ALL=(ALL) NOPASSWD: /home/USERNAME/.config/openbox/wifi-pipe
    -- you have to adjust  ~/.config/openbox/menu.xml like so:
    <menu id="root-menu" label="Openbox 3">
    <menu id="pipe-wifi" label="Wifi" execute="sudo /home/USERNAME/.config/openbox/wifi-pipe INTERFACE" />
    <menu id="term-menu"/>
    <item label="Run...">
    <action name="Execute">
    <command>gmrun</command>
    </action>
    </item>
    where USERNAME is you and INTERFACE is probably wlan0 or similar
    openbox --reconfigure and you should be good to go.
    The script
    #!/bin/bash
    # pbrisbin 2009
    # simplified version of wifi-select designed to output as an openbox pipe menu
    # required:
    # netcfg
    # zenity
    # NOPASSWD entries for this and netcfg through visudo
    # the following in menu.xml:
    # <menu id="pipe-wifi" label="Wifi" execute="sudo /path/to/wifi.pipe interface"/>
    # the idea is to run this script once to scan/print, then again immediately to connect.
    # therefore, if you scan but don't connect, a temp file is left in /tmp. the next scan
    # will overwrite it, and the next connect will remove it.
    # source this just to get PROFILE_DIR
    . /usr/lib/network/network
    [ -z "$PROFILE_DIR" ] && PROFILE_DIR='/etc/network.d/'
    # awk code for parsing iwlist output
    # putting it here removes the wifi-select dependency
    # and allows for my own tweaking
    # prints a list "essid=security=quality_as_percentage"
    PARSER='
    BEGIN { FS=":"; OFS="="; }
    /\<Cell/ { if (essid) print essid, security, quality[2]/quality[3]*100; security="none" }
    /\<ESSID:/ { essid=substr($2, 2, length($2) - 2) } # discard quotes
    /\<Quality=/ { split($1, quality, "[=/]") }
    /\<Encryption key:on/ { security="wep" }
    /\<IE:.*WPA.*/ { security="wpa" }
    END { if (essid) print essid, security, quality[2]/quality[3]*100 }
    errorout() {
    echo "<openbox_pipe_menu>"
    echo "<item label=\"$1\" />"
    echo "</openbox_pipe_menu>"
    exit 1
    create_profile() {
    ESSID="$1"; INTERFACE="$2"; SECURITY="$3"; KEY="$4"
    PROFILE_FILE="$PROFILE_DIR$ESSID"
    cat > "$PROFILE_FILE" << END_OF_PROFILE
    CONNECTION="wireless"
    ESSID="$ESSID"
    INTERFACE="$INTERFACE"
    DESCRIPTION="Automatically generated profile"
    SCAN="yes"
    IP="dhcp"
    TIMEOUT="10"
    SECURITY="$SECURITY"
    END_OF_PROFILE
    # i think wifi-select should adopt these perms too...
    if [ -n "$KEY" ]; then
    echo "KEY=\"$KEY\"" >> "$PROFILE_FILE"
    chmod 600 "$PROFILE_FILE"
    else
    chmod 644 "$PROFILE_FILE"
    fi
    print_menu() {
    # scan for networks
    iwlist $INTERFACE scan 2>/dev/null | awk "$PARSER" | sort -t= -nrk3 > /tmp/networks.tmp
    # exit if none found
    if [ ! -s /tmp/networks.tmp ]; then
    rm /tmp/networks.tmp
    errorout "no networks found."
    fi
    # otherwise print the menu
    local IFS='='
    echo "<openbox_pipe_menu>"
    while read ESSID SECURITY QUALITY; do
    echo "<item label=\"$ESSID ($SECURITY) ${QUALITY/.*/}%\">" # trim decimals
    echo " <action name=\"Execute\">"
    echo " <command>sudo $0 $INTERFACE connect \"$ESSID\"</command>"
    echo " </action>"
    echo "</item>"
    done < /tmp/networks.tmp
    echo "</openbox_pipe_menu>"
    connect() {
    # check for an existing profile
    PROFILE_FILE="$(grep -REl "ESSID=[\"']?$ESSID[\"']?" "$PROFILE_DIR" | grep -v '~$' | head -n1)"
    # if found use it, else create a new profile
    if [ -n "$PROFILE_FILE" ]; then
    PROFILE=$(basename "$PROFILE_FILE")
    else
    PROFILE="$ESSID"
    SECURITY="$(awk -F '=' "/$ESSID/"'{print $2}' /tmp/networks.tmp | head -n1)"
    # ask for the security key if needed
    if [ "$SECURITY" != "none" ]; then
    KEY="$(zenity --entry --title="Authentication" --text="Please enter $SECURITY key for $ESSID" --hide-text)"
    fi
    # create the new profile
    create_profile "$ESSID" "$INTERFACE" "$SECURITY" "$KEY"
    fi
    # connect
    netcfg2 "$PROFILE" >/tmp/output.tmp
    # if failed, ask about removal of created profile
    if [ $? -ne 0 ]; then
    zenity --question \
    --title="Connection failed" \
    --text="$(grep -Eo "[\-\>]\ .*$" /tmp/output.tmp) \n Remove $PROFILE_FILE?" \
    --ok-label="Remove profile"
    [ $? -eq 0 ] && rm $PROFILE_FILE
    fi
    rm /tmp/output.tmp
    rm /tmp/networks.tmp
    [ $(id -u) -ne 0 ] && errorout "root access required."
    [ -z "$1" ] && errorout "usage: $0 [interface]"
    INTERFACE="$1"; shift
    # i added a sleep if we need to explicitly bring it up
    # b/c youll get "no networks found" when you scan right away
    # this only happens if we aren't up already
    if ! ifconfig | grep -q $INTERFACE; then
    ifconfig $INTERFACE up &>/dev/null || errorout "$INTERFACE not up"
    while ! ifconfig | grep -q $INTERFACE; do sleep 1; done
    fi
    if [ "$1" = "connect" ]; then
    ESSID="$2"
    connect
    else
    print_menu
    fi
    Screenshots
    removed -- Hi-res shots available on my site
    NOTE - i have not tested this extensively but it was working for me in most cases.  any updates/fixes will be edited right into this original post.  enjoy!
    UPDATE - 10/24/2009: i moved the awk statement from wifi-select directly into the script.  this did two things: wifi-select is no longer needed on the system, and i could tweak the awk statement to be more accurate.  it now prints a true percentange.  iwlist prints something like Quality=17/70 and the original awk statement would just output 17 as the quality.  i changed to print (17/70)*100 then bash trims the decimals so you get a true percentage.
    Last edited by brisbin33 (2010-05-09 01:28:20)

    froli wrote:
    I think the script's not working ... When I type
    sh wifi-pipe
    in a term it returns nothing
    well, just to be sure you're doing it right...
    he above is only an adjustment to the OB script's print_menu() function, it's not an entire script to itself.  so, if the original OB script shows output for you with
    sh ./wifi-pipe
    then using the above pint_menu() function (with all the other supporting code) should also show output, (only really only changes the echo's so they print the info in the pekwm format).
    oh, and if neither version shows output when you rut it in a term, then you've got other issues... ;P
    here's an entire [untested] pekwm script:
    #!/bin/bash
    # pbrisbin 2009
    # simplified version of wifi-select designed to output as an pekwm pipe menu
    # required:
    # netcfg
    # zenity
    # NOPASSWD entries for this and netcfg through visudo
    # the following in pekwm config file:
    # SubMenu = "WiFi" {
    # Entry = { Actions = "Dynamic /path/to/wifi-pipe" }
    # the idea is to run this script once to scan/print, then again immediately to connect.
    # therefore, if you scan but don't connect, a temp file is left in /tmp. the next scan
    # will overwrite it, and the next connect will remove it.
    # source this to get PROFILE_DIR and SUBR_DIR
    . /usr/lib/network/network
    errorout() {
    echo "Dynamic {"
    echo " Entry = \"$1\""
    echo "}"
    exit 1
    create_profile() {
    ESSID="$1"; INTERFACE="$2"; SECURITY="$3"; KEY="$4"
    PROFILE_FILE="$PROFILE_DIR$ESSID"
    cat > "$PROFILE_FILE" << END_OF_PROFILE
    CONNECTION="wireless"
    ESSID="$ESSID"
    INTERFACE="$INTERFACE"
    DESCRIPTION="Automatically generated profile"
    SCAN="yes"
    IP="dhcp"
    TIMEOUT="10"
    SECURITY="$SECURITY"
    END_OF_PROFILE
    # i think wifi-select should adopt these perms too...
    if [ -n "$KEY" ]; then
    echo "KEY=\"$KEY\"" >> "$PROFILE_FILE"
    chmod 600 "$PROFILE_FILE"
    else
    chmod 644 "$PROFILE_FILE"
    fi
    print_menu() {
    # scan for networks
    iwlist $INTERFACE scan 2>/dev/null | awk -f $SUBR_DIR/parse-iwlist.awk | sort -t= -nrk3 > /tmp/networks.tmp
    # exit if none found
    if [ ! -s /tmp/networks.tmp ]; then
    rm /tmp/networks.tmp
    errorout "no networks found."
    fi
    # otherwise print the menu
    echo "Dynamic {"
    IFS='='
    cat /tmp/networks.tmp | while read ESSID SECURITY QUALITY; do
    echo "Entry = \"$ESSID ($SECURITY) $QUALITY%\" {"
    echo " Actions = \"Exec sudo $0 $INTERFACE connect \\\"$ESSID\\\"\"</command>"
    echo "}"
    done
    unset IFS
    echo "}"
    connect() {
    # check for an existing profile
    PROFILE_FILE="$(grep -REl "ESSID=[\"']?$ESSID[\"']?" "$PROFILE_DIR" | grep -v '~$' | head -n1)"
    # if found use it, else create a new profile
    if [ -n "$PROFILE_FILE" ]; then
    PROFILE=$(basename "$PROFILE_FILE")
    else
    PROFILE="$ESSID"
    SECURITY="$(awk -F '=' "/$ESSID/"'{print $2}' /tmp/networks.tmp | head -n1)"
    # ask for the security key if needed
    if [ "$SECURITY" != "none" ]; then
    KEY="$(zenity --entry --title="Authentication" --text="Please enter $SECURITY key for $ESSID" --hide-text)"
    fi
    # create the new profile
    create_profile "$ESSID" "$INTERFACE" "$SECURITY" "$KEY"
    fi
    # connect
    netcfg2 "$PROFILE" >/tmp/output.tmp
    # if failed, ask about removal of created profile
    if [ $? -ne 0 ]; then
    zenity --question \
    --title="Connection failed" \
    --text="$(grep -Eo "[\-\>]\ .*$" /tmp/output.tmp) \n Remove $PROFILE_FILE?" \
    --ok-label="Remove profile"
    [ $? -eq 0 ] && rm $PROFILE_FILE
    fi
    rm /tmp/output.tmp
    rm /tmp/networks.tmp
    [ $(id -u) -ne 0 ] && errorout "root access required."
    [ -z "$1" ] && errorout "usage: $0 [interface]"
    INTERFACE="$1"; shift
    # i added a sleep if we need to explicitly bring it up
    # b/c youll get "no networks found" when you scan right away
    # this only happens if we aren't up already
    if ! ifconfig | grep -q $INTERFACE; then
    ifconfig $INTERFACE up &>/dev/null || errorout "$INTERFACE not up"
    sleep 3
    fi
    if [ "$1" = "connect" ]; then
    ESSID="$2"
    connect
    else
    print_menu
    fi
    exit 0

Maybe you are looking for

  • Connecting Pumps to PC and Using LabView to collect the data

    Hi There, I am a beginner with LabView and I want to use LabView to collect data from a Pump using RS-232. Could anybody help me where I need to start from? I highly appreciate your help. Regards Mo

  • Reporting services allow anonymous users to download reports

    Hello. I'm implementing some reports in a Virtual machine in Azure  and I would like to share these reports with some users through an URL like this: http://myreports.cloudapp.net/ReportServer?/SalesReportl&rs:Command=Render&rs:Format=PDF&Cod=GR0030&

  • Relaying not allowed but mappings seem fine

    Hi, we are running messaging server 5.2 on windows 2000 server. (actually we have 2 servers for 2 different domains, but configured exactly the same) I have the following problem: on one of the 2 servers, i can't send mail to external mail servers (e

  • Alert - AP Goods Receipt & AP Invoice

    Hi, Wondering if I could get some assistance on query required for an Alert. - Alert is to notify applicable users of AP goods received into warehouse "01".  Goods are received via AP invoice mostly but also random AP goods receipts (where Landed cos

  • My Creative Cloud is not responding or logging me in.

    While I was updating my photoshop CS6 app when it was about to be completed, it kicked me out and said that I have no internet connection when I already do have internet connection because I'm browing through websites at that point and my internet is