Skip to Content

Determine Netweaver Version over CMD?

hello,

is there a possibility to determine the netweaver version oder the cmd? via RFC? or can i find this information in a logfile?

kind regards,

Tobias

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Mar 17, 2015 at 10:34 PM

    Hello Tobias,

    sapcontrol program can help you.

    Below you can find fuction list of the program.

    Login with sidadm, run cmd and try below sapcontrol fuctions as in the example at the bottom.

    Reards,

    Yuksel AKCINAR

    run cmd

    ...>sapcontrol -nr 00 -function

    NAME

    sapcontrol

    SYNOPSIS

    sapcontrol [-prot <protocol>]

    [-trace <filename>]

    [-debug]

    [-user <user> <password>]

    [-queryuser]

    [-repeat <N> <D>]

    [-format <format>]

    [-host <hostname>]

    -nr <instance number>

    -function <webmethod> [parameter list]

    DESCRIPTION

    Control and monitor SAP instances via WebService interface of SAP Start Service.

    OPTIONS

    -prot <protocol>

    Specify the protocol for the communication with the SAP instance.

    Available protocols are:

    NI_HTTP HTTP using SAP NI sockets (default, prefer Unix domain sockets)

    NI_HTTPS HTTPS using SAP NI sockets (prefer Unix domain sockets)

    GSOAP_HTTP HTTP using gsoap build in sockets

    WINHTTP HTTP using Windows winhttp

    WINHTTPS HTTPS using Windows winhttp

    PIPE Windows named pipes (on Unix same as NI_HTTP)

    -trace <filename>

    Trace SOAP request/response

    -debug

    Write local trace to stderr

    -user <user> <password>

    OS user and password for Webservice authentication

    -queryuser

    Query interactively for user and password

    -repeat <N> <D>

    Repeat webmethod call <N> times (-1=forever) with <D> sec delay

    -format <format>

    Specify the format for the output of the webmethod.

    Available formats are:

    list List output format (default)

    script Script output format

    -host <hostname>

    Host to connect to (default: localhost)

    WEBMETHODS

    Start [runlevel]

    InstanceStart <hostname> <instance number> [runlevel]

    Bootstrap [<hostname> <instance number>]

    Stop [softtimeout sec]

    InstanceStop <hostname> <instance number> [softtimeout sec]

    Shutdown

    RestartInstance [<softtimeout sec> [runlevel]]

    StopService

    StartService <SID>

    RestartService

    ParameterValue [<parameter>]

    GetStartProfile

    GetTraceFile

    GetAlertTree

    GetAlerts

    GetEnvironment

    GetVersionInfo

    GetQueueStatistic

    GetProcessList

    GetInstanceProperties

    ListDeveloperTraces

    ReadDeveloperTrace <filename> <filesize>

    ListLogFiles

    ReadLogFile <filename> [<filter> [<language> [<maxentries> [<cookie>]]]]

    AnalyseLogFiles [<severity 0..2> [<maxentries>

    [<starttime YYYY MM DD HH:MM:SS> <endtime YYYY MM DD HH:MM:SS>]]]

    ConfigureLogFileList set|add|remove [<filename1> <filename2>... <filenameN>]

    GetLogFileList

    CreateSnapshot [<description> [<datcol_param> [<analyse_severity -1..2>

    [<analyse_maxentries> [<analyse_starttime YYYY MM DD HH:MM:SS>

    <analyse_endtime YYYY MM DD HH:MM:SS> [maxentries

    [<filename1> ... <filenameN>]]]]]]]

    ReadSnapshot <filename> [<local filename>]

    ListSnapshots

    DeleteSnapshots <filename1> [<filename2>... <filenameN>]

    GetAccessPointList

    GetProcessParameter <processtype> [pid]

    SetProcessParameter <processtype> <pid> <parameter> <value1>

    [<value2> ... <valueN>]

    OSExecute <command> <async> <timeout> <protocolfile>

    SendSignal <pid> <signal>

    GetSystemInstanceList [<timeout sec>]

    StartSystem [ALL|SCS|DIALOG|ABAP|J2EE|TREX|ENQREP|HDB|ALLNOHDB|LEVEL <level>

    [<waittimeout sec> [runlevel]]]

    StopSystem [ALL|SCS|DIALOG|ABAP|J2EE|TREX|ENQREP|HDB|ALLNOHDB|LEVEL <level>

    [<waittimeout sec> [<softtimeout sec>]]]

    RestartSystem [ALL|SCS|DIALOG|ABAP|J2EE|TREX|ENQREP|HDB|ALLNOHDB|LEVEL <level>

    [<waittimeout sec> [<softtimeout sec> [runlevel]]]]

    AccessCheck <function>

    GetSecNetworkId <service_ip> <service_port> [<version> [<challenge>]]

    GetNetworkId <service_ip> <service_port> [<version>]

    RequestLogonFile <user>

    ABAPReadSyslog

    ABAPReadRawSyslog

    ABAPGetWPTable

    J2EEControlProcess <processname> <function>

    J2EEControlCluster <processname> <function> [<hostname> <instance number>]

    J2EEEnableDbgSession <client> [<processname> <debugflags>]

    J2EEDisableDbgSession <debugkey>

    J2EEGetProcessList

    J2EEGetProcessList2

    J2EEGetThreadList

    J2EEGetThreadList2

    J2EEGetThreadCallStack [<threadindex>]

    J2EEGetThreadTaskStack [<threadindex>]

    J2EEGetSessionList

    J2EEGetCacheStatistic

    J2EEGetCacheStatistic2

    J2EEGetApplicationAliasList

    J2EEGetComponentList

    J2EEControlComponents <process name> <operation> <componenttype>

    <componentname1>,...,<componentnameN>

    J2EEGetWebSessionList

    J2EEGetWebSessionList2

    J2EEGetEJBSessionList

    J2EEGetRemoteObjectList

    J2EEGetVMGCHistory

    J2EEGetVMGCHistory2

    J2EEGetVMHeapInfo

    J2EEGetClusterMsgList

    J2EEGetSharedTableInfo

    ICMGetThreadList

    ICMGetConnectionList

    ICMGetProxyConnectionList

    ICMGetCacheEntries

    WebDispGetServerList

    EnqGetStatistic

    EnqGetLockTable

    StartWait <timeout sec> <delay sec>

    StopWait <timeout sec> <delay sec>

    WaitforStarted <timeout sec> <delay sec>

    WaitforStopped <timeout sec> <delay sec>

    RestartServiceWait <timeout sec> <delay sec>

    WaitforServiceStarted <timeout sec> <delay sec>

    CheckHostAgent

    EXITCODES

    0 Last webmethod call successful

    1 Last webmethod call failed, invalid parameter

    2 StartWait, StopWait, WaitforStarted, WaitforStopped, RestartServiceWait

    timed out

    3 GetProcessList succeeded, all processes running correctly

    4 GetProcessList succeeded, all processes stopped

    SECURITY

    Trusted connects without user and password check are possible through

    Unix domain socket or Windows named pipes. Protected webmethods like

    Start or Stop require a trusted connection or OS user and password

    authentication.

    EXAMPLES

    sapcontrol -nr 0 -function GetProcessList

    Gets the list of processes on instance 00 on localhost

    the list of processes on instance 00 on localhost

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 18, 2015 at 02:49 AM

    Hello Tobias,

    Which 'Version' are you referring to?


    For Kernel version (like version of msg_server.exe or disp+work):
    sapcontrol -nr <n> -function GetVersion

    For AS Java version (like release/SP/patch of SERVERCORE): see note 1752501 (run DB query).

    For AS ABAP (like SAP_BASIS): I don't know 😊

    BR, Tom

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2015 at 02:35 AM

    Hi Tobias

    I don't thik its possible via SAPCONTROL.

    Not sure if this would help but Component versions are stored in DB table CVERS

    Select * from <SAPSCHEMANAME>.CVERS;

    Cheers

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.