Problem with Cisco requested orders IOS CLI
So I try to reload the router with EEM. However, I want it done via the cli action statement, so I can delay the cooldown to 10. However, I have problems with the model keyword. Here's my applet and debugging. It seems that the declaration of model does not meet what is asked. I've tried several different combinations, but this one made the most sense to me.
Event Manager applet
event no
message from syslog to action 1.0 "router Reload."
command action 1.1 cli 'enable '.
model "reload in 10" action 1.3 cli command 'yes '.
command action 1.5 cli "confirm".
action syslog 1.7 msg "it worked!"
* 1 Mar 00:37:18.831: % HA_EM-6-LOG: TEST: reload router
* 00:37:18.839 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): CTL: called cli_open.
* 1 Mar 00:37:18.939: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUTSIDE:
* 1 Mar 00:37:18.939: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: R2 >
* 00:37:18.939 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): IN: R2 > activate
* 1 Mar 00:37:18.955: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUTSIDE:
* 1 Mar 00:37:18.955: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: R2 #.
* 00:37:18.955 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): IN: R2 #reload in 10
* 00:37:18.967 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): IN: confirm
R2 #.
R2 #.
* 1 Mar 00:37:38.879: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUTSIDE:
* 00:37:38.879 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: % If please answer 'yes' or 'no '.
* 1 Mar 00:37:38.879: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUTSIDE:
* 00:37:38.879 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: the system configuration has changed. Save? [Yes/No]:
* 00:37:38.879 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): CTL: called cli_close.
The manual way:
R2 #reload in 10
The system configuration has changed. Save? [Yes/No]: Yes
Building configuration...
[OK]
Recharge regular in 10 minutes by the console
Reload reason: reload command
Proceed to recharge? [confirm]
R2 #.
* 00:56:27.083 Mar 1: % SYS-5-SCHEDULED_RELOAD: Reload asked at 01:06:22 UTC Friday, March 1, 2002 at 00:56:22 UTC Friday, March 1, 2002 by the console. Reason for reload: reload the command.
I tried this:
Event Manager applet
event no
message from syslog to action 1.0 "router Reload."
command action 1.1 cli 'enable '.
Action 1.2 cli command "wr".
model "reload in 10" action 1.3 cli command "confirm".
action syslog 1.7 msg "it worked!"
!
end
R2 #.
R2 #.
#event R2 Manager run TEST
* 1 Mar 00:54:52.855: % HA_EM-6-LOG: TEST: reload router
R2 #.
* 00:54:52.863 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): CTL: called cli_open.
* 1 Mar 00:54:52.963: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUTSIDE:
* 1 Mar 00:54:52.963: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: R2 >
* 00:54:52.963 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): IN: R2 > activate
* 1 Mar 00:54:52.979: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUTSIDE:
* 1 Mar 00:54:52.979: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: R2 #.
* 00:54:52.979 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): IN: R2 #wr
* 1 Mar 00:54:53.895: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUTSIDE:
* 00:54:53.899 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: building configuration...
* 1 Mar 00:54:53.899: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: [OK]
* 1 Mar 00:54:53.899: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): OUT: R2 #.
* 00:54:53.903 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): IN: R2 #reload in 10
* 00:54:54.015 Mar 1: % HA_EM-6-LOG: TEST: it worked!
R2 #.
* 00:54:54.015 Mar 1: % HA_EM-6-LOG: TEST: DEBUG (cli_lib): CTL: called cli_close.
Your second approach is good, but you aren't answer the prompt. Add:
Action 1.8 cli command 'y '.
Tags: Cisco Network
Similar Questions
-
Problem with Cisco ACS and different areas
Hello
We are conducting currently a problem with Cisco ACS that we put in place, and I'll try to describe:
We have ACS related directory AD areas, where we have 2 domains and appropriate group mappings.
Then we have our Cisco switches with the following configuration,
AAA new-model
AAA-authentication failure message ^ CCCC
Failled to authenticate!
Please IT networks Contact Group for more information.
^ C
AAA authentication login default group Ganymede + local
AAA authorization exec default group Ganymede + local
AAA authorization network default group Ganymede + local
AAA accounting exec default start-stop Ganymede group.
orders accounting AAA 15 by default start-stop Ganymede group.
!
AAA - the id of the joint session
But the problem is that with the users in a domain, we can authenticate, but not the other. Basically, the question is that when we check on the past of authentication, two authentications are passage and the display of 'Authentic OK', but on the side of the switch, there is a power failure.
There may be something wrong with the ACS?
Thank you
Jorge
Try increasing the timeout on IOS device using radius-server timeout 10.
Do we not have journaling enabled on the ACS server remotely?
-Philou
-
Need urgent help - what is the problem with my request?
Hello
I am trying to solve a problem with my request... and we tried a lot of things. When I open the report in Word and try to build my model, I can't insert fields from a particular query. He don't develop in the browser field as my other data sets and is not listed as an option in the table Wizard.
There is something weird with the support of the subquery? I have encourted some problems with column aliases (for example, the query just doesn't if you create aliases), that's why I alias in the subquery.
The query runs very well in SQL Developer.
I would really appreciate help with what is a customer demand very urgent
Thank you
Published by: oroborus on January 19, 2010 16:26SELECT b.cb_no as "CB No", b.ir_no as "IR No", b.name as "Arrestee Name", b.fbi_descr as "Type", b.statute_descr as "Description", b.fbi_cd as "FBI Code", c.day as "Arrest Date" FROM building_fact a, ( SELECT DISTINCT t3.arrest_key as arrest_key, t1.cb_no as cb_no, t1.ir_no as ir_no, t1.name as name, t2.fbi_descr as fbi_descr, t2.statute_descr as statute_descr, t2.fbi_cd as fbi_cd FROM compstat_arrests_dim t1, compstat_arrest_charges_dim t2, compstat_arrests_fact t3 WHERE t1.arrest_key = t3.arrest_key AND t2.arrest_charge_key = t3.pri_arrest_charge_key) b, compstat_date_dim_v c, building_dim d, building_incdnt_type_dim e WHERE a.building_key = d.building_key AND a.incident_key = b.arrest_key AND a.date_key = c.date_key AND a.incdnt_type_key = e.incdnt_type_key AND e.incdnt_type_descr = 'ARREST' AND d.address = :p_address AND c.day BETWEEN TO_DATE(:p_date_from,'MM/DD/YYYY') AND TO_DATE(:p_date_to,'MM/DD/YYYY') ORDER BY c.day DESC
I think you have to wait until u get the data and then if not juice insert dummy data and carryon your developmet and say your ETL guy to clear all data and insert when loading
~ Srix
-
Original title: product key error
Hi all...
I have ' tried to download the disc Image of Windows 7 (ISO file), but when I insert my product key, the system cannot check it.
I use the laptop Sony Vaio VPC EG35EG with preinstalled Windows 7 Home Basic 64 bit inside.
Now, after that there is error (I cannot yet perform plant pose recovery; always finished with error 0x8007045D Code), I need to install clean my laptop with the USB or DVD Installer key. But then, when I try to download it, my product key (I found it on the sticker at the bottom of the laptop) are not validated by microsoft. It is said:"ERROR!" We encountered a problem with the request for approval.
What should I do now? Y does it can someone help me?
Thank you.Consider the following text:
How to: What are my options for Windows 7 reinstall media?
Make sure you scroll down and read the section:
What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?
also check:
-
Problems with Cisco 881, internet connection
I have a newly addedCisco 881 connected to a firewall, which is connected to the ADSL. We have added to the wireless and when wireless clients connect to the network (using standalone APs) they are capable of anything on the 192.168.88.0 network ping. They can also ping the firewall 10.0.88.1, but only because it is on the same network as port fa4. It seems to me like there is a problem with my default routes, but they look good, and I have tried different methods to do this. Here's the running-config on my 881, please help!
Wireless_881 #show run
Building configuration...Current configuration: 3679 bytes
!
! Last modification of the configuration at 15:45:48 UTC Friday, July 27, 2012
version 15.2
no service button
horodateurs service debug datetime msec
Log service timestamps datetime msec
encryption password service
!
hostname Wireless_881
!
boot-start-marker
boot-end-marker
!
!
logging buffered 51200 warnings
Select the secret 4 Ng0lbQgI3BKsMMXv78pz6UP80gaDVrhUBQB3XKZMl3M
!
No aaa new-model
iomem 10 memory size
!
Crypto pki trustpoint TP-self-signed-1620898290
enrollment selfsigned
name of the object cn = IOS - Self - signed - certificate - 1620898290
revocation checking no
rsakeypair TP-self-signed-1620898290
!
!
TP-self-signed-1620898290 crypto pki certificate chain
certificate self-signed 01
3082025A 308201 3 A0030201 02020101 300 D 0609 2A 864886 F70D0101 04050030
2 060355 04031326 494F532D 53656 C 66 2 AND 536967 6E65642D 43657274 31312F30
69666963 31363230 38393832 6174652D 3930301E 170 3132 30373132 31353431
30365A 17 0D 323030 31303130 30303030 305A 3031 06035504 03132649 312F302D
4F532D53 5369676E 656C662D 43 65727469 66696361 74652 31 36323038 65642D
39383239 3030819F 300 D 0609 2A 864886 01050003, 818, 0030, 81890281 F70D0101
8100ED42 50BD2E07 D6A61E1C 7A8C236F 5499F47D 0FF2F1AC 23657162 66769F02
92921298 C4E68A84 B90B572D 300 C 6653 ADAB41F2 005F1544 122C99DF 16AA1F01
D3DC117D B92750F5 F6C2D4CE D6D173C5 A197E9C2 7B5EEF9B 4B2404BD D8243ABB
14EFF08B 21DE9D0A B11610EB 624E3B22 17BA1C73 60212253 DE86D7B8 EFD5771E
18B 90203 010001 HAS 3 8181307F 300F0603 551D 1301 01FF0405 30030101 FF302C06
03551D 73735F38 38312E70 616C6D65 74746F63 11 04253023 82215769 72656 C 65
6974697A 656E732E 6F726730 1 230418 30168014 BDFA0DBF FE8B72A7 1F060355
9B2D214C 466C1EDF 33D2FA3F 301D 0603 551D0E04 160414BD FA0DBFFE 8B72A79B
2D214C46 6C1EDF33 D2FA3F30 0D06092A 864886F7 010104 05000381 8100E0EF 0D
6D122A92 75ABE448 620EEDAD 131569 D 2 05BEB6D9 FA77DF2F 87FD464F 8111454F
CAE20CC2 580C8DC8 421065CD 31CF2F79 00722044 4B99E26A 5C48FD2D 2DCE835B
D0ADBD53 B768064B 9E4AB048 F0E9F751 11C9DA51 8EA9C1D3 DCEB136A EE3944D7
FD7EF038 DE965699 DAC4186F 3AAEBD85 B95F05D1 B3AF0BD5 566498 3 6424
quit smoking
!
!
!
DHCP excluded-address IP 192.168.88.1 192.168.88.10
!
PCFCU dhcp IP pool
network 192.168.88.0 255.255.255.0
router by default - 192.168.88.1
Server DNS 208.67.222.222
!
!
!
no ip domain search
IP domain name *.
IP cef
No ipv6 cef
!
!
license udi pid CISCO881-K9 sn FTX161080BP
!
!
username privilege 15 secret 5 mgaskin $1$ y8... $cCDIZqgRtHqBbsh36XW9d.
username privilege 15 secret 5 jlivingston $1$ Qs6L$ mhAtoKguqLmzmlfGbMYqW.
!
!
!
!
!
property intellectual ssh authentication-5 retries
!
!
!
!
!
!
!
!
!
interface FastEthernet0
switchport access vlan 880
no ip address
!
interface FastEthernet1
switchport access vlan 880
no ip address
!
interface FastEthernet2
switchport access vlan 880
no ip address
!
interface FastEthernet3
switchport access vlan 880
no ip address
!
interface FastEthernet4
IP 10.0.88.2 255.255.255.248
NAT outside IP
IP virtual-reassembly in
automatic duplex
automatic speed
!
interface Vlan1
no ip address
!
interface Vlan880
IP 192.168.88.1 255.255.255.0
IP nat inside
IP virtual-reassembly in
!
default IP gateway - 10.0.88.2
IP forward-Protocol ND
IP http server
23 class IP http access
local IP http authentication
IP http secure server
IP http timeout policy slowed down 60 life 86400 request 10000
!
IP nat inside source list 10 interface FastEthernet4 overload
network default IP 0.0.0.0
IP route 0.0.0.0 0.0.0.0 10.0.88.1
!
access-list 10 permit 192.168.88.0 0.0.0.255
not run cdp
!
!
!
Line con 0
line to 0
line vty 0 4
password 7 144F425C5D14292D273D6B657A46
opening of session
transport telnet entry
!
max-task-time 5000 Planner
!
endand if you disconnect the router announcement use pc directly to the firewall with ip 10.0.88.2 work?
-
Problems with the feature 'Parked' (iOS 10 cards)
I have upgraded to iOS 10 on my iPhone 5 yesterday. I can't get the car parked cards function to work.
I activated the following:
-All maps Apple Notification options
-Location services of maps (when using). 'Always', is not available as an option.
-System Services: Common places
-System services: Routing and traffic
-System services: improve maps
My phone connects via Bluetooth to my car handsfree system. Is it not carplay.
What I am doing wrong? Thanks in advance!
I have the same problem with an iPhone 6. Try the general > reset > all settings, and then re-pair your phone to your car and see if it works now.
He has not set a mine, but that is what Apple recommended.
-
Problem with the installation of iOS 10
I tried to install iOS 10 earlier but it did not work, so now that I'm trying to reinstall iOS 9 if my phone will work again, if this does not work I have to reset my phone (but I am a fool and did not a back-up because I never had a problem with the software updates in the past if all data will be lost).
< published by host >
The same problem with me too. After installing ios 10 nuer OTA my iphone brick! I'm trying to re - install ios 9 i-Tunes, but 2 hours now always stop installation... what happent?
-
Strange problem with Cisco ISE AuthC political
Hi all
I defined an AuthC policy which is very similar to two other policies that work very well.
The condition is ONLY based on the IP Address of the NAS and once is which is matched, the only authorized Protocol PAP and that the DB internal users should be consulted for the user.
The only thing is that when the RADIUS authentication request arrives, it does not match the policy, I created and matches the rule to deny access by default.
Attached are the screenshots of what I set up. If there is anything else that you can need me to tell you to help me solve this then let me know.
I thought that it might be a problem with the help of the internal, to remedy this user store, I changed it to "AD1" which then makes exactly the same as other rules that work very well, but this rule will not always match.
I think that there is another bug.
Any advice greatly appreciated thanks!
Mario Rosa
Hello Mario.
Looking at the logs, the session does not use PAP/ASCII, but rather that it uses "dot1x" what type of scenario you doing here?
Thank you for evaluating useful messages!
-
Problem with vacation request sample for SOA deployment
Hi all
I'm having some problems with deployment of vacation request sample for SOA Suite 11 g and was hoping that someone here could help me. I'm a newbie with all this stuff.
First of all to tell you what I've done so far. I installed on my local machine Oracle XE 10g on Windows Vista.
I have followed through all the requirements of SOA Suite 11 g installation on my local machine (UCR crossed, I ran Configuration Manager to configure WLS on the local computer, installed jDev plugin to work with SOA etc.).
Everything went well until I tried to deploy this app on WLS.
Generation SOA went well but I have error when you try to deploy:
Deployment - journal:
[15: 39:09] > > > > WARNING: unable to determine the platform target profile. Using default...
[15: 39:09]-deployment began. ----
[15: 39:09] the target platform's (Weblogic 10.3).
[15: 39:09] analysis of the dependence running...
[15: 39:09] building...
[15:39:25] deployment of profile...
[15:39:25] update of the review for the project SOA "VacationRequest.jpr" id to ' 1.0'...»
[15:39:25] wrote the Archives Module to E:\Documents\JDeveloper\SOAwork\VacationRequest\VacationRequest\deploy\sca_VacationRequest_rev1.0.jar
[15:39:25] # incomplete deployment. ####
[15:39:25] no SOA configured server found to deploy archive file:/E:/Documents/JDeveloper/SOAwork/VacationRequest/VacationRequest/deploy/sca_VacationRequest_rev1.0.jar
(oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
Since Oracle Enterprise Manager I can see that AdminServer and soa_server1 are running (bam_server1 isn't). But in tab 7 deployments are increasing and 14 are declining. These stockings are:
Name | Goal
-Resource adapters:
AqAdapter | soa_server1
DbAdapter. soa_server1
FileAdapter | soa_server1
FtpAdapter | soa_server1
JMSAdapter | soa_server1
MQSeriesAdapter | soa_server1
Application DeploymentOracleAppsAdapter | soa_server1
OracleBamAdapter | soa_server1
SocketAdapter | soa_server1
___________________________
b2bui | soa_server1
composer | soa_server1
DefaultToDoTaskFlow | soa_server1
Thanks for the help!For some reason your installation seems to be corrupted.
Server SOA is looking for its mandatory application, which is not able to find. I don't know, why the server is by looking at your file jdev for these applications.
When you set up the field, chose the model SOA of ORACLE_HOME, or JDEV_HOME?
You can try the rest of this http://www.installationwiki.org/Installing_Oracle_SOA_Suite_11gR1?
Nodemanager is necessary if you want to start your WLS Console/EM servers. Since you started from command line, this is not necessary in this case.
-
Original title: frustrated!
When you play on fb slotmania or bingoblitz I no longer can I send anything to teammates stating that there is a security risk. Also he always tells me to put in my cell phone no. or I'll lose fb. Help! THX
Hello
- The question is limited to Facebook?
- Do you have similar problems with other sites?
- What web browser you use to access the Internet?
Where the question is specific Facebook then you can contact Facebook support for more help.
-
Problem with Oracle Sales Order form customization
Hi all
We have a problem in the sales order form customization. Here we try to customize three field based on the type of order
Scenario:
NAV-> Oredr management type Super User-> commands, returns-> sales orders-> order-> standard
In this type if we are sailing to the lines, he should ask the following fields as required
(Nav-> Oredr management form Super User-> commands, returns-> sales orders-> others)
1. mode of delivery
2. conditions related to the transport
3. priority shipping of
NAV-> Oredr management Super user-commands, returns-> sales > orders-> order-> Bill only & internal RMA type
then he must navigate to line items without asking these three fields.
For this, we have made the following customization grace-> Diagnostics-> Custom Code-> customize
Level-> shape
Activated-> Yes
Condition
Triggering event: When-validate-registration
Trigger object: order
Condition: (: ORDER.) ORDER_TYPE not like '% INTERNAL') and (: ORDER.) ORDER_TYPE do not like ' % BILL %') and (: ORDER.) ORDER_TYPE not like '% RMA')
Processing mode: both
level: site
Actions
SEQ:10
type: property
Description: Make required field
language: all
activated: Yes
object: article type
target object: ORDER. SHIPPING_METHOD
property name: REQUIRED
value: TRUE
Actions
SEQ:10
type: property
Description: Make required field
language: all
activated: Yes
object: article type
target object: ORDER. Terms of freight
property name: REQUIRED
value: TRUE
Actions
SEQ:10
type: property
Description: Make required field
language: all
activated: Yes
object: article type
target object: priority ORDER.shipment
property name: REQUIRED
value: TRUE
Problem
If the order type is standard the following fields should be mandatory without these fields, that it shouldn't navigate to line items
1. mode of delivery
2. conditions related to the transport
3. priority shipping of
If the ordar enter as the Bill only or internal or RMA
1. mode of delivery
2. conditions related to the transport
3. priority shipping of
not required must navigate to line items
to do this, we made three customization for these three fields as mentioned above
but the problem is
When we first select the type of ordar like Bill only or internal or RMA, he works as expected the gall sare not obligatory the without closing the form, if we choose the command type as standard so if I try to navigate lines it is not afford without going into the three areas. But incase we first select the standard type order then we navigiting to the lines is not allowing us without going into these three fields as expected. Therefore, the problem is without closing the form now we changed the command type as Bill alone or internal or RMA now also these fields stay as mandatory is the question.
Hope, the problem is clear to you all.
If somone can help to solve this as soon as POSSIBLE, we would be grateful to you.
Thanks in advance
Kind regards
CSKRather than make the fields required, why not you just popup a message of error if the shipping_method is empty.
If the personalization will look like this
=> trigger when-validate-record
condition => (: ORDER.) ORDER_TYPE not like '% INTERNAL') and (: ORDER.) ORDER_TYPE do not like ' % BILL %') and (: ORDER.) ORDER_TYPE not like '% RMA') and (: order.shipping_method is null)action-online error-online you cannot save this record mode of delivery is not met.
You repeat this customization for priority, but also the conditions related to the transport.
Hope this helps,
Sandeep GandhiPS: Another option is to use two times-news-registration-Forum customizations. The first is the required fields if the order type = STANDARD.
And the second customization if required fields is not the order type! = STANDARD. Since you do not have this second customization, the fields remain necessary even when you select a type of STANDARD command. -
Problems with iphone 4S and ios 9.3.1
I've updated my 4S 3 years yesterday at 9.3.1 - well, I wanted to do. The process has failed and the phone wanted itunes to restore connection. And that is not too much. I tried with a 10 Win and a Win 7 machine, with a new installation of itunes and USB driver and all the protection virus and firewall disabled. WTH upgrade and with a reset to the factory settings. "What combination I've tried, I finished with an error' 29 ' 2/3 down the road from the installation of the process. Apple support couldn't help me and finally told me that it is a hardware problem. But I can't believe that a phone that worked yesterday with transparent 9.3.0 and does not work today with supposed 9.3.1 a hardware problem during the night. An idea that I can do to recover the phone? Seems to be a bug in the 9.3.1 from my point of view.
Same situation here: error 29 during the "firmware update". In my case, it turned iOS loved 9.3.1 is no longer the 3rd replacement battery part I installed two weeks earlier. I put in the (dying) original battery and the update worked.
-
problem with changing the order of tab on tab control
Hello
I am aware that the same question has been asked over three years - but I can't yet find the problem in what I'm doing...
Description: I have two controls tab, A tab with three tab and tab B with two controls on a Panel. For the following discussion, tab B is of no interest. Each tab control has several numerical indicators, of type integer and double. Now, I want to add a fourth tab control to A tab. This method works.
Following and problematic stage, in the Publisher of the IUR I select the new tab (most right) and move two positions to the left. It's still ok until I try to display a numeric value of order of tab 3 (the new tab control is left to it). I get an error in calls to SetCtrlAttribute, complain about an invalid control ID... However, I didn't touch any control over the tabs, or add a new control. In addition, I did not touch the generated include file... Visual inspection did not show any changes in the include file (the new tab control is listed only when certain controls are added)
Posting numbers on the first/far left tab control work only on 3 and 4 which are suitable for the new (and still empty) new tab will generate this error. Adding a control to the new label does not change the bahavior.
Help is appreciated!
Wolfgang
Wolfgang,
When you get the handle for your tab using GetPanelHandleFromTabPage:
GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 0, & TabHandle);
the third parameter is an index for the specific tab you want to address. If you change the order of the tabs, you can change the index, too. For example, assume that you have a digital control on the third tab from left to right. You want to assign some value, so this, you:
GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 2, & TabHandle);
SetCtrlVal (TabHandle, TAB_numMyNumeric, 1);
Now, you add a new tab to the left of the tab with the digital contorl. The new tab is now index 2 and the original tab is index 3. When you call:
GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 2, & TabHandle);
you get the handle to the new tab. There is a control with the same ID as TAB_numMyNumeric, so that you get a runtime error.
Personally, I like to use an enumeration to my tabs so I can keep the lines:
enum {MY_FIRST_TAB, MY_SECOND_TAB, MY_THIRD_TAB,...};
So if I redesign the tabs or add a new one I just re - order enums and everything works fine. Also, I used the same names in my constants of tab, to help keep things straight:
GetPanelHandleFromTabPage (MainPanelHandle, PANEL_FIRST_TAB, MY_FIRST_TAB, & TabHandle);
Tony G.
-
ACS 5.6: Problem with deleting a file via cli
Hello world
I am trying to automate the removal of 5.6 ACS network devices.
I have delete.csv file with the list of devices I want to delete:
name:String(64):RequiredTest0Test1
When I connect to ACS CLI and run the command to remove the import file I get this result:.../acsadmin(config-acs)# import-data add device tftp delete.csv delete_res.txt abort-on-error noneCannot start import.Header is incorrect. Download Import Template for required header record.
But when I run the web management import file, everything goes well:-------- Summary --------Total Number of Records Processed 2Number of Records Failed 0Number of Records processed successfully 2
So please, this is where someone who knows what I did wrong? Thank youTo remove devices, try the following command:
import data delete device tftp delete.csv delete - res .txt abort error no
In addition, make sure that the file is plain text only. If you're still having problems, check the following debugging:
mgmt-log debug level debugging
Then repeat the process, download a support package and to look at the logs for clues.
-
problem with cisco DPC-3010 USB network connection
Today, I received the new Cisco DPC-3010 of Charter. I plugged everything and together with my router, that everything works, but when I tried to use the USB Modem have windows says that it is an unknown device. I have installed and reinstalled the drivers, powercycled the modem and restarted the computer, but nothing works.
Hello
If the problem is specific to the unit then, I suggest you to contact the manufacturer of the device for the best assistance.
Maybe you are looking for
-
NB250-107 - toshiba online product information
My NB250-107 has a 'Toshiba online product information' application (TOPI) that shows no information, only the main topics on the upper frame. See the screenshots[Main screen TOPI | http://img535.imageshack.us/img535/3993/toshibaonlineproductinf.png]
-
Satellite T130 - adapter WLAN gone
Hi all A strange thing: after my recently bought T130 came out of the Suspend Mode, the wireless card was missing. The key combination now allows only the switching Bluetooth switch Fn + F8, it does no more than WiFi. In addition, the Device Manager
-
My application doesn't open or create a .dat file after I made it executable!
I had an application that stores data in a .dat file. It works fine until I do the VI an executable. Even if my program did not find the .dat in the first time, must be created, but it is not! What I need to for my VI to use in executable mode .dat f
-
How can I change the default setting in Outlook Express?
I'm not under Explorer anymore and when I try to click on a link in an e-mail message by using Outlook Express, he tries to throw in Solution Explorer. How can I change this?
-
You can upgrade to one only 10 windows computers?
I have desktop computer with windows 7 and a laptop with windows 8.1. My question is can I simply put the desktop and the laptop?