How to test Cisco Call home on UCS
How do you test the call home feature on Cisco Call home?
Thx
Mark - Please see
http://www.cisco.com/en/US/products/ps10281/products_configuration_example09186a0080ae7835.shtml
Regards,
Robert
Similar Messages
-
How to test Smart Call Home in cisco router?
Hi ,
I have done basic configuration n cisco router for Smart call Home.Please help me out on testing SCH if its proper or requres more configuration.Below is the configuration;
call-home
contact-email-addr [email protected]
mail-server 10.0.0.59 priority 1
mail-server "" priority 2
mail-server "" priority 3
mail-server"" priority 3
profile "CiscoTAC-1"
active
profile "Test"
destination preferred-msg-format long-text
destination address email ""
destination address email ""
subscribe-to-alert-group environment severity critical
subscribe-to-alert-group syslog severity minor pattern ".*"
subscribe-to-alert-group configuration periodic weekly Tuesday 17:00
subscribe-to-alert-group inventory periodic monthly 30 20:30hi bryan,
But how will i know the cisco is receiving the alerts for the devices.Is there any way for checking that.
Profile Name: CiscoTAC-1
Profile status: ACTIVE
Preferred Message Format: xml
Message Size Limit: 3145728 Bytes
Transport Method: email
Email address(es): [email protected]
HTTP address(es): https://tools.cisco.com/its/service/oddce/services/DDCEService
Periodic configuration info message is scheduled every 13 day of the month at 10:03
Periodic inventory info message is scheduled every 13 day of the month at 09:48
Alert-group Severity
diagnostic minor
environment warning
inventory normal
Syslog-Pattern Severity
.* major
Please suggest.. -
Hi,
As mail server is managed by another team, i want to check call home status from UCS manager end so that i can make sure that everything is working all right before we go to talk to mail server team.
does UCS has ways to check the following kinds of status for callhome:
(1) UCS manager has tried to talk to mail server to sned alert email or not
(2) If email has not been sent out. What's the failure reason, etc.
RegardsThank you for the response Kenny. I understand that Switching Priority defines the level of log messages, however I'm still not clear how the Call Home Policies tab works. For example, I want to receive only notifications about configuration failures, and nothing else. What I would do is set the Switching Priority to Notifications, and add a Call Home Policy "configuration-failure Enabled". Do I also need to add and disable the rest of available Call Home Policies that I don't want to receive notifications for?
According to the Cisco configuration guide "By default, all Call Home policies are enabled to ensure that email alerts are sent for all critical system events." They are enabled by default, but they are not listed in Call Home Policies tab. Does it mean that In my scenario, I have to add all available policies to the Call Home Policy list and disable them one by one if I don't want to receive any notifications except "configuration-failure". There is about 50 or more policies, it would be a pain to go through all of them in order not to receive messages. -
Little Snitch how to leave apps call home?
I love Little Snitch but I am wondering are you able to leave certain applications called home with out constantly asking for your permission? I use Kaspersky and it has Web Anti-Virus and what's happening is Kaspersky is calling home to see if the web pages I am going to is safe every that happens Little snitch thing kicks in and ask for permission to leave it do so. I trust Kaspersky is there a way to just leave it do its own thing I'm not to be asking me for constantly asking permissions?
You need to read the Little Snitch documentation. It is very easy to tell it to always allow certain applications to communicate, I just don't remember exactly how to do it. (It's been a while since I used Little Snitch.) I would have to say, though, that if you haven't read the documentation far enough to learn how to do this, you probably shouldn't be using Little Snitch. It's a powerful tool that can cause problems if not used properly.
I also would recommend that you use something other than Kaspersky. It's just okay at detecting Mac malware, and there are far better tools that won't cost you any money. See:
http://www.thesafemac.com/mac-anti-virus-testing-01-2013/
As to which to use, and whether you should use one at all, see my Mac Malware Guide. -
Smart call home - HTTPS transport from the Nexus 7000 to Cisco
hi
i try configured call home on nexus 7000 with https transport and proxy server
i follow this guide -
http://www.cisco.com/en/US/docs/switches/lan/smart_call_home/QuickStart_NX7000.pdf
and configured this :
callhome
email-contact XXXXXXXXXXX
phone-contact XXXXXXXXXXX
streetaddress XXXXXXXXXXXXXXXX
destination-profile CiscoTAC-1 transport-method http
destination-profile CiscoTAC-1 http https://tools.cisco.com/its/service/oddce/services/DDCEService
transport http use-vrf management
transport http proxy server XXXXXXXXXX port 8080 --------- XXXXXXXXX = my proxy server
transport http proxy enable
enable
periodic-inventory notification interval 30
i have a problem to install the security certificate , i follow thw guide but i get the error :
failed to load or parse certificate
could not perform CA authentication
when i try test call home eith the command : callhome test
trying to send test callhome message
warning:no callhome message sent
email configuration incomplete for destination profile:full_txt
email configuration incomplete for destination profile:short_txt
Error in transporting http message for CiscoTAC-1
http: Received HTTP code 407 from proxy after CONNECT
i guess the problem is because i didnt install the certificate , how can i install the certificate ?
is this the real problem ?I agree with Bryan that the easiest proxy server to setup for the nexus 7000 is the Transport Gateway. The documentation (certificates) is setup to allow you to connect to a Cisco Transport Gateway or directly into tools.cisco.com. Both have a Cisco certificate.
But that doesn't explain your issue. To answer your issue, you need to look here
http://www.cisco.com/en/US/docs/switches/lan/smart_call_home/SCH31_Ch6.html#wp1039385
except you need your proxy server's chained certificate in PEM format since the Nexus 7000 is going to terminate at your proxy server. Take a look at this line in the documentation.
Input (cut & paste) the CA certificate (chain) in PEM format
The error code 407 you indicated makes sense and indicates "Proxy Authentication Required". You need the certificate installed first. NX-OS uses the openssl crypto library to implement the cert-pki feature if that helps. A complete certificate chain is required. Also, you might make sure the CRL (certificate revocation list) is set to none so it doesn't do that first.
revocation-check none
The 4 chained certificates given in the documentation are tools.cisco.com.cer, Verisign-G3-SSCA.cer, Verisign-G3-PRCA.cer, Verisign-Root-CA.cer. The non-nexus 7000 devices just use the last one. Most likely you need a certificate that looks like
your proxy server.cer,Verisign-G3-SSCA.cer, Verisign-G3-PRCA.cer, Verisign-Root-CA.cer
If you are using your own root CA (which typically are taken off-line after authorizing subordinate CAs for security reasons) , then make sure that their certificates are in the correct order to be processed so each can be authenticated.
Now you can see why a Cisco proxy server (Transport Gateway) is easier to setup. -
How to stop the call summary display on home screen?
How to stop the call summary display on home screen?
Here are the solutions I can think of (if no one here responds with something better):
1. Open Settings and then Phone within the Settings screen and see if you can find a setting there for the call summary. The Phone submenu under Settings would be the most likely place.
2. Open Settings on your iPhone and go through each item including all of the items within each main item. Within about 10 minutes you should be able to get through all of the settings and find the setting if it exists on your phone. There is no such setting on my phone but it is possible that Airtel has a custom menu with that.
3. If you still haven't found it, you could check a) Airtel's support site and/or b) an Airtel specific forum.
4. If still no luck, I would call Airtel and ask again and if you get the same response ask for the location of the setting (or to speak to someone who can tell you).
Good luck. -
Cisco Call Manager 9.1 on UCS E
Hi Community.
Does any one know if the Cisco Call Manager 9.1 is supported on UCS E? i already checked the documentation on cisco.com, but i just found something about the CCM 8.6 is supported but i didn't see any guide installation.
Please help.Hi Syed.
Did you use an OVA Template to deploy your CUCM?
Please have a look to the following doc.
http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/rel_notes/9_1_2/CUCM_BK_C9FFFCD0_00_cucm-release-notes-912.pdf
HTH
Regards
Carlo
Please rate all helpful posts
"The more you help the more you learn" -
How to disable call-home feature on 4948
Hi,
I would like to disable this log massage:
an 16 07:35:15.714: CALL-HOME-DETAIL: Alert group 2 is valid(6)
Jan 16 07:35:15.714: CALL-HOME-DETAIL: Checking if alert-group 3 is supported
Jan 16 07:35:15.714: CALL-HOME-DETAIL: Alert group 3 is valid(6)
Jan 16 07:35:15.714: CALL-HOME-DETAIL: Checking if alert-group 4 is supported
Jan 16 07:35:15.714: CALL-HOME-DETAIL: Alert group 4 is valid(6)
Jan 16 07:35:15.714: CALL-HOME-DETAIL: Checking if alert-group 5 is supported
Jan 16 07:35:15.714: CALL-HOME-DETAIL: Alert group 5 is valid(6)
Jan 16 07:35:15.714: CALL-HOME-DETAIL: unlock call home database sempahore
Jan 16 07:35:35.110: CALL-HOME-TRACE: Received event: 1
Jan 16 07:35:35.110: CALL-HOME-TRACE: Cleared rate limit counter
Jan 16 07:35:35.110: CALL-HOME-DETAIL:
httpc_enabled 1, status 0, sid 2
Jan 16 07:35:37.939: CALL-HOME-TRACE: show_call_home_summary_func() is called
Jan 16 07:35:37.939: CALL-HOME-TRACE: call_home_get_global_database() is entered
Jan 16 07:35:37.939: CALL-HOME-DETAIL: lock call home database semaphore
Jan 16 07:35:37.939: CALL-HOME-DETAIL: unlock call home database sempahore
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Checking if alert-group 0 is supported
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 0 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 0 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 0 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Checking if alert-group 1 is supported
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 1 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 1 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 1 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Checking if alert-group 2 is supported
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 2 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 2 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 2 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Checking if alert-group 3 is supported
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 3 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 3 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 3 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Checking if alert-group 4 is supported
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 4 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 4 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Alert group 4 is valid(6)
Jan 16 07:35:37.939: CALL-HOME-DETAIL: Checking if alert-group 5 is supported
Jan 16 07:35:37.939: CALL-HOME-TRACE: call_home_get_profile() is entered profile
Jan 16 07:35:37.939: CALL-HOME-DETAIL: lock call home database semaphore
Jan 16 07:35:37.939: CALL-HOME-DETAIL: unlock call home database sempahore
Jan 16 07:35:37.939: CALL-HOME-DETAIL: call_home_get_profile() found profile
I did:
no call-home
All configuration under call-home mode are set to default value. Cisco TAC profiles are deactivated and all other profiles are removed.
and disable all alert groups
But I am still receiving log massage.
Is there any way to disable them.
sh call-home
Current call home settings:
call home feature : disable
call home message's from address: Not yet set up
call home message's reply-to address: Not yet set up
vrf for call-home messages: Not yet set up
contact person's email address: Not yet set up
contact person's phone number: Not yet set up
street address: Not yet set up
customer ID: Not yet set up
contract ID: Not yet set up
site ID: Not yet set up
source ip address: Not yet set up
source interface: Not yet set up
Mail-server: Not yet set up
Rate-limit: 20 message(s) per minute
Available alert groups:
Keyword State Description
configuration Disable configuration info
diagnostic Disable diagnostic info
environment Disable environmental info
inventory Disable inventory info
syslog Disable syslog info
Profiles:
Profile Name: CiscoTAC-1
Regards,
Ivanworkaround: I do not have this problem anymore, because I set the logging severity level debugging --> informational. (logging trap informational)
-
How to stop SubmitDiagInfo from "Calling Home"?
I do not consent to "SubmitDiagInfo" collecting and sending information without my knowledge or consent. The OSX diagnostic reporting, called "SubmitDiagInfo" is now regularly "calling home" without my knowledge and i do not consent to this. Please tell me how to turn this off. I had consented a few times to submit one-off crash reports, thought i was being helpful to Apple, but now the tool is regular collecting information and sending in secret. I will never assist Apple in the future in bug reporting because of this breach of trust. Thank you.
The application firewall i am using pops up an information windows that tell me what application is accessing the internet, the URL, ectera. Download an application firewall and see it for yourself. If you are security conscious you will find a number of security issues on your machine that you were not aware before, did not authorize, etctera.
Since this post i have documented a number of Apple applications/services that try to "Phone Home". You have to be naive to believe that your Mac only contacts Apple when you tell it to do so. It is similar to what i have documented on Windows machines. Over the past 5 years i have noticed that this "Phone Home" phenomenon increases with every next version of the OS or update. I am new to Macs, but on Windows machines, even the NTKernal will now occasionally try to contact Microsoft servers. An OS kernal has no business doing this kind of stuff. I have even observed where arbitrary ports are being used, not the typical port 80, port 443, etcetera. I thought i had spyware on my machine. Nope. On Windows NT/2000/XP, it appears Windows even has a hidden service that periodically does a type of Win32 memory injection to hi-jack other applications and use them as proxy to "phone home", always to Microsoft servers. Sounds crazy, but i have witnessed it many times over the years. Even some open source software such as Firefox is guilty of doing this kind of thing. Firefox does the "phone home" during a webpage request. What it does is initiate webpage request, interrupt and "call home" to one of several Mozilla servers, then re-initiate page request and continue. Very sneaky.
I have even observed where servers out on the internet such as Google will try to connect to my computer using a variety of ports other than standard internet ports. Sorry, you should not need anything but port 80 to use Google and surf the internet. Use a good application firewall and you can observe this yourself.
I think everybody who takes privacy seriously should start looking into this. Where is the security community on this? It appears to be compromised, talks about everything else but this elephant in the room that i have witnessed the past 5 years. The prevailing propaganda is that this is all benign. I program software for a living and know you do not need to code software that makes regular connections with servers on the internet without user knowledge and explicit consent. This is unethical and possibly a common law crime.
Anyways, it appears that this "Phone Home" phenomenon is "by design". Fortunately there are products out there that allow you to deal with it. Unfortunately it is only a quick fix, it does not resolve the underlying security issue. -
Testing 5515x at home, no internet route
hi all,
im new to cisco asa and the model is 5515x with license plus. below is my config at home,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ciscoasa#
ciscoasa# sh run
: Saved
ASA Version 8.6(1)2
hostname ciscoasa
domain-name test1.com
enable password NuLKvvWGg.x9HEKO encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
interface GigabitEthernet0/0
nameif outside
security-level 0
ip address 192.168.0.50 255.255.255.0
interface GigabitEthernet0/1
nameif inside
security-level 100
ip address 192.168.64.1 255.255.255.0
interface GigabitEthernet0/2
shutdown
no nameif
no security-level
no ip address
interface GigabitEthernet0/3
shutdown
no nameif
no security-level
no ip address
interface GigabitEthernet0/4
shutdown
no nameif
no security-level
no ip address
interface GigabitEthernet0/5
shutdown
no nameif
no security-level
no ip address
interface Management0/0
nameif management
security-level 100
ip address 192.168.1.1 255.255.255.0
management-only
ftp mode passive
dns server-group DefaultDNS
domain-name test1.com
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
pager lines 24
logging enable
logging asdm informational
mtu management 1500
mtu inside 1500
mtu outside 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
nat (inside,outside) after-auto source dynamic any interface
route outside 0.0.0.0 0.0.0.0 192.168.0.1 1
route inside 192.168.64.0 255.255.255.0 192.168.64.1 10
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
http server enable
http 192.168.1.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart warmstart
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 192.168.1.2-192.168.1.254 management
dhcpd enable management
dhcpd address 192.168.64.40-192.168.64.60 inside
dhcpd dns 192.168.0.1 192.168.64.100 interface inside
dhcpd lease 200000 interface inside
dhcpd ping_timeout 500 interface inside
dhcpd domain test1.com interface inside
dhcpd enable inside
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
webvpn
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:b949cd442fac1704e13bddea727442f2
: end
ciscoasa#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i did a trace packet,
ciscoasa# packet-tracer input inside icmp 192.168.64.100 8 0 6 8.8.8.8
Phase: 1
Type: ROUTE-LOOKUP
Subtype: input
Result: ALLOW
Config:
Additional Information:
in 0.0.0.0 0.0.0.0 outside
Phase: 2
Type: IP-OPTIONS
Subtype:
Result: ALLOW
Config:
Additional Information:
Phase: 3
Type: INSPECT
Subtype: np-inspect
Result: ALLOW
Config:
Additional Information:
Phase: 4
Type: NAT
Subtype:
Result: ALLOW
Config:
nat (inside,outside) after-auto source dynamic any interface
Additional Information:
Dynamic translate 192.168.64.100/6 to 192.168.0.50/63184
Phase: 5
Type: FLOW-CREATION
Subtype:
Result: ALLOW
Config:
Additional Information:
New flow created with id 214, packet dispatched to next module
Result:
input-interface: inside
input-status: up
input-line-status: up
output-interface: outside
output-status: up
output-line-status: up
Action: allow
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
but when i ping from my host 192.168.64.100/active directory server, i can't ping 8.8.8.8 (or even 4.2.2.2) and of course no internet.
i can ping from my console,
ciscoasa# ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 30/40/60 ms
ciscoasa#
how do i fix this? my asa 8.6 and my asdm is 6.6.
thanks for any comment you may add.Hi,
Can you add the following configurations and try ICMP from behind the ASA
policy-map global_policy
class inspection_default
inspect icmp
- Jouni -
ASA 5510 - how many concurrent VOIP calls can pass through?
Hi all,
I wonder how many concurrent VOIP calls can handle Cisco ASA 5510, any idea?
Geghamhi Gegham,
Basically what the values of 50,000 and 130000 connections indicate are lab values tested with 80% TCP and 20% udp traffic. (according to table a-2 in the doc below)
http://www.cisco.com/en/US/docs/security/asa/asa72/configuration/guide/specs.html#wp1170941
RTP is udp traffic but in case of an asa and considering a customer scenario what happens is...
1 voip call = 1 control connection (h323,sip,sccp) + 2 or 4 rtp connections
-so a call will in total easily consume 5 or more connections depending on control connections you have set up .
-also this number differs depending on if the call is voice only or video.
So to simply answer your questions...
1>the number of connections that a call consumes depends on the above factors.
2>Also there is no hard number on the number of calls an asa can handle because this depends on the controls you use ...including nat and inspections.
Thanks,
Karthik -
FM Server License and Call Home
We currently are getting a message everyday for the call home that the Fabric Manager is grace period is going to expire in XX number of days. Is there any way to turn this alert off? This is annoying as we like the call home feature, but hate the NAG of the FM Server license.
A way to stop the Fabric Manager license nag message is to remove the license alert group from each call home destination profile.
To do this from the CLI, do these commands:
sh callhome destination-profile <-- note "alert groups configured"
conf t
callhome
destination-profile ?
User defined destination profile name (Max Size - 32)
full-txt-destination Configure destination profile for plain txt message
short-txt-destination Configure destination profile for short txt message
XML-destination Configure destination profile for XML message
destination-profile short-txt-destination alert-group ?
All This alert group consists of all of the callhome
messages
Avanti Avanti events
Cisco-TAC Events which are meant for Cisco TAC only
Environmental Power,fan,temperature related events
Inventory Inventory status events
License Events related to licensing
Linecard-Hardware Linecard related events
Supervisor-Hardware Supervisor related events
System Software related events
Test User generated test events
[For profiles with all alert groups configured:]
no destination-profile short-txt-destination alert-group all
destination-profile short-txt-destination alert-group Avanti
destination-profile short-txt-destination alert-group Cisco-TAC
[repeat for all but "License" for each profile]
[For profiles with License and other alert groups configured:]
no destination-profile short-txt-destination alert-group license
end
copy run start -
How to change name on Home folder?
I have an Apple iBook PPC G4 1.33 GHz running Leopard OS X version 10.5.8 and with 1 GB Memory. I just purchased this machine, which is in excellent condition, but I have a problem. It is not earthshattering and doesn't threaten the life of the machine in any way, but it is my machine and I would like the Home directory to reflect that.
The name in the System Preferences for Administrator is "gdavies", which is myself, but the Home Folder in the Finder sidebar is named "macuser". I went in as root user and came close to complete disaster, but got out in time. Having me named as administrator in Accounts but not on the Home directory is unusual. If both were called "macuser" I believe I could fix it, but this requires a greater level of expertise than I have.
Any ideas how to make home folder read "gdavies"? I just bought this iBook and it came with the Home folder named as "macuser". I changed the computer's name in "Sharing" in system prefs and I believe I may have changed the name in the Accounts. I know I should not have done it that way, but it doesn't help changing it back.
When I open the Users folder in the Mac HD there are there folders, one called "gdavies" with 10 items, most empty, such as desktop, downloads and so on, though dropbox is there.
The next folder is the house icon for the Home directory named "macuser" with 38 items and is the working folder. Then there is a folder called "shared", which contains no items.
How do I change the Home directory name in the Finder window sidebar to "gdavies'?Kappy, you are indeed working overtime to help me and I just want you to know how appreciative I am.
Now, I shall take your answer step by step.
1. Log into Accounts using the admin password for "macuser". That password and the "other" admin password for gadvies is one and the same. However, done.
2. Click on Login Options, done - verify gdavies has admin status - done - answer "yes, gadvies has admin status".
3. Turn off Auto login - done.
4. Logged out then logged into "gdavies".
5. Returned to Accounts pane authenticating with "gdavies" password - done. But remember that the admin password is one and the same for "macuser" and "gdavies". Now, I did *not* set it up like that. It just seemed to happen. do I :- ) or do I :- ( ???
6. Select "macuser" account and using Login options delete. Select the option to remove completely.
I am sorry Kappy, but this pesky "macuser" sits in the home directory without any account in Accounts. So there is no "macuser" account to delete.
I went through all the motions and I was sort of hoping that a "macuser" account would *appear* in the Accounts pane beneath the Guest account so that I could delete it, but no such luck. You know, sometimes things like that do happen.
Thanks a heap for the try, Kappy, I do appreciate you exercising on my behalf "those little grey cells" as Hercule Poirot would say - my favorite Private Eye (Agatha Christie).
Cheers, Gareth -
How to test a simple PL SQL function from another PL SQL script
Hi,
I have created a function. Now i need to test that whether it is returning the correct values or not.
For that, i have written anothe pl sql script and trying to call this function. Im passing all the IN parameters in that function. I assume here that OUT parameters will provide me the result. Im trying to display the OUT parameter one by one to see my result.
I'm using toad as sql client here connected with oracle.
pl sql script:-
DECLARE
BEGIN
DBMS_OUTPUT.PUT_LINE('$$$$$$$ VINOD KUMAR NAIR $$$$$$$');
FETCH_ORDER_PRODUCT_DATA(320171302, 1006, 6999,
ODNumber OUT VARCHAR2, Line_Number OUT VARCHAR2,
ServiceID OUT VARCHAR2, BilltoNumber OUT VARCHAR2,
AnnualPrice OUT NUMBER, CoverageCode OUT VARCHAR2)
DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | ODNumber );
DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | Line_Number );
DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | ServiceID );
DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | BilltoNumber );
DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | AnnualPrice );
DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | CoverageCode );
END;
Function:-
Program Name : SPOT_Order_Product_Data_For_CFS.sql
Description : Function to Validate parameters from CFS
By : Vinod Kumar
Date : 08/19/2011
Modification History
By When TAR Description
CREATE OR REPLACE FUNCTION FETCH_ORDER_PRODUCT_DATA(orderNumber IN VARCHAR2, customerNumber IN VARCHAR2,
productLine IN VARCHAR2, ODNumber OUT VARCHAR2,
Line_Number OUT VARCHAR2, ServiceID OUT VARCHAR2,
BilltoNumber OUT VARCHAR2, AnnualPrice OUT NUMBER,
CoverageCode OUT VARCHAR2)
RETURN VARCHAR2 IS
lv_err_msg VARCHAR2(100) := '';
lv_bucket_id VARCHAR2(14);
lv_bill_number VARCHAR2(30);
lv_anual_price NUMBER;
lv_coverage_code VARCHAR2(8);
lv_quote_num NUMBER(10) := NULL;
lv_line_num NUMBER(5) := 0;
lv_customer_number VARCHAR2(30) := customerNumber;
lv_product_id VARCHAR2(14) := productLine;
lv_count_quote NUMBER := 0;
lv_quote_status VARCHAR2(5);
lv_quote_version NUMBER(2):=0;
BEGIN
IF INSTR(orderNumber, '-') = 0 THEN
lv_quote_num := orderNumber;
ELSE
lv_quote_num := SPT_Delimiter(orderNumber, 1, '-');
lv_line_num := SPT_Delimiter(orderNumber, 2, '-');
END IF;
--Check status of the quote COM, APP
SELECT COUNT(*) INTO lv_count_quote FROM sot_order_header WHERE ORDER_NUMBER=lv_quote_num
AND ORDER_STATUS IN ('APP', 'COM') AND CUSTOMER_NUMBER = lv_customer_number;
IF lv_count_quote = 0 THEN
lv_err_msg := 'Invalid Order number';
RETURN lv_err_msg;
END IF;
-- Fetch the latest version on SPOT quote
SELECT MAX(VERSION_NUMBER) INTO lv_quote_version FROM SPT_QUOTE_HEADER WHERE QUOTE_NUMBER = lv_quote_num
AND CUSTOMER_NUMBER = lv_customer_number;
-- If quote is valid fetch the data in OUT parameters
IF lv_line_num = 0 THEN
BEGIN
SELECT a.CUSTOMER_BILLTO_NUMBER,
b.LINE_NUMBER, b.BUCKET_ID,
b.ANNUAL_REF_RATE_USD, b.COVERAGE_CODE
INTO lv_bill_number,lv_line_num,lv_bucket_id,lv_anual_price,lv_coverage_code
FROM SPT_QUOTE_HEADER a, SPT_QUOTE_LINE b
WHERE a.QUOTE_NUMBER = lv_quote_num
AND a.CUSTOMER_NUMBER = lv_customer_number
AND a.VERSION_NUMBER = lv_quote_version
AND a.QUOTE_NUMBER = b.QUOTE_NUMBER
AND a.VERSION_NUMBER = b.VERSION_NUMBER
AND b.PRODUCT_ID = lv_product_id;
ODNumber := lv_quote_num;
BilltoNumber := lv_bill_number;
Line_Number := lv_line_num;
ServiceID := lv_bucket_id;
AnnualPrice := lv_anual_price;
CoverageCode := lv_coverage_code;
RETURN '';
EXCEPTION WHEN OTHERS THEN
lv_err_msg := 'Multiple PIDs existing in the SPOT order, please provide the SPOT order + line number as input data';
RETURN lv_err_msg;
END;
ELSE
BEGIN
SELECT a.CUSTOMER_BILLTO_NUMBER,
b.BUCKET_ID, b.ANNUAL_REF_RATE_USD,
b.COVERAGE_CODE
INTO lv_bill_number,lv_bucket_id,lv_anual_price,lv_coverage_code
FROM SPT_QUOTE_HEADER a, SPT_QUOTE_LINE b
WHERE a.QUOTE_NUMBER = lv_quote_num
AND a.CUSTOMER_NUMBER = lv_customer_number
AND a.VERSION_NUMBER = lv_quote_version
AND a.QUOTE_NUMBER = b.QUOTE_NUMBER
AND a.VERSION_NUMBER = b.VERSION_NUMBER
AND b.PRODUCT_ID = lv_product_id
AND b.LINE_NUMBER = lv_line_num;
ODNumber := lv_quote_num;
BilltoNumber := lv_bill_number;
Line_Number := lv_line_num;
ServiceID := lv_bucket_id;
AnnualPrice := lv_anual_price;
CoverageCode := lv_coverage_code;
RETURN '';
EXCEPTION WHEN OTHERS THEN
lv_err_msg := 'Multiple SPOT lines exist with same parameter';
RETURN lv_err_msg;
END;
END IF;
EXCEPTION
WHEN OTHERS THEN
lv_err_msg := '@@@ EXCEPTION THROWN @@@ '|| SUBSTR(SQLERRM,1,120);
RETURN lv_err_msg ;
END;
Don't look at the function, it might have errors but my primary concern is how to test this function. Once I start doing its testing then only i can understand any bugs(if any).
My pl sql is not so good. Im still learning. I don't understand IN and OUT parameters are.
I just know that IN parameters r those whick we pass in to the function wen we call it and OUT parameters are those through which we get the result.
Thanks in advance
Vinod Kumar Nair20100511 wrote:
I wondered how I could test the output of the function from within TOAD?I usually create the following function in my developer schema:
create or replace function BoolToChar( b boolean ) return varchar2 is
begin
if b then
return( 'TRUE' );
else
return( 'FALSE' );
end if;
end;To test a function like yours, the following will do in SQL*Plus/TOAD/etc:
begin
DBMS_OUTPUT.put_line(
BoolToChar( XCCC_PO_APPROVALLIST_S1.does_cpa_exist(1017934) )
end;
I'm probably doing 101 things wrong here, but thought I'd ask anyway and risk being shouted at.Shout at? You reckon? I thought people risked being beaten with a lead pipe, or pelted with beer cans and stale pretzels - which makes being shouted at a really safe and viable alternative. {noformat};-){noformat} -
Cant restore after installing updates how do I change the home user/account
I installed 3 updates, opps, this morning, and when I restarted the computer it had reverted back to old setting from 2004. I purchased the computer from a friend, and had worked hard to remove his stuff, now my settings mail etc are gone and the old stuff is back. How do I restore the computer to what it was before the updates took it all off? also how do I change the home from his back to ours? sorry, I am new at this and very very frustrated with the mac so far.
Changing the home folder name caused the problems, not the updates. The problems won't show up until you restart, which, in your case, was just
after the updates. See:
<http://docs.info.apple.com/article.html?artnum=107854>
<http://docs.info.apple.com/article.html?artnum=106824>
When you get a used computer, it is safest to erase the disk (with zeroing option), then reinstall OSX, update it, and get the latest versions of all the software you need. You should also run Extended Tests from the Apple Hardware Test disc to be sure there are no hardware problems.
Maybe you are looking for
-
MSI k7N2 Delta ILSR,AMD 2700+ & MSI GFORCE FX 5600 VTDR 128 Overclock
Guys, I have the above mentioned GPU, Mobo & CPU (Box edition with AMD FUN). Can anyone tell me the best way to overclock them at the highest possible mark?
-
I'm creating notes in my iCal on my iMac. The changes show fine on my calendar in my .mac account. But the changes won't show ont the calendar on my iphone, even though I've selected to show the .mac calendars. Help!
-
Informatica 811 on RHEL5 Install Error
Anyone installed "Informatica PowerCenter 8.11" for BIApps on REHL5 ? Install.sh throws errors such as (see below for full error message) "error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory" My
-
My macbook pro a1175's left fan is making noise?
so the left fan on my macbook a1175 15 inch is making alot of fan noise... when i switch it on its almost like someone switched on a chainsaw... i serviced it and it was fine for a couple of days untill it started again.... any suggestions?
-
I was trying to free up space on my internal storage, so when I created files in Garage Band, I thought it would be a great idea to store them in my external hard drive. However, I now wanted to retrieve my files and burn them to a cd. When I dragg