How do I monitor two service ports in a server ?

The web service is alive when tcp port 80 and 8080 are both alive. How do I use script to monitor both ports at the same time ? Any example for this case ? Thanks.

Here is a script I have written for this - you can test as many ports as you want on one server with this script.
To run just add under the service as:
service test
keepalive type script socket-test.txt "172.17.10.10 8080 80 443"
Hope this helps,
Regards,
Darren.
-------------- Begin Script -----------------------------
!======================================================
! Filename: socket-test.txt
! Parameters: Host port1 port2 port3
! This script does the following:
! Connects to a remote host on a specified tcp sockets,
! waits for X seconds and then disconnects.
! Failure Upon:
! Not establishing a connection with the host. If one connection
! fails, the script fails.
! Usage to run manually:
! script play socket-test.txt
! Useage to run automaticlly:
! cmd-sched
! cmd-sched record 1 * * * * * "script play socket-test.txt"
! Written by Darren Page, Dimension Data
!======================================================
!no echo
! Make sure the user has a qualified number of arguments
if ${ARGS}[#] "LT" "2"
echo "Usage: socket-test.txt \'host socket1 socket2 socket3 ...'"
exit script 1
endbranch
set host "${ARGS}[1]"
! get the first tcp port ready from the ARGS array
var-shift ARGS
while ${ARGS}[#] "GT" "0"
set EXIT_MSG "Connect: Failed to connect to ${host}"
! Connect to remote host on specified port
socket connect host ${host} port ${ARGS}[1] tcp 2000
! Wait one second
pause 1
! disconnect from remote host with a TCP FIN
socket disconnect ${SOCKET} graceful
! Wait one second
pause 1
!get the next port from the array
var-shift ARGS
no set EXIT_MSG
! Demarcation of the end of the loop
endbranch
exit script 0
-------------End of Script ------------------

Similar Messages

  • How can i config Oracle Services for Microsoft Transaction Server in  9.2

    how can i config Oracle Services for Microsoft Transaction Server in 9.2

    There's nothing to configure on the client side. On the database side you just need to run a script once to setup an ORAMTS admin account and some other infrastructure.

  • How to list all active local ports where a server/services is listening?

    How can I list all local ports where a local server or services is listening?
    The listing should contain the path and program name of the listening server/service.
    So I need something like:
    port=22 /lib/svc/method/sshd
    port=25 /bin/emailprgm
    port=1049 /ust/local/bin/myserver
    How can I do this?

    lsof (compile, sunfreeware.com, blaswave)
    it wont show full path i think (man lsof for more) however it gives pids/ports/exe name, so you could take that and script it or do something with the output.

  • How to deploy a web service on Oracle Application Server 10.1.2.0.2?

    Hi everyone,
    I followed the instructions of the following link to create a web service using jDeveloper 10.1.3.1.0 on Oracle Application Server 10.1.2.0.2. [http://st-curriculum.oracle.com/obe/jdev/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm#t1]
    The web service created was deployed & used with no errors on the standalone OC4J instance.
    But my goal is to deploy my web service on Oracle Application Server 10.1.2.0.2.
    So after several attempts, I was able to deploy it on the Oracle Application Server 10.1.2.0.2 but unfortunately I didn't know the URL needed to use the web service.
    I tried the following link (http://192.168.0.91:18100/JavaWebService-GetDates-context-root/GetDatesWSSoapHttpPort) but also didn't work :(
    I also tried converting to J2EE 1.3 and still not knowing how to access the web service.
    Please advice with a solution.
    Thanks in advance.
    Lana

    Thanks everyone for your help :)
    The problem turned out to be that Oracle application server 10.1.2 is unlike the others servers, it uses 2 ports:
    - port (19100) is dedicated for the console.
    - port (7779) is to view your applications.
    So the URL needed turned out to be "http://acteos-109.beirut.acteos:7779/beanTest" instead of "http://acteos-109.beirut.acteos:18100/beanTest"
    Hope this info is useful
    Lana

  • How to install Oracle Report Services in Oracle Application Server 10.1.3.1

    My project is running on Oracle Application Server(OAS) 10.1.3.1, and I need to develop some Oracle Reports for my client.
    But I find out there is not "Oracle Report Services" component in OAS 10.1.3.1 like OAS 10.1.2.
    Is there Oracle Report Services for OAS 10.1.3.1? How to get it?

    Max Yuan wrote:
    You mean I need to install 2 OAS(10.1.2 for report, 10.1.3 for my project), or deploy my project to 11g? For the Reports reporting project, you'll need a version/edition that includes AS Reports Services.
    In "10gr2" that means AS 10.1.2.0.2 (plus Patch set): AS Infrastructure + AS BI&Forms installation (enterprise edition) or the standalone Forms and Reports installation (EE or separate licensing). You also need the Developer Suit (Reports Builder). OFM "11gr1" suite has some version of Reports Services but I don't know the available packages and installation types.

  • How do I install two instances on the same Server and avoid a conflict?

    Hi,
    I have one Server and I want to install two instances of SQL Server on it.
    1. Will be a default instance.
    2. Will be a named instance.
    The Server has an IP address of 192.168.0.10 and the default instance will be using port 1433.
    I want them to share the same address, but be listening on different ports.
    Do I,
    1. Go into TCP/IP of the named instance and set the port numbers for all the IP's to a port number, e.g. 1976?
    2. Delete the 0 from the dynamic ports sections?
    3. Create an open port rule in the Windows Firewall to allow access to the Server?   
    Thanks

    Hi,
    Please see following Microsoft link
    Configure SQL Server to listen on Specific port
    Configure Windows firewall to allow SQL Server access
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • How to read the Domain and Port of our server

    hi guru,
    Is there any method to get the portal Domain and Port .
    http://<domain>:<port>/irj/portal
    http://<Domain><port>  /irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.Transaction?System=NIB_Aliase&SAP_TCode=se80
    in our project  we are hard coded the Domain and port .
    if we transfer the application is some other server again we want to change.
    So is there any solution for that.Please help me in this situation
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPart;
    import com.sap.tc.webdynpro.services.task.TaskBinder;
      WDDeployableObjectPart d = wdComponentAPI.getDeployableObjectPart();
      String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
      int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
    With the above code you can get the host name, and port.
    If your problem is solved, award me the points.
    Thanks,
    Srini

  • How to deploy/enable Web services on Crystal Reports Server 2008?

    Hi All,
    I am trying to setup web services for CRS 2008. Per the installation guide, I can deploy the web services components from the source file in <Install Dir>\Business objects 12.0\java\applications and using BusinessProcessBI.war file. But I do not see anything in my applications folder.
    Where can I download the server components for CRS 2008 web services and how to configure it? Any help is greatly appreciated.
    Thanks
    Bin

    I am getting the following error when i try to verify the web-service deployment.
    how do i fix it? Documentaiton was not much helpful.
    <Exception>org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /dswsbobje/services/Session and the WSA Action = null at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:86) at org.apache.axis2.engine.Phase.invoke(Phase.java:308) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:119) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:799) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.businessobjects.dsws.wsc.common.axis.FlashFilter.doFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)</Exception>

  • Kodo-ds.xml: how to use for two database in same app server?

    hi,
    i meet a problem: i have two applications in the same app server(one app
    use one database.). BUT, only one kodo-ds.xml can configure the
    PersistenceManagerFactory with jndi name. When i figure the two jidi name
    for two "<tx-connection-factoy>" in the root element
    "<connection-factories>" in the kodo.ds.xml. That's unavailable!
    eg:
    <connection-factories>
    <tx-connection-factoy>
    <!-- specify the the first database connection properties with jndi name A
    -->
    </tx-connection-factoy>
    <tx-connection-factoy>
    <!-- specify the the SECOND database connection properties with jndi name
    B -->
    </tx-connection-factoy>
    </connection-factories>
    THAT'S MY CONFIGURATION. UNAVALIABLE NOW.... Who can help me solve this
    problem?
    thx!

    You should deploy multiple kodo-ds.xml files (i.e. kodo-ds-oracle.xml).
    Kidwish wrote:
    hi,
    i meet a problem: i have two applications in the same app server(one app
    use one database.). BUT, only one kodo-ds.xml can configure the
    PersistenceManagerFactory with jndi name. When i figure the two jidi name
    for two "<tx-connection-factoy>" in the root element
    "<connection-factories>" in the kodo.ds.xml. That's unavailable!
    eg:
    <connection-factories>
    <tx-connection-factoy>
    <!-- specify the the first database connection properties with jndi name A
    -->
    </tx-connection-factoy>
    <tx-connection-factoy>
    <!-- specify the the SECOND database connection properties with jndi name
    B -->
    </tx-connection-factoy>
    </connection-factories>
    THAT'S MY CONFIGURATION. UNAVALIABLE NOW.... Who can help me solve this
    problem?
    thx!
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • CSS 11501 7.40 Monitoring the services on real servers?

    Hi,
    Just want to ask some basic questions, How can i monitor the services (ie 80 and 443) of the real servers. So that when the CSS11501 detects that one of the services of one of the real servers is down, it will not forward the traffic to that server. Or is the CSS is configured to monitor the services by default?
    Because we are planning to upgrade one of the webservers (web01) while web02 is running, if we shutdown the service 80 and 443, does it affect the end-user, will CSS automatically redirect it to web02?
    Regards,
    Marlon

    Here is my sample configuration
    !************************** SERVICE **************************
    service WEB01-79-HTTP
    ip address 172.20.13.4
    keepalive type tcp
    keepalive port 80
    active
    service WEB01-79-HTTPS
    ip address 172.20.13.4
    keepalive type tcp
    keepalive port 443
    active
    service WEB01-80-HTTP
    ip address 172.20.13.5
    keepalive type tcp
    keepalive port 80
    active
    service WEB01-80-HTTPS
    ip address 172.20.13.5
    keepalive type tcp
    keepalive port 443
    active
    service WEB01-82-HTTP
    ip address 172.20.13.6
    keepalive type tcp
    keepalive port 80
    active
    service WEB01-82-HTTPS
    ip address 172.20.13.6
    keepalive type tcp
    keepalive port 443
    active
    service WEB01-83-HTTP
    ip address 172.20.13.7
    keepalive type tcp
    keepalive port 80
    active
    service WEB01-83-HTTPS
    ip address 172.20.13.7
    keepalive type tcp
    keepalive port 443
    active
    service WEB01-79
    ip address 172.20.13.4
    active
    service WEB01-80
    ip address 172.20.13.5
    active
    service WEB02-82
    ip address 172.20.13.6
    active
    service WEB02-83
    ip address 172.20.13.7
    active
    !*************************** OWNER ***************************
    owner VRL
    content VIP
    redundancy-l4-stateless
    content WEB-HTTP1
    vip address 172.20.10.85
    protocol tcp
    port 80
    advanced-balance sticky-srcip
    add service WEB01-79-HTTP
    add service WEB01-82-HTTP
    redundancy-l4-stateless
    active
    content WEB-HTTP2
    vip address 172.20.10.86
    port 80
    protocol tcp
    advanced-balance sticky-srcip
    add service WEB01-80-HTTP
    add service WEB01-83-HTTP
    redundancy-l4-stateless
    active
    content WEB-HTTPS1
    advanced-balance sticky-srcip
    vip address 172.20.10.85
    protocol tcp
    port 443
    add service WEB01-79-HTTPS
    add service WEB01-82-HTTPS
    redundancy-l4-stateless
    application ssl
    sticky-inact-timeout 20
    active
    content WEB-HTTPS2
    advanced-balance sticky-srcip
    vip address 172.20.10.86
    protocol tcp
    port 443
    add service WEB01-80-HTTPS
    add service WEB01-83-HTTPS
    redundancy-l4-stateless
    application ssl
    sticky-inact-timeout 20
    active
    content WEB01-79
    add service WEB01-79
    vip address 172.20.10.79
    redundancy-l4-stateless
    active
    content WEB01-80
    add service WEB01-80
    vip address 172.20.10.80
    redundancy-l4-stateless
    active
    content WEB02-82
    add service WEB02-82
    vip address 172.20.10.82
    redundancy-l4-stateless
    active
    content WEB02-83
    add service WEB02-83
    vip address 172.20.10.83
    redundancy-l4-stateless
    active
    !*************************** GROUP ***************************
    group WEB01-79
    add service WEB01-79
    vip address 172.20.10.79
    redundancy-l4-stateless
    active
    group WEB01-80
    add service WEB01-80
    vip address 172.20.10.80
    redundancy-l4-stateless
    active
    group WEB02-82
    add service WEB02-82
    vip address 172.20.10.82
    redundancy-l4-stateless
    active
    group WEB02-83
    add service WEB02-83
    vip address 172.20.10.83
    redundancy-l4-stateless
    active

  • Mixed service ports

    Can anyone tell me how to create a mixed service ports on ASA 8.4(2)?
    I need to create a service group which has ICMP, TCP ports and also different UDP ports.
    Normally you would create different service group based on TCP/UDP/TCP-UDP/ICMP/Protocol and add then to new nested service group.
    But I want to create a new service group where you can define everything without the need to different service groups and nesting them into a new one.

    I assume you mean a service group for traffic inbound to your firewall from the internet.  With that assumption, create a service group as shown below.  It shows the different types of protocols.
    object-group service whatever
    service-object icmp
    service-object tcp-udp destination eq 5500
    service-object tcp destination eq 500
    service-object udp destination eq 501

  • Error: DHCP-3-BIND_SRPORT_ERR: dhcp_support.c:374 Binding service port failed.

    Hi,
    I am getting bellow error messages with new wlan i created. On the same WLC i have three other wlans working OK. This wlan suppose to get authenticated with acs, i tried to disable the authentication but got same error message. With acs authentication, i am able to authenticate OK but cannot get ip address from dhcp server. DHCP server is on wlc, used by other three wlans ok. All wlans are on differnt subnets; vlans created where needed.Any ideas would be appreciated.
    Thanks
    Error from wlc:
    *Sep 10 13:23:53.303: %DHCP-3-BIND_SRPORT_ERR: dhcp_support.c:374 Binding service port failed.
    *Sep 10 13:15:33.111: %DHCP-3-BIND_SRPORT_ERR: dhcp_support.c:374 Binding service port failed.
    *Sep 10 13:07:12.920: %DHCP-3-BIND_SRPORT_ERR: dhcp_support.c:374 Binding service port failed.
    *Sep 10 12:58:52.732: %DHCP-3-BIND_SRPORT_ERR: dhcp_support.c:374 Binding service port failed.
    *Sep 10 12:50:32.535: %DHCP-3-BIND_SRPORT_ERR: dhcp_support.c:374 Binding service port failed.

    %DHCP-3-BIND_SRPORT_ERR: dhcp_support.c:374 Binding service port failed.
    This one perplexed me too, there is no answer on Cisco's website that I could find. I think I have the  solution though....
    Go to Monitor -> Interfaces -> Service-Port and have a look at the configuration.
    I'm willing to bet that DHCP is enabled for the service port (the Ethernet interface on the left side of  the controller that you may or may not use) and the Ethernet is either not connected or it's connected to  a LAN where it can't get a DHCP lease.
    What the controller is try trying to say is something like "%DHCP-3-BIND_SRPORT_ERR: dhcp_support.c:374 Failed to get a DHCP address for the service port"

  • How to time a web service at back-end?

    I implemented a web service using Axis. This service is to receive an upload file and process it. Since it is a long process, I want to know and log how much time was used for each service call at the server side.
    The web service code is like:
    public class CTSService implements ICTSService, ServiceLifecycle {
    public String processUpload(byte[] zippedData, int zipSourceLength) {
    In the service method processUpload(), it receives byte array zippedData, which can be hundred of MBs. I want to log the time processUpload() receives and processes zippedData. The problem is that, when processUpload() is invoked at the back-end, the server has already received the zippedData, so we can't correctly compute the time of upload of zippedData.
    Does anyone have a good idea of how to time the web service call processUpload() at server side?
    Thanks!

    You can include below method in your code and call it.
    private void UpdateConfig(string key, string value, string fileName)
    var cFile = ConfigurationManager.OpenExeConfiguration(fileName);
    cFile.AppSettings.Settings[key].Value = value;
    cFile.Save();
    Here fileName is the full path + application name (eg: c:\project\WinApp.exe)
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • How to Uninstall oracle services for microsoft transaction server 64 bit

    Dear All ,
    I would like to know  how to Uninstall only oracle services for microsoft transaction server from 11G installtion. I was trying to use "deinstall.bat" but which removes everything from the system. When i use "Oracle Universal Installer" but it doesn't let me do it. I am using Oracle 11G with patch 8 on Windows server 2008.
    Any replies are highly appreciated.
    Thanks

    HI Salman,
    I am doing the following.
    1. I am installing Oracle 10.2.01 Database(Not Client) on my windows Xp laptop. While installation i Choose the custom option and Check the Oracle Windows Interface. In that i check the "Install Oracle Services for Microsoft Transaction server" checkbox. The installation goes on fine till 99% and when it tries to install the
    Oracle Services for Microsoft Transaction server it gives an error saying that "Microsoft Transaction server" was not found on the system.
    I had previously installed the same on my laptop and it was working fine. but after uninstallation when i try to re install i get this problem.
    If i go to the services.msc option in windows i still see the OracleMTSRecoveryService option even when i have uninstalled oracle. But when i try to start the services i get the following error
    Could Not start the OracleMTSRecoveryService on the local computer.
    Error 3: The system cannot find the file specified.
    Any help on how to resolve this issue will be highly appreciated

  • How to find what port the admin server is running

    how can I find out what port the admin server is running on a server?
    thanks,

    Hi
    Go to your domain root folder/config and open config.xml file in any editor. Search for the name of the admin server which is typically like AdminServer and under this tag see if you have a tag by name <listen-port>. If yes, then you should see the port number. If not, it means it is running at default port of 7001.
    If you have admin access, i hope when you login you will be giving url like http://adminhost:adminport/console. Now this adminport is the port on which admin server is running. If not, then check config.xml file.
    Thanks
    Ravi Jegga

Maybe you are looking for

  • Sender Mail Adapter Transport Protocol as SMTP

    Hi, i am Working with Mail to File Scenario.. Done with Whole Process.. But when i m Sending a mail from SBWP... the mail was sent Successfully sent to the receptint... But i m not able to see my message in SXMB_MONI ... and when i check in RWB i got

  • Can't mount USB mass storage device [RESOLVED]

    I plugged in my iRiver mp3 player in an attempt to transfer files to it from my hard drive and it prompted me what I wanted to do with it (do nothing, open a folder, etc.).  Irrepsective of which alternative I choose, I get the following error: Error

  • JOptionPane.showMessage doesn't display message & icon in Solaris

    Hi huys, JOptionPane.showMessageDialog doesn't display message & icon in Solaris, but display is proper through XWin. Any help is appreciated. Edited by: Quest_4_Java on Oct 29, 2008 12:15 AM

  • How to mount a CD-ROM as write protected Read only

    Hello, I have a Mac OS X Snow Leopard version. What I want to do is the following: 1. Burn a .cdr image onto CD-R 2. Go To Terminal and Locate the optical medium drive I forgot what the command is. 3. As the CD-R is recognized as a CD-ROM or in UDF f

  • Command to Convert X Window Dump file to JPEG file

    Is there a command in Solaris 2.6 that I can use to convert XWD files to JPEG files? The command should accept two arguments, the name of the file to be converted and the destination file. Thanks a lot!