Address to sy-uname

Hello Abappers!
I only have the SY-UNAME to start from.
I have to get hold of the Title, Last Name and Telephone extension of the person who is running my Programm...
(Al this data can be found in SU01...)
Could anybody help me out?
(I need the tables and the keys... I can write the selects myself  )
Thanx a lot!
Pieter

Hi pieter,
For Telephone Number :
1. There are 2 tables:
ADR2
USR21
2. From Usr21
Get PERSNUMBER
ADDRNUMBER
For BNAME = username
3. Then
From ADR2
Get TEL_NUMBER , etc.
For Above
ADDRNUMBER and
PERSNUMBER
I hope it helps.
regards,
amit m.

Similar Messages

  • Sending Email Address else Fax Number

    Hi Gurus,
    I have one requirement where in the print program the program should fetch the fax number from the partner function TZ  and email address from the part function Z1 .
    The code i have used:
    To EXTRACT ADDRESS
    IF sy-uname = 'WF-BATCH'.
        SELECT SINGLE adrnr INTO ls_adrnr FROM  vbpa CLIENT SPECIFIED
               WHERE  mandt  = sy-mandt
               AND    vbeln  = nast-objky
               AND    posnr  = '000000'
               AND    parvw  = 'Z1'.
    To Extract email address and fax number:
    CALL FUNCTION 'ADDR1_EXTRACT_TABLES'
          TABLES
            t_address_keys = lt_address_keys
            t_adrc         = lt_adrc
            t_adr3         = lt_adr3 " type adr3
            t_adr6         = lt_adr6 "type adr6
          EXCEPTIONS
            empty_table    = 1
            OTHERS         = 2.
    where lt_adr6 contains email addr and lt_adr3 faxnumber
        IF sy-subrc <> 0.
      IF nast-nacha = gc_5.  " gc_5 = 5
          READ TABLE lt_adr6
            INTO lwa_adr6
            INDEX 1.
          IF sy-subrc = 0.
            lwa_receivers-receiver   = lwa_adr6-smtp_addr.
            lwa_receivers-rec_type   = gc_u.
            lwa_receivers-com_type   = gc_int.
            lwa_receivers-notif_del  = gc_x.
            lwa_receivers-notif_ndel = gc_x.
            APPEND lwa_receivers TO lt_receivers.
          ENDIF.
        ELSEIF nast-nacha = gc_8. " gc_8 = 8.
          READ TABLE lt_adr3
            INTO lwa_adr3
            INDEX 1.
          IF sy-subrc = 0.
            CONCATENATE lwa_adr3-fax_number text-002 INTO lwa_receivers-receiver.
            lwa_receivers-rec_type   = gc_u.
            lwa_receivers-com_type   = gc_int.
            lwa_receivers-notif_del  = gc_x.
            lwa_receivers-notif_ndel = gc_x.
            APPEND lwa_receivers TO lt_receivers.
          ENDIF.
        ENDIF.
    But i om not getting any neither the fax number nor the email address.

    CONCATENATE lwa_adr3-fax_number text-002 INTO lwa_receivers-receiver.
    lwa_receivers-rec_type = gc_u.
    lwa_receivers-com_type = gc_int.
    lwa_receivers-notif_del = gc_x.
    lwa_receivers-notif_ndel = gc_x.
    APPEND lwa_receivers TO lt_receivers.
    ENDIF.
    in this change
    lwa_receivers-rec_type = 'F'.

  • Error in importing Business system in Quality System

    Hi
    We are currently on PI 7.1 EHP1 and SLD Setting on CIM 1.5 and CR 5.0 in XIA(Quality System) while XID (Developement) has CIM 1.6 and CR 4.5.We are having local SLD for XID and XIA both.
    We are trying to import the buisness system BS_CATALOG_REC in our Quality(XIA) which was created in our developement system(XID).While trying to do so we are getting the error as below while trying to import using CTS+ as well as from file system level(import/export option in Integration Builder)
    =================================================================================
      CTS Import Service - Version 0.94 04.04.2008
    ========================================================================
      Deploy Web service destination = CTSDEPLOY
      Directory = /usr/sap/trans/data
      SDM Deploy URL =
      SLD Deploy URL =
      XI Deploy URL = http://st2777.uname.telecom.co.nz:52400
      Start import with id:8021281385D31DEFBCC0F3EF281C9FB9
      DeployProxy (patch level:0) called with followingparameters:
      Deployable(0)
      Deployable-Type:1
      Deployable-Id:80144FF9C93B1DDFBCC0EDC64DC68BD6
      Deployable-TransportContainerId:XIDK900018
      Deployable-ContentLocator:/usr/sap/trans/data/XIDK900018/6d1af3e0f20711dfb8e000144ff9c93b
      Property(0)
      Property-key:TARGETSYSTEMID Property-value:XIA
      Begin CommunicationData-Type[0]:1
      CommunicationData-Address:http://st2777.uname.telecom.co.nz:52400/dir
      CommunicationData-Host:st2777.uname.telecom.co.nz
      CommunicationData-Port:52400
      CommunicationData-User:'filled'
      CommunicationData-Password:'filled'
      Importing archive:6d1af3e0f20711dfb8e000144ff9c93b
      com.sap.aii.ibtransportclient.XiTransportException: caused by: ClientServerException exception:Impo
      >>>rt failed because of business system transfer of object Communication Component   BS_Catalog_REC: O
      >>>bligatory transport target for business system BS_Catalog_REC not found in System Landscape Director
    >>>y caused by: com.sap.aii.ib.core.transport.api.PostprocessingException: Import failed because of bus
    >>>iness system transfer of object Communication Component   BS_Catalog_REC: Obligatory transport targ
    >>>et for business system BS_Catalog_REC not found inSystem Landscape Directory caused by: com.sap.aii
    >>>.util.hmi.api.HmiMethodFault: caused by: ClientServerException exception:Import failed because of b
    >>>usiness system transfer of object Communication Component   BS_Catalog_REC: Obligatory transport ta
    >>>rget for business system BS_Catalog_REC not foundin System Landscape Directory caused by: com.sap.a
    >>>ii.ib.core.transport.api.PostprocessingException:Import failed because of business system transfer
    >>>of object Communication Component   BS_Catalog_REC: Obligatory transport target for business system
    >>>BS_Catalog_REC not found in System Landscape Directory
    End CommunicationData-Type[0]:1
    End import with returncode:'8'
    Deployment
    End date and time : 20101117180041
    Ended with return code:  ===> 8 <===
    *These are options we tried in DEV*
    In Developement (XID) we tried creating the business groups
    TEST_DEV
    TEST_QA
    TEST_PRD
    Whn we try to assign buisness system to the above 3 groups,All systems in our XID are by default getting assigned to TEST_DEV Group and we are unable to give the target for business system (BS_CATALOG_REC) in target tab in PI 7.1 EHP1.
    In DEV SLD:
    In group TEST_DEV,we have assigned Buisness system BS_CATALOG_REC which is poinitng to XID Integration Server
    In Group TEST_QA,we are manually creating a Buisness system,BS_CATALOG_REC_QA to which we are unable to assign the Integration Server for XIA.
    In Group TEST_PRD, created theBusines system BS_CATALOG_REC_PRD and have left the integration server option "NONE"
    and Tried to create target for the BS_CATALOG_REC. But i could not able to select the target system.
    Can you pls guide if we need to have the entry for INTEGRATION_SERVER_XIA in our XID-Developement SLD landscape.We also have tried using "None" option,however in developement TEST_DEV buisness system target,we are not getting any values.
    We have just 1 Buisness system which needs to be imported into Quality and beacuase of this we are not able to import in ID the configuration objects as can be seen in error text above.
    Can anyone help !!
    Thanks

    Hello
    Check the link [Configuring Groups and Transport Targets|http://help.sap.com/saphelp_nwpi71/helpdata/EN/ef/a21e3e0987760be10000000a114084/frameset.htm]                                              
    If the groups and targets are correctly configured, apply the note #1059576 - XI Directory import fails due to inconsistent SLD host names.
    Regards
    Mark

  • Doubts: Freinds Share your Views !!

    1.How do you tell what your machine name is and what is its IP address? (in Solaris)
    2.Other than making use of the statspack utility, what would you check when you are
    monitoring or running a health check on an Oracle 8i or 9i database?
    3.How would you go about verifying the network name that the local_listener is currently using?
    4.How would you edit your CRONTAB to schedule the running of /test/test.sh to run
    every other day at 2PM?
    5.Which dictionary view(s) would you first look at to understand or get a high-level idea of
    a given Advanced Replication environment?
    6.You’re getting high “busy buffer waits” - how can you find what’s causing it?
    7.Database crashes. Corruption is found scattered among the file system neither of your doing
    nor of Oracle’s. What database recovery options are available? Database is in archive log mode
    8.Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).
    9.How do you increase the OS limitation for open files (LINUX and/or Solaris)?
    10.How does Oracle guarantee data integrity of data changes?
    11.Why does Oracle not permit the use of PCTUSED with indexes?
    12.How would you begin to troubleshoot an ORA-3113 error?
    13.What would you use to improve performance on an insert statement
    that places millions of rows into that table?
    14.How would you configure your networking files to connect to a database
    by the name of DSS which resides in domain icallinc.com?
    15.You create a private database link <link name> and upon connection, fails with:
    ORA-2085: <Link name> connects to <fully qualified remote db name>. What is the problem?
    How would you go about resolving this error?
    16.Database is hung. Old and new user connections alike hang on impact.
    What do you do? Your SYS SQLPLUS session IS able to connect.

    1.How do you tell what your machine name is and what is its IP address? (Solaris)
    uname -n should give you the name of the machine.
    You could check the 'hosts' file in '/etc' for the IP address.
    2. Other than making use of the statspack utility, what would you check when you are
    monitoring or running a health check on an Oracle 8i or 9i database?
    Ensure that the Organization's data is safe and recoverable. Ensure that the database is open and available for normal use. Check the alert log for any errors. Check for any dumps. Check for any job failures. Check for availability of disk space. Apply patches as recommended by Oracle. There is much more.
    8. Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).
    uname -X should give you some information about the number of CPU's. You could use a command like df -k
    to get information about disk space.

  • Help, the file "nodename" setting in incorrect format!!

    Hi all,
    Could any one can help me to solve this problem?
    I just set an incorrect format of the file /etc/nodename:
    192.168.0.1 NAME ABC
    Moreover, the /etc/hosts:
    172.0.0 localhost
    192.168.0.1 NAME
    /etc/hostname.interface:
    NAME
    After reboot the system, it display the following messages and can't be up:
    SunOS Release 5.6 version Generic [UNIX(R) System V Release 4.0]
    Copyright(c) 1983-1997, Sun Microsystems, Inc.
    configuring network interfaces: ifconfig: SIOCSIFADDR: le0: Cannot assign requested address
    le0.
    usage: uname [-snrvmagiX]
    uname [-S system_name]
    re-trying host configuration...
    re-trying host configuration...
    re-trying host configuration...
    re-trying host configuration...
    and then continue to display this "re-trying host configuration...".
    It is noted that this system is SPARCstation 4 and running Solaris 2.6.
    It haven't cdrom and floppy drive.
    It can go to "ok" prompt if press "stop + a".
    Could anyone can tell me how to boot up and fix it?
    Thanks a lot.
    Best regards,
    Carlos Ko

    Hi all,
    Thanks for your suggestion.
    However, for the case "boot -s", the system seems no change the error messages after reboot and still shown these messages again and again.
    For the case setting up a install server and boot server, is it possible to set these severs on x86 system? Since the problem is on the SPARC system and no other available SPARC system can set up as a install server and boot server. I only concern the x86 system can provide install service for a SPARC system.
    Could you have any idea to modify the "nodename" file during boot up or by typing some command at "ok" prompt?
    e.g. type "boot -s /etc/uname -S NAME" at "ok" prompt or something like that??
    Thanks a lot.
    Best regards,
    Carlos Ko

  • How To Install A (Almost) Working Lion Server With Profile Management/SSL/OD/Mail/iCal/Address Book/VNC/Web/etc.

    I recently installed a fresh version of Lion Server after attempting to fix a broken upgrade. With some help from others, I've managed to get all the new features working and have kept notes, having found that many or most of the necessary installation steps for both the OS and its services are almost entirely undocumented. When you get them working, they work great, but the entire process is very fragile, with simple setup steps causing breaks or even malicious behaviors. In case this is useful to others, here are my notes.
    Start with an erased, virgin, single guid partitioned drive. Not an upgrade. Not simply a repartitioned drive. Erased. Clean. Anything else can and probably will break the Lion Server install, as I discovered myself more than once. Before erasing my drive, I already had Lion and made a Lion install DVD from instructions widely available on the web. I suppose you could also boot into the Lion recovery partition and use disk utility to erase the OS X partition then install a new partition, but I cut a DVD. The bottom line is to erase any old OS partitions. And of course to have multiple, independent backups: I use both Time Machine with a modified StdExclusions.plist and Carbon Copy Cloner.
    Also, if you will be running your own personal cloud, you will want to know your domain name ahead of time, as this will be propagated everywhere throughout server, and changing anything related to SSL on Lion Server is a nightmare that I haven't figured out. If you don't yet have a domain name, go drop ten dollars at namecheap.com or wherever and reserve one before you start. Soemday someone will document how to change this stuff without breaking Lion Server, but we're not there yet. I'll assume the top-level domain name "domain.com" here.
    Given good backups, a Lion Install DVD (or Recovery Partition), and a domain name, here are the steps, apparently all of which must be more-or-less strictly followed in this order.
    DVD>Disk Utility>Erase Disk  [or Recovery Partition>Disk Utility>Erase Partition]
    DVD>Install Lion
    Reboot, hopefully Lion install kicks in
    Update, update, update Lion (NOT Lion Server yet) until no more updates
    System Preferences>Network>Static IP on the LAN (say 10.0.1.2) and Computer name ("server" is a good standbye)
    Terminal>$ sudo scutil --set HostName server.domain.com
    App Store>Install Lion Server and run through the Setup
    Download install Server Admin Tools, then update, update, update until no more updates
    Server Admin>DNS>Zones [IF THIS WASN'T AUTOMAGICALLY CREATED (mine wasn't): Add zone domain.com with Nameserver "server.domain.com." (that's a FQDN terminated with a period) and a Mail Exchanger (MX record) "server.domain.com." with priority 10. Add Record>Add Machine (A record) server.domain.com pointing to the server's static IP. You can add fancier DNS aliases and a simpler MX record below after you get through the crucial steps.]
    System Prefs>Network>Advanced>Set your DNS server to 127.0.0.1
    A few DNS set-up steps and these most important steps:
    A. Check that the Unix command "hostname" returns the correct hostname and you can see this hostname in Server.app>Hardware>Network
    B. Check that DNS works: the unix commands "host server.domain.com" and "host 10.0.1.2" (assuming that that's your static IP) should point to each other. Do not proceed until DNS works.
    C. Get Apple Push Notification Services CA via Server.app>Hardware>Settings><Click toggle, Edit... get a new cert ...>
    D. Server.app>Profile Manager>Configure... [Magic script should create OD Master, signed SSL cert]
    E. Server.app>Hardware>Settings>SSL Certificate> [Check to make sure it's set to the one just created]
    F. Using Server.app, turn on the web, then Server.app>Profile Manager> [Click on hyperlink to get to web page, e.g. server.domain.com/profilemanager] Upper RHS pull-down, install Trust Profile
    G. Keychain Access>System>Certificates [Find the automatically generated cert "Domain", the one that is a "Root certificate authority", Highlight and Export as .cer, email to all iOS devices, and click on the authority on the device. It should be entered as a trusted CA on all iOS devices. While you're at it, highlight and Export... as a .cer the certificate "IntermediateCA_SERVER.DOMAIN.COM_1", which is listed an an "Intermediate CA" -- you will use this to establish secure SSL connections with remote browsers hitting your server.]
    H. iOS on LAN: browse to server.domain.com/mydevices> [click on LHS Install trust cert, then RHS Enroll device.
    I. Test from web browser server.domain.com/mydevices: Lock Device to test
    J. ??? Profit
    12. Server Admin>DNS>Zones> Add convenient DNS alias records if necessary, e.g., mail.domain.com, smtp.domain.com, www.domain.com. If you want to refer to your box using the convenient shorthand "domain.com", you must enter the A record (NOT alias) "domain.com." FQDN pointing to the server's fixed IP. You can also enter the convenient short MX record "domain.com." with priority 11. This will all work on the LAN -- all these settings must be mirrored on the outside internet using the service from which you registered domain.com.
    You are now ready to begin turning on your services. Here are a few important details and gotchas setting up cloud services.
    Firewall
    Server Admin>Firewall>Services> Open up all ports needed by whichever services you want to run and set up your router (assuming that your server sits behind a router) to port forward these ports to your router's LAN IP. This is most a straightforward exercise in grepping for the correct ports on this page, but there are several jaw-droppingly undocumented omissions of crucial ports for Push Services and Device Enrollment. If you want to enroll your iOS devices, make sure port 1640 is open. If you want Push Notifications to work (you do), then ports 2195, 2196, 5218, and 5223 must be open. The Unix commands "lsof -i :5218" and "nmap -p 5218 server.domain.com" (nmap available from Macports after installing Xcode from the App Store) help show which ports are open.
    SSH
    Do this with strong security. Server.app to turn on remote logins (open port 22), but edit /etc/sshd_config to turn off root and password logins.
    PermitRootLogin no
    PasswordAuthentication no
    ChallengeResponseAuthentication no
    I'm note sure if toggling the Allow remote logins will load this config file or, run "sudo launchctl unload -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist ; sudo launchctl load -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist" to restart the server's ssh daemon.
    Then use ssh-keygen on remote client to generate public/private keys that can be used to remotely login to the server.
    client$ ssh-keygen -t rsa -b 2048 -C client_name
    [Securely copy ~/.ssh/id_rsa.pub from client to server.]
    server$ cat id_rsa.pub > ~/.ssh/known_hosts
    I also like DenyHosts, which emails detected ssh attacks to [email protected]. It's amazing how many ssh attacks there are on any open port 22. Not really an added security feature if you've turned off password logins, but good to monitor. Here's a Lion Server diff for the config file /usr/share/denyhosts:
    $ diff denyhosts.cfg-dist denyhosts.cfg
    12c12
    < SECURE_LOG = /var/log/secure
    > #SECURE_LOG = /var/log/secure
    22a23
    > SECURE_LOG = /var/log/secure.log
    34c35
    < HOSTS_DENY = /etc/hosts.deny
    > #HOSTS_DENY = /etc/hosts.deny
    40a42,44
    > #
    > # Mac OS X Lion Server
    > HOSTS_DENY = /private/etc/hosts.deny
    195c199
    < LOCK_FILE = /var/lock/subsys/denyhosts
    > #LOCK_FILE = /var/lock/subsys/denyhosts
    202a207,208
    > LOCK_FILE = /var/denyhosts/denyhosts.pid
    > #
    219c225
    < ADMIN_EMAIL =
    > ADMIN_EMAIL = [email protected]
    286c292
    < #SYSLOG_REPORT=YES
    > SYSLOG_REPORT=YES
    Network Accounts
    User Server.app to create your network accounts; do not use Workgroup Manager. If you use Workgroup Manager, as I did, then your accounts will not have email addresses specified and iCal Server WILL NOT COMPLETELY WORK. Well, at least collaboration through network accounts will be handled clunkily through email, not automatically as they should. If you create a network account using Workgroup Manager, then edit that account using Server.app to specify the email to which iCal invitations may be sent. Server.app doesn't say anything about this, but that's one thing that email address entry is used for. This still isn't quite solid on Lion Server, as my Open Directory logs on a freshly installed Lion Server are filled with errors that read:
    2011-12-12 15:05:52.425 EST - Module: SystemCache - Misconfiguration detected in hash 'Kerberos':
         User 'uname' (/LDAPv3/127.0.0.1) - ID 1031 - UUID 98B4DF30-09CF-42F1-6C31-9D55FE4A0812 - SID S-0-8-83-8930552043-0845248631-7065481045-9092
    Oh well.
    Email
    Email aliases are handled with the file /private/etc/postfix/aliases. Do something like this
    root:           myname
    admin:          myname
    sysadmin:       myname
    certadmin:      myname
    webmaster:      myname
    my_alternate:   myname
    Then run "sudo newaliases". If your ISP is Comcast or some other large provider, you probably must proxy your outgoing mail through their SMTP servers to avoid being blocked as a spammer (a lot of SMTP servers will block email from Comcast/whatever IP addresses that isn't sent by Comcast). Use Server.app>Mail to enter your account information. Even then, the Lion Server default setup may fail using this proxy. I had to do this with the file /private/etc/postfix/main.cf:
    cd /etc/postfix
    sudo cp ./main.cf ./main.cf.no_smtp_sasl_security_options
    sudo echo 'smtp_sasl_security_options = noanonymous' >> ./main.cf
    sudo serveradmin stop mail
    sudo serveradmin start mail
    Finally, make sure that you're running a blacklisting srevice yourself! Server Admin>Mail>Filter> Use spamhaus.org as a blacklister. Finally, set up mail to use strong Kerberos/MD5 settings under on Server Admin>Mail>Advanced. Turn off password and clear logins. The settings should be set to "Use" your SSL cert, NOT "Require". "Require" consistently breaks things for me.
    If you already installed the server's Trust Certificate as described above (and opened up the correct ports), email to your account should be pushed out to all clients.
    iCal Server
    Server.app>Calendar>Turn ON and Allow Email Invitations, Edit... . Whatever you do, do NOT enter your own email account information in this GUI. You must enter the account information for local user com.apple.calendarserver, and the password for this account, which is stored in the System keychain: Keychain Access>System> Item com.apple.servermgr_calendar. Double-click and Show Password, copy and paste into Server.app dialog. This is all described in depth here. If you enter your own account information here (DO NOT!), the iCal Server will delete all Emails in your Inbox just as soon as it reads them, exactly like it works for user com.apple.calendarserver. Believe me, you don't want to discover this "feature", which I expect will be more tightly controlled in some future update.
    Web
    The functionality of Server.app's Web management is pretty limited and awful, but a few changes to the file /etc/apache2/httpd.conf will give you a pretty capable and flexible web server, just one that you must manage by hand. Here's a diff for httpd.conf:
    $ diff httpd.conf.default httpd.conf
    95c95
    < #LoadModule ssl_module libexec/apache2/mod_ssl.so
    > LoadModule ssl_module libexec/apache2/mod_ssl.so
    111c111
    < #LoadModule php5_module libexec/apache2/libphp5.so
    > LoadModule php5_module libexec/apache2/libphp5.so
    139,140c139,140
    < #LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
    < #LoadModule encoding_module libexec/apache2/mod_encoding.so
    > LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
    > LoadModule encoding_module libexec/apache2/mod_encoding.so
    146c146
    < #LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
    > LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
    177c177
    < ServerAdmin [email protected]
    > ServerAdmin [email protected]
    186c186
    < #ServerName www.example.com:80
    > ServerName domain.com:443
    677a678,680
    > # Server-specific configuration
    > # sudo apachectl -D WEBSERVICE_ON -D MACOSXSERVER -k restart
    > Include /etc/apache2/mydomain/*.conf
    I did "sudo mkdir /etc/apache2/mydomain" and add specific config files for various web pages to host. For example, here's a config file that will host the entire contents of an EyeTV DVR, all password controlled with htdigest ("htdigest ~uname/.htdigest EyeTV uname"). Browsing to https://server.domain.com/eyetv points to /Users/uname/Sites/EyeTV, in which there's an index.php script that can read and display the EyeTV archive at https://server.domain.com/eyetv_archive. If you want Apache username accounts with twiddles as in https://server.domain.com/~uname, specify "UserDir Sites" in the configuration file.
    Alias /eyetv /Users/uname/Sites/EyeTV
    <Directory "/Users/uname/Sites/EyeTV">
        AuthType Digest
        AuthName "EyeTV"
        AuthUserFile /Users/uname/.htdigest
        AuthGroupFile /dev/null
        Require user uname
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    Alias /eyetv_archive "/Volumes/Macintosh HD2/Documents/EyeTV Archive"
    <Directory "/Volumes/Macintosh HD2/Documents/EyeTV Archive">
        AuthType Digest
        AuthName "EyeTV"
        AuthUserFile /Users/uname/.htdigest
        AuthGroupFile /dev/null
        Require user uname
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    I think you can turn Web off/on in Server.app to relaunch apached, or simply "sudo apachectl -D WEBSERVICE_ON -D MACOSXSERVER -k restart".
    Securely copy to all desired remote clients the file IntermediateCA_SERVER.DOMAIN.COM_1.cer, which you exported from System Keychain above. Add this certificate to your remote keychain and trust it, allowing secure connections between remote clients and your server. Also on remote clients: Firefox>Advanced>Encryption>View Certificates>Authorities>Import...> Import this certificate into your browser. Now there should be a secure connection to https://server.domain.com without any SSL warnings.
    One caveat is that there should be a nice way to establish secure SSL to https://domain.com and https://www.domain.com, but the automagically created SSL certificate only knows about server.domain.com. I attempted to follow this advice when I originally created the cert and add these additional domains (under "Subject Alternate Name Extension"), but the cert creation UI failed when I did this, so I just gave up. I hope that by the time these certs expire, someone posts some documentation on how to manage and change Lion Server SSL scripts AFTER the server has been promoted to an Open Directory Master. In the meantime, it would be much appreciated if anyone can post either how to add these additional domain names to the existing cert, or generate and/or sign a cert with a self-created Keychain Access root certificate authority. In my experience, any attempt to mess with the SSL certs automatically generated just breaks Lion Server.
    Finally, if you don't want a little Apple logo as your web page icon, create your own 16×16 PNG and copy it to the file /Library/Server/Web/Data/Sites/Default/favicon.ico. And request that all web-crawling robots go away with the file /Library/Server/Web/Data/Sites/Default/robots.txt:
    User-agent: *
    Disallow: /
    Misc
    VNC easily works with iOS devices -- use a good passphrase. Edit /System/Library/LaunchDaemons/org.postgresql.postgres.plist and set "listen_addresses=127.0.0.1" to allow PostgreSQL connections over localhost. I've also downloaded snort/base/swatch to build an intrusion detection system, and used Macports's squid+privoxy to build a privacy-enhanced ad-blocking proxy server.

    Privacy Enhancing Filtering Proxy and SSH Tunnel
    Lion Server comes with its own web proxy, but chaining Squid and Privoxy together provides a capable and effective web proxy that can block ads and malicious scripts, and conceal information used to track you around the web. I've posted a simple way to build and use a privacy enhancing web proxy here. While you're at it, configure your OS and browsers to block Adobe Flash cookies and block Flash access to your camera, microphone, and peer networks. Read this WSJ article series to understand how this impacts your privacy. If you configure it to allow use for anyone on your LAN, be sure to open up ports 3128, 8118, and 8123 on your firewall.
    If you've set up ssh and/or VPN as above, you can securely tunnel in to your proxy from anywhere. The syntax for ssh tunnels is a little obscure, so I wrote a little ssh tunnel script with a simpler flexible syntax. This script also allows secure tunnels to other services like VNC (port 5900). If you save this to a file ./ssht (and chmod a+x ./ssht), example syntax to establish an ssh tunnel through localhost:8080 (or, e.g., localhost:5901 for secure VNC Screen Sharing connects) looks like:
    $ ./ssht 8080:[email protected]:3128
    $ ./ssht 8080:alice@:
    $ ./ssht 8080:
    $ ./ssht 8018::8123
    $ ./ssht 5901::5900  [Use the address localhost:5901 for secure VNC connects using OS X's Screen Sharing or Chicken of the VNC (sudo port install cotvnc)]
    $ vi ./ssht
    #!/bin/sh
    # SSH tunnel to squid/whatever proxy: ssht [-p ssh_port] [localhost_port:][user_name@][ip_address][:remotehost][:remote_port]
    USERNAME_DEFAULT=username
    HOSTNAME_DEFAULT=domain.com
    SSHPORT_DEFAULT=22
    # SSH port forwarding specs, e.g. 8080:localhost:3128
    LOCALHOSTPORT_DEFAULT=8080      # Default is http proxy 8080
    REMOTEHOST_DEFAULT=localhost    # Default is localhost
    REMOTEPORT_DEFAULT=3128         # Default is Squid port
    # Parse ssh port and tunnel details if specified
    SSHPORT=$SSHPORT_DEFAULT
    TUNNEL_DETAILS=$LOCALHOSTPORT_DEFAULT:$USERNAME_DEFAULT@$HOSTNAME_DEFAULT:$REMOT EHOST_DEFAULT:$REMOTEPORT_DEFAULT
    while [ "$1" != "" ]
    do
      case $1
      in
        -p) shift;                  # -p option
            SSHPORT=$1;
            shift;;
         *) TUNNEL_DETAILS=$1;      # 1st argument option
            shift;;
      esac
    done
    # Get local and remote ports, username, and hostname from the command line argument: localhost_port:user_name@ip_address:remote_host:remote_port
    shopt -s extglob                        # needed for +(pattern) syntax; man sh
    LOCALHOSTPORT=$LOCALHOSTPORT_DEFAULT
    USERNAME=$USERNAME_DEFAULT
    HOSTNAME=$HOSTNAME_DEFAULT
    REMOTEHOST=$REMOTEHOST_DEFAULT
    REMOTEPORT=$REMOTEPORT_DEFAULT
    # LOCALHOSTPORT
    CDR=${TUNNEL_DETAILS#+([0-9]):}         # delete shortest leading +([0-9]):
    CAR=${TUNNEL_DETAILS%%$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR%:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        LOCALHOSTPORT=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # REMOTEPORT
    CDR=${TUNNEL_DETAILS%:+([0-9])}         # delete shortest trailing :+([0-9])
    CAR=${TUNNEL_DETAILS##$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR#:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        REMOTEPORT=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # REMOTEHOST
    CDR=${TUNNEL_DETAILS%:*}                # delete shortest trailing :*
    CAR=${TUNNEL_DETAILS##$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR#:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        REMOTEHOST=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # USERNAME
    CDR=${TUNNEL_DETAILS#*@}                # delete shortest leading +([0-9]):
    CAR=${TUNNEL_DETAILS%%$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR%@}                            # delete @
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        USERNAME=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # HOSTNAME
    HOSTNAME=$TUNNEL_DETAILS
    if [ "$HOSTNAME" == "" ]                # no hostname given
    then
        HOSTNAME=$HOSTNAME_DEFAULT
    fi
    ssh -p $SSHPORT -L $LOCALHOSTPORT:$REMOTEHOST:$REMOTEPORT -l $USERNAME $HOSTNAME -f -C -q -N \
        && echo "SSH tunnel established via $LOCALHOSTPORT:$REMOTEHOST:$REMOTEPORT\n\tto $USERNAME@$HOSTNAME:$SSHPORT." \
        || echo "SSH tunnel FAIL."

  • Unable to retrieve server listen address through MBEAN API in Weblogic 10.3

    Hi,
    I am using weblogic 10.3 and i am lookign to retrive the listen address of the weblogic server where my application has been deployed. I have used the below piece of code to do that.
    Code snippet :
    ======================================
    private Properties loadXMLSchema(Properties cosbProps)
    String serverName, serverPort, serverUrl;
    Environment env = new Environment();
    Hashtable ht = new Hashtable();
    Context ctx = null;
    try
    ht.put(Context.SECURITY_PRINCIPAL,
    cosbProps.getProperty("COSB.security.principal"));
    ht.put(Context.SECURITY_CREDENTIALS,
    cosbProps.getProperty("COSB.security.credentials"));
    ctx = new InitialContext(ht);
    MBeanHome home = MBeanHome)ctx.lookup(MBeanHome.LOCAL_JNDI_NAME);
    serverName = home.getMBeanServer().getServerName();
    Object mbeanArray[] =
    home.getMBeansByType("ServerConfig").toArray();
    int i = 0;
    for (i = 0; i < mbeanArray.length; i++)
    DynamicMBean mbean = (DynamicMBean)mbeanArray;
    if (serverName.equals(mbean.getAttribute("Name")))
    break;
    DynamicMBean mbean = (DynamicMBean)mbeanArray[i];
    serverPort =
    mbean.getAttribute("ListenPort").toString();
    serverUrl =
    mbean.getAttribute("ListenAddress").toString();
    Properties props = new Properties();
    props.setProperty("port", serverPort);
    props.setProperty("ipAddress", serverUrl);
    return props;
    catch (Exception ex)
    System.out.println("exception in loadXMLSchema method" + ex);
    return null;
    ======================================
    This code is successfully running in wls 8.15 and i can able to see the listen address(ip address where weblogic server is running) in the JNDI information of weblogic server.
    Now when i try this same piece of code in wls 10.3 , i am not able to see the listen address(ip address where weblogic server is running) in the JNDI information of weblogic server. The listen address is coming as NULL. I have tried to align the JMX specification in wls 10.3 by using the following argument in JDK startup option.
    -Djmx.serial.form=1.0
    But still the listen address is unable to reflect in JNDI specifcations of wls 10.3.
    Would you please help in getting the listen address information in wls 10.3.
    Thanks, Pralay
    Edited by: ghoshp on Oct 12, 2011 11:35 AM

    james.bayer wrote:
    startManagedWebLogic should call setDomainEnv which should call commEnv
    On Windows, mine is located here:
    <WLS_11gPS1_Install>\wlserver_10.3\common\bin\commEnv.cmd
    Looking at commEnv.sh it looks like you should be able to search for "SunOS" to see the section that specifies the locations of 64bit shared objects on your LD_LIBRARY_PATH.That is the first place that I looked.
    Here's the code:
    <pre>
    SunOS)
    arch=`uname -m`
    if [ -n "${LD_LIBRARY_PATH}" ]; then
    <snip>
    if [ "${SUN_ARCH_DATA_MODEL}" = "64" ]; then
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/solaris/sparc64:${WL_HOME}/server/native/solaris/sparc64/oci920_8
    else
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/solaris/sparc:${WL_HOME}/server/native/solaris/sparc/oci920_8
    # LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/solaris/sparc64:${WL_HOME}/server/native/solaris/sparc/oci920_8
    </pre>
    Even when 64-bit is selected and WebLogic starts with a 64-bit JVM, it does not set the LD_LIBRARY_PATH accordingly. As you see I have even tried forcing the path - but even that didn't work. It seems to be overriding the value elsewhere.
    One thing: what is the "vendor" supposed to be set as when using the Sun JBM? Sun? Oracle? I notice that further down the script it checks for "Oracle."

  • SapScript Form by email: Using output medium 5 - several email address

    Hello, ppl
    I've been doing some developing concerning the send of correspondence by email.
    I've used output medium 5, and have have build email recipient parameters as follow:
    Getting email address:
      CLEAR address.
      SELECT SINGLE smtp_addr FROM adr6
      INTO address
      WHERE addrnumber  = p_adrnr
        AND persnumber  = space
        AND flgdefault  = 'X'.
      IF  address IS INITIAL.
        p_device = 'PRINTER'.
        EXIT.
      ENDIF.
    create recipient
      swc_create_object lo_recipient 'RECIPIENT' space.
    swc_set_element   lt_container 'SendAsACopy'
                                     'X'.
      swc_set_element   lt_container 'AddressString'
                                      address.
      swc_set_element   lt_container 'TypeID'
                                     'U'.
      swc_call_method lo_recipient   'CreateAddress' lt_container.
      swc_object_to_persistent lo_recipient p_persistent_recipient.
    create sender (current user)
      swc_create_object lo_sender 'RECIPIENT' space.
      swc_set_element lt_container 'AddressString'
                                   sy-uname.
      swc_set_element lt_container 'TypeID' 'B'.
      swc_call_method lo_sender    'CreateAddress' lt_container.
      swc_object_to_persistent     lo_sender p_persistent_sender.
    And have called open_form as follows:
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING form = xformular
                     language = ekko-spras
                     OPTIONS = itcpo
                     archive_index  = toa_dara
                     archive_params = arc_params
                     device = xdevice
                     dialog = xdialog
                     mail_sender     = p_persistent_sender
                     mail_recipient  = p_persistent_recipient
           EXCEPTIONS canceled = 01.
      IF sy-subrc NE 0.
        PERFORM protocol_update USING '142' ekko-ebeln space space space.
        retco = sy-subrc.
        EXIT.
      ENDIF.
    Everything works fine ... problem is i need to send the email to several adresses and also add some as CC: instead of TO: in the email parameters.
    Is this possible?
    As far as i know mail_ricipient only allows one email reference ...
    Please, provide some help.
    Thanks,
    Mário

    LOOP AT <receiver_table>.
                w_email = <receiver_table-mailid.
    *-- Create persistent send request
      send_request = cl_bcs=>create_persistent( ).
    *--Add document to send request
      CALL METHOD send_request->set_document( document ).
    *-- Get sender object
      sender = cl_sapuser_bcs=>create(<Sender mailid / userid ).
    *--Add sender
      CALL METHOD send_request->set_sender
        EXPORTING
          i_sender = sender.
      recipient = cl_cam_address_bcs=>create_internet_address( w_email ).
           RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_RECVR ).
    *--Add recipient with its respective attributes to send request
      CALL METHOD send_request->add_recipient
        EXPORTING
          i_recipient = recipient.
    *--set send immediately flag
      send_request->set_send_immediately( 'X' ).
    *--Send document
      CALL METHOD send_request->send( ).
      COMMIT WORK.
    endloop.

  • Sending a SAP Office Attachment as a PDF to Internet email Address

    We are using SO_NEW_DOCUMENT_ATT_SEND_API1 and SO_DOCUMENT_SEND_API1 to create e-mails with attachments from SAP and sending them to e-mail addresses which are outside of SAP. Today we tell these function modules that the attachments are "RAW" datatype which, somewhere in the process, creates the attachment with a file type of TXT. What I want to do is have that same attachment sent as a PDF file. I can change the file type in the "packing list" of these functions and the get delivered with the PDF file type to the external recipient. However, when you try to open the attached file, Adobe tells you that the file is corrupted or not decoded properly. Any ideas how I can convert the attachment's data properly so it can be read by Adobe on the recipient's side? I know how to convert spool files using CONVERT_ABAPSPOOLJOB_2_PDF but couldn't find any technique for attachments.
    Thanks,
    Kevin

    Hi,
    Try out following code:
    Convert PDF file into binary format
    i_tline comes from your CONVERT_ABAPSPOOLJOB_2_PDF
      LOOP AT i_tline.
        TRANSLATE i_tline USING ' ~'.
        CONCATENATE pdfbuf i_tline INTO pdfbuf.
      ENDLOOP.
      TRANSLATE pdfbuf USING '~ '.
      DO.
        objbin = pdfbuf.
        APPEND objbin.
        SHIFT pdfbuf LEFT BY 255 PLACES.
        IF pdfbuf IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Create the e-mail body
      docdata-obj_name  = 'File_Name'.
      CONCATENATE 'My' 'PDF File' INTO docdata-obj_descr.
      objtxt = 'Here is your file'.
      APPEND objtxt.
    Other parameters
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      docdata-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'RAW'.
      APPEND objpack.
    Create e-mail attachment
      DESCRIBE TABLE objbin LINES tab_lines.
      READ TABLE objbin INDEX tab_lines.
      objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'PDF'.
      CONCATENATE 'My' 'File' INTO docdata-obj_name.
      objpack-obj_descr  = 'PDF File'.
      APPEND objpack.
    Create the list of recipients
      reclist-receiver = SY-UNAME.
      reclist-rec_type = 'B'.
      reclist-express  = 'X'.
      APPEND reclist.
    Send the e-mail
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data                    = docdata
          put_in_outbox                    = 'X'
          commit_work                      = ' '
        TABLES
          packing_list                     = objpack
          contents_bin                     = objbin
          contents_txt                     = objtxt
          receivers                        = reclist
        EXCEPTIONS
          too_many_receivers               = 1
          document_not_sent                = 2
          document_type_not_exist          = 3
          operation_no_authorization       = 4
          parameter_error                  = 5
          x_error                          = 6
          enqueue_error                    = 7
          OTHERS                           = 8.

  • How to Find the Hostname / IP Address of Reports Server From Forms

    Hi
    We have following query to find out on which machine form server is running,
    but how to find hostname/ip address of reports server (if there are more than one reports server running and on different machines).
    SELECT SYS_CONTEXT('USERENV','HOST'), SYS_CONTEXT, SYS_CONTEXT('USERENV','IP_ADDRESS')
    from dual.
    can anybody answer?
    rocky rocks.

    Our oas name is the same as the box name, and the report server naming convention is rep_(oas name) so that makes it easy to find out.
    I have a pll attached to my form that contains the following function, which works for PC or UNIX based app server:
    -- get_oas_name - Returns OAS name. 
    -- caveat:  Can't be run from pre-form, when-new-form-instance or when-new-block-instance of first
    --          block on the form due to webutil limitation.
    FUNCTION get_oas_name RETURN varchar2 IS
      fp text_io.file_type;
      oas_name varchar2(30);
      op_sys varchar2(30) := get_application_property(OPERATING_SYSTEM);
    BEGIN
      if op_sys = 'WIN32COMMON' then                    
        oas_name := webutil_clientinfo.get_host_name;
      elsif op_sys = 'SunOS' or op_sys = 'UNIX' then
        host('/bin/uname -n > /tmp/oas_name');
        fp := text_io.fopen('/tmp/oas_name','r');
        text_io.get_line(fp, oas_name);
        text_io.fclose(fp);
      end if;
      return oas_name;
    END;Then in when_timer_expired (first place you can use webutil functionality) call it accordingly. I also use it to set platform dependant variables so the form will run
    when I'm working on my PC or deployed on UNIX:
    declare
      :control.op_sys  := get_application_property(OPERATING_SYSTEM);
    begin
          :control.oas_name := get_oas_name;
          :control.report_server := 'rep_'|| :control.oas_name;
          if :control.op_sys = 'WIN32COMMON' then        -- For running locally during development.                     
            :control.close_page := 'http://127.0.0.1:8889/forms90/common/window_close.htm';
            :control.rpt_temp := 'c:\temp\';
          elsif :control.op_sys = 'SunOS' or :control.op_sys = 'UNIX' then
            :control.close_page := 'http://'||:control.oas_name||'.yournamehere.com:7779/forms90/common/window_close.htm';
            :control.rpt_temp := '/appl/oas/yournamehere/reports/cache/';
          end if;
    end;Good luck,
    Gary

  • How  to get Mail  address  of  an Employee in  Workflow  ?

    Hello Everybody ,
    I want  to send mail  to employee   through  workflow    . I  have  Employee  number  PERNR  but  which method and  B.O   should i used  to get   email  address  of  that  employee   .?
    Any solution .?
    Regards,
    Sandeep Jadhav

    hi:
    Try the function module HR_FBN_GET_USER_EMAIL_ADDRESS
    else Create a Z_function module and put the following code as
    ORM find_email_address USING    p_uname
                            CHANGING p_recextnam LIKE soos1-recextnam.
      DATA:   t_pernr LIKE pa0105-pernr,
              t_email LIKE pa0105-usrid_long.
    STEP 1 - Find personnel number for UNAME
      SELECT SINGLE pernr INTO t_pernr
        FROM pa0105
        WHERE subty = '0001' AND
              endda >= sy-datum AND
              begda <= sy-datum AND
              usrid = p_uname.
    Employee record found
      IF sy-subrc = 0.
    STEP 2 - Find email address for personnel number
        SELECT SINGLE usrid_long INTO t_email
          FROM pa0105
          WHERE pernr = t_pernr AND
                subty = '0022' AND
                endda >= sy-datum AND
                begda <= sy-datum.
        IF sy-subrc = 0.
          IF NOT p_recextnam IS INITIAL.
            CONCATENATE p_recextnam t_email
              INTO p_recextnam SEPARATED BY ','.
          ELSE.
            p_recextnam = t_email.
          ENDIF.
        ELSE.  "Never found an email address for employee
    WHO SHOULD WE SEND TO HERE??? ***
        ENDIF.
    Employee number not found. Search in ADR6 table
      ELSE.
    See if user name is in the username table.
    i.e. The user is not an employee
        SELECT SINGLE addrnumber persnumber
          INTO (usr21-addrnumber, usr21-persnumber)
          FROM usr21
          WHERE bname = p_uname.
        IF sy-subrc = 0.
    Found user name now let's get the email address
          SELECT SINGLE smtp_addr INTO t_email
            FROM adr6
            WHERE addrnumber = usr21-addrnumber AND
                  persnumber = usr21-persnumber.
          IF sy-subrc <> 0 OR t_email IS INITIAL.
    WHO SHOULD WE SEND TO HERE??? ***
          ELSE.  "Found email
            IF NOT p_recextnam IS INITIAL.
              CONCATENATE p_recextnam t_email
                INTO p_recextnam SEPARATED BY ','.
            ELSE.
              p_recextnam = t_email.
            ENDIF.
          ENDIF.
        ELSE.   "UNAME just does not have an email address addigned at all
    WHO SHOULD WE SEND TO HERE??? ***
        ENDIF.
      ENDIF.
    Regards
    Shashi

  • Using Sender Address in Email sending process

    Hi all,
             I have a requirement that we are sending mail to multiple people. Here i am able to maintain TO Addresses but my requirement is i want to maintain From_address(i.e sender address)
    Problem is by default SAP sends by using SY-UNAME as per person looged in.
    Can we send From_address(sendera ddress) by using variable but not sy-uname.
    Thanks,
    Rajesh
    Edited by: rajesh pattnaik on Apr 21, 2009 5:24 PM

    Hi,
    If you use BCS functionality for sending mails, you can find your answer in demo program BCS_EXAMPLE_1
    *     --------- set sender -------------------------------------------
    *     note: this is necessary only if you want to set the sender
    *           different from actual user (SY-UNAME). Otherwise sender is
    *           set automatically with actual user.
          sender = cl_sapuser_bcs=>create( sy-uname ).
          CALL METHOD send_request->set_sender
            EXPORTING i_sender = sender.
    Enjoy!

  • Changing the IP address in solaris 10 and setting up networkconnection

    Hello,
    I need to change the IP address and make it avaliable to the network. I have changed the below file
    # IP -> /etc/hosts
    # Netmask -> /etc/netmasks
    # Gateway -> /etc/defaultrouter
    # IP (again) -> /etc/inet/ipnodes (This is new in Solaris 10)
    # DNS Servers -> /etc/resolv.conf
    But while rebooting everything gone. What could be the reason?
    I have changed the name using the uname -S <domain name> changes reflected but once I reboot everything gone.
    I need to change my keyboard from US to Finnish, I have used kbd -s then selected 8 for finnish, but still my keyboard settings was not reflected.
    Can anyone plese send me some like to setting up IP,domain name,subnet,etc.
    Thank you<!--Session data-->

    nsdh123 wrote:
    Hello,
    I need to change the IP address and make it avaliable to the network. I have changed the below file
    # IP -> /etc/hosts
    # Netmask -> /etc/netmasks
    # Gateway -> /etc/defaultrouter
    # IP (again) -> /etc/inet/ipnodes (This is new in Solaris 10)It's not new in Solaris 10, but populating the hostname in it is. In later versions of Solaris 10, it is just a symlink to the hosts file.
    # DNS Servers -> /etc/resolv.conf
    But while rebooting everything gone. What could be the reason?Everything gone? So all the files you edited were reverted back to the previous version? If so, it sounds like something is wrong with the drive or the filesystem.
    I have changed the name using the uname -S <domain name> changes reflected but once I reboot everything gone.
    # man uname
         -S system_name
               [...]  This  change
               does  not  persist  across  reboots of the system.Either use sys-unconfig or edit /etc/nodename. Even if you don't use sys-unconfig, you might check the man page and see the files it mentions.
    Darren

  • How to change IP address permanently on Solaris 10

    Hi Solaris Experts,
    I would like to update an IP address permanently but believes ifconfig
    only does it on the fly and will revert back once the Solaris 10 Sun Fire server
    is rebooted:
    ( i ) # uname -a
    SunOS angel 5.10 Generic_139556-08 i86pc i386 i86pc
    ( ii ) # ifconfig -a
    bge0: flags=201000803<UP,BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 2
    inet 10.56.120.37 netmask fffffc00 broadcast 10.56.123.255
    ether 0:1e:68:9b:30:33
    nge0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 4
    inet 203.20.160.62 netmask ffffff00 broadcast 203.20.160.255
    ether 0:1e:68:9b:30:35
    nge0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index4
    inet 203.20.160.81 netmask ffffff00 broadcast 203.20.160.255
    nge1: flags=201000803<UP,BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 5
    inet 10.56.120.40 netmask fffffc00 broadcast 10.56.123.255
    ether 0:1e:68:9b:30:36
    ( iii ) # vi /etc/inet/hosts (/etc/inet/ipnodes is softlinked to /etc/inet/hosts)
    #10.56.120.37 angel angel.apple.com loghost
    203.20.160.91 angel angel.apple.com loghost
    ( iv ) # svcadm restart network/physical
    ( v ) # ifconfig -a
    bge0: flags=201000803<UP,BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 2
    inet 203.20.160.91 netmask ff000000 broadcast 203.255.255.255
    ether 0:1e:68:9b:30:33
    nge0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 4
    inet 203.20.160.62 netmask ffffff00 broadcast 203.20.160.255
    ether 0:1e:68:9b:30:35
    nge0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index4
    inet 203.20.160.81 netmask ffffff00 broadcast 203.20.160.255
    nge1: flags=201000803<UP,BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 5
    inet 10.56.120.40 netmask fffffc00 broadcast 10.56.123.255
    ether 0:1e:68:9b:30:36
    However, I want the correct netmask & broadcast are 255.255.255.0 & 203.20.160.255
    respectively, the same as nge0: (203.20.160.62) & nge0:1 (203.20.160.81).
    The following ifconfig command does update the IP address together with both correct netmask & broadcast
    but don't believe that this change will stay after reboot:
    #ifconfig bge0 inet 203.20.160.91 netmask 255.255.255.0 broadcast 192.168.1.255
    The value in /etc/netmasks (softlinked to /etc/inet/netmasks) is:
    10.56.120.0 255.255.252.0
    The value in /etc/defaultrouter is:
    203.20.160.1
    In short, which other files also need to be updated to pickup the correct netmask (255.255.255.0)
    & broadcast (203.20.160.255) permanently, without having to reboot the server?
    Thanks in advance,
    Jack

    Hi Nik,
    Thanks for your advice once again but are you able to provide the reason behind your suggestion, so that I won't blindly making this change without knowing why?
    I understand how IP and netmask are use in general but do not understand how to setup /etc/inet/netmasks to offset both 10.56.120.0 & 203.20.160.0 subnetworks as well as getting different broadcasts for each.
    It is necessary to just as importing to learn from this exercise as much as making the change itself. This is a production server and I must be absolutely convinced that this change will work before applying it. Past attempt has not been successful which caused unnecessary downtime.
    Many thanks again,
    Jack

  • How to change IP address and hostname in solaris 9

    Hi experts,
    I want to change IP address and hostname of the server , Plese give steps, or any precise document .
    Thanks
    Mohan
    Message was edited by:
    mohan_sr

    did you already change your ip and host?
    if not, do the following instructions:
    * verify your hostname
    - uname -a
    - cat /etc/nodename
    both should show your hostname
    * alter your hostname
    - uname -S newname
    * verify the hostname
    - uname -a
    - cat /etc/nodename
    both should show your newname
    * edit /etc/hostname.ce0 (type ce0 depends on your net device)
    - echo 'newname' > /etc/hostname.ce0
    * verify /etc/hostname.ce0
    - cat /etc/hostname.ce0
    should show your newname
    * edit the following files
    - /etc/net/ticlts/hosts
    - /etc/net/ticots/hosts
    - /etc/net/ticotsord/hosts
    replace old with new hostname
    * edit /etc/inet/hosts
    replace ip and hostname
    * you have to look for
    - /etc/inet/networks
    - /etc/inet/netmask
    fit yout data
    After doing all changes you have to reboot your system.
    Use ipconfig to verify network data

Maybe you are looking for

  • The service where I live is awful

    To whom this may concern,         I am typing this email to you today to talk to you about the service problem in Milmay, New Jersey zip code 08340. Service here has always been an issue, but ever since the derechio in early July 2012, it has been ut

  • Battery doesn't sleep - goes straight to shutdown at 60-80%

    Hi I don't often unplug my MBP, but when I do it never seems to give a battery warning or goes to sleep. When it hits anything from 60-80% battery left it just shuts down. The indicators on the back of the battery seem to correspond to the percentage

  • MBAM 2.5 Certificate Requirements

    I am upgrading from MBAM 1.0 to 2.5 and trying to finish the installation on the application server but the MBAM configuration is telling me that I do not have any valid certificates installed despite the fact there is indeed an SSL certificate in II

  • Monthly FX conversion for months and quarters

    Hi, I have a scenario whereby my entities enter (YTD) data monthly. The FX conversion is defined with the "apply periodic" option, so it should work out the periodic change and apply the FX rate to that change. This works absolutely fine. I now need

  • Which version of Windows to Buy for fresh install?

    I have a simple question that after 3 days of searching am still unable to answer. I apologize if this has been asked and answered many times before but have searched the communities and not found anything recent. My question is this: I have a MacBoo