Conky and net interfaces

I am not sure why, I use user wired inet than wireless, but as of recently (maybe at the time of the change from netcfg to netctl) my conky setup fails to hide the wired info and replace it with the wireless one. Can it be ifplug related and as such the eth0 actually never goes down?
The code I am using right now is the following,
${if_up eth0}Local IP $alignr${addr eth0}
# External IP $alignr${execi 1 ~/.scripts/ip.sh}
Inbound $alignr ${downspeedf eth0} KB/s
Total Down ${totaldown eth0}
Outbound $alignr ${upspeedf eth0} KB/s
Total Up ${totalup eth0}${endif}
${if_up wlan0}Local IP $alignr ${addr wlan0}
# External IP $alignr${execi 1 ~/.scripts/ip.sh}
Signal ${wireless_link_qual wlan0}%
Inbound $alignr ${downspeedf wlan0} KB/s
Total Down ${totaldown wlan0}
Outbound $alignr ${upspeedf wlan0} KB/s
Total Up ${totalup wlan0}${endif}
Any help in order to achieve the expected result would be much appreciated.

Thanks for the info Brian. It's good to know it's not just me, and it's even better to know that this has been fixed (and I can see the function signatures too).
We're working with an outside company who are using LabVIEW 7.1 and don't want to upgrade the whole project to 8.20 at this stage (we're nearly finished - at last!). I had changed my .NET dll to support a new feature and I'd hoped to maintain backwards compatibility with early versions of the software. It's really not that much of a problem just to lose the old version of the method in the interface. I just have to remember not to try and drop the new version of the dll into the old version of the software.

Similar Messages

  • Flex Application architecture with web and air interface both using common components.

    We have a flex based e-learning application. It uses HTTP REST service and webservice to communicate with ASP.Net application to fetch and store data.
    We now want to develop an adobe air version of the user interface, which the students can download on their desktop as well as mobiles (Android, others).
    What would be a good architecture for such an application which has both web and windows interface. I can see that we can reuse almost 80% of the code of our web version. But I do not want to copy and create a new windows app from the flex web app. I would want to have both co-exist.
    Let me know a good article that I can read on this.

    I dug deeper and found the concept of Shared Common Library. I am trying to implement that.

  • Error in udev change of net interface name wlan0 to wlp3s0

    My quite fresh installation of Arch has started having the following problem:
    the udev rename of my wireless interface from wlan0 to wlp3s0 suddenly stopped working!
    In journalctl, I find the following error line:
    Jan 09 16:23:43 mole systemd-udevd[180]: error changing net interface name wlan0 to wlp3s0: Device or resource busy
    I am using netctl, netctl-auto and netctl-plugd with wpa-supplicant and dhcpd. The issue seems to be that netctl tries to do stuff with wlan0 before udev can rename it, as a  non-predictable race condition. Further down in journal, I have this (non-error) line
    Jan 09 16:23:43 mole systemd[1]: Started (Re)store the netctl profile state.
    Searching Google yielded me a few places talking about this, but no solution as I could see, and they were also possibly quite outdated.
    My ethernet interface is properly renamed and works without issues. I should perhaps also mention that my install is now about 3 weeks old, and I have rebooted the machin a number of times before this behaviour started. In this time I also switched from netctl to wicd back to netctl, and the last switch was only a few days ago.
    I have brainlessly tried various stuff, such as disabling netctl-auto and netctl-plugd for all interfaces, as well as adding a custom renaming rule to
    /etc/udev/rules.d/10-network.rules
    . Needless to say, this didn't resolve my problem.
    In case it is important, I have the following services pertaining to networking running:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    dhcpcd.service loaded active running dhcpcd on all interfaces
    [email protected] loaded failed failed Automatic wireless network connection using netctl profiles
    [email protected] loaded active running Automatic wired network connection using netctl profiles
    netctl.service loaded active exited (Re)store the netctl profile state
    netctl@wlan0_eduroam.service loaded active exited Networking for netctl profile wlan0_eduroam
    polkit.service loaded active running Authorization Manager
    systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
    wpa_supplicant.service loaded active running WPA supplicant
    Is it right to have netctl.service activated?
    Any help is greatly appreciated.
    Thanks,
    jsrn

    Thanks for the reply, lspci. With the same no. as your question:
    1. Right now I have both wlp3s0_[some interfaces] and wlan0_[same interfaces] since I need both interfaces. All of the names are correct, and their configs are the same expect of course for the Interface-line. I also have an enp0s25_dhcp for my wired connection.
    2. and 3. The custom udev rule that I made after the problem started occurring is in /etc/udev/rules.d/10-network.rules and contains
    SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="a4:4e:31:cd:5d:64", NAME="wlp3s0"
    I can't seem to detect that it has any influence or is even run. But on the other hand, it is exactly this that udev was already trying to do but failing.
    4. I could of course do this. But shouldn't it work without conflicting with the udev rename? The wiki currently recommends exactly these two services.
    Right now my system works, albeit more manually than I would hope. I am on wireless right now, but if I lose connection (bad reception here), then I have to stop the netctl service on wlan0, down the wlan0 link and then restart netctl on wlan0. Also, whenever switching wireless network or to wired, I expect to have to do similar tedious stuff.

  • My conky and rox layout:

    hello,
    this thread answers some questions from this thread http://bbs.archlinux.org/viewtopic.php?id=36457
    yes, the statistics line at the top is conky. it's a pretty simple setup. just everything written in line w/ "|" as separators.
    the .conkyrc:
    # Conky sample configuration
    # the list of variables has been removed from this file in favour
    # of keeping the documentation more maintainable.
    # Check http://conky.sf.net for an up-to-date-list.
    # set to yes if you want Conky to be forked in the background
    background yes
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    # Use Xft?
    use_xft yes
    # Xft font when Xft is enabled
    #xftfont Tahoma:size=10
    #xftfont arial:size=11
    xftfont architecture:size=15
    # Text alpha when using Xft
    xftalpha 1.0
    # mail spool
    mail_spool $MAIL
    # Update interval in seconds
    update_interval 2.0
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    # Create own window instead of using desktop (required in nautilus)
    own_window no
    # If own_window is yes, you may use type normal, desktop or override
    own_window_type normal
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    # If own_window_transparent is set to no, you can set the background colour here
    own_window_colour hotpink
    # If own_window is yes, these window manager hints may be used
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    # Minimum size of text area
    minimum_size 3 3
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    # Draw borders around graphs
    draw_graph_borders yes
    # Stippled borders?
    stippled_borders 8
    # border margins
    border_margin 4
    # border width
    border_width 1
    # Default colors and also border colors
    default_color 080808
    default_shade_color 213129
    default_outline_color black
    # Text alignment, other possible values are commented
    alignment top_left
    #alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment none
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 2
    gap_y 15
    # Subtract file system buffers from used memory?
    no_buffers yes
    # set to yes if you want all text to be in uppercase
    uppercase no
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer no
    # Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
    #max_port_monitor_connections 256
    # Maximum number of special things, e.g. fonts, offsets, aligns, etc.
    #max_specials 512
    # Maximum size of buffer for user text, i.e. below TEXT line.
    #max_user_text 16384
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    # stuff after 'TEXT' will be formatted on screen
    TEXT
    ${time %d.%m.%y %H:%M:%S} | $loadavg | Proc: $processes/$running_processes | CPU: $cpu % | RAM: $mem/$memmax | Swap: $swap/$swapmax | DiskIO: $color$diskio | In: ${downspeed eth0} k/s ${upspeed eth0} k/s | Ex: ${upspeed eth1} k/s ${downspeed eth1} k/s | Cpu:$color ${exec expr `cat /sys/bus/i2c/devices/0-002d/temp2_input` / 1000} C Mb:$color ${exec expr `cat /sys/bus/i2c/devices/0-002d/temp1_input` / 1000} C
    $color slash ${color grey} $color${fs_used /} ${color grey} - $color${fs_free /}
    $color var ${color grey} $color${fs_used /var} ${color grey} - $color${fs_free /var}
    $color vlad ${color grey} $color${fs_used /home/vlad} ${color grey} - $color${fs_free /home/vlad}
    font is architecture:size=15. i don't know where i got it from. i collect fonts since my windows days, which are long gone....
    the icons are called concept or somehow similar and i got the from (where all good icons come from) http://search.deviantart.com .
    i've searched them a little, but i can't find them again... (i think j3concepts made them)
    Could u also elaborate this line < pixmap_path "~/.icons/panel_icons/icons_2" > ?
    you tell rox to search in this directory for icons. the directory (panel_icons/icons_2) is an arbitrary dir for putting my own icon themes together.
    the panel at bottom is wbar. a brilliantly small panel for light-weight desktops/wm. http://freshmeat.net/projects/wbar/?bra … _id=259132
    some more screens:
    http://img444.imageshack.us/my.php?imag … 24aqd0.png
    i'm running openbox3.4, wallpaper from desktopography.
    i think that's all, folks!
    vlad
    ps:
    i forgot the gtk2 and openbox theme is dyne:
    http://www.gnome-look.org/content/show. … tent=61936
    http://www.box-look.org/content/show.ph … tent=62000
    the openbox theme is tweaked by my for my likings. i _really_ like the stuff made by lyrae:
    http://www.box-look.org/usermanager/sea … n=contents
    i think that's all, folks!
    Last edited by DonVla (2007-08-24 19:05:39)

    DonVla wrote:
    hello,
    yes, the statistics line at the top is conky. it's a pretty simple setup. just everything written in line w/ "|" as separators.
    the .conkyrc:
    <snip>
    One suggestion I'd like to make for the .conkyrc you posted is that using:
    use_spacer yes
    is very helpful, especially in single-line / horizontal conky set-ups* where monitors' changing width can be more visually apparent / displeasing. Of course, this is only helpful with monospace fonts.
    Also, if I may, I normally use a vertical conky layout which allows for much more information / monitors to be used. With single-line horizontals, you are much more limited in what will fit across the screen. As such, I created this script which toggles between various "conkyrc" files:
    #!/bin/sh
    ##Script Name: toggle_conky
    ##Description of Script: toggle launch / close of conky
    ##Date: 2007 0826
    conkypid="$(pidof -s conky)"
    conkyrc_1="$HOME/.conkyrc"
    conkyrc_2="$HOME/.conkyrc_HORIZMain"
    conkyrc_3="$HOME/.conkyrc_HORIZHwStatus"
    conkyrc_4="$HOME/.conkyrc_HORIZDisks"
    tmpfile="/tmp/myconky_status"
    # run conkyrc default
    function conky_1 {
    conky -c $conkyrc_1 &
    echo '2' > $tmpfile
    # run alternate 2 conkyrc
    function conky_2 {
    kill -15 $conkypid
    conky -c $conkyrc_2 &
    echo '3' > $tmpfile
    # run alternate 3 conkyrc
    function conky_3 {
    kill -15 $conkypid
    conky -c $conkyrc_3 &
    echo '4' > $tmpfile
    # run alternate 3 conkyrc
    function conky_4 {
    kill -15 $conkypid
    conky -c $conkyrc_4 &
    echo '100' > $tmpfile
    # quit conky
    function conky_100 {
    kill -15 $conkypid
    rm -f $tmpfile
    if [ -z "$conkypid" ] ; then
    conky_status="1"
    elif [ -n "$conkypid" ] && [ -f "$tmpfile" ] ; then
    conky_status=$(cat $tmpfile)
    fi
    case "$conky_status" in
    1)
    conky_1
    2)
    conky_2
    3)
    conky_3
    4)
    conky_4
    100)
    conky_100
    esac
    exit
    Just create a desktop or panel launcher (or whatever you might use for a particular DE) pointing to the script. In this example, clicking the launcher:
    - the first time = launching default conky w / default conkyrc
    - the second time = launching horizontal conky w / .conkyrc_HORIZMain
    - the third time = launching horizontal conky w / .conkyrc_HORIZHwStatus
    - the fourth time = launching horizontal conky w / .conkyrc_HORIZDisks
    - the fifth time = quitting conky
    By using the script, you can keep the minimalist horizontal set-up while retaining flexibility of switching monitors simply by clicking the launch icon (of course you have to also prepare separate conkyrc files). By creating more conkyrc files and modifying the script to accommodate them, you could "rotate" between any number of conky layouts to suit your needs.
    Just thought I'd throw this out there.
    * Note: I realize that you aren't using a single-line horizontal layout based on your posted conkyrc, but from the screenshot in the original post, it appeared that way to viewers of the screenshot because you had open windows covering the other areas.
    Last edited by MrWeatherbee (2007-08-26 20:28:51)

  • [SOLVED]Conky and the phantom CPU

    So I am running Conky with Fluxbox on a laptop with a duel core CPU. Playing around with Conkys different output and variables trying to get a set up I liked. I notice I was able to monitor three CPUs when there should only be two. I can't seem to find any documentation on why this would be. All output different numbers is it possible one is the sum of each core added together? I also noted that if I add ${cpu cpu3} to the code below it does not show a fourth or more CPUs.
    ${color}CPU: ${cpu cpu0}%
    ${color}CPU: ${cpu cpu1}%
    ${color}CPU: ${cpu cpu2}%
    If someone could shed some light on this for me and maybe let me know which ones I should be using it would be greatly appreciated.
    Last edited by Sebrithil (2012-10-22 02:41:18)

    The conky man page has the information you need, and so does the online conky documentation: http://conky.sourceforge.net/variables.html
    man conky
    cpu (cpuN)
        CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu cpuX} (X >= 1) are individual CPUs.
    Last edited by 2ManyDogs (2012-10-22 02:30:29)

  • Conky and frequency scaling

    Hello.
    I have couple of computers with conky and cpufreq working. All fine there. It was so also on my notebook, which had Ubuntu 9.04 installed. I reinstalled to 9.10 and since then my conky reports full frequency.
    There was a lot of other issues, so I decided to finally remove Ubuntu and take the time to install Arch. Things are much better with Arch on this notebook, but I did not get rid of the frequency scaling problem. It is Thinkpad X31 btw.
    According to powertop and cpufreq-info, the frequency scaling is working. Conky reports 1400Mhz all the time.
    Here is my cpufreq-info:
    cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which need to switch frequency at the same time: 0
    hardware limits: 600 MHz - 1.40 GHz
    available frequency steps: 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz, 600 MHz
    available cpufreq governors: ondemand, performance
    current policy: frequency should be within 600 MHz and 1.40 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 600 MHz.
    cpufreq.conf
    #configuration for cpufreq control
    # valid governors:
    # ondemand, performance, powersave,
    # conservative, userspace
    governor="ondemand"
    # valid suffixes: Hz, kHz (default), MHz, GHz, THz
    min_freq="0.5GHz"
    max_freq="3GHz"
    lsmod | grep freq
    cpufreq_ondemand 7400 1
    acpi_cpufreq 8648 0
    freq_table 3740 2 cpufreq_ondemand,acpi_cpufreq
    processor 36076 2 acpi_cpufreq
    Running this script clearly shows that freq is changing
    #!/bin/bash
    while [ "1"=="1" ]; do
    echo `cpufreq-info | grep "current CPU frequency"`
    sleep 2
    done
    conkyrc
    update_interval 2
    background yes
    use_spacer left
    double_buffer yes
    short_units yes
    pad_percents 3
    own_window yes
    own_window_type normal
    own_window_transparent yes
    gap_x 4
    gap_y 30
    draw_shades no
    draw_outline no
    draw_borders no
    stippled_borders 10
    color0 black
    color1 white
    default_shade_color white
    default_outline_color white
    own_window_hints undecorated, below, skip_taskbar, skip_pager
    alignment bottom_left
    TEXT
    ${alignc}${color1}$nodename
    ${alignc}$sysname $kernel on $machine
    ${color1}$hr
    ${color1}CPU: $color0${cpu cpu0}%
    ${color0}${cpugraph cpu0 15}
    ${cpubar cpu0 4}
    ${color1}RAM :$color0 $memperc% ${membar 4}
    ${color1}Swap :$color0 $swapperc% ${swapbar 4}
    ${color1}Processes :$color0 ${exec printf "%3d" `ps -A | wc -l`}/$running_processes ${color1}Uptime :$color0 $uptime_short${color1}
    ${color1}Frequency :$color0 ${exec cpufreq-info | grep "current CPU frequency" | cut -c28-35} ${freq}${color1} ${if_existing /sys/class/power_supply/BAT0}${if_existing /sys/class/power_supply/BAT0/present 1}
    ${color1}$hr
    Battery : $color0${battery_bar 4 BAT0}
    ${battery_time}${alignr}${battery}${endif}${endif}
    ${color1}$hr
    ${if_existing /sys/class/net/eth0/operstate up}${color1}IP :${alignr}${color0}${addr eth0}${color1}
    Wired connection
    ${color0}${downspeedgraph eth0 12,108} ${upspeedgraph eth0 12,108}
    ${color1}Down : $color0${downspeed eth0} ${color1} Up: $color0${upspeed eth0}${color1}k/s ${else}${if_existing /sys/class/net/wlan0/operstate up}${color1}IP :${alignr}${color0}${addr wlan0}${color1}
    Wifi :$color0${wireless_link_qual wlan0}% ${wireless_link_bar 4,0 wlan0}
    ${color0}${downspeedgraph wlan0 12,108} ${upspeedgraph wlan0 12,108}
    ${color1}Down : $color0${downspeed wlan0} ${color1} Up : $color0${upspeed wlan0}${color1}${else}
    ${endif}${endif}
    ${color1}$hr
    ${color1}CPU :$color0 ${ibm_temps 0} ${color1}C HDD :$color0 ${ibm_temps 2}${color1} C
    ${color1}GPU :$color0 ${ibm_temps 3} ${color1}C BAT :$color0 ${ibm_temps 4} ${color1}/${color0} ${ibm_temps 6} ${color1}C
    ${color1}$hr
    ${color1}Top: PID CPU% MEM%
    ${color0 white} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color0 white} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color0 white} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color0 white} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    As you can see I even put that part of script, which takes values from cpufreq-info into conky, but it still does show wrong values.
    When I manually set frequency to 600Mhz, it shows up in conky.
    With Ubuntu 9.04 this was working fine, so I wonder what has recently changed that could have resulted in this behaviour.

    Archiee wrote:[...]
    - Frequency step size is configurable (default to 100MHz/step) (cpufreq doesn't support this)
    If I'm not mistaken it's the CPU that tells the utility what frequencies it can switch to; not the other way around. Remember each frequency has a voltage tied to it. Also, he's not asking about a way to manage his cpuf requency management, just about a glitch in actualy frequency reporting.
    @ topic starter: why are you grepping cpufreq-info if you can have conky just read it out for you? It's a hardcoded conky feature...
    From their documentation:
    freq    (n)    Returns CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1
    @ Archiee: I checked with powernowd:
    root@hermes # powernowd -v
    powernowd: PowerNow Daemon v1.00, (c) 2003-2008 John Clemens
    powernowd: Settings:
    powernowd: verbosity: 1
    powernowd: mode: 1 (AGGRESSIVE)
    powernowd: step: 100 MHz (100000 kHz)
    powernowd: lowwater: 20 %
    powernowd: highwater: 80 %
    powernowd: poll interval: 1000 ms
    powernowd: about to return count = 1
    powernowd: Found 2 scalable units: -- 1 'CPU' per scalable unit
    powernowd: cpu0: 800Mhz - 1200Mhz (2 steps)
    powernowd: step1 : 1200Mhz
    powernowd: step2 : 800Mhz
    powernowd: cpu1: 800Mhz - 1200Mhz (2 steps)
    powernowd: step1 : 1200Mhz
    powernowd: step2 : 800Mhz
    root@hermes # cpufreq-info
    cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 2004-2009
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0 1
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 10.0 us.
    hardware limits: 800 MHz - 1.20 GHz
    available frequency steps: 1.20 GHz, 800 MHz
    available cpufreq governors: userspace, powersave, ondemand, performance
    current policy: frequency should be within 800 MHz and 1.20 GHz.
    The governor "userspace" may decide which speed to use
    within this range.
    current CPU frequency is 800 MHz (asserted by call to hardware).
    analyzing CPU 1:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0 1
    CPUs which need to have their frequency coordinated by software: 1
    maximum transition latency: 10.0 us.
    hardware limits: 800 MHz - 1.20 GHz
    available frequency steps: 1.20 GHz, 800 MHz
    available cpufreq governors: userspace, powersave, ondemand, performance
    current policy: frequency should be within 800 MHz and 1.20 GHz.
    The governor "userspace" may decide which speed to use
    within this range.
    current CPU frequency is 800 MHz (asserted by call to hardware).

  • RMI registry on multiple net interfaces

    I'm interested in creating several RMI registry servers, each one listening in one different net interface of the same machine (two ethernet cards). Is there any way to do this without using custom RMI socket factories? From the documentation I have read, it looks like there's no possibility to choose a specific network interface. Instead, RMI registry chooses the one associated to localhost.
    Thanks in advance.
    Zealon

    You could use
    LocaeRegistry.createRegistry(port,csf,ssf) with an
    RMIServerSocketFactory that binds the ServerSocket to
    the appropriate network address, but you will then
    discover that you can only have one Registry per JVM
    because it has a fixed objectID, so don't bother.
    But actually, why do you want to do this? Your stated
    reason is not correct. By default any ServerSocket,
    including those created by the Registry and RMI, is
    bound to 'any', which means it should accept from all
    network interfaces. Perhaps you have the classic
    'hosts' hosts/DNS setup problem where your servers
    embed 127.0.0.1 in the stub? Use
    -Djava.rmi.server.hostname at the server JVM, or
    better still fix your 'hosts' file or DNS setup.
    EJPThanks for your reply. Maybe I didn't explain myself enough.
    I'm working in medical electrocardiography, and have a PC with two net interfaces. The first one is bound to a LAN IP address that belongs to a medical network. Each one of the hosts in this medical network is an electrocardiography monitor, attached to a patient..
    The second net interface is an external IP address (not LAN address).
    I created a remote class called MonitorFactory, that should provide information about the electrocardiography monitors existing into the medical network. It works OK, and I cand bind MonitorFactory objects to a RMI registry with no problem at all.
    There are some reasons I would like to use several RMI registries:
    - First one, I need to control access from external network to my medical network. Medical patient data must be handled very carefully. I thought I could do so by enabling/disabling an RMI registry bound to the external IP address. This way, I could enable access to medical data from outside the medical network, by registering my MonitorFactory objects to this external RMI registry, but only when I decide to do that.
    - Second one, I want an RMI registry always running bound to the medical LAN IP address, so I could use the applications that use MonitorFactory like a local application, not only like a remote one.
    This scheme represents the system I have to build:
    PC with two network interfaces
    External PC <----------->|213.xxx.xxx.xxx 192.xxx.xxx.xxx|<----------> Medical network
    MonitorFactory - Listens to medical data into 192.xxx.xxx.xxx network only. Bound to
    external RMI registry when available and always bound to internal RMI registry.
    External RMI registry - bound to 213.xxx.xxx.xxx. Enabled when I decide to do so.
    Internal RMI registry - bound to 192.xxx.xxx.xxx. Always enabled.
    If I create an RMI registry bound to "any" of the interfaces, I always risk my medical data to the Internet, because there is always a port open at 213.xxx.xxx.xxx accepting connections.
    One possible solution could be using SSL sockets for RMI. This way, only allowed clients could connect to RMI registry. But what worries me most is the fact that a port could be open to the Internet - what about attacks to this open port? If those attacks could make RMI registry fall, medical data flow to another information systems could be interrupted, including medical alarms like critical patient status.
    On the other way, I would like to maintain RMI default sockets for compatibility and future releases of my application.
    Any suggestions?
    Thanks in advance.
    Zealon.

  • Remote and local interface on same ejb 3.0 bean instance

    Hi,
    Is it posible to get remote and local interface on same ejb 3.0 bean instance.
    For example get local interface of a bean and than pass it as remote to client.
    Both interfaces must operate on same bean instance.
    Thanks
    Zlaja

    yes. You can implement multiple interfaces on a single class, so you can add a local and a remote interface. One trick to avoid duplicate code is to simply make the remote interface extend the local interface; then you only have to add the @Remote annotation and you're done.
    For example get local interface of a bean and than pass it as remote to client.You don't pass an instances to a client, a client looks up a remote instance of the bean through JNDI.

  • The difference between IEEE802.1Q Native VLAN sub-interface and Physical interface?

    Hello
    I think the following topologies are supported for Cisco Routers
    And the Physical interface also can be using as Native VLAN interface right? 
    Topology 1.
     R1 Gi0.1 ------ IEEE802.1Q Tunneling  L2SW ------ Gi0 R2
    R1 - configuration
    interface GigabitEthernet0.1
     encapsulation dot1Q 1 native
     ip address 10.0.0.1 255.255.255.0
    Topology 2.
    R1 Gi0 ------ IEEE802.1Q Tunneling L2SW ------ Gi0 R2
    interface GigabitEthernet0
    ip address 10.0.0.1 255.255.255.0
     And is it ok to use the physical interface and sub-interface with dynamic routing such as EIGRP or OSPF etc?
    R1 Gi 0 ---- Point to Multipoint EIGRP or OSPF ---- Gi0 R2 / R3 
          Gi 0.20--- Point to Point EIGRP or OSPF --- Gi0.10 R4  (same VLAN-ID) 
    R1 - configuration
    interface GigabitEthernet0
     ip address 10.0.0.1 255.255.255.0
    interface GigabitEthernet8.20
     encapsulation dot1Q 20
     ip address 20.0.0.1 255.255.255.0
    Any information is very appreciated. but if there is any CCO document please let me know.
    Thank you very much and regards,
    Masanobu Hiyoshi

    Hello,
    The diagram is helpful.
    If I am getting you correctly, you have three routers interconnected by a switch, and you want them to operate in a hub-and-spoke fashion even though the switch is capable of allowing direct communication between any of these routers.
    Your first scenario is concerned with all three routers being in the same VLAN, and by using neighbor commands, you force these routers to establish targeted EIGRP adjacencies R1-R2 and R1-R3, with R1 being the hub.
    Your second scenario is concerned with creating one VLAN per spoke, having subinterfaces for each spoke VLAN created on R1 as the router, and putting each spoke just in its own VLAN.
    Your scenarios are not really concerned with the concept of native VLAN or the way it is configured, to be honest. Whether you use a native VLAN in either of your scenarios, or whether you configure the native VLAN on a subinterface or on the physical interface makes no difference. There is simply no difference to using or not using a native VLAN in any of your scenarios, and there is no difference to the native VLAN configuration being placed on a physical interface or a subinterface. It's as plain as that. Both your scenarios will work.
    My personal opinion, though, is that forcing routers on a broadcast multi-access segment such as Ethernet to operate in a hub-and-spoke fashion is somewhat artificial. Why would you want to do this? Both scenarios have drawbacks: in the first scenario, you need to add a neighbor statement for each spoke to the hub, limiting the scalability. In the second scenario, you waste VLANs and IP subnets if there are many spokes. The primary question is, though: why would you want an Ethernet segment to operate as a hub-and-spoke network? Sure, these things are done but they are motivated by specific needs so I would like to know if you have any.
    Even if you needed your network to operate in a hub-and-spoke mode, there are more efficient means of achieving that: Cisco switches support so-called protected ports that are prevented from talking to each other. By configuring the switch ports to spokes as protected, you will prevent the spokes from seeing each other. You would not need, then, to configure static neighbors in EIGRP, or to waste VLANs for individual spokes. What you would need to do would be deactivating the split horizon on R1's interface, and using the ip next-hop-self eigrp command on R1 to tweak the next hop information to point to R1 so that the spokes do not attempt to route packets to each other directly but rather route them over R1.
    I do not believe I have seen any special CCO documents regarding the use of physical interfaces or subinterfaces for native VLAN or for your scenarios.
    Best regards,
    Peter

  • What is the diff b/w Abstract class and an interface ?

    Hey
    I am always confused as with this issue : diff b/w Abstract class and an interface ?
    Which is more powerful in what situation.
    Regards
    Vinay

    Hi, Don't worry I am teach you
    Abstract class and Interface
    An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.
    Edited by SASIKUMARA
    SIT INNOVATIONS- Chennai
    Message was edited by:
    sasikumara
    Message was edited by:
    sasikumara

  • Remote and Home interface binding to an EJB2.1/3.0 bean.

    When deploying a complete ejb bean,
    -What associated a bean class, within the container,
    with it's home and remote interfaces?
    -JBoss Application server requires that the Bean class
    directly implement both interfaces.
    -Assuming EJB 2.1, is this approached by
    interface implementation, a naming convention,
    a common location in a package/directory,
    or is this put in the deployment descriptor xml file?
    What is the standard approach?
    Z.

    If you have included the HTTP server with your 10.1.3.2 installation you could also setup a proxy/proxy-reverse setup in the portal http server for the /app08 mountpoint and point this to your 10.1.3.2 server....

  • Remote and Home Interfaces

    Why do we need a home interface and remote interface for a ejb.
    Must these interfaces be there for each ejb?

    Why do we need a home interface and remote interface
    for a ejb.The Home interface is like a factory for getting to your beans. The remote interface is what you use to speak "directly" to the bean. It's remote because the bean is usually on a remote server somewhere (not in the same VM as your client code). The same is true for the home interface in terms of it being remote.
    The corresponding LocalHome and Local interfaces are for use when the bean in question is not remote.
    Must these interfaces be there for each ejb?You need either a Home and Remote or LocalHome and Local interface for all beans except Message Driven Beans.

  • How to connect to third party using PI for outbound and inbound interfaces

    Hello,
    I have scenarios where I have data coming in from third party EDI subsystem and sent to SAP. And also from SAP to EDI subsystem. We need to send the XMLs to the EDI subsystema nd also receive XMLs.
    Can someone please suggest the ways I can connect to EDI subsytem for both Outbound and Inbound interfaces.
    Thanks

    Hi Prabhu,
    EDI file is different from the normal flat or xml file. Hope you understand the difference.
    Now if your EDI subsytem has the capability of converting the xml file to edi file viceversa then create and receive the xml file from the EDI subsystem. For the xml file you may use the file adapter as an option.
    If it doesnot have the capability then seeburger adapter needs to  be used. This is not an inbuilt adapter. So your company needs to purchase it.
    Regards,
    ---Satish

  • [solved] Issue with conky and Kde 4

    I have a small issue with conky and KDE 4.2. I start conky with a script which I stored under ~/.kde/Autostart. The script is simple and looks like this..
    conky -c ~/.conkyrc_kde4
    This works fine. But when I restart the first KDE and check with ps, I have 2 instances of conky running. The instances keep on growing with the number of restarts.
    I think kde tries to restart all the apps which were running when the session was terminated. Is there a way to change this behavior in general or all the programs or for only a specific program like conky ?
    Last edited by rangalo (2009-07-28 19:02:17)

    I did
    Systemsettings > Advanced > Session Manager > Start with an empty session
    and put everything you want in Autostart

  • How can I hide the "home" and "net" volumes in mountain lion

    I have a MacBook Pro that I updated to Mt. Lion.  The home and net volumes are now visible in the Finder at the root level.  They contain 0 bytes of data.  How can I make them invisible?

    Sometimes it takes me a while to remember this stuff. The issue is that these invisible folders are actually symlinks and not real folders. They behave differently. Here's something that used to work and may still:
    Open Terminal in the Utilities folder:
    cd /
    nano .hidden
    Press RETURN after each line. In the editor listing enter, one line each, home and net. CTRL+O to save the file. Now log out and log back in or restart. The files should be invisible.
    Beyond this requires downloading the XTools in order to use one developer tool not included with OS X.

Maybe you are looking for

  • How to set Command Timeout in Crystal report while calling from C# code

    I am using Crystal report XI R2.  I am calling SQL server 2005 stored procedure as source in the report. I want the report should timeout from the website if the stored procedure doesn't return resultset after 5 minute. Could you please assist how sh

  • What if I keyed my phone number wrong in iOS8 security set up?

    I accidentally fat fingered my phone number during initial start up of the new iPhone OS, iOS8.  The data entry screen had something to do with security.  I'm not sure how it is supposed to work but I can't find anywhere to change this.   Can someone

  • JSF, MyFaces and accessibility

    Apologies for this question which seems like it really ought to be a matter for Google - I've looked but not found much of use. Does anyone have any links or resources which discuss providing accessibilty when implementing a JSF/MyFaces site? I've re

  • What is the installer task in Activity Monitor

    My computer on boot up has 8GB of free HD space, its a Macbook Air 2011.  Sometimes, not all the time, i get startup disk almost full, I look at the Disk utility and the 8GB has gone down to MB and eventually reaches zero.  Fan is going crazy and it

  • SQL Server 2005 Connection Status Pending

    Hi all, How do I debug a SQL Server connection in ?  The status goes to pending and stays there. MII V12.0.4 VMWare/Windows 2003 64bit SQL Server 2005 JDBC Driver 1.2, a Type 4 JDBC I deployed the sqljdbc.jar to MII (downloaded and deployed). I creat