cancel
Showing results for 
Search instead for 
Did you mean: 

Determine Netweaver Version over CMD?

0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

TomXing
Contributor
0 Kudos

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

0 Kudos

Tom Xing wrote:

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

Hi,

i mean SAP_BASIS, EA-APPL, ... .

I already know how i can determine the kernel version, but i am interesset in the SAP Release Version. Is this possibile with SAPCONTROL?

Former Member
0 Kudos

Hello Tobias,

All the components related information is stored in the database itself. You can get that from the table CVERS.

regards,

pavan

yakcinar
Active Contributor
0 Kudos

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