LMS 3.2 SP1 RME showing no records in syslog report
Hi All,
I have LMS 3.2 SP1 installed on windows 2003 server with 2 GB of RAM, its doubled swap space and with 230 GB of partition assigned to it.
when i am generating Syslog 24 hour report in RdME , it does not show any data. I have checked with syslog.log file which is perfect. Even, i have recreated this file. I have checked with syslog collector and analyzer which is also fine. I have also restored the database to factory default by RestoredbOrig.pl script, but no result.
I can see the same syslog standard report in Device center in Device Diagnostic tool by selecting the device and clicking on syslog standard report.
Can somebody help me in this matter, as this is long pending issue?
Regards,
Chander
Hi Chander,
Share the screen shot to Syslog Collector status.
Thanks-
Afroz
Similar Messages
-
LMS 3.2 SP1 RME showing no records in syslog report while same report in device center shows
Hi All,
I have LMS 3.2 SP1 running on windows machine, when i am generating 24 hours report(Standard) in RME i do not see any records, while in Device center in Device Diagnostic center, i can see the same report showing the logs. i have checked the sylog.log file, i can see the logs in it. I have restored the original database by Restoredborig.pl, the RME database also but no result.
I would appreciate quick reply in this matter as i am facing this issue since long time and tried all possible things.
Regards,
ChanderHi Chander,
Share the screen shot to Syslog Collector status.
Thanks-
Afroz -
LMS 3.2 SP1 RME showing no records in syslog report while shows same report in device center
Hi All,
I have LMS 3.2 SP1 installed on windows 2003 server with 2 GB of RAM, its doubled swap space and with 230 GB of partition assigned to it.
when i am generating Syslog 24 hour report in RdME , it does not show any data. I have checked with syslog.log file which is perfect. Even, i have recreated this file. I have checked with syslog collector and analyzer which is also fine. I have also restored the database to factory default by RestoredbOrig.pl script, but no result.
I can see the same syslog standard report in Device center in Device Diagnostic tool by selecting the device and clicking on syslog standard report.
Can somebody help me in this matter, as this is long pending issue?
Regards,
ChanderHi Chander,
Share the screen shot to Syslog Collector status.
Thanks-
Afroz -
Dynamic Parameter only showing 1000 records when Crystal report is run.
I have created a crystal report using ODBC access to a table that has 3000 records. I created a dynamic parameter to pull a list of all the Customer ID's in a customer table and the parameter will only show the 1st 1000 records. In addition I cannot type in the customer ID that I would like. Version of Crystal - Crystal 11.
Oh, darn. So sorry. Looks like I hyperlinked the wrong URL (You'd think I got that down by now...). Anyhow here is the correct link:
1218588 - How to increase the number of values in a dynamic parameter list in Crystal Reports?
And in case the link does not work, or I goofed again, here is a copy of the resolution:
Resolution
CAUTION
The following resolution involves editing the registry. Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall the Microsoft Windows operating system. Use the Registry Editor at your own risk. For information on how to edit the registry key, view the 'Changing Keys and Values' online Help topic in the Registry Editor (Regedit.exe). It is strongly recommended that you make a backup copy of the registry files before you edit the registry.
To increase the maximum number of values available in a dynamic parameter list of values, set the registry key: MaxRowsetRecords, to a value greater than 1,000.
Open the Microsoft Registry Editor, and navigate to the path corresponding to the version of Crystal Reports used:
Crystal Reports XI:
- HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\DatabaseOptions\LOV
Crystal Reports XI R2:
- HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\LOV
Crystal Reports 2008:
- HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions\LOV
Crystal Reports 2011:
- HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\DatabaseOptions\LOV
Crystal Reports 2013:
- HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\DatabaseOptions\LOV
Crystal Reports for Visual Studio 2010:
- HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV
NOTES:
- Add the key: LOV, if it is not present.
- For 64 bit version of Microsoft Windows, the registry path will be slightly different, it will start with:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\...
But the rest of the registry path is the same.
Add the String value: MaxRowsetRecords
Set the value of: MaxRowsetRecords to the maximum number of values to display in the List of Values.
For example, a value of 2000 will return up to 2000 values in the lowest level of a dynamic cascading parameter.
IMPRTANT NOTES:
- The higher the number of values is, the longer it will take the see the dynamic parameter prompt screen. In brief, it impact the performance.
- The value 0 (Unlimited) will not work with BusinessObjects Enterprise XI or Crystal Reports Server XI, you must specify another value.
After making changes to the registry, close and reopen Crystal Reports, or restart the Crystal Reports services for the BusinessObjects platforms.
- Ludek -
Showing Duplicate records in a report with the count of their occurrence
Hi Members,
I am novice to BI. i need your suggestion to achiever one of the functionality. A report is required to be built with columns Incident ID, Task ID, Task Name. The Original report is below:-
In the above report I have to display only duplicated records once. Distincat records are not required to be shown. That is, if the same no. of Task Name is associated with the same Incident ID then it should be displayed once with the count of their occurrences in a separate column say , Count. For example, the Task 'TASK_MANUAL_KCI' got 4 times associated with the same Incident ID INC000000001434. Then the report should display this task one time in a report with count 4. Similarly, for INC000000000943 where task 'IPCG Diagnostic Template' got associated 2 times. The Count is 2 for this task.
Other records should not be displayed in a report.
Would highly appreciate quick response. Please suggest.
Thanks,
Neha PateriaI tried this Gill, but result is bit different :-
Seems some little modifications are needed. Report should be displayed like the below one where it says how many times the same Task is associated with the same incident. Eg. Task 'TASK_CIRCUIT_RESOLVER' is associated with the incident 'INC000000001434' 4 times. 'IPCG Diagnostic Template' is associated with 'INC000000000943' 2 times. Similarly for other records.
But I really thankful to you for giving me the logic proceed further. I tried '=RunningCount([Task Name]; Row; ([Task Name]; [Incident ID]))'. It gave me desired results. :-
But the only thing that needs to be done is to bring the single Task associated with the Incident..
Thanks,
Neha Pateria -
RME cannot generate a syslog report.
Hi,
I have an issue with rme 4.2 from LMS 3.1
When I try to generate a syslog report this shows me nothing. I locate SyslogCollector.log file and I see sometnig wrong.
SyslogCollector - [Thread: Thread-9] WARN , 28 Apr 2011 14:45:10,400, Unable to add monitor for cwkstmm2009
SyslogCollector - [Thread: main] INFO , 09 May 2011 16:12:35,510, Logging System Initialized.
SyslogCollector - [Thread: main] INFO , 09 May 2011 16:12:35,519, System Initialized.
SyslogCollector - [Thread: main] WARN , 09 May 2011 16:12:40,948, Unable to resurrect connection to a subscriber.
SyslogCollector - [Thread: main] INFO , 09 May 2011 16:12:41,027, Service started...
SyslogCollector - [Thread: Thread-10] WARN , 09 May 2011 16:12:44,024, Unable to add monitor for cwkstmm2009
SyslogCollector - [Thread: main] INFO , 17 May 2011 11:08:17,360, Logging System Initialized.
SyslogCollector - [Thread: main] INFO , 17 May 2011 11:08:17,364, System Initialized.
SyslogCollector - [Thread: main] WARN , 17 May 2011 11:08:23,433, Unable to get the filters for subscriber cwkstmm2009. Default value will be used.
I modified Syslog.properties file to see DEBUG and this it the output
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,152, SCCleaner - About to fire close() on collector engine...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,153, SyslogCollectorEngine - Closing evaluators...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,153, FcssEvaluator - Closing LogReader...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,153, FcssEvaluator - Closing EmblemProcessor...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,154, FcssEvaluator - Releasing SyslogQueue...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,164, FcssEvaluator - Closed successfully...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,165, SyslogCollectorEngine - Closing filters...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,165, FcssFilter - Closing FilterProcessor Threads...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,165, FcssFilter - Closing Filter Store...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,166, FcssFilter - Closed successfully...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,166, SyslogCollectorEngine - Closing forwarders...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,166, FcssForwarder - Closing Forwarders...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,166, FcssForwarder - Releasing resources...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,167, FcssForwarder - Closed successfully.
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,167, SyslogCollectorEngine - Closing monitor...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,167, SyslogCollectorEngine - Closing monitor task...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,168, SyslogCollectorEngine - Closing recovery assistant...
SyslogCollector - [Thread: Thread-3] DEBUG, 17 May 2011 11:41:54,168, SyslogCollectorEngine - Closed successfully.
SyslogCollector - [Thread: main] INFO , 17 May 2011 11:42:05,837, Logging System Initialized.
SyslogCollector - [Thread: main] INFO , 17 May 2011 11:42:05,840, System Initialized.
SyslogCollector - [Thread: main] INFO , 17 May 2011 11:42:06,275, Subscriber list is empty!
SyslogCollector - [Thread: main] INFO , 17 May 2011 11:42:10,863, Service started...
I post the Syslog Collector Status image where it shows NOT REACHABLE.
Can you help me, please.Hi,
I have tha same problem while subscribing. it gives me the error "could not subscribe to the collector"
Actually I want to generate Syslog and SNMP traps with Cisco lms 3.0
please help me about the error and am i configuring the right thing for my goal ? !!!!!
Rizwan Haider Siddiqui.......
[email protected]
+92-33-44-2222-39 -
CiscoPrime LMS 4.1 Syslog Report Empty
I have a new install of LMS 4.1 on a Windows server I'm trying out. I have switches and firewalls syslogging to the system, but when I run any kind of Syslog report (Reports > Fault and Event > Syslog) it's always blank. I ran a Wireshark capture on the server and it's definitely receiving a ton of syslog data from the systems. What am I missing here? :-)
perhaps this is of some help for anybody....
I just troublshoot a LMS 4.2.1 installation on windows where the syslog report did not show any syslog message ("no data available") nor did any syslog report had any data.
SyslogCollector and SyslogAnalyzer where running fine and the server itself was successfully subscribed to the SyslogCollector (Admin > Collection Settings > Syslog > Syslog Collector Status). What was really suprising was the fact, that the counter for "Forwarded" messages was rising when syslogs arrived in the syslog.log file.
In the end it turns out, that this was a fresh installation of LMS 4.2 (updated to LMS 4.2.1) and the effort to restore the database from the old LMS 3.2.1 system failed. To get the minimum data form the old LMS system, only the devices were exported form the old system and imported into the new system - a discovery was never done.
In the AnalyzerDebug.log I found that while the system was trying to insert the messages into the syslog db the process fails because it could not associate a DcrId to the IP which was sending the syslog message.
Also DNS was running in round-robin mode in the network. I finially added the devices to the hosts file, did run a discovery and the syslog messages started to show up in the report.
to see the relevant messages in the AnalyzerDebug.log, debugging for SyslogAnalyzer must be turned on.
these are the troubleshooting steps and this is what I saw in the AnalyzerDebug.log:
=======================================
enable debugging
Admin > System > Debug Settings > Config and Image Management Debugging Settings
Set Application Logging Levels >> SyslogAnalyzer (scroll down)
set Syslog Analyzer and Syslog Analyzer User Interface from INFO to DEBUG
(do not foret to reset debugging when finished!)
NMSROOT\log\AnalyzerDebug.log
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],com.cisco.nm.rmeng.util.DCRWrapperAPIs,getResultFromQuery,4008,Counter : 17
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],com.cisco.nm.rmeng.inventory.InvAPIs,getDeviceIdsFromIPAddresses,3038,For IP Address: 192.168.x.x Device id is:null
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Device id not found even in the inventory
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Found the device id as null
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Attempting to insert the syslog into database
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Preparing to hand of syslog to the database handler
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Syslog length=1
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3], Time stamp of the syslog received is : Fri Aug 10 14:34:02 CEST 2012 GMT 10 Aug 2012 12:34:02 GMT
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Inside execute mothod
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Insert into SYSLOG_20120710(Syslog_Device_Id,Syslog_Device_Name,Syslog_TimeStamp,Syslog_Facility,Syslog_SubFacility,Syslog_Severity, Syslog_Mnemonic,Syslog_Description )values(?,?,?,?,?,?,?,?)
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Inside Retry count
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Connection is now false
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Recreated the statement object
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Row count 1
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Added syslog to the database handler
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Insertion of syslog into database is done
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Attempting to find interested actions, bypassing
[ Fri Aug 10 14:34:54 CEST 2012 ],DEBUG,[ActionThread3],Syslog is found to be unexpected. No actions will be taken, returing
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],Preparing to get collector status
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],Current no. of collectors is 1
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],Processing for the subscription LMSServerNmeLMSServerName
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],getCollector =192.168.y.y
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],Port4444
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],Connected to the collector 192.168.y.y@4444
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],Gathered status from collector
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],Captured the status from the collector
[ Fri Aug 10 14:36:33 CEST 2012 ],DEBUG,[Thread-15],Done with the status collection
================================================== -
Problem: LMS 3.2 SP1 do not connect to CCO for software and device updates
LMS 3.2.1
When I try to check Software and Device packages updates for LMS components, it fails with "Error while downloading package information from Cisco.com for the selected products. See the d:/CSCOpx/log/psu.log file for details." diagnostics.
CSCOpx\log\psu.log shows that it fails with 404 error. Looking to wireshark capture, I see that software make GET to http://www.cisco.com, then GET to http://cco.cisco.com/cgi-bin/login, then GET to www.cisco.com/cgi-bin/WLAN/cwselectfile.cgi with some params, which result in "404 Not Found" error nevermind which product (Common Services, Campus Manager, RME, DFM or others) I try to get updates on.
Is there any patch or solution for it?have you installed the patch for bug ID CSCto46927, yet?
the details form the Bug Tool Kit:
============================
Psu support changes from CCO to SPRIT
Symptom:
After the 16th of June 2011 LMS will no longer be able to download Software and Device Package updates, or PSIRT and End of Sale/Life information from CCO
Conditions:
Hosted services in Cisco.com that are being leveraged by LMS, for downloading the latest Software and Device Package updates, as well as the PSIRT and End of Sale/Life information are being migrated to a new framework and the old services will be retired.
This will affect all LMS 3.x and 4.x versions.
Refer to https://supportforums.cisco.com/docs/DOC-16806 for more information
Workaround:
Users of LMS 3.2.1 , 4.0 should install the patch that can be downloaded from cisco.com
Users of earlier version will need to upgrade to LMS 3.2 and then install the LMS 3.2 SP1 patch set before installing the patch
=================================
the patch cwcs33x-win-CSCto46927-1.zip can be downloaded here -
LMS 3.2 with RME 4.3.1 not Archiving configuration
HI ,
I am facing problem in Ciscoworks in Fetching config Archieve from Cisco ASA-5510 Adaptive Security Appliance . I am using LMS 3.2 and RME 4.3.1
SSH is enable in the device, and from LMS server I am able to connect through Putty. Also from Management station to Device it showing SSH is up for both version. But from RME its failing Its giving below mentioned error
Device: COGINHYDGCBDFHRTF1 Status: Failed
*** Device Details for COGINHYDGCBDFHRTF1 ***
Protocol ==> Unknown / Not Applicable
Selected Protocols with order ==> SSH,Telnet,TFTP,RCP,SCP,HTTPS
Execution Result:
RUNNING
CM0151 PRIMARY RUNNING Config fetch failed for COGINHYDGCBDFHRTF1 Cause: Couldnot enter ENABLE Mode from USER Mode on 10.241.44.220.TELNET: Failed to establish TELNET connection to 10.241.44.220 - Cause: Connection refused.
Action: Check if protocol is supported by device and required device package is installed. Check device credentials. Increase timeout value, if required.
I have tried from LMS server by telneting to port 22, its giving below output------SSH-1.99-Cisco-1.25
When I have tried to test device credentials for SSH and SSH Enable mode, then below output I am getting. SSH remains blank status.
Device Name
SSH
Enable
by SSH
1.
COGINHYDGCBDFHRTF1
Did Not Try
Pls help to resolve this./* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
],DEBUG,[Thread-778],com.cisco.nm.xms.xdi.transport.cmdsvc.LogAdapter,debug,31,Returning from Session.send('terminal width 0
[ Thu Oct 28 15:02:28 GMT+05:30 2010 ],DEBUG,[Thread-778],com.cisco.nm.xms.xdi.transport.cmdsvc.LogAdapter,debug,31,in trimPrompt(), prompt == 'ASA-F1# '
[ Thu Oct 28 15:02:28 GMT+05:30 2010 ],DEBUG,[Thread-778],com.cisco.nm.xms.xdi.transport.cmdsvc.LogAdapter,printStackTrace,51,stacktracecom.cisco.nm.lib.cmdsvc.CmdSvcException: Unhandled SSHv2 message: SSH_MSG_CHANNEL_REQUEST(98)
Channel ID: UInt32[ 0 ]
Channel Request Type: exit-status
Want Reply: true
Timeout (msec): 0
Exit Status: UInt32[ 0 ]
What i deduce from this output is may be "ter width 0" is un-authorised for the user or is not supported by the particular code that you are currently running in the box.
Best Regards // Rajiv -
How to show all records by default on search result page?
Hi
I am trying to make a search page that would execute the search in the database based on one or more field constraints.
(Using MySQL,PHP)
I have 2 columns in the database "vm_ip" (primary key) <IP address>, "Operating_System" <Any, Windows, Solaris, AIX>
need to search vm_ip based on other two fields.
PROBLEM: Need to show all the record when I select "Any" in the Operating_System drop down menu.
<p>Operating System:
<select name="os_select" id="os_select">
<?php
$os_count=1;
foreach($os_type as $value) //(os_type is array with possible values of OS)
echo "<option value=".$os_count.">".$value."</option>";
$os_count++;
?>
<option value=" " selected="selected">Any</option>
</select>
</p>
this code POSts NULL value to the search page.
Below code is of recordset on search page
$varOS_virtual = "Operating_System"; // recordset variable set to same as column name (default value)
if (isset($_POST['os_select'])) //this should not be true
$varOS_virtual = $_POST['os_select'];
mysql_select_db($database_xyz_db, $xyz_db);
$query_virtual = sprintf("SELECT table.VM_IP FROM table
WHERE table.Operating_System=%s", GetSQLValueString($varOS_virtual, "int"));
$virtual = mysql_query($query_virtual, $xyz_db) or die(mysql_error());
$row_virtual = mysql_fetch_assoc($virtual);
$totalRows_virtual = mysql_num_rows($virtual);
I expected the 'os_select' field to be null and default value of Operating_System to be "Operating_System" so that the Query shows all records.
But instead the value being passed in the Query is "0". and no records are shown.
What can I do to show all records?
As probably obvious I am new to php/MySQL so all the help is most welcomed .
ThanksHi
Thanks for the prompt reply but this does not solve my problem.
First thing I appologise for giving you incorrect info. Actually I have many more constraints on the search apart from OS.
Didn't think I would get single constraint specific ans.
Here is what all i tried and problems I faced:
1. I cannot use seperate queries cause I have around 7-8 other constraints on the search.
2. I cannot play around with the Record set code. For some reason even if I mess with it a little bit Dreamweaver stops recognising the recordset. for eg i tried the below code:
$query_virtual = sprintf("SELECT table.VM_IP FROM table WHERE
table.Operating_System=%s ,($_POST['os_select']=="")? TRUE:GetSQLValueString($varOS_virtual, "int"));
this ran well for the first time, and then the record set was screwed up. kept on asking me to "Discover" the links, which it couldn't do.
3. take a look at this code:
$varOS_virtual = "Operating_System";
if (isset($_POST['os_select'])) {
$varOS_virtual = $_POST['os_select'];
$varState_virtual = "State"; //second constraint
if (isset($_POST['state_select'])) {
$varState_virtual = $_POST['state_select'];
mysql_select_db($database_xyz, $xyz);
$query_virtual = sprintf("SELECT table.VM_IP FROM table AND table.Operating_System=%s AND State=%s",
GetSQLValueString($varOS_virtual, "int"),GetSQLValueString($varState_virtual, "int"));
$virtual = mysql_query($query_virtual, $xyz) or die(mysql_error());
$row_virtual = mysql_fetch_assoc($virtual);
$totalRows_virtual = mysql_num_rows($virtual);
here on passing NULL value for "Any" GetSQLValueString($varOS_virtual, "int") functions returns NULL and though the Default value of
varOS is set to 'Operating_System" query takes NULL value only which when executed shows no records.
My problem majorly revolves around how to put something like "WHERE Operating_System= Operating_System" OR "WHERE Operating_System= TRUE" in the query, when passed through variable they are sent as Strings or NULL.
Thats why WHERE 1=1 also doesnt work, because it has "WHERE Operating_System= NULL" in AND.
Logically when NULL is passed default value of variable should comeinto picture, but tha isnt happening.
Thanks again for answering. hope I was able to explain my problem. -
How to show 'No Records Found' and 'Employee Name Unknown' in oracle report
Hello,
I'm using 6i and building a report to show employees who have incorrectly input their time. I have an input parameter so a user can select a specific employee by emp_id or can leave it empty to show all. That part works. I also have date parameters that are required. That works too. However I am having trouble displaying 'NO Records Found' if the date parameters have no late or rejected employee time records. I currently have it as a text field arranged behind the emp_name field which i filled white. It works...however i have a pretty good feeling there is a better way to do this. Also, I have some data that is null since i am using two tables. There are time stamps with no emp_name or emp_number. I still need to show these records but want them to show up as "Employee Name Unknown" that way the user doesnt get confused and thinks the emp_name in the row above also includes this row.
select e.location "Clock Location",
e.emp_no "Emp No",
l.first_name ||' ' || last_name "Name",
e.time_stamp "Time",
from emp_time e, master_all l
where e.emp_no (+) = l.emp_no
and e.status = 'rejected'
--and e.emp_no = nvl (:p_emp_no, emp_no)
--and e.time_stamp between :p_start_date and :p_end_dateHi,
So, when the join between emp_time and master_all produces no rows, you still want one row of output, saying 'No Records Found'; is that right?
If so, you can outer-join the result set to dual, with some join condition that accepts anything.
Use CASE (or equivalents) to get special values (like 'No Record Found' or 'Employee name unknown') when certain columns are NULL.
For example:
SELECT j.location AS "Clock Location"
, j.emp_no AS "Emp No"
, CASE
WHEN j.name IS NULL
THEN 'No Records Found'
ELSE j.name
END AS "Name"
, time_stamp AS "Time"
FROM dual d
, ( -- Begin in-line view j, join of emp_time and master_all
SELECT e.location
, e.emp_no
, CASE
WHEN l.first_name IS NULL
AND last_name IS NULL
THEN 'Employee name unknown'
ELSE l.first_name || ' ' || last_name
END AS name
FROM emp_time e
, master_all l
WHERE e.emp_no (+) = l.emp_no
AND e.status (+) = 'rejected'
-- AND e.emp_no (+) = NVL (:p_emp_no, emp_no)
-- AND e.time_stamp (+) BETWEEN :p_start_date
AND :p_end_date
) j -- End in-line view j, join of emp_time and master_all
WHERE d.dummy != j.name (+)
;In an outer join, all conditions involiving the optional table need a + sign; otherwise, the effect is the same as an inner join.
The message 'No Records Found' is a string, so it has to go in a string column.
I put it in the "Name" column, just because I knew that "Name" was a string.
You can put in in any other column if you wish. If that column is not already a string, then use TO_CHAR to make it a string.
You could also have a column just for this message.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
DOUBLE U wrote:
I've tried nvl in the select statement but since emp_name is a concatination of first and last name it doesnt work. This is what i have tried
nvl(l.first_name|' '||l.last_name,'NO EMPLOYEE RECORD FOUND') "Employee",I assume you meant to have two | characters, not just one, after first_name.
The first argument to NVL will never be NULL in that case; it will always contain at least a space, whether or not the other columns are NULL. You could say:
NVL ( NULLIF ( l.first_name || ' ' || l.last_name
, 'NO EMPLOYEE RECORD FOUND'
) "Employee",bujt I find it less confusing to use CASE, as shown above. -
Incomplete Data on report (report does not show all records from the table)
Hello,
I have problem with CR XI, I'm running the same report on the same data with simple select all records from the table (no sorting, no grouping, no filters)
Sometimes report shows me all records sometimes not. Mostly not all records on the report. When report incomplete sometimes it shows different number of records.
I'm using CR XI runtime on Windows Server 2003
Any help appreciated
Thanks!Sorry Alexander. I missed the last line where you clearly say it is runtime.
A few more questions:
- Which CR SDK are you using? The Report Designer Component or the CR assemblies for .NET?
- What is the exact version of CR you are using (from help | about)
- What CR Service Pack are you on?
And a troubleshooting suggestion:
Since this works on some machines, it will be a good idea to compare all the runtime (both CR and non CR) being loaded on a working and non working machines.
Download the modules utility from here:
https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip
and follow the steps as described in this thread:
https://forums.sdn.sap.com/click.jspa?searchID=18424085&messageID=6186767
The download also includes instructions on how to use modules.
Ludek -
ALV GRID Report is not showing all records which is in internal table
hi all,
have one doubt. please clarify me. ALV Report is working fine since long tiem. But suddenly this report is showing few records only for the given input. Example: it_main table have 50 records, but output is showing only 10 records only. (we have not made any modifications in this report).
temporarily i have given excel output file from it_main table. excel file is showing all records.
here it_main have all the records. but output is showing few records only. it is not showing any error. i have tested with REUSE_ALV_LIST_DISPLAY function also. but it also showing same results(few records only.)
please give me some idea.
FORM display_alv_report.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = 'X'
i_callback_program = sy-repid
is_layout = wa_layout
it_fieldcat = it_fcat
it_events = it_events
i_save = 'A'
is_variant = wa_variant
TABLES
t_outtab = it_main
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE text-204 " 'Error in Display the list'
TYPE 'I'.
LEAVE TO LIST-PROCESSING.
ENDIF.
ENDFORM. . "DISPLAY_ALV_REPORT
Best Regards,
Srinivashi
Please study this program and give me suggestions.
ALV Declaration
DATA : it_events TYPE slis_t_event, "ALV event
it_fcat TYPE slis_t_fieldcat_alv, "Field catalog
it_list_top_of_page TYPE slis_t_listheader,
c_tabname TYPE slis_tabname VALUE 'IT_MAIN'.
DATA : wa_layout TYPE slis_layout_alv,
wa_event TYPE slis_alv_event,
wa_fcat TYPE slis_fieldcat_alv,
wa_variant TYPE disvariant.
START-OF-SELECTION.
PERFORM material_pass.
PERFORM data_retrieval.
END-OF-SELECTION.
PERFORM sub_display_report.
FORM sub_display_report .
DATA status(1).
IF r1 = 'X'.
PERFORM build_fieldcatalog USING :
'1' 'ERDAT' 'S.O DATE' '' '10' 'X',
'2' 'VBELN' 'SALE ORDER' '' '10' 'X',
'3' 'POSNR' 'SALE ITEM' '' '6' '',
'4' 'BSTKD' 'CUSTOMER PO' '' '35' '',
'5' 'BEZEI' 'REASON FOR REJECTION' '' '40' '',
'6' 'PLNUM' 'PLANNED ORDER' '' '10' '',
'7' 'AUFNR' 'PROD.ORDER.' '' '12' '',
'8' 'MATNR' 'MATERIAL NUMBER' '' '18' '',
'9' 'MAKTX' 'MATERIAL DESCRIPTION' '' '40' '',
'10' 'WERKS' 'PLANT' '' '4' '',
'11' 'KWMENG' 'SALE ORDER QTY' '' '15' '',
'12' 'VRKME' 'UNIT' '' '4' '',
'13' 'GAMNG' 'PROD.ORDER QTY' '' '13' '',
'14' 'IGMNG' 'CONFIRMED ORDER QTY' '' '13' '',
'15' 'GMEIN' 'UNIT' '' '4' '',
'16' 'MENGE' 'G.R QUANTITY' '' '13' '',
'17' 'SOBAL' 'S.O BALANCE' '' '13' '',
'18' 'PRDBAL' 'PROD.BALANCE' '' '13' '',
'19' 'GSM' 'GSM' '' '4' '',
'20' 'SIZE1' 'SIZE1' '' '10' '',
'21' 'SIZE2' 'SIZE2' '' '10' ''.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = pathname
filetype = ftype
append = 'X'
write_field_separator = 'X'
TABLES
data_tab = it_mains
EXCEPTIONS
file_write_error = 1.
IF sy-subrc = 0.
status = 'S'.
ELSE.
status = 'E'.
ENDIF.
ELSEIF r2 = 'X' OR r3 = 'X'.
PERFORM build_fieldcatalog USING :
'1' 'ERDAT' 'S.O DATE' '' '10' 'X',
'2' 'VBELN' 'SALE ORDER' '' '10' 'X',
'3' 'POSNR' 'SALE ITEM' '' '6' '',
'4' 'BSTKD' 'CUSTOMER PO' '' '35' '',
'5' 'BEZEI' 'REASON FOR REJECTION' '' '40' '',
'6' 'PLNUM' 'PLANNED ORDER' '' '10' '',
'7' 'AUFNR' 'PROD.ORDER.' '' '12' '',
'8' 'MATNR' 'MATERIAL NUMBER' '' '18' '',
'9' 'MAKTX' 'MATERIAL DESCRIPTION' '' '40' '',
'10' 'WERKS' 'PLANT' '' '4' '',
'11' 'KWMENG' 'SALE ORDER QTY' '' '15' '',
'12' 'VRKME' 'UNIT' '' '4' '',
'13' 'GAMNG' 'PROD.ORDER QTY' '' '13' '',
'14' 'IGMNG' 'CONFIRMED ORDER QTY' '' '13' '',
'15' 'GMEIN' 'UNIT' '' '4' '',
'16' 'MENGE' 'G.R QUANTITY' '' '13' '',
'17' 'SOBAL' 'S.O BALANCE' '' '13' '',
'18' 'PRDBAL' 'PROD.BALANCE' '' '13' '',
'19' 'GSM' 'GSM' '' '4' '',
'20' 'SIZE1' 'SIZE1' '' '10' '',
'21' 'CUT1' 'CUT1' '' '11' '',
'22' 'SIZE2' 'SIZE2' '' '10' '',
'23' 'CUT2' 'CUT2' '' '11' '',
'24' 'SIZE3' 'SIZE3' '' '10' '',
'25' 'CUT3' 'CUT3' '' '11' '',
'26' 'SIZE4' 'SIZE4' '' '10' '',
'27' 'CUT4' 'CUT4' '' '11' '',
'28' 'SIZE5' 'SIZE5' '' '10' '',
'29' 'CUT5' 'CUT5' '' '11' '',
'30' 'SIZE6' 'SIZE6' '' '10' '',
'31' 'CUT6' 'CUT6' '' '11' ''.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = pathname
filetype = ftype
append = 'X'
write_field_separator = 'X'
TABLES
data_tab = it_mainall
EXCEPTIONS
file_write_error = 1.
IF sy-subrc = 0.
status = 'S'.
ELSE.
status = 'E'.
ENDIF.
ENDIF.
PERFORM build_layout.
PERFORM build_events.
PERFORM sub_comment_build USING it_list_top_of_page.
PERFORM sub_set_variant.
PERFORM display_alv_report.
IF status = 'S'.
MESSAGE 'Excel Output file Downloaded to Given Path' TYPE 'I'.
ELSE.
MESSAGE 'Download Not Possible' TYPE 'I'.
ENDIF.
ENDFORM. " SUB_DISPLAY_REPORT
FORM BUILD_FIELDCATALOG
FORM build_fieldcatalog USING p_col_pos
p_fieldname
p_text
p_datatype
p_outputlen
p_col_freez.
wa_fcat-row_pos = '1'.
wa_fcat-col_pos = p_col_pos.
wa_fcat-fieldname = p_fieldname.
wa_fcat-tabname = c_tabname.
wa_fcat-reptext_ddic = p_text.
wa_fcat-datatype = p_datatype.
wa_fcat-ddic_outputlen = p_outputlen.
wa_fcat-key = p_col_freez.
APPEND wa_fcat TO it_fcat.
CLEAR wa_fcat.
ENDFORM. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
FORM build_layout.
CLEAR: wa_layout.
wa_layout-window_titlebar = 'LIST OF GSM WISE OPEN SALE ORDERS'.
wa_layout-colwidth_optimize = 'X'.
wa_layout-totals_text = 'CUMULATIVE'.
ENDFORM. "BUILD_LAYOUT
*& Form BUILD_EVENTS
FORM build_events.
CLEAR wa_event.
REFRESH it_events.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = it_events
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc = 0.
READ TABLE it_events INTO wa_event
WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc EQ 0.
wa_event-form = 'TOP_OF_PAGE'.
APPEND wa_event TO it_events.
CLEAR wa_event.
ENDIF.
ENDIF.
ENDFORM. "BUILD_EVENTS
-->P_IT_LIST_TOP_OF_PAGE text
FORM sub_comment_build USING it_top_of_page TYPE slis_t_listheader.
DATA ls_line TYPE slis_listheader.
CLEAR ls_line.
ls_line-typ = 'H'.
ls_line-info = str1.
APPEND ls_line TO it_top_of_page.
CLEAR ls_line.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header[].
ENDFORM. " SUB_COMMENT_BUILD
*& Form SUB_SET_VARIANT
text
--> p1 text
<-- p2 text
FORM sub_set_variant .
CLEAR wa_variant.
wa_variant-report = sy-repid.
wa_variant-username = sy-uname.
wa_variant-variant = c_variant.
wa_variant-variant = p_layout.
ENDFORM. " SUB_SET_VARIANT
*& Form DISPLAY_ALV_REPORT
*Display Report Using ALV GRID
FORM display_alv_report.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = 'X'
i_callback_program = sy-repid
i_callback_pf_status_set = c_pf_status
i_callback_user_command = c_user_command
is_layout = wa_layout
it_fieldcat = it_fcat
it_sort = it_sort[]
it_events = it_events
i_save = 'A'
is_variant = wa_variant
TABLES
t_outtab = it_main
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE text-204 " 'Error in Display the list'
TYPE 'I'.
LEAVE TO LIST-PROCESSING.
ENDIF.
ENDFORM. . "DISPLAY_ALV_REPORT
*ALV Report Header
FORM top_of_page.
DATA : t_header TYPE slis_t_listheader WITH HEADER LINE,
wa_header TYPE slis_listheader,
t_line LIKE wa_header-info,
ld_lines TYPE i,
ld_linesc(10) TYPE c.
wa_header-typ = 'H'.
T_HEADER-INFO = 'LIST OF GSM WISE OPEN SALE ORDERS'.
wa_header-info = str1.
APPEND wa_header TO t_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header[].
ENDFORM. "TOP_OF_PAGE
here it_main internal table having all data. but output is showing few records only.
pl. give some idea.
Thanks & Regards
Srinivas. -
Report download to power point doesn't show all records
dear experts,
I have a report with a tape deck below, so it shows only records 1-25. When I click download to excel, every record is downloaded (1-all rows) and this is fine. But, if I download to power point, only the records shown on the dashboard (e.g. 1-25) are downloaded into power point.
Our quality assurance claims, that the behaviour for both download options should be the same, and not downloading to excel having every row and the power point showing limited rows.
Is there a way to download the whole report, each row, to power point (without clicking on tapedeck to show all) ??
Thanks in advance.
best regards,
Thomasproblem solved
modify report - results(answers) - click on printer icon (PDF and Print Control) - Print Rows - set to "All"
regards,
thomas -
How to show multipe records on a single record
Hi all,
I have a query which can contain 1 or Many records for each S.WAS_NO or APPL_NO even. A new record is created when the APPL_STATUS changes and a timestamp is created in APPL_STATUS_CHANGE_DATE.
select distinct
S.APPL_ID,
S.WAS_NO,
S.AS_STATUS,
S.STATUS_CHANGE_DATE,
dense_rank() over (partition by S.WAS_NO order by S.STATUS_CHANGE_DATE) rank
from table_a S, table b S2
where S.APPL_ID = S2.APPL_ID
order by S.WAS_NO, rank asc;
Current Results:
APPL_ID---WAS_NO---------------AS_STATUS----STATUS_CHANGE_DATE-----RANK
6628-------E4G0YL9B08V0V6---ASSIGNED-------25/10/2011----------------------1
6628-------E4G0YL9B08V0V6---USED--------------30/12/2011----------------------2
Desired Results:
APPL_ID--WAS_NO------------------AS_STATUS1----STATUS_CHANGE_DATE1----AS_STATUS2----STATUS_CHANGE_DATE2
6628-------E4G0YL9B08V0V6----ASSIGNED---------25/10/2011------------------------USED--------------30/12/2011The rank is based on the WAS_Number and ordered by the STATUS_CHANGE_DATE so i know which order they should go in.
I want to show 1 record per WAS_NO and show each status change with its date. There can only be a maximum of three status changes.
I have not been able to workout how to get Multiple records onto a singe record and in different columns.
Many thanksThis should do what you want:
WITH t AS
(SELECT 6628 appl_id, 'E4G0YL9B08V0V6' was_no, 'ASSIGNED' as_status, TO_DATE('25/10/2011', 'DD/MM/YYYY') status_change_date FROM dual UNION ALL
SELECT 6628 appl_id, 'E4G0YL9B08V0V6' was_no, 'USED' as_status, TO_DATE('30/12/2011', 'DD/MM/YYYY') status_change_date FROM dual UNION ALL
SELECT 6628 appl_id, 'E4G0YL9B08V0V6' was_no, 'COMPLETE' as_status, TO_DATE('15/01/2012', 'DD/MM/YYYY') status_change_date FROM dual UNION ALL
SELECT 6629 appl_id, 'A5AAFG1C07L0P2' was_no, 'ASSIGNED' as_status, TO_DATE('19/01/2012', 'DD/MM/YYYY') status_change_date FROM dual)
SELECT appl_id,
was_no,
MAX(CASE rank
WHEN 1 THEN as_status
ELSE NULL
END) as_status1,
MAX(CASE rank
WHEN 1 THEN status_change_date
ELSE NULL
END) status_change_date1,
MAX(CASE rank
WHEN 2 THEN as_status
ELSE NULL
END) as_status2,
MAX(CASE rank
WHEN 2 THEN status_change_date
ELSE NULL
END) status_change_date2,
MAX(CASE rank
WHEN 3 THEN as_status
ELSE NULL
END) as_status3,
MAX(CASE rank
WHEN 3 THEN status_change_date
ELSE NULL
END) status_change_date3
FROM (SELECT appl_id,
was_no,
as_status,
status_change_date,
DENSE_RANK() OVER (PARTITION BY was_no ORDER BY status_change_date) rank
FROM t)
GROUP BY appl_id,
was_no
Maybe you are looking for
-
JNDI Lookup in OC4J *AND* Tomcat 5 (not either/or)
I've been struggling to get a web application to deploy and run correctly on Tomcat 5.x. I couldn't ADF to look up the Datasource I'd set up in the Tomcat configs. After reading this forum post: Problem deploying BC4J Toy Store app on Tomcat 4 I was
-
Combining 1080i and 1080p HDV footage on single timeline, for SD output?
Hi All Help! I'm a cameraperson/director who was has just shot a largeish doccie project on a Sony HVR-V1E. My technical background is in stills, so I hope you'll forgive some ignorance here. BACKGROUND: The vast majority of the footage was shot HDV
-
How can I to copy my music from my ipod to my pc
Hi, someone could help me, Recently I bought the newest Ipod touch, but in my old ipod I had music that I didnt have in my itunes back up, Do you know how I can do for to copy this song from my Ipod to my PC?
-
Exporting .dmp file from 9.1.2 to 9.0.1.1
Is it possiable from me to export a .dmp file generated from 9.1.2 to oracle 9.0.1.1
-
Final Cut Pro 6.0.1
My title superimpositions create a darkening of the background image when they first fade in, and then the background lightens when the title/supers fade out. It is as if the super is having a "bump" effect on the background image. What is causing th