Rename group of interfaces with udev

Hello!
I was wandering how I could achieve the following with udev or with the help of some other tool:
   * Match an interface (used for wan) and rename it to WAN (DONE)
   * Match All the rest of the interfaces and rename them as LAN1, LAN2 ... LANn.
The thing is that I want to be able to add an Ethernet card in the future and not have to worry about it's name.
Thanks in advance

Download Renamer4Mac or BatchRename'em 1.1 from VersionTracker or MacUpdate.

Similar Messages

  • Arduino interface with labview: not able to upload lvifa base file

    guys, you have to really help me out on this one i have been at it for days. i am new to this so please help me out. i have an arduino uno with atmega8 on it and i m trying to interface it with labview but everytime i tried to upload the lvifa base file it shows and error, and it reads "XYZ is not declared in this scope".
    AFMotor.cpp: In function 'void initPWM1(uint8_t)':
    AFMotor.cpp:87: error: 'TCCR2A' was not declared in this scope
    AFMotor.cpp:87: error: 'COM2A1' was not declared in this scope
    AFMotor.cpp:88: error: 'TCCR2B' was not declared in this scope
    AFMotor.cpp:89: error: 'OCR2A' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM1(uint8_t)':
    AFMotor.cpp:108: error: 'OCR2A' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM2(uint8_t)':
    AFMotor.cpp:124: error: 'TCCR2A' was not declared in this scope
    AFMotor.cpp:124: error: 'COM2B1' was not declared in this scope
    AFMotor.cpp:125: error: 'TCCR2B' was not declared in this scope
    AFMotor.cpp:126: error: 'OCR2B' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM2(uint8_t)':
    AFMotor.cpp:146: error: 'OCR2B' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM3(uint8_t)':
    AFMotor.cpp:162: error: 'TCCR0A' was not declared in this scope
    AFMotor.cpp:162: error: 'COM0A1' was not declared in this scope
    AFMotor.cpp:162: error: 'WGM00' was not declared in this scope
    AFMotor.cpp:162: error: 'WGM01' was not declared in this scope
    AFMotor.cpp:164: error: 'OCR0A' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM3(uint8_t)':
    AFMotor.cpp:184: error: 'OCR0A' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM4(uint8_t)':
    AFMotor.cpp:202: error: 'TCCR0A' was not declared in this scope
    AFMotor.cpp:202: error: 'COM0B1' was not declared in this scope
    AFMotor.cpp:202: error: 'WGM00' was not declared in this scope
    AFMotor.cpp:202: error: 'WGM01' was not declared in this scope
    AFMotor.cpp:204: error: 'OCR0B' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM4(uint8_t)':
    AFMotor.cpp:224: error: 'OCR0B' was not declared in this scope
    I tried different arduino IDE versions as well, it not working out.
    Thanks!

    https://decibel.ni.com/content/groups/labview-interface-for-arduino?view=discussions

  • Dockingstation with udev and systemd

    Hello,
    first: sorry for my bad english... the last time i have practise my english was in school :-)
    now my problem:
    i try to setup a udev-rule for my thinkpad T61 when the latptop is (un)docked from the station.
    i try a lot of thinks... RUN+=" and such stuff -- but my script takes very long time (Setup Interface, WakeOnLAN, multiple cryptet mounts from my homeserver etc.) and killed by systemd after a while.
    related to this (jasonwryan.com -- Scripting with udev) and this (bbs.archlinux.org -- Automating a script for a usb device on systemd?) i create a udev-rule like this:
    /etc/udev/rules.d/10-thinkpad-dock.rules:
    TAG+="systemd", SUBSYSTEM=="platform", KERNEL=="dock.3", ACTION=="change", ENV{SYSTEMD_READY}="1", ENV{SYSTEMD_USER_WANTS}="dock.service"
    and a service-file like this:
    /etc/systemd/user/dock.service
    [Unit]
    Description=User docking actions
    After=graphical.target sys-devices-platform-dock.3.device
    [Service]
    Type=simple
    Restart=always
    Environment=DISPLAY=:0.0
    Environment=XAUTHORITY=/home/emilia/.Xauthority
    ExecStart=-/usr/local/sbin/tp-dock
    [Install]
    WantedBy=graphical.target sys-devices-platform-dock.3.device
    the problem is, the script runs only once at the first docking-action after a reboot. the other times nothing happens and also the logs are empty.
    Any suggestions and/or help please?

    Hello,
    first: sorry for my bad english... the last time i have practise my english was in school :-)
    now my problem:
    i try to setup a udev-rule for my thinkpad T61 when the latptop is (un)docked from the station.
    i try a lot of thinks... RUN+=" and such stuff -- but my script takes very long time (Setup Interface, WakeOnLAN, multiple cryptet mounts from my homeserver etc.) and killed by systemd after a while.
    related to this (jasonwryan.com -- Scripting with udev) and this (bbs.archlinux.org -- Automating a script for a usb device on systemd?) i create a udev-rule like this:
    /etc/udev/rules.d/10-thinkpad-dock.rules:
    TAG+="systemd", SUBSYSTEM=="platform", KERNEL=="dock.3", ACTION=="change", ENV{SYSTEMD_READY}="1", ENV{SYSTEMD_USER_WANTS}="dock.service"
    and a service-file like this:
    /etc/systemd/user/dock.service
    [Unit]
    Description=User docking actions
    After=graphical.target sys-devices-platform-dock.3.device
    [Service]
    Type=simple
    Restart=always
    Environment=DISPLAY=:0.0
    Environment=XAUTHORITY=/home/emilia/.Xauthority
    ExecStart=-/usr/local/sbin/tp-dock
    [Install]
    WantedBy=graphical.target sys-devices-platform-dock.3.device
    the problem is, the script runs only once at the first docking-action after a reboot. the other times nothing happens and also the logs are empty.
    Any suggestions and/or help please?

  • Can you help? Two dialer interfaces with IP SLA for default route failover - issues

    I have an issue with a Cisco 2821, it has an ADSL2+ HWIC  whose ATM interfaces is linked to dialer 1 and a Gi0/1 interface with a pppoe client which is linked to dialer 2.  Both dialer interfaces are up with their respective IP addresses.  If the ADSL on dialer 1 fails i want the IP SLA to kick and and replace the default route for dialer 1 with one for dialer 2.
    This config works if you manually shut down the dialer 1 interface, it injects the default route for dialer 2 and then when you unshut the interface, the default route for dialer 1 comes back.  The problem i have is if you take out the cable for the ATM interface and take it down, it does not take the route out the routing table and the default route for dialer2,  which works if you just shut down dialer 1 does not appear.
    whats the difference between shutting down dialer1 and it fails over the default route and taking the cable out then it does not?
    Here is my config, i'm sure its something simple i'm doing wrong, can anyone help???
    version 12.4
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname Router
    boot-start-marker
    boot-end-marker
    logging message-counter syslog
    enable secret 5 $1$qOOJ$HV5AH6US/YZMuCGPYp3pP.
    no aaa new-model
    dot11 syslog
    ip source-route
    ip cef
    ip dhcp excluded-address 192.168.0.1
    ip dhcp pool pool1
       network 192.168.0.0 255.255.255.0
       default-router 192.168.0.1
       dns-server 188.92.232.50 188.92.232.100
    no ip domain lookup
    no ipv6 cef
    multilink bundle-name authenticated
    voice-card 0
     no dspfarm
    archive
     log config
      hidekeys
    track 1 ip sla 1 reachability
    interface GigabitEthernet0/0
     description Gi0/30 Local LAN
     ip address 192.168.0.1 255.255.255.0
     ip verify unicast reverse-path
     no ip redirects
     no ip unreachables
     no ip proxy-arp
     ip flow ingress
     ip nat inside
     ip virtual-reassembly
     no ip mroute-cache
     duplex auto
     speed auto
     snmp trap ip verify drop-rate
     no mop enabled
    interface GigabitEthernet0/1
     no ip address
     duplex auto
     speed auto
     pppoe enable group global
     pppoe-client dial-pool-number 2
    interface ATM0/2/0
     description ATM0_DSL
     no ip address
     no ip redirects
     no ip unreachables
     no ip proxy-arp
     ip flow ingress
     logging event atm pvc state
     logging event subif-link-status
     no atm ilmi-keepalive
     dsl operating-mode auto
     dsl enable-training-log
     pvc 0/38
      encapsulation aal5mux ppp dialer
      dialer pool-member 1
    interface Dialer1
     ip address negotiated
     no ip redirects
     no ip unreachables
     no ip proxy-arp
     ip mtu 1492
     ip nat outside
     ip virtual-reassembly
     encapsulation ppp
     dialer pool 1
     keepalive 1 3
     no cdp enable
     ppp lcp predictive
     ppp authentication pap chap callin
     ppp chap hostname ********@ccsleeds.net
     ppp chap password 0 ********
     ppp pap sent-username *******@ccsleeds.net password 0 ********
    interface Dialer2
     ip address negotiated
     no ip redirects
     no ip unreachables
     no ip proxy-arp
     ip mtu 1492
     encapsulation ppp
     dialer pool 2
     keepalive 1 3
     no cdp enable
     ppp lcp predictive
     ppp authentication pap chap callin
     ppp chap hostname **********@adsllogin.co.uk
     ppp chap password 0 *********
     ppp pap sent-username *********@adsllogin.co.uk password 0 ***********
    ip forward-protocol nd
    ip route 0.0.0.0 0.0.0.0 Dialer1 track 1
    ip route 0.0.0.0 0.0.0.0 Dialer1
    ip route 0.0.0.0 0.0.0.0 Dialer2 10
    no ip http server
    no ip http secure-server
    ip nat inside source list 1 interface Dialer1 overload
    ip sla 1
    icmp-echo 8.8.8.8 source-interface di1
    timeout 1000
    threshold 100
    frequency 3
    ip sla schedule 1 life forever start-time now
    access-list 1 permit 192.168.0.0 0.0.0.255
    control-plane
    gatekeeper
     shutdown
    line con 0
    line aux 0
    line vty 0 4
     password test
     login
    scheduler allocate 20000 1000
    end

    Sure that EEM can shut/unshut interface...you have "event track" in EEM for monitoring track events...for example:
    event manager applet test
    event track 1 state down
    action 1.0 command "enable"
    action 1.1 command "conf t"
    action 1.2 command "interfac dialer 1"
    action 1.3 command "shut"
    action 1.4 syslog "Dialer 1 down!!!"
    action 1.5 end
    This would be an example from head :)
    You would need another EEM similar to this one for unshutting interface with "event track 1 state up" for bringing interface up again.
    Again as I said you would need to test this before putting in production and you would maybe need to tweak this a little bit acording to your needs...
    BR,
    Dragan

  • Interfacing with VB Bulletin: formatting issues

    I have an iMac, G4, and I am trying to interface with a novel critique group that uses VB Bulletin. Problem is that while everybody using Windows PC's can simply copy/paste from Word, WordPad, Lotus, WordPerfect, and even email, keeping the colors and formatting, when I post, no matter what I try, I get just black text on white.
    I need the colors and text differences. Anyone know how I can get it to work?

    Thanq Mike,
    I did these. My issue is I have a structure
    Example:
    When we drilldown on the structure to see G/L Account and/or Sub Account (or any characteristic), the results are repeated for each row (Which is understandable).  They do not want see the detail for every row in the structure because some are calculations.  <b>Where there are calculations on the row structure, they just want to see the calculation total</b>.
    The second issue is that some of the rows would require drilldown by cost center or some other element and we would not want to see the other drilldown characteristics (g/l account, Sub Account, etc.) on these select rows.
    Is there a Visual Basic Solution for this...
    Please help...

  • Grapher: how to rename groups

    I absolutely love the Grapher tool in Mac OS X. There's no other tool I know of that can come up with such a range of features and such a nice GUI. However, I've been suffering from lots of crashes and some program bugs, so I sometimes get the impression that Apple does not have a big interest in maintaining this highly capable tool. Pity.
    Anyway, here's my question:
    After I create a new group, how do I rename it? All my groups are called "Neue Gruppe" (German for "new group"). Not very useful. Double click doesn't help, context menu doesn't offer rename. Any suggestions?
    many thanks
    Hendrik
    mini G4   Mac OS X (10.4.8)  

    You can rename groups, but not in Grapher. Grapher is a horribly mutilated version of Curvus Pro, which Apple bought. Its odd behaviour is the result of only a partial port of Curvus Pro's features from OS9 to OSX.
    Anyway, you need to use a hex editor like OxED to change the gcx file that your graph is saved as. Opening the gcx file in OxED, you search for the name of the group with Command-F. In your case, you could just search for Gruppe. In the English case, we get 'Untitled Group' for all our new groups. Once the text has been found, you can just replace it using OxED's find-replace dialog box, or by selecting the text in the main window and typing over it.
    You need to be quite careful with the renaming, though: your name should have the same number of characters as the default name, 'Neue Gruppe'. If your name is longer than this, and you attempt to replace it, the file will not open afterwards. If your name is shorter than this, consider putting spaces into it to make it the right length. If you have more than one group, then bad luck: Grapher only stores one group name in the file, no matter how many groups you have.
    The same needs to be done if you want to change the names of axes; in the 2D case, the first instance of 'x' and 'y' in the gcx file refers to the labels on the axes. You will still need to use 'x' and 'y' in your equation definition, though - it only changes the label.
    If you have never done any hex editing before, don't be too scared. It is just a simple search and replace, or you can select the text of the group label in OxED's window, amongst all the binary data. It doesn't take long. OxED is also free, and comes in handy at other times.
    Grapher contains some alarming oversights on the part of Apple: I too find it an excellent program, but some of the omissions in functionality are extraordinary. They should open-source it and let the community fix it up, if they do not have the resources to do so themselves. Let's hope the Leopard version is a bit better.

  • How do I use an audio interface with iMovie?

    I'm trying to shoot a short clip of a musician playing. I want to use an interface with my higher end mics, and use iMovie '09 to shoot video. I have a Presonus Firebox as my interface. iMovie just doesn't seem to want to recognize it, nor record through it. This isn't something I can share to GarageBand because the timing between the video and audio has to be perfect. Any help?
    Thanks

    Just buy the proper adapter cord, such as MiniDisplay port to HDMI for example.  Plug it in and it will be automatically recognized.  Use System Preferences > Displays to set options.
    The display can Mirror your primary desktop or Extend the Desktop.
    Regards,
    Captfred

  • Interface with Exchange server

    Hi i nbeed to write a program to interface with ms exchange dose anyone have any sample code i can look at? i need to extract info such as appointments.

    I'll be interested too. I'm writing a java app that would need to read and create calendar appointments, contacts and tasks. The java app is a CRM program, and its database becomes master for the exchange server that would replicate certain information coming from the CRM database/system.
    rgds,
    David

  • I have an iTunes account set up long ago on my home pc. My pc at home is antiquated and I can't interface with my account to edit acc. Info. Now I have other devices, iPhone 4 and iPad. I need to reset email apple Id and pw from iPad. How?

    I have an iTunes account set up long ago on my home pc. My pc at home is antiquated and I can't interface with my account to edit acc. Info. Now I have other devices, iPhone 4 and iPad. I need to reset email apple Id and pw from iPad. How? Should I just create new account? Don't want to lose 1500 songs.

    Hey Frankgates!
    I have an article here that can tell you how to do this:
    Apple ID: If you forget your password
    http://support.apple.com/kb/HT5787
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Does anyone have a suggestion for an alternative to iCal that will interface with the Cloud? I find iCal to be poorly designed and not very efficient.

    Does anyone have a suggestion for an alternative to iCal that will interface with the Cloud so it works on the iPhone and the Macbook? I find iCal to be poorly designed and not very efficient. I waste a lot of time entering information because you can't go to a specific day and enter information, nor can you navigate between months and add information on a specific date by clicking on the date. You can't easily scroll month-to-month and once you do by scrolling through nine months to get to where you want to be, you cannot enter information by clicking on a specific day in the month and entering information. I just called Apple and they verified that this is the way it works. You cannot go to a date and enter information, you keep getting thrown back to today and then you have to go into the calendar and change it manually on the screen. It is just not efficient.

    APC, CyberPower are reliable.
    Look for 1500VA. As example:
    APC
    http://www.amazon.co.uk/APC-Back-UPS-Pro-1500-Connector/dp/B0041MP81Y/
    Cyperpower:
    http://www.amazon.co.uk/Dell-CyberPower-Intelligent-LCD-1500VA/dp/B005DL5L50/

  • HT4623 My iphone will no longer sync with my Mac with Lion operating system which does not interface with the cloud. How do I sync by plugging in?

    I have always been able to sync by plugging into my computer Mac OS 10.6.8 which does not interface with icloud. Now my iphone only wants to sync calander and contacts via icloud and will not sync when plugged in. Does any one else have this issue and or ideas?

    Do you have the latest version of iTunes?  If not, get it at:
    http://www.apple.com/itunes

  • Creation of Server Proxy for  Message interface with External Defination

    Dear All,
    I am getting a problem while generating a server proxy for the inbound interface . The request message used in the inbound interface is a external definition which is uploaded using a XSD file. The XSD file was supplied by a third party which is having very high complex strucuture and used lot of abstract data types in the design. When i tried to generate the proxy in the R/3 system (Transaction SPROXY) for the inbound interface i am getting following error.
    Interface uses external and internal message definitions
    Message no. SPRX122 *
    Diagnosis
    In a message interface you can use messages from different sources:
    Message types and fault message types edited in the Enterprise Services Repository
    Messages imported into the Enterprise Services Repository (external definitions, RFC, IDoc)
    In the current message interface, message types from different sources have been used. Since messages from these different sources must be handled differently during proxy generation, such a mixture of messages within a message interface is not possible.
    System Response
    The interface cannot be generated.
    Procedure
    Change the interface definition accordingly in the Enterprise Services Repository.
    Please guide me, how to generate the proxy for the interface with external defination message. I could nt geneate manullay, because it is having very high complexity and its a big structure.
    Is there is any way to generate the proxy for interface with external definition
    Regards
    Vijayanand

    Hi,
    i.       Import your message schemas from external definitions, or RFCs or IDocs from SAP systems. These definitions already contain data types.
    ii.       Create a message interface and reference the messages of the external definition, or the RFC or IDoc message.
    Check this, it may help you
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/01623c4f69b712e10000000a114084/content.htm
    REgards
    Seshagiri

  • Adding and removing current user from one SharePoint group to another with event receiver

    hi friends
    i need to change current user from one SharePoint group to another with list item adding event receiver.
    please help me

    Hi Malli,
    Greetings. Its nt possible
    http://sharepoint.stackexchange.com/questions/42286/event-receivers-on-add-remove-users
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How do I Rename Mac Hard Drive with Home Folder Only?

    Hello,
    I have a Macbook Pro with an SSD which has OSX Snow Leopard and my Applications, and the other hard drive has my Home Folder. I replaced the optical drive with the SSD.
    The other hard drive has the standard name of 'Macintosh HD'. I need to change it to something without spaces in order to get some developer software to work (i.e., it can't have spaces in the workspace name, and now that my Home folder is on a drive that doesn't have OSX, it refers to it as '/Volumes/Macintosh HD/.../...'
    I ran into a disaster by simply changing the 'Macintosh HD' name to 'MacintoshHD' - It prevented me from logging in and I had to use the OSX Install disk to use the command line to rename the hard drive back to 'Macintosh HD'. My guess is because my account was referencing a home folder location that no longer existed.
    My question is how can I rename my hard drive with my Home Folder? Can I change the hard drive name, and then immediately change my Account to reference the new hard drive name (and thus the new location of my home folder), and then reboot? Will this work if I do this in this order? Or is there another way to handle this entirely?
    I'm very hesitant to try this again as I don't want to have to go back and use the OSX install disk - my SSD took the place of the optical drive and I have to go and take it out, put it back in...etc.
    Any help is appreciated.
    Regards
    Chicago29

    I don't have a setup to test this, but you might try the following:
    Create a second "normal" admin account with its home folder on the boot drive, then log out of your regular account and log into the new one. From there you could rename the large hard drive, then go to System Preferences>Accounts, select the first account, then right-click>Advanced options to change its home directory path to match the new HD name. That way you're not changing the home folder path "in mid-air."
    It's probably a good idea to keep a tiny "self-contained" admin account on the boot drive anyway, so you don't get locked out in the event of future trouble accessing the large disk.

  • I renamed my iMovie folder with my projects in it, and now iMovie  won't open them

    I renamed my iMovie folder with my projects in it and now iMovie  won't open them.

    Can you rename it back & try it?

Maybe you are looking for