How to add network interface using ioctl ?

I want to do what ifconfig does, but by using ioctls.
To get or set network interface address, I found some information in the if_tcp(7P) man page. I would like to know more about how to go about it. Do I have to open socket or the pseudo ethernet driver e.g hme ? What are the parameters ? Do I require to only fill the structure ifreq to set the network interface ?
Thanks in advance.
-dev

Are you trying to add a network volume or folder? I believe you can only add folders. Have you tried: Volumes/Archive, losing the first slash.  I was successful in adding a group folder to the dock by using: Volumes/Groups/Example

Similar Messages

  • How to add Two Interface Mappings to One Receiver(BPM) Help needed urgently

    I have a requirement where i get a flat file and split into multiple files and send to BPM.
    For each split file I created Interface Mapping using Java Mapping Program.
    In the Configuration how to add more Interface Mappings?
    Thanks for your help in advance.
    Regards
    Sudha

    You can use Enhanced Interface Determination to split one message to Multiple hence to multiple Interfaces.
    You have to change the Occurance of Messages in Message Mapping and their Corresponding Interfaces in Interface Mapping. That would create Multiple Files with Multiple Interfaces to Receiver (BPM)
    1) You need not to use Multilpe Interface Mapping
    2) You will use Extended Interface Determination for this.
    regards.
    Jeet.

  • How to add classification view using BAPI_MATERIAL_SAVEDATA

    Hi,
    Please any one let me know how to add classification view using BAPI_MATERIAL_SAVEDATA to the material master.
    Thanks,
    shekar

    We use this bapi on a regular basis as well as classification of materials.  We have success doing this in 2 steps.  First step is to save the material using BAPI_MATERIAL_SAVEDATA, second step is to save classification using BAPI_OBJCL_CHANGE  (this can be used for both create and change)  Also look at Function Group CLBPA .   there are several bapi's in that group dealing with object classification, including the one I mentioned..

  • How to get  Network Interface Cards information ?

    hi all,
    how to get Network Interface Cards information and tcp window size by java ?

    807262 wrote:
    how to get Network Interface Cards information Have a look at [url http://download.oracle.com/javase/6/docs/api/java/net/NetworkInterface.html#getNetworkInterfaces%28%29]NetworkInterface.getNetworkInterfaces()
    tcp window sizeWhich one?
    SO_RCVBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getReceiveBufferSize%28%29]Socket.getReceiveBufferSize()^
    SO_SNDBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getSendBufferSize%28%29]Socket.getSendBufferSize()^

  • How to determine network interface that will be used to send a packet

    Hello,
    I'm writing to you because I encountered the following problem. My program displayes all network interfaces that are available in the system, but I would like to add a functionality in which a user can enter a destination address IP (ex. the IP address of the Google search engine) and will get information which network interface will be used to send it. As I know it is associated with reading information from routing table in the system. Maybe you know the API (functions/methods) which I could use to do it in Solaris ? I program in C/C++, but if you know how to do it in other programming languages (Java, Perl, Python) I will be grateful for any information.
    Thank you for any help, tips and suggestions.
    Best regards,
    Foxrafi

    Thank you for your response it was very helpful :).
    I went to the OpenSolaris webpage because I would like to find the code of this command, but unfortunately I don't know where I should start my searches.
    There is a page with source code of basic commands, but there is no "route" command: here .
    Maybe you are better enlightened where I should start.
    Thank you for answer.
    Foxrafi

  • How to add network information for failover zones with logical hostname?

    Hello!
    As stated in [http://docs.sun.com/app/docs/doc/819-3069/ds_template-21?a=view] I must not configure network addresses for a zone when I manage these with a logical hostname:
    If you require the SUNW.LogicalHostName resource type to manage all the zone's addresses, configure a SUNW.LogicalHostName resource with a list of the zone`s addresses and do not configure them by using the zonecfg utility.But when I start the zone for the first time using "zlogin -C" it does not ask me any questions about the network. Of course, there is no adapter configured. But how do I add information like routes or nameservers to the system when using a logical hostname?
    TIA
    Stephan

    Hi Stephan,
    I can only assume that when the zone was configured via zonecfg without any network interfaces that sysidcfg did not ask you for the default route or name service, as such you will need to setup those parts up manually.
    Please take a look at the FAQs for zones, i.e. http://opensolaris.org/os/community/zones/faq/ in particular
    http://opensolaris.org/os/community/zones/faq/#u5
    http://opensolaris.org/os/community/zones/faq/#cfg_defroute
    Finally, if you require a NIS client then please see http://docs.sun.com/app/docs/doc/816-5166/ypinit-1m?a=view
    Regards
    Neil

  • How to configure network interface only when cable inserted?

    Hi there,
    I was wondering if anyone here could help me with a minor configuration problem. I have a server with two network interfaces, I'll call one "internal" and the other one "external". It has NAT configured so that the "internal" interface gets served DHCP, can access the Internet, etc. My problem is that sometimes I want to run the server without anything connected to the internal interface, and at these times it seems that the boot process gets stuck on the "bringing up internal interface" part. (It's a bit hard to know exactly what's going on because the server is headless.)  I am using a script in /etc/network.d/, set to static IP address, for the internal interface.
    Does anyone know how I could configure Arch so that it only tries to bring up the internal interface if something is actually connected to the port? Otherwise I have to physically go to my server and plug in my laptop to keep the boot process going... let me know if I should provide more details.
    Thanks for your suggestions!

    ifplugd? Which is used by net-auto-wired from netcfg.

  • How to add control buttons using Java thorugh serial port?

    Hi everyone,
    I'm new to this forum.
    I have some questions on Java and serial port.
    I want to write a Java program to control my robot, through serial port. For example, when I click "Forward", the robot will go forward, and so on.
    Now I already have the buttons, so next I would like to ask how to interface the buttons with the serial port.
    I already have all the javax.comm things installed.
    below is the code for my buttons:
    import java.awt.*;
    public class ControlButtons extends java.applet.Applet
         GridLayout myLayout = new GridLayout(3, 3);
         Button button1 = new Button(" ");
         Button buttonForward = new Button("Forward");
         Button button2 = new Button(" ");
         Button buttonLeft = new Button("Left");
         Button buttonStop = new Button("Stop");
         Button buttonRight = new Button("Right");
         Button button3 = new Button(" ");
         Button buttonReverse = new Button("Reverse");
         Button button4 = new Button(" ");
         public void init()
              setLayout(myLayout);
              add(button1);
              button1.setVisible(false);
              add(buttonForward);
              add(button2);
              button2.setVisible(false);
              add(buttonLeft);
              add(buttonStop);
              add(buttonRight);
              add(button3);
              button3.setVisible(false);
              add(buttonReverse);
              add(button4);
              button4.setVisible(false);
    }Now I would like to ask for direction on how to add in the code to make it work with serial port.
    Thanks

    The plan is, I have a robot device connected to the serial port.We don't know anything about that device. We don't know how to control it. We don't know what you have to write to the device to make it do anything. Only you know what.
    For example, when I click "Forward", the robot will go forward, and so on.So what do you have to send to make it do that? and same for the other buttons.
    Next, you need to work out from the javax.comm API how to open the serial port and send data to it. This is a standard exercise in learning a new API. You must be able to do this. Again and again.
    But the program is useless. The button can be clicked, but didn't do anything.Because (a) they have no ActionListeners and (b) there is no code to send anything to the serial port.
    You have to write all that. So you also have to look up ActionListener in the Java API and how to attach it to a button. You can do that. We all do that kind of thing every day.
    So next I would like to ask how to interface the buttons with the serial port.You've been asking nothing else since you started, but you've also only done enough investigation of your own to create the buttons. That's only the start.
    The problem is what method and command should I use to make those buttons actually functioning.See above. You've been told part of it several times. The rest only you can answer, because it's your robot.

  • How to add ALV button using OO in module pool program using ALV grid

    Hello Gurus!!!
                  Want some tips related how to add button using ALV Grid(OO).
    I want to display the button for search, sort ....
                 Please suggest the step -by-step procedure for implementation of these button.
                 I am designing the code for transaction FB03. Header data has been displayed but want to display the line items.
                 Kindly suggest your answers.
    Thanks,
    Sachin

    Hi,
    CLASS SELSCR_APPLICATION DEFINITION DEFERRED.
    CLASS SELSCR_APPLICATION DEFINITION.
      PUBLIC SECTION.
       METHODS:
            HANDLE_TOOLBAR
            FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
                IMPORTING E_OBJECT  E_INTERACTIVE,
            HANDLE_USER_COMMAND
            FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
                IMPORTING E_UCOMM.
    ENDCLASS.        "SELSCR_APPLICATION DEFINITION
    CLASS SELSCR_APPLICATION IMPLEMENTATION.
      METHOD HANDLE_TOOLBAR.
        DATA: LS_TOOLBAR  TYPE STB_BUTTON.
    append SAVE icon
        CLEAR LS_TOOLBAR.
        MOVE 'SAVE' TO LS_TOOLBAR-FUNCTION.
        MOVE ICON_SYSTEM_SAVE TO LS_TOOLBAR-ICON.
        MOVE 'Save' TO LS_TOOLBAR-QUICKINFO.
        MOVE ' '  TO LS_TOOLBAR-DISABLED.
        APPEND LS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
        CLEAR LS_TOOLBAR.
      ENDMETHOD.                    "handle_toolbar
      METHOD HANDLE_USER_COMMAND.
        CASE E_UCOMM.
          WHEN 'SAVE'.
              PERFORM UPDATE_FIELDS.
        ENDCASE.
      ENDMETHOD.
    ENDCLASS.                 "SELSCR_APPLICATION IMPLEMENTATION
    these lines should be after calling method SET_TABLE_FOR_FIRST_DISPLAY
    SET HANDLER G_APPLICATION1->HANDLE_TOOLBAR FOR GRID1.
            CALL METHOD grid1->set_toolbar_interactive.
    rgds,
    bharat.

  • How to add Services programmatically using BAPI_BUS2002_ACTELEM_CREATE_M

    Hi :
    I need to create a project programmatically using the standard PS BAPI. My problem is that I don't know how to add external activities ( Services ) into my project.  I have all steps, except this one. I think that the BAPI BAPI_BUS2002_ACTELEM_CREATE_M should do it but I cannot find where to put the Service Number, Text and Quantity.
    Thanks a lot in advance.
    Jose J. Quezada.

    The problem remains the same. The BAPI_NETWORK_MAINTAIN does not have the fields to add the Services. It can adds an External Activity. The services are External Activities but where are the fields. I need an example or a more specific response. I know how to add a Material for example, but the Services are quite different.
    Kind Regards,
    Jose.

  • How to add many hosts using jython interface to sps host database

    Hi,
    we want to create a huge number of virtual hosts into sps repository with jython interface.
    for exemple our variables are:
    hostname = sps1.internet.com
    ip = 192.168.1.1
    masterserver = masterserver
    hardware = v550
    and the script command looks like:
    app.execRaw ( 'hdb.h.add' , { 'name' : hostname , 'desc' : hardware , 'tID' : 'NM:com.vodafone.osmgt#vodRAvhostHT' , 'pID' : NM:masterserver , 'attr' : 'cliServer=cliServer;RA_HOSTNAME=hostname;RA_PROVISIONING_IP_ADDR=ip;RA_DESCRIPTION=Dynamic Infrastructure container;RA_OWNER=n1sps;RA_OWNER_DIR=/var/crash/home/n1sps;RA_OWNER_CREATE_SSH_CONN=true;RA_UID=2241;RA_GROUP=n1sps;RA_GID=2241;RA_INSTALLER_USER=root;RA_SUID=y;RA_INSTALLBASE=/opt/SUNWn1sps;RA_CTYPE=ssh;RA_CTYPE_PARAM=cprefix=/opt/SUNWn1sps/N1_Service_Provisioning_System/agent;RA_LEAVEFILES=n;RA_INSTALL_JRE=/opt/SUNWn1sps/N1_Service_Provisioning_System/common/jre;RA_PORT=1131;RA_CIPHER_TYPE=1;RA_INSTALLER_WORKDIR=/tmp;RA_PARENT_HOST=masterserver;RA_PARENT_OWNER=n1sps;RA_PARENT_OWNER_DIR=/opt/SUNWn1sps/home/n1sps;RA_PARENT_TYPE=MS;RA_PACKAGE_PATH=/var/tmp/spsra;RA_PACKAGE_NAME=cr_ra_solaris_sparc_5.2.sh;RA_REMOTE_PACKAGE_TMP_DIR=/tmp;RA_REMOTE_PRIV_CMD=/usr/local/bin/sudo;RA_REMOTE_PRIV_USER=admin;RA_REMOTE_PRIV_USER_HOME=/home/admin;RA_SRC_SSH_DIR=/opt/home/.ssh;RA_DST_SSH_DIR=/home/.ssh;RA_SSH_AUTH_KEY_FILE=authorized_keys' } )
    unfortunetly we are getting an error when we try to run the n1 sps hdb.h.add command.
    Are we using this command in the right manner ?
    Thanks in advance.
    Christian

    Dear Tarzanek,
    I am Alexis Susset a coleague of Christian.
    Thank you very much for your reply, we are now able to add hosts directly from a Jython script.
    Unfortunetly, we are now encourting a problem with the hdb.h.add command.
    It dies if our hostname (name) is already present in the database.
    We currently need to import a very high number of node and I would like to know how to simply get two outputs (1. added nodes, 2. non-added nodes ).
    Please let me know if you would like me to post the scripts I have.
    PS: I tried to use a hbd.h.lo command but it dies as well when I search for a host that doesn't exist.
    Many thanks and best regards,
    Alexis

  • How to add network volume to dock using profile manager

    I'm trying to set up my network machines so that when users log into their network account, their Dock is pre-populated with one of the shared network volumes.
    I've set up the network volume (called /Archive) in the Server app. Users can successfully mount it when logged in. Also I succeeded in using the Profile Manager to automatically mount it upon network user login.
    However when I try entering the volume name into the "Dock Items" list in Profile Manager, it does not work. I've tried "Archive", "/Archive", "/Volumes/Archive", etc.
    Anyone know how to do this? I know I can simply ask all users to manually drag the folder to their Dock the first time they log in ... but I want Profile Manager to automagically do it for all users.

    Are you trying to add a network volume or folder? I believe you can only add folders. Have you tried: Volumes/Archive, losing the first slash.  I was successful in adding a group folder to the dock by using: Volumes/Groups/Example

  • How to add node value using org.w3c.dom.Document?

    Hi ,
    I'm using org.w3c.dom.Document to deal with xml files. I could successfully add nodes , and their attributes. However I could not add a value of the node. (e.g. <myNode>I couldn't add this value</myNode>)
    does anyone know how to deal with this?
    I tried subNode.setNodeValue("the value i can't add"); whereas the subNode is an instance of org.w3c.dom.Node... i know this is interface i of course used the concrete class
    org.apache.crimson.tree.ElementNode
    but when I used the subNode.getNodeValue() i simply got null?
    can u plz help me?
    thanks in advance

    Reading the API documentation for the Node interface might help. At least you wouldn't be surprised when the results are exactly what the documentation says they will be.
    What would really help would be forgetting the idea that an Element can have a value. Text nodes have values, though, so create a Text node and make it the child of the Element node.

  • How to add a TreeNode using a path?

    When I doing my project, I get stuck on a portion of my GUI Coding.
    My code provide a path such as
    /Home/fsloke
    /Home/fsloke/directory1
    /Home/WorkHard
    /Home/WorkSmart
    /Home/WorkSmart/Dreamincode
    Currently my tree constructed as below:
    Home
    + fsloke
    ---+directory1
    + WorkHard
    + WorkSmart
    ---+ Dreamincode
    May I know how can I add a childNode called "TryHard" under WorkHard?
    Generally the path give is "/Home/WorkHard/TryHard".
    Don't worried I will split it to
    TreeNode Head ="Home"
    parentPath ="/Home/WorkHard";
    childNode name = "TryHard";
    Any clue?
    I search in net. All give me the solution when the user click on the tree Node. Then the code use , getSelectedPath() function.
    In my case my user not click on the Tree...
    Any advise and direction...
    Thanx...
    I like the DynamicTreeDemo coding from this website http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

    you can use this method:
    addChildTo("WorkHard","TryHard");
    public void addChildTo(String parentObject, String child){
             TreePath parentPath = getTreePath(parentObject);
             if(parentPath != null){
                 DefaultMutableTreeNode parent = (DefaultMutableTreeNode)parentPath.getLastPathComponent();
                 treeModel.insertNodeInto(new DefaultMutableTreeNode(child), parent, parent.getChildCount());
    private TreePath getTreePath(String userObject) {
             java.util.Enumeration nodes = ( (DefaultMutableTreeNode) treeModel.getRoot()).
             preorderEnumeration();
             while (nodes.hasMoreElements()) {
                  DefaultMutableTreeNode node = (DefaultMutableTreeNode) nodes.nextElement();
                  if (node.getUserObject().equals(userObject)){
                       return new TreePath(node.getPath());
             return null;
    }if you are using new DefaultMutableTreeNode("WorkHard"); , then the object name(WorkHard) should be unique , otherwise create node with your own object. Or alter the method what ever you need..
    edit:
    creation of jtree like
    DefaultMutableTreeNode top =
                new DefaultMutableTreeNode("The Java Series");
            createNodes(top);
            treeModel = new DefaultTreeModel(top);
            tree = new JTree(treeModel);
            tree.getSelectionModel().setSelectionMode
                    (TreeSelectionModel.SINGLE_TREE_SELECTION);ref:http://java.sun.com/docs/books/tutorial/uiswing/examples/components/TreeDemoProject/src/components/TreeDemo.java
    Edited by: david_david on Mar 19, 2008 10:15 AM

  • How to Add two numbers using RFC in WD abap

    Dear Experts,
    I have to add the two numbers using RFC.
    I have created the RFC and by using create -> service call i have include that RFC in my WD abap Program.. After that i don't know how to link the input view and to display the result in another view...
    Please help me..
    Thank you.

    This is the third thread that you have posted on this same question.  This is also your second warning that such activity is not allowed in the SCN forums.  Please return to your original thread if you wish to post a follow up question. 
    Beacause this is a duplicate thread it will be locked.

Maybe you are looking for

  • Trying to use FTP to get data from a different server

    Hi Friends,     I have to use FTP to get data from a different server and upload it on SAP server. Now my problem is when I m trying to do ftp through command line it brings the file but with no data.    Through ABAP program nothing is happening. Her

  • Can't open PDF files in safari or firefox. get a black screen

    For some time now I have been unable to view PDF files whether I am using safari or firefox.  If I have the option, I can safe the PDF to my computer and then it will open just fine.  If I'm on a site that has a PDF I want to view, print, etc., it op

  • Access Enforcer - Downloading Requestor Lists

    We would like to see a list of all of those who have submitted Access Enforcer requests to date. There is no option on the Informer tab that gives us this information. The only way we can find is to download each page from a request search. Has anyon

  • Displaying "()VAR" in place of customer name

    Hi,              In my query, i have customer name and its name . the value displayed at customers name is "()VAR" . when is the value displayed like this ? and what does this mean ? any idea ? Thanks, Roja.

  • NI 9401 & Status Code: -50103

    Hello Everyone, Software: Visual Studio 2003, VC++ Hardware: cDAQ - 9172 I have 2 NI 9401 modules .  1st module is configured as CO while the 2nd module is a CI.  I tried using them in a single chassis and even on separate chassis but I still have th