Help with Cisco Output Interpreter tool!!
Hi All,
I am experiencing a problem with Cisco Output Interpreter tool.
While the tool is working fine and displaying the "CONFIGURATION COMMAND REFERENCE NOTIFICATIONS (if any)" very effectively but I am unable to use the hyperlink to get an understanding about a particular command.
When I click on a particular command(hyperlink) it pops up another window and the below error is displayed.
Not Found
The requested URL /cgi-bin/Support/Cmdlookup/ios-command-lookup.pl was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Anyone else had/have this particular error. Could you please help me with this.
Apologies if this topic does not belong to this group.
Thanks in advance
Sam
Noone to help me on this?
Similar Messages
-
Help with DIgital Output Array with 6062E DAQ CARD...
Good morning, folks... I need some help with digital output of the 6062E PCMCIA card... I can output 1 line without problems... I need to control a 4066 with my digital outputs... I am doing this without greater problems... but there's something... I need that when one of my outputs is high, the others become low, unchangeably... so I tried to use an array to control my output and I couldn't do that... some errors showed up... can you help me please? Maybe there's any errors at my software, then I thank you if you help me... the vi is anexed...
Best Regards...
Attachments:
Untitled 3.vi 20 KBSee below for one of many methods. Change the "lines" string for your setup.
Also, please explore the Examples that ship with LabVIEW, and read your card's manual.
Richard -
Need help with Cisco Interface Cards???/
Hi, I purchased 4 WIC-1AM cards for my cisco 1760 gateway to use with cisco call manager server. I'm trying to figure out if I can even use these cards for voice cards to make calls inbound and outbound. I'm seing that the cards that CM gives me are all VIC cards listed and i don't see any WIC cards listed in the endpoint list on the CM for the gatway. So can I even use these cards for what I'm trying to do??? Please help???
ThanksIf i got the vontage sip account how would i hook it up to my CM Sever?
I'm using a 1760 gatway, what is a DSP resource?
When i do show diag I get this from my router:
show diag
Slot 0:
C1760 1FE VE 4SLOT DV Mainboard Port adapter, 3 ports
Port adapter is analyzed
Port adapter insertion time unknown
EEPROM contents at hardware discovery:
Hardware Revision : 5.0
PCB Serial Number : FOC08077JDP
Part Number : 73-7167-05
Board Revision : B0
Fab Version : 04
Product (FRU) Number : CISCO1760
EEPROM format version 4
EEPROM contents (hex):
0x00: 04 FF 40 03 16 41 05 00 C1 8B 46 4F 43 30 38 30
0x10: 37 37 4A 44 50 82 49 1B FF 05 42 42 30 02 04 FF
0x20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Packet Voice DSP Module Slot 0:
Not populated
Packet Voice DSP Module Slot 1:
Not populated
WIC/VIC Slot 0:
One Port Modem WIC
Hardware revision 1.0 Board revision H0
Serial number 0034764142 Part number 800-08823-01
FRU Part Number WIC-1AM=
Test history 0x00 RMA number 00-00-00
Connector type WAN Module
EEPROM format version 1
EEPROM contents (hex):
0x20: 01 38 01 00 02 12 75 6E 50 22 77 01 00 00 00 00
0x30: 88 00 00 00 06 02 10 01 FF FF FF FF FF FF FF FF
WIC/VIC Slot 1:
One Port Modem WIC
Hardware revision 1.0 Board revision H0
Serial number 0034764050 Part number 800-08823-01
FRU Part Number WIC-1AM=
Test history 0x00 RMA number 00-00-00
Connector type WAN Module
EEPROM format version 1
EEPROM contents (hex):
0x20: 01 38 01 00 02 12 75 12 50 22 77 01 00 00 00 00
0x30: 88 00 00 00 06 02 10 01 FF FF FF FF FF FF FF FF
What do you think? -
Hello, I have the following query that I'm running in Oracle SQL Developer 1.2.1
WITH group_by_4_column_results AS
(SELECT m_atschunk.employee AS employee,
SUM(CASE
WHEN
M_ATSCHUNK.rolloffDaysCount = '108545043' AND m_atschunk.infractiondate BETWEEN SYSDATE - 365 AND SYSDATE THEN 1 ELSE 0 END) as rolloffs,
M_ATSCHUNK.INFRACTIONDATE + 365 as infractionDate
FROM M_ATSCHUNK
group by employee, infractionDate, rolloffDaysCount
SELECT g4.*,
SUM (rolloffs) OVER (PARTITION BY employee) AS total_rolloffs
FROM group_by_4_column_results g4
It will output the key elements of what I need. But where it sums up the 'total_rolloffs', I need to add that number back into the infractiondate column. Any help would be greatly appreciated.
CREATE TABLE M_ATSCHUNK
(EMPLOYEE varchar(50),
ROLLOFFDAYSCOUNT varchar(3),
INFRACTIONDATE date)
INSERT INTO M_ATSCHUNK (EMPLOYEE, ROLLINGOFFDAYSCOUNT, INFRACTIONDATE)
VALUES ('PHIL','YES', (to_date('2010/01/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('PHIL','YES', (to_date('2010/01/02 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('PHIL','YES', (to_date('2010/01/03 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('PHIL','YES', (to_date('2010/01/04 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('PHIL','YES', (to_date('2010/01/05 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('PHIL','NO', (to_date('2010/02/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('PHIL','NO', (to_date('2010/03/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('NIKI','YES', (to_date('2010/01/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('NIKI','YES', (to_date('2010/01/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('NIKI','YES', (to_date('2010/01/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('NIKI','NO', (to_date('2010/01/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('NIKI','NO', (to_date('2010/01/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('NIKI','NO', (to_date('2010/01/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss'))),
VALUES ('NIKI','NO', (to_date('2010/01/01 08:00:00', 'yyyy/mm/dd hh24:mi:ss')))Phil3061 wrote:
I need to add that number back into the infractiondate column.Well, in general you need to use UPDATE or better MERGE. Howebver, your data sample does not show any rollofs:
SQL> SELECT * FROM M_ATSCHUNK;
EMPLOYEE ROL INFRACTIO
PHIL YES 01-JAN-10
PHIL YES 02-JAN-10
PHIL YES 03-JAN-10
PHIL YES 04-JAN-10
PHIL YES 05-JAN-10
PHIL NO 01-FEB-10
PHIL NO 01-MAR-10
NIKI YES 01-JAN-10
NIKI YES 01-JAN-10
NIKI YES 01-JAN-10
NIKI NO 01-JAN-10
EMPLOYEE ROL INFRACTIO
NIKI NO 01-JAN-10
NIKI NO 01-JAN-10
NIKI NO 01-JAN-10
14 rows selected.
SQL> WITH group_by_4_column_results AS
2 (SELECT m_atschunk.employee AS employee,
3 SUM(CASE
4 WHEN
5 M_ATSCHUNK.rolloffDaysCount = '108545043' AND m_atschunk.infractiondate BETWEEN SYSDATE - 365 AND SYSDATE THEN 1 ELSE 0 END) as
rolloffs,
6 M_ATSCHUNK.INFRACTIONDATE + 365 as infractionDate
7 FROM M_ATSCHUNK
8 group by employee, infractionDate, rolloffDaysCount
9 )
10 SELECT g4.*,
11 SUM (rolloffs) OVER (PARTITION BY employee) AS total_rolloffs
12 FROM group_by_4_column_results g4
13 /
EMPLOYEE ROLLOFFS INFRACTIO TOTAL_ROLLOFFS
NIKI 0 01-JAN-11 0
NIKI 0 01-JAN-11 0
PHIL 0 01-JAN-11 0
PHIL 0 02-JAN-11 0
PHIL 0 03-JAN-11 0
PHIL 0 04-JAN-11 0
PHIL 0 05-JAN-11 0
PHIL 0 01-FEB-11 0
PHIL 0 01-MAR-11 0
9 rows selected.
SQL> So adjust data sample and based on it tell us what are the expected results.
SY. -
Help with sound output via HDMI
My sound output via HDMI suddenly stopped worked to my TV set. I've reset the PRAM and the SMC. When I go to sound control panel for sound output, the setting is on Headphones. When I try to change it to SV420XVT1A (the tv) it immediately jumps back to headphone. I also tried a different HDMI cable to a different HDMI port on the tv. This just started after the Mac Mini had been turned off for a week. I'm using Lion and it's an 8GB Intel Core 2 Duo. Any suggestions?
I actually discovered this answer about 5 minutes after I posted the question. Thanks a lot for your help!! Funny thing is that it had worked all along with something plugged in the headphone jack but suddenly stopped working. Again, thanks!
-
Need help from ISE experts/gurus in this forum.
Due to a nasty bug in Cisco ISE (bug ID CSCue38827 ISE Adclient daemon not initializing on leave/join), this bug will make the ISE stopping working completely and a reboot is required (very nice bug from cisco) . This leaves me no choice but to upgrade to version 1.2.0.899-2-85601.
Scenario:
- 4 nodes in the environment running ISE version 1.1.2.145 patch 3
- node 1 is Primary Admin and Secondary Monitoring - hostname is node1
- node 2 is Secondary Admin and Primary Monitoring - hostname is node2
- node 3 is Policy service node - hostname is node3
- node 4 is Policy service node - hostname is node4
Objective: Upgrade the ISE environment to ISE version 1.2 with patch version 1.2.0.899-2-85601.
My understand is that I have to upgrade the existing environment from ISE version 1.1.2.145 patch 3
to ISE version 1.1.2.145 patch 10 (patch 10 was released on 10/04/2013) before I can proceed with
upgrading to ISE version 1.2 and patch it with 1.2.0.899-2-85601.
Can I patch my exsiting environment from 1.1.2 patch 3 to patch 10 prior to upgrading to version 1.2.0.899-2-85601?
I look at Cisco website and patch 10 was released on 10/04/2013 while version 1.2 was released back in 07/05/2013.
I am trying to get a definite answer from Cisco TAC but it seems like they don't know either.
Question #1: How do I proceed with upgrading the current ISE environment from 1.1.2.145 patch 3 to 1.1.2.145 patch 10?
Propose solution:
step #1: make ISE node1 to be both Primary Admin and Primary monitoring. ISE node2 is now Secondary Admin and Secondary Monitoring.
Then go ahead and apply ISE version 1.1.2.145 patch 10 to ISE node2 via the GUI,
step #2: Once ISE node2 patch 10 is completed, make node2 Primary Admin and Primary Monitoring. At this point, apply ISE 1.1.2.145 patch 10
to ISE node1 via the GUI,
step #3: Once ISE node1 patch 10 is completed, make node1 Primary Admin and Secondary Monitoring and node2 Secondary Admin and Primary Monitoring,
step #4: apply ISE 1.1.2.145 patch 10 to ISE Policy Service node3. Once that is completed, verify that node2 is working and accepting traffics,
step #5: apply ISE 1.1.2.145 patch 10 to ISE Policy Service node4. Once that is completed, verify that node2 is working and accepting traffics,
Question #2: How do I proceed with upgrading the current ISE environment from 1.1.2.145 patch 10 to ISE version 1.2 with patch version 1.2.0.899-2-85601?
Propose solution:
step #1: Make ISE node1 the Primary Admin and Primary monitoring. At this point ISE node2 will become Secondary Admin and Secondary Monitoring
step #2: Perform upgrade on the ISE node2 via the command line "application upgrade <app-bundle> <repository>". Once ISE node2 upgrade is completed, it will
form a new ISE 1.2 cluster independent of the old cluster,
step #3: Perform upgrade on the ISE Policy Service node3 via the command line "application upgrade <app-bundle> <repository>". After the upgrade the ISE
Policy Service Node3 will automatically joins the ISE node2 which is already in version 1.2
step #4: Perform upgrade on the ISE Policy Service node4 via the command line "application upgrade <app-bundle> <repository>". After the upgrade the ISE
Policy Service Node4 will automatically joins the ISE node2 which is already in version 1.2
step #5: At this point the only node remaining in the 1.1.2.145 patch 10 is the ISE node1 Primary Admin and Primary Monitoring
step #6: Check and see if there are any more PSN's registered in ISE node1 (there should not be any)
step #7: Perform the upgrade on the ISE node1 from command line "application upgrade <app-bundle> <repository>"
step #8: Once upgrade on ISE node1 is complete, ISE node1 will automatically join the new ISE 1.2 cluster,
step #9: Make ISE node1 Primary Admin and Secondary and ISE node2 Secondary Admin and Primary Monitoring,
Question #3: How do I proceed with upgrading the current ISE environment from 1.2 patch0 to 1.2.0.899-2-85601?
Propose solution:
step #1: make ISE node1 to be both Primary Admin and Primary monitoring. ISE node2 is now Secondary Admin and Secondary Monitoring.
Then go ahead and apply ISE 1.2.0.899-2-85601 to ISE node2 via the GUI,
step #2: Once ISE node2 1.2.0.899-2-85601 is completed, make node2 Primary Admin and Primary Monitoring. At this point, apply 1.2.0.899-2-85601
to ISE node1 via the GUI,
step #3: Once ISE node1 patch 10 is completed, make node1 Primary Admin and Secondary Monitoring and node2 Secondary Admin and Primary Monitoring,
step #4: apply ISE 1.2.0.899-2-85601 to ISE Policy Service node3. Once that is completed, verify that node2 is working and accepting traffics,
step #5: apply ISE 1.2.0.899-2-85601 to ISE Policy Service node4. Once that is completed, verify that node2 is working and accepting traffics,
does these steps make sense to you?
Thanks in advance.David,
A few answers to your questions -
Question 1: My recommendation is to follow vivek's blog since most fixes and upgrade steps are provided there - I would recommend installing the patch that was release prior to the 1.2 release date since the directions to "install the latest patch" would put you at the version of when the ISE 1.2 was released
https://supportforums.cisco.com/community/netpro/security/aaa/blog/2013/07/19/upgrading-to-identity-services-engine-ise-12
You do not have the ability to install ISE patch through the GUI on any of the "non-primary" nodes (you can use the cli commmand to achieve this), the current patching process was designed so you can install the patch on the primary admin node and it will then roll the patches out to the entire deployment (one node at at time). I painfully verified this by watching the services on each node and when a node was up and operational the next node would start the patching process. First the admin nodes then the PSNs.
Every ISE upgrade that I have attempted as not been flawless and I can assure you that I have done an upgrade on 1.1.2 patch 3 and this worked fine, however I used the following process. You will need the service account information that is used to join your ISE to AD.
I picked the secondary admin/monitoring node and made it a standalone node by deregistering (much like the old procedure) in your case this will be node2.
I backed up the certificates from the UI and the database from the CLI (pick the local disk or ftp-your choice).
I reset the database and ran the upgrade script (since I did not have access to the vsphere console or at the location of the non UCS hardware [for a 1.1.4 upgrade]).
Once the upgrade was completed I then restored the 1.1.x database, ISE 1.2 now has the ability to detect the version of the database that is restored and will perform the migration for you.
Once the restore finished, I then restored the certificate and picked one of the PSNs
backup the cert,
Had the AD join user account handy
reset-db,
and run the upgrade script.
Once that is done I then restore the cert
Join the PSN to the new deployment
Join both nodes to AD through primary admin node
Monitor for a few days (seperate consoles to make sure everything runs smooth)
If anything doesnt look or feel right, you can shut down the 1.2 PSN and force everything through the existing 1.1.2 setup and perform some investigation, if it all goes smooth you can then follow the above step for the other two nodes, starting with the last PSN and the the last admin node.
Thanks and I hope that helps,
Tarik Admani
*Please rate helpful posts* -
Can you help with the moire adjustment tool in Camera Raw?
I have a file with a lot of moire on a child's dress and am having problems using camera raw moire adjustment tool.
I opened a jpeg file (not raw) in camera raw. When I use the moire adjustment brush - set to +100 - and click on the eyeglass tool in the window to see the effect - it shows a white overlay.
Clicking the preview button doesn't show up any difference.
I have saved several files as tests but the moire remains unaltered.
Any help appreciated. Or alternatively, suggestions on how to deal with Moire in Photoshop.
Thank you.If possible deal with the moire issues up front. If you have original re-scan to see if you can reduce effect. If not do a web search for this. There are several tutorials listed such as http://photographylife.com/how-to-remove-moire-in-photoshop
Hope this helps. -
Mac user needs help with photoshop screen and tool bar
Hello when I open photoshop I get the screen you can see to the left. The right hand tool bar has disapeard, if you scroll across it comes into view, I want to be able to open photoshop as I could originally with the screen the size of the computer screen and the tool bar in place. What is also happening is that when I select the image i want, the image goes directly on to the screen and does not go to the tool bar above, again I would like to have the images going to the tool bar so I can select them and put them on a blank page. The same happens when I open up a blank page it does not store it in the tool bar but opens it up directly on to sreen. Hope you can help.
Thanks also tried that it does hangs the screen back to how it was but the background is now my screen saver with the photoshop tool bars around. But the docking area is still not visible and when I open a file it opens it as sep screen and layer and not as part of docking station? Very strange
Sent from my BEphone -
Need help with Elements 10 & Smartbrush Tool
I'm new to PSE 10 and have a lot to learn. I'm using it to enhance my photos of properties when I list and sell them. I was doing fine with the Smartbrush tool and Quick Selection Tool after watching a few videos on the Internet, but now I'm experiencing an issue with these tools that is most likely a very quick adjustment. When I choose either tool, instead of allowing me to choose an area of my photo, the selected area ends up the entire photo and after I clean that up, if I go anywhere even near to the edges of the photo, another selected area appears as a rectangular shape. It's like I've lost contol of the tools and I'm not sure of what I've changed to make this happen. Thanks for any help you can offer.
On the option bar for each of the tools, there is a little arrow, top left. Click on that and reset the tool.That may fix it..
If not, please report back. -
Help with CISCO-887VA adsl over pots and PPPoE with dynamic IP
Hi
I've got problem trying to connect the CISCO-887VDSL/ADSL OVER POTS ROUTER to internet. Only got the LAN part working.
I'm trying to setup PPPoE with dynamic IP
Followed CISCO's documentations but the commands used were not recognized by the router. Any simple working config for me to follow will be enough.
I'll appreciate any help. Thanks a lot!
here's my config.
! Last configuration change at 08:31:51 UTC Sat Feb 11 2012
version 15.1
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname router
boot-start-marker
boot-end-marker
no aaa new-model
memory-size iomem 10
crypto pki token default removal timeout 0
ip source-route
ip dhcp excluded-address 10.0.0.1 10.0.0.149
ip dhcp excluded-address 10.0.0.199 10.0.0.254
ip dhcp pool sdm-pool
import all
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
dns-server x.x.x.x x.x.x.x.x
lease 0 2
ip cef
no ipv6 cef
license udi pid CISCO887VA-K9 sn FGLxxxxxxx
controller VDSL 0
ip ftp username cisco
ip ftp password cisco
interface Ethernet0
pppoe enable group global
pppoe-client dial-pool-number 1
no ip address
shutdown
interface ATM0
no ip address
no atm ilmi-keepalive
pvc 0/35
pppoe-client dial-pool-number 1
interface FastEthernet0
no ip address
interface FastEthernet1
no ip address
interface FastEthernet2
no ip address
interface FastEthernet3
no ip address
interface Vlan1
ip address 10.0.0.1 255.255.255.0
ip nat inside
ip directed-broadcast
ip virtual-reassembly in
ip tcp adjust-mss 1452
interface Dialer1
mtu 1492
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap pap callin
ppp chap hostname xxxx
ppp chap password 0 xxxx
ppp pap sent-username xxxx password 0 xxxx
ip forward-protocol nd
no ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
ip access-list standard 1
permit 10.0.0.0 0.0.0.255
no cdp run
line con 0
line aux 0
line vty 0 4
login
transport input all
endTry to check with your ISP the modem string to use for VDSL
and some ISP support direct dhcp on Ethernet0 without PPPoE.
An equivalent config is working for me in Switzerland with Swisscom.
N.B. "modem" under VDSL controller is enable using service internal !
service internal
controller VDSL 0
operating mode vdsl2
modem co5
ip source-route
ip cef
ip dhcp excluded-address 10.0.0.1 10.0.0.149
ip dhcp excluded-address 10.0.0.199 10.0.0.254
ip dhcp pool sdm-pool
import all
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
dns-server 8.8.8.8
lease 0 2
interface Ethernet0
ip address dhcp
ip nat outside
interface Vlan1
ip address 10.0.0.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1452
ip nat inside source list 23 interface Ethernet0 overload
access-list 23 permit 10.0.0.0 0.0.0.255
end -
Need some help with the V.O. tool.
I am at a loss! I cannot get the headphones to work when using the vo tool. The guy doing the narration must be able to hear not only his voice, but also the tracks that are already in the timeline. I am taking the output of my mixer and going into the line in of the computer. The vo works...but no audio into the headsets. Also, I the beeps are recorded into the timeline. And to make things more confusing...It works on my macbook pro...although I am using the built in mic on the laptop. Shouldn't make a difference. I am lost. And...how do you target a different track in the vo tool? It always adds a track at the bottom. Say I want to target a portion of track one? It always adds a new track.
Anyway...any help and insight would be great.I am taking the output of my mixer and going into the line in of the computer. The vo works...but no audio into the headsets
How are you monitoring the timeline audio? (Built-in speakers, External speakers, via Mixer etc)
Where are the headphones plugged in?
how do you target a different track in the vo tool? It always adds a track at the bottom. Say I want to target a portion of track one? It always adds a new track
the track targeting is handled the same way as usual (using source/destination targeting in the timeline's patchbay area) however if the targetted track already has content within the marked area, then the vo tool will insert the vo into a new track created immediately below the targetted one.
hope that helps
Andy -
Help with excel output.
How can I get the out with Excel format. Here is the steps and output desire.
The trick is I want the excel out put with specific format date, I have tried using SSIS 2012 for several days and it did not work. The file must be in this format. I google and try several examples but it failed. Here is my codes below.
Any help is greatly appreciate.
I have to schedule the job to run each night and output Excel file with date format below.
date format: DDMMYY append to the file.
Daily_Report_280115.csv or Daily_Report_280115.xlsx
IF OBJECT_ID('dbo.usp_RptGetUserLogin', 'p') IS NOT NULL
DROP PROCedure dbo.usp_RptGetUserLogin
GO
CREATE PROCedure dbo.usp_RptGetUserLogin
@DBName VARCHAR(40)
AS
** Description:
** Written by:
** Written date: 01/23/2015
** Modifications:
** ------------+---------------+-------------------------------------------
** Date: | Author: | Reasons:
SET NOCOUNT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
DECLARE @SQLStr VARCHAR(8000)
,@crlf CHAR(1) = CHAR(13) + CHAR(10) -- carriage return, new line.
--INSERT dbo.#AuditUserLogin (LoginId, DBName, UserName, UserOrAlias)
--PRINT '-- go 2.'
SET @SQLStr = 'USE ' + @DBName + ';' + @crlf + 'SELECT CAST(p1.name AS VARCHAR(40)) AS [LoginName],
CAST(db_name() AS VARCHAR(40)) AS [DBName],
CAST(p.name AS VARCHAR(40)) AS [UserName],
CAST(CASE
WHEN (p.is_fixed_role = 1) THEN ''MemberOf'' -- 1 = in one of the DB role.
ELSE ''User''
END AS VARCHAR(20) ) AS [UserOrAlias]
FROM sys.database_role_members AS r
JOIN sys.database_principals AS p
ON (r.role_principal_id = p.principal_id)
JOIN sys.database_principals AS p1
ON (r.member_principal_id = p1.principal_id)
--WHERE (r.member_principal_id > 1) -- Exclusive dbo user.
ORDER BY p1.name ASC, p.name ASC;'
PRINT @SQLStr
EXECute (@SQLStr)
GO
DECLARE @SQLString VARCHAR(5000)
,@sToday CHAR(6) = REPLACE(CONVERT(VARCHAR(10), GETDATE(), 3), '/', '')
SELECT @sToday
SET @SQLString = 'OSQL /E -w2000 /d DBAMaintenance /S. ' + '/Q"EXECute dbo.usp_RptGetUserLogin @DBName = ''Dev''' + '" /o C:\ExcelOutPut\' + 'Daily_Report_' + RTRIM(@sToday) + '.csv'
SELECT @SQLString
--OSQL /E -w2000 /d DBAMaintenance /S. /Q"EXECute dbo.usp_RptGetUserLogin @DBName = 'Dev'" /o C:\ExcelOutPut\Daily_Report_280115.csv
--EXECute Master..xp_cmdshell @SQLString
-- Desired output:
LoginName DBName UserName UserOrAlias
dbo Dev db_owner MemberOf
MyDomain\QA_ReadOnly_DB Dev db_datareader MemberOf
MyDomain\Dev_ReadOnly_DB Dev db_datareader MemberOf
MyDomain\languyen Dev db_datareader MemberOf
MyDomain\languyen Dev db_datawriter MemberOf
Lam Dev db_backupoperator MemberOf
Lam Dev db_datareader MemberOf
Lam Dev db_datawriter MemberOfYou try using BCP
https://www.simple-talk.com/sql/database-administration/creating-csv-files-using-bcp-and-stored-procedures/
BTW, Are you using SQL 2000?
Also you can try with Powershell
https://gallery.technet.microsoft.com/PowerShell-Export-SQL-Data-67bcb690
--Prashanth -
Help with displaying output of javac
Hi, I got some code from this forum that helped me
to implement buttons with Action for compiling java code. Any output or exception generated can be displayed to JTextArea.
However, just found out the code I got hangs in cases
when there seems to be lots of exception in source code. (i.e. Nothing displayed on JTextArea )
I list the code below, can someone tell me what I need to do to display output in JTextArea properly??
/* Usage
java OutputCapture javac MyClass.java
java OutputCapture java MyClass
import java.io.*;
import java.util.*;
import javax.swing.*;
public class OutputCapture {
public static void main(String[] args)
JFrame frame = new JFrame();
JPanel panel = new JPanel();
JTextArea tArea = new JTextArea("",8,20);
tArea.setLineWrap(true);
tArea.setWrapStyleWord(true);
JScrollPane pane = new JScrollPane(tArea);
panel.add(pane);
frame.getContentPane().add(panel);
frame.setSize(300,300);
frame.setVisible(true);
String runString = "c:\\java\\bin\\"+ args[0]+ ".exe " + args[1] + "";
String output;
try
Process p = Runtime.getRuntime().exec(runString);
Vector streams = new Vector();
streams.addElement(p.getInputStream());
streams.addElement(p.getErrorStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(new SequenceInputStream(streams.elements())));
while ((output = reader.readLine()) != null)
tArea.append(output + "\n");
reader.close();
catch(Exception e) { e.printStackTrace(); }
</pre>
* Can someone please list the code for displaying
output of compiling/runnning app with Runtime.exe()
command in JTextArea properly? (this is driving me
nut)
Thanks
OkidokiHi
I tried your code and it still doesn't work.
It simple hangs there now without output to
screen. Can you be more specific? I have
provided your code below and a class with
bug to be compiled by your code.
Can you show me how the output of compiling can
be shown to screen or to a file through
your method?
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class Exec {
public Exec(String app) throws Exception {
Process process = null;
//final OutputStream out;
final InputStream err, out;
process = Runtime.getRuntime().exec(app);
//out = process.getOutputStream();
out = process.getInputStream();
err = process.getErrorStream();
Runnable r = new Runnable() {
public void run() {
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
try {
while(true) {
int i = out.available();
int j = err.available();
if(i > 0) {
byte[] b = new byte;
out.read(b);
//System.err.write(b);
System.err.println(b);
if (j > 0) {
byte[] b = new byte[j];
err.read(b);
//System.err.write(b);
System.err.println(b);
} // while
} catch (IOException e) {
System.err.println(e);
new Thread(r).start();
process.destroy();
public static void main(String[] args) {
try {
//String s = "c:\\JBuilder5\\jdk1.3\\bin\\javac.exe FontColorDialog.java";
String s = "c:\\JBuilder5\\jdk1.3\\bin\\javac.exe test2.java";
new Exec(s);
} catch (Exception e) {
System.err.println(e);
//==================================
// Testing class
//import javax.swing.*; // Uncommented here on purpose
public class test2 {
public static void main( String args[] ) {
System.out.println("Hello World!");
JTextField jtf = new JTextField();
System.out.println("Font: " + jtf.getFont().toString() );
Thanks -
I am learning java and when I got to input output (the sample program is a BMI calculator) in my book i had to stop because i got a weird error.
Error:
BMICalculator.java:17 cannot find symbol
symbol : method create(java.io.InputStream)
location : class java.util.Scanner
Scanner stdin = Scanner.create(System.in);
^
And the line it has a problem with:
Scanner stdin = Scanner.create(System.in);
I would appreciate any help.impot java.util.*;
public class BMICalculator {
public static void main(String[]args) {
final double KILOGRAMS_PER_POUND = 0.454;
final double METERS_PER_FOOT = 0.3046;
System.out.println("BMI Calculator\n");
//Line it has a problem with
Scanner stdin = Scanner.create(System.in);
System.out.print("Enterweight (lbs): ");
double weight = stdin.nextDouble();
System.out.print("Enter height (feet); );
double height = stdin.nextDouble();
double metricWeight= weight * KILOGRAMS_PER_POUND;
double metricHeight = height * METERS_PER_FOOT;
double bmi = metricWeight / (metricHeight * metricHeight);
System.out.println("A person with");
System.out.println(" weight " + witght + " (lbs) ");
System.out.println(" height " + height + " (feet) ");
System.out.println("has a BMI of " + Math.round(bmi));
} -
Help with Cisco ASA 5500 and NAS drives
Hello:
I have 2 My Book World Edition II NAS drives. They both are configured to use a static IP address and both are on the same workgroup.
One of them is supposed to be replaced with a newer one that I just installed yesterday.
What I am trying to do is to transfer all the information from NAS1 to NAS2.
Both are connected to a Cisco VPN router.
I created a batch file that was basically several xcopy commands to copy all the information from NAS1 to NAS2.
As this process was going to take like 8 hours I ran the batch file yesterday at 4:00PM when everyone was logged off the NAS drives.
To my surprise this morning I found out that only a portion of the files were copied from the NAS1 to the NAS2.
After reading the system logs of the NAS1 drive I found a lot of errors.For example:
getpeername failed. Error was Transport endpoint is not connected
Error writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 192.168.10.105. Error Connection reset by peer
Error writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 192.168.10.105. Error Connection reset by peer
Error writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 192.168.10.105. Error Connection reset by peer
Error writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 192.168.10.105. Error Connection reset by peer
writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
getpeername failed. Error was Transport endpoint is not connected
Someone suggested that the problem has to do with the network configuration.
The suggestion was to change from "auto-negotiate" to Full Duplex 100 on the Cisco VPN router configuration.
What do you think? Could this be the problem?
Thanks and help is greatly appreciated.Hello:
I have 2 My Book World Edition II NAS drives. They both are configured to use a static IP address and both are on the same workgroup.
One of them is supposed to be replaced with a newer one that I just installed yesterday.
What I am trying to do is to transfer all the information from NAS1 to NAS2.
Both are connected to a Cisco VPN router.
I created a batch file that was basically several xcopy commands to copy all the information from NAS1 to NAS2.
As this process was going to take like 8 hours I ran the batch file yesterday at 4:00PM when everyone was logged off the NAS drives.
To my surprise this morning I found out that only a portion of the files were copied from the NAS1 to the NAS2.
After reading the system logs of the NAS1 drive I found a lot of errors.For example:
getpeername failed. Error was Transport endpoint is not connected
Error writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 192.168.10.105. Error Connection reset by peer
Error writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 192.168.10.105. Error Connection reset by peer
Error writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 192.168.10.105. Error Connection reset by peer
Error writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 192.168.10.105. Error Connection reset by peer
writing 4 bytes to client. -1. (Connection reset by peer)
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
getpeername failed. Error was Transport endpoint is not connected
Someone suggested that the problem has to do with the network configuration.
The suggestion was to change from "auto-negotiate" to Full Duplex 100 on the Cisco VPN router configuration.
What do you think? Could this be the problem?
Thanks and help is greatly appreciated.
Maybe you are looking for
-
Error after deploying a migrated JDeveloper application
I am migrating an application from JDeveloper 9.0.3.4 to Jdeveloper 10.1.2(Buid 1811). When I test the application in Jdeveloper 10g, it runs well. After deploying the application in IAS 10g (9.0.4.1.0) I attempt to log into the application and I get
-
OutOfMemoryError: Java heap space error when exporting more than 65MB file
Hi all, My requirement is to export 65Mb file in a CSV format.There is no possibility for me to increase the heap size. But ,I get the following error which is below the code while doing an export. Whole 65mb ,I am putting into the response stream.I
-
Wily Introscope on high availabilty
Hi All, Our solution Manger is on high availabilty. We want to install Wily Introscope manager on our Solution Manager. How can we install it on high availabilty. Please help. Also Wily Agents(on managed systems) need to be installed on only Stand Al
-
UPC_BUNDLE_EXECUTE_STEP - Characteristic 0COSTCENTER must be ready for inpu
Hello Guys, I am trying to use the UPC_BUNDLE_EXECUTE_STEP program. I entered the following: Planning Area : HRPLANNINGAREA Chracteristics: 0COSTCENTER Compund characteristics planning area :HRPLANNINGAREA chracte;controlling area charac From : # TO
-
Hi SAP Guru's, I have been asked in an interview as why we maintain Standard Price in HALB material Type. Can any one please give some light on this. Thanks IS