WLST script to extract store and forward agent values ?

I want to extract SAF Agent values "Message Current" and "BytesCurrent" to output display/ print over screen.
I am new to this and not sure how to go about it.
I am not even sure of what methods should I use in my script?
Thanks.

Hi,
You can find more info at these urls:
http://download-llnw.oracle.com/docs/cd/E12840_01/wls/docs103/jmx/accessWLS.html#wp1119237
http://download-llnw.oracle.com/docs/cd/E12840_01/wls/docs103/config_scripting/monitoring.html#wp1027005
So just as an example the new code to retrieve the SAFAgentRuntimeMBean could be:
Connecting to admin server and retrieving information for all managed servers:
def getRunningServerNames():
domainConfig()
return cmo.getServers()
try:
connect('username', 'password', 't3://localhost:7001')
serverNames = getRunningServerNames()
domainRuntime()
for name in serverNames:
path="/ServerRuntimes/"+name.getName()+"/SAFRuntime/"+name.getName()+".saf/Agents"
print path
try:
cd(path)
agents=cmo.getAgents()
for agName in agents:
cd(agName.getName())
msgCurrCount = cmo.getMessagesCurrentCount()
print "MessageCurrentCount for server "+name+" SAFAgent "+agName.getName()+" is "+msgCurrCount
XXXXXXXXXXXXX here you could cd to other mbean and get all needed attributes XXXXXXXXXXXXXX
except WLSTException,e:
pass
except WLSTException,e:
Connecting to a single server:
connect('username','password','url')
serverRuntime()
name=cmo.getName()
cd(SAFRuntime/"+name+".saf/Agents")
In java code this will be:
ObjectName drs = new ObjectName("weblogic:Name=DomainRuntimeService");
ObjectName[] svr_rt = (ObjectName[])conn.getAttribute(drs,"ServerRuntimes");
for (int i=0; i<svr_rt.length; i++) {
ObjectName AgentsRTs[] =(ObjectName[])conn.getAttribute(svr_rt,"SAFAgentRuntimes");
Or if you are only interested in the ones from the local server, you would
start from the local RuntimeService, e.g.,
ObjectName drs = new ObjectName("weblogic:Name=RuntimeService");
ObjectName svr_rt = (ObjectName)conn.getAttribute(drs,"ServerRuntime");
ObjectName AgentsRTs[] = (ObjectName[])conn.getAttribute(svr_rt,"SAFAgentRuntimes");
Hope this will work for you.
Regards,
Kal

Similar Messages

  • Store and Forward agent configuration in jms adapter - jdeveloper

    I am created the store and forward (SAF) agent in weblogic to communicate with another weblogic server.
    after creating it i tried to configure it in jms adapter wizard but i can't able see my SAF Queue there.
    so now how can i give payload to my SAF queue for testing it.
    Please provide any suggestions, i will provide with the points.
    Thanks,
    Ajay Athuluri

    So I don't know much of the details of AIA, and next to nothing of the pre-built integrations, so can't help you much there. However are you sure you've got all the requisite SAF configuration right? The JMS and SAF component hierarchies are a real rats' nest of trouble. This is a setup I've found to work:
    * SAF Agent, targeted to a managed server; needs to use the default filestore (ie when configuring it you don't specify one)
    * JMS Module containing:
         * SAF Remote Context, pointing at your remote WLS instance
         * JMS SubDeployment, targeted to the SAF Agent
         * Connection Factory, targeted at the managed server
         * SAF Imported Destination, targeted at the SubDeployment
         * Queue in the Imported Destination, with WLS and JNDI names set up so they're different in the sending domain and receiving domain
    The pre-built integrations will (probably) have the JNDI names you need to configure in the documentation.
    HTH!
    Paddy

  • Does JMS support reliable messaging (store-and-forward) for app clients?

    I need to write an enterprise application client (launched with Java web start or packaged with a tool like Sun's package-appclient) that can send messages reliably from Linux to Windows. JMS seems like the obvious solution, so I deployed an EAR file with an MDB and an application client on a Windows machine (running SJSAS 9). I was able to download the client jar file onto Linux and send JMS messages successfully. However, if the Windows machine is not available, the Linux client immediately throws exceptions and fails. Are there any JMS providers that provide a store-and-forward mechanism for enterprise clients, so that if the remote server is not available immediately, messages are delivered later? (Note that the client can't be a servlet or other server-managed component.)
    I'd prefer an open-source solution, but this requirement has an extremely high priority for my customer, so I'll use a commercial product if necessary. And if there's something other than JMS that works, that would be fine. (In my case, the messages on the remote side ultimately go to a .NET service, so WS-ReliableMessaging would be ideal, but it looks WS-RM won't be integrated into .NET until Vista, and the current WS-RM implementation is a beta, etc., etc.)
    Thanks,
    Mike

    You could use Apache ActiveMQ
    http://incubator.apache.org/activemq/
    which supports embedded brokers inside each JVM which can be networked together in a store-forward mechanism so that each application keeps working and store-forwarding messages.
    http://incubator.apache.org/activemq/networks-of-brokers.html
    or you can use failover transport to handle automatic reconnection...
    http://incubator.apache.org/activemq/how-can-i-support-auto-reconnection.html
    If you need to communicate with some .Net you can use the NMS - the .Net Messaging API which has a client for ActiveMQ as well...
    http://incubator.apache.org/activemq/nms.html
    James
    http://logicblaze.com/
    Open Source SOA

  • Store-and-forward SOAP messaging in JAX-RPC ??

    JAXM seems dead (although SAAJ lives and is very useful). I want to implement a store-and-forward SOAP messaging system for EAI and give it a Java API. Can I do this in JAX-RPC? Does it make any sense?
    Thanks,
    Mark

    At Java One they were advocating the use of web services over JMS.

  • Store and Forward Azure Database?

    I'm working on mobile applications (Win Phone 8.1 and Win Store 8.1) that allows our internal crew members to clock-in, clock-out, and report daily work activities. This will be stored on Azure mobile databases, however, our users will be going out
    of mobile connectivity routinely, throughout the day.
    What would the best practice be to store and forward this data to allow them to continue working and then sync when they get back in the connectivity area?

    Hello,
    Did you want to use Windows Azure Mobile Services support offine data with mobile applications as Cotega post above?
    Azure Mobile Service SDK support mobile application store table operations in a local data store in offine, and later sync the changes to the mobile service when in connectivity again.
    Reference:
    Azure Mobile Services - Get Started with Offline
    Deep dive on the offline support in the managed client SDK
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Store and Forward Switching

    Hello,
    Quick question, does a Cisco 3750 switch support store and forward switching? If so, is it default? If not, is there a command for it?
    I know the 3550's support S&F as default and if the 3750's do then it may resolve my issue.
    Thanks
    Wayne

    Thanks Bobby. In terms of raw switching is there any other differences between the 3550 and 3750?
    The reason I ask is I ran a BERT test on two pieces of equipment over a 3750 and it fails the test. Over a 3550 is passes.
    Both switches have an IP address for VLAN 1 and portfast and that's it, can't be simpler.
    I'm just wondering whether something is on as default on the 3550 but off as default on the 3750????????
    Many thanks,
    Wayne

  • Customer Ship-to and Forwarding agent relationship

    Dear Friends,
    Is there any possibility that I can store information related to Transportation (Customer-Forwarding Agent relation) in SAP.
    What I need is that when I assign delivery to the Shipment, system should automatically pick up the forwarding agent as applicable for the Ship-to-Party in the delivery.
    Please advise.
    Regards,
    Harsh

    Hai,
    In 0VTD- create transporation connection point- Ref cust/vendor tab
    u can enter vendor/forwarding agent number.
    this connection point again assign to the route.
    its not just specific to the ship to -its specific to route which can be defaulted if u use the same route in delivery.
    -amnt giving sol'n for ur query,but providing info how FA is linked to Route.
    lets wait for more views

  • Script to extract names and email addresses of all recipients of an email

    Hi,
    I have found some scripts which extract email addresses from the content of messages in Mail, but I am looking for something rather different, and wonder if such a script exists, or if someone can help me build one.  I would like to create a tab delimited text file of the first name, last name and email address of all recipients of a given message in Mail.  Most email addresses will be in the format John Doe <[email protected]>.
    Thanks,
    Nick

    Hi,
    nick_harambee wrote:
    I have one outstanding issue, which wasn't included in the original question.  Sometimes email addresses are included in the Name of the recipient, i.e. instead of 'John Doe', it reads 'John Doe ([email protected])'.  Could you script be adapted to delete any block of text (i.e. space delimited) that includes the @ symbol, so that 'John Doe ([email protected])' would return:
    John<tab>Doe<tab>[email protected]
    Use this handler:
    on splitName(t)
        if "@" is in t then -- to remove the address after the name
            set n to -3
        else
            set n to -2 -- normal name
        end if
        set tid to text item delimiters
        set text item delimiters to space
        set l to text items of t
        if (count l) = 1 then -- no space 
            set r to tab & t & tab -- last name only 
        else
            tell l to set r to "" & (items 1 thru n) & tab & (item (n + 1)) & tab
        end if
        set text item delimiters to tid
        return r
    end splitName

  • Automatic "Shipping Type" and "Forwarding Agent" from Route to Sales Order

    Need some help...
    When creating a Sales Order, the field "Shipping type" (inside Shipping tab of the Item Level) and the Forwarding Agent (Partners tab) should be automatically get from the configuration made for the Route applied in the order, via SAP Standard Functionality.
    The Route is being automatically determined in the Sales Order and for this Route, there is a "Shipping Type" and a "Freight Agent" assigned.
    Thanks for the help!

    Hi Hrishi.
    Actually, those informations have to be available in the delivery.
    The idea is that the customer organizes all his operations (picking, packing, loading and tranportation processes) based on deliveries that will be transported by the same agent and using the same shipping type.
    As I assigned an agent and a shipping type in the route, I expected to get these values automatically in the Sales Order, and consequently in the delivery.
    Thanks for the help.
    Regards.

  • Carry and forward agent

    Hi
    i want to do the configuration for C& F agent in the system.
    From the forum i understand that it is done through the partner determination using "FA" as a partner functions.
    Could someone elaborate more and tell me the required accouinting enrtries and which movement type will be taken into consideratrion. WIll it be 601 or somethig else.
    looking forward for valuable inputs from u
    thanks

    Hi,
    If I understand you, you want to manage the transport costs or shipment costs. Perhaps you achiive it with the funcionality of transports in logistic execution. You can manage it with the route. Check these notes and tell us your requirement with detail.
    SAP Note 700512 - Information: Allocation of shipment costs to delivery itemsSAP
    Note 746552 - INFORMATION: => LE-TRA-FC-BIL (Billing)
    SAP Note 1150378 - Info: Transfer of freight conditions to billing document
    In the section of articles I remember an article about shipment costs for inbound deliveries in that the author explain the steps. If I found it I will tell you
    I hope this helps you
    Regards,
    Eduardo
    The article: search in the site for 'Inbound Transportation in Logistics Execution', it's a pdf file from our coleague Manikanda ilango. It's for inbound deliveries, but you will understand how to do it for outbound deliveries. You will view that you have the C&F agent in the transport.
    Edited by: Eduardo Hinojosa on Sep 23, 2009 6:34 PM
    Edited by: Eduardo Hinojosa on Sep 23, 2009 6:35 PM

  • Carrying and Forwarding agent mapping

    Dear All,
    I have to map a certain scenario where there are two plants at two different states and one ware house and 20 C& F agents spread across the country.
    1)How should i map this in SAP?
    2) Whether i should map the C& F agents as S.Loc or any thing else?
    Regards,
    Jhon
    Edited by: s.jhon on Jul 13, 2011 2:24 PM
    Edited by: s.jhon on Jul 13, 2011 2:32 PM

    Hi,
    You can use the Partner function SB-Speical Stock Partner to map the C & F Agents.
    You can follow the Consignment Scenario if that fits your requirment. In my earlier project, the C & F agents were mapped as Depots since there was Tax Implication in moving the goods from Factory.
    Regards,
    Ajit

  • R/3 Secure Store and Forward, while using SAP portal for SSO

    Hello,
    We are using SAP Portal UME for authentication, then SAP SSO tickets to log into the SAP R/3 system.  Initially we decided that the end users would have a "disabled password" so that they must use the portal authentication mechanism to get into R/3 and therefore could not log in straight to R/3 system via SAP GUI.
    All was working fine until during integration testing when someone tried to use the electronic signature function on a QM t-code (QA11) that prompted for an e-sig.  Since local passwords have been disabled, the user could not execute the e-sig. 
    We do not want to activate local R/3 passwords for the users.  Can anyone give some advice or a best practice regarding how to set up electronic sigs in R/3 while using an external authentication source? FYI, we are also trying to avoid using the LDAP connector from R/3 to our LDAP.
    Please comment for any clarity needed or comments,
    Thanks in advance,
    Ryan

    Good point - but I'm afraid of not knowning an instant answer.
    Well, theoretically one could make use of the fact that an NWAS ABAP can act as http client (submitting http requests to the NWAS Java to validate logon data); but that's just a rough idea.
    Regards, Wolfgang

  • Call script in a workflow and get return value?

    hello
    I want create a workflow to check some attribute in IDM
    like for the home directory, use the workflow call some script to check there is enough space in the server? and the folder is almost there or not?
    then get the return value like if no enought space, call some other form let the admin input some new home directory string
    So I want to know how a workflow work with scipt file?
    I also use some after create action script, but it looks only can get some error message and shows in th IDM.

    This should help you:
    http://www.devdaily.com/java/edu/pj/pj010016/pj010016.shtml
    Note that the command will be executed by the application server user so check if it has sufficient rights.
    Ben

  • Freight charges based on rates per forwarding agents

    Dear all,
    i want to calculate freight chares based on fields plant and forwarding agent rates per EA.
    I have a partner function CR in customer master. In procing table field SPDNR for forwarding agent is not allowed.
    I tried to put LIFNR field but still not working... Kindly suggest me solution asap.
    Regards,
    Sandip

    I think you can either add new fields to KOMP or KOMK (item or header) and populate these fields in userexit_pricing_prepare_tkomp or userexit_pricing_prepare_tkomk
    in both order & invoice programs and then use these fields in condition tables.
    OR you can determine your conditions based on plant and define calculation routine to calculate condiiton value based on forwarding agent

  • Forwarding Agent and Shipping Point

    Hello Experts!
    Where can I obtain these entire adresses (which table)?
    Service Agent's or Forwarding Agent's (from Shipment) and
    Shipping Point entire adress.
    Regards
    Ilhan

    Service Agent's or Forwarding Agent's (from Shipment)
    field name : VTTK-TDLNR -> compare with LFA1-LIFNR,get ADRNR field from LFA1 Table,and do compare with ADRC-ADRNR ,you will get Forward agent address.
    Shipping Point entire adress.
    take VTTK-TPLST field and do compare with TTDS-TPLST ,get the adrnr field from TTDS Table ,do compare with ADRC Table,here you will get address.
    Thanks
    Seshu

Maybe you are looking for