One more channel to share and engage:
https://www.facebook.com/Panda-Eats-Bamboo-1404693529544647/
Thursday, June 30, 2016
Getting Surveillance Camera Snapshot with Spark Chatbot
Bear with me if it is just too much. I am developing different use cases with Spark that might be useful for myself. Yesterday I had posted these two use cases:
Device monitoring:
http://pandaeatsbamboo.blogspot.hk/2016/06/using-spark-to-monitor-device.html
Config backup:
http://pandaeatsbamboo.blogspot.hk/2016/06/using-spark-for-my-routers-and-switches.html
Another use case is I can ask the chatbot to send my home surveillance camera snapshot to me via Spark. In a lot of time I don't need the live video as it consumes cellular bandwidth. A snapshot is usually work to get a feeling what my children are doing at home.
Previous use cases:
Network monitoring - http://pandaeatsbamboo.blogspot.com/2016/06/using-spark-to-monitor-device.html
Config backup - http://pandaeatsbamboo.blogspot.com/2016/06/using-spark-for-my-routers-and-switches.html
Energywise demo with bot - http://pandaeatsbamboo.blogspot.com/2016/06/cisco-spark-bot-energywise-demo.html
Device monitoring:
http://pandaeatsbamboo.blogspot.hk/2016/06/using-spark-to-monitor-device.html
Config backup:
http://pandaeatsbamboo.blogspot.hk/2016/06/using-spark-for-my-routers-and-switches.html
Another use case is I can ask the chatbot to send my home surveillance camera snapshot to me via Spark. In a lot of time I don't need the live video as it consumes cellular bandwidth. A snapshot is usually work to get a feeling what my children are doing at home.
Previous use cases:
Network monitoring - http://pandaeatsbamboo.blogspot.com/2016/06/using-spark-to-monitor-device.html
Config backup - http://pandaeatsbamboo.blogspot.com/2016/06/using-spark-for-my-routers-and-switches.html
Energywise demo with bot - http://pandaeatsbamboo.blogspot.com/2016/06/cisco-spark-bot-energywise-demo.html
Labels:
Bot,
CCTV,
chatbot,
Cisco,
Home Automation,
Snapshot,
Spark,
Video Surveillance
Wednesday, June 29, 2016
Using Spark to monitor device availability
This is another use case I used Spark in my lab, to check the availability of my lab devices. When there is outage, the chatbot will alert me proactively so that I can check and troubleshoot the issue earlier rather than later.
Labels:
API,
Cisco,
Network Management,
Restful API,
scripting,
Spark,
use cases
Using Spark for my routers and switches config backup
Not the most innovative idea in the world, but it works for me. In my home and lab there are quite a number of routers and switches. This is what I've configured on the devices to periodically upload the config to the FTP server
ip ftp source-interface
ip ftp username nms
ip ftp password nms
file prompt quiet
!
kron policy-list backup
cli copy running-config ftp://10.1.5.98
!
kron occurrence daily-backup at 0:30 recurring
policy-list backup
There is another script running on my Linux host to post these config files to Spark using the Spark Message API. Good thing for Spark is it is persistent, and I can store the config files there as long as I want.
I do it for my development source code too, similar concept.
A script will be executed every night using the linux box cron job to get this done. Or do it manually, by asking my chatbot to do it.
ip ftp source-interface
ip ftp username nms
ip ftp password nms
file prompt quiet
!
kron policy-list backup
cli copy running-config ftp://10.1.5.98
!
kron occurrence daily-backup at 0:30 recurring
policy-list backup
There is another script running on my Linux host to post these config files to Spark using the Spark Message API. Good thing for Spark is it is persistent, and I can store the config files there as long as I want.
I do it for my development source code too, similar concept.
A script will be executed every night using the linux box cron job to get this done. Or do it manually, by asking my chatbot to do it.
Labels:
Cisco,
scripting,
Shell Script,
Spark
Thursday, June 23, 2016
UDS API - Query User info
You can query the user information with the UDS API, it is a HTTP GET request and if the LDAP search UDS proxy feature is enabled on 11.5, you can use it to query the LDAP users with this API.
This is the HTTP GET request that I've used for the below screen capture:
https://10.1.90.11/cucm-uds/users?name=aeinstein
This is the HTTP GET request that I've used for the below screen capture:
https://10.1.90.11/cucm-uds/users?name=aeinstein
Read-only AXL in UCM 11.5
One of the improvements in UCM 11.5 is it has a new standard user roles that restrict users to have read-only AXL access. It provides better security and reduce chance of human errors in accessing the UCM database.
User management > User settings > Role
User management > User settings > Role
Sunday, June 19, 2016
Field notice - old phones are not going to support on UCM 11.5
As per my previous post regarding old phone is no longer support on UCM 11.5:
http://pandaeatsbamboo.blogspot.hk/2016/06/old-phones-will-not-be-supported-in-ucm.html
There is an official field notice issued a few days ago, so make sure you plan ahead before upgrading your system if you are still using these old phones:
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/rel_notes/11_5_1/fieldNotice/cucm_b_fn-deprecated-phone-models-1151.html
http://pandaeatsbamboo.blogspot.hk/2016/06/old-phones-will-not-be-supported-in-ucm.html
There is an official field notice issued a few days ago, so make sure you plan ahead before upgrading your system if you are still using these old phones:
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/rel_notes/11_5_1/fieldNotice/cucm_b_fn-deprecated-phone-models-1151.html
- Cisco IP Phone 12 SP+ and related models
- Cisco IP Phone 30 VIP and related models
- Cisco Unified IP Phone 7902
- Cisco Unified IP Phone 7905
- Cisco Unified IP Phone 7910
- Cisco Unified IP Phone 7910SW
- Cisco Unified IP Phone 7912
- Cisco Unified Wireless IP Phone 7920
- Cisco Unified IP Conference Station 7935
Labels:
Cisco,
CUCM,
deprecated,
old phone,
UCM
Saturday, June 18, 2016
Multistream meetings - Layout
Multistream is a new feature introduced in CE 8.0. This is the Cisco implementation of H.264 SVC. This post is targeted to share with you the difference in the layout and user experience for pre-CE and post-CE 8 endpoints.
http://www.cisco.com/c/dam/en/us/td/docs/telepresence/endpoint/software/ce8/release-notes/ce-software-release-notes-ce8.pdf
This is the layout of a multi-party conference call on MX300G2 with CE 8 firmware. The call is terminated on a mm820 telepresence server blade with multistream enabled. It has a maximum 4 participants at the top when the remote end is sharing the presentation. The number of additional participants are showed at the bottom right corner.
Comparing with this SX20 endpoint that is running TC 7.3.4 and you can spot the difference. Presentation is occupying the majority of the screen, and the main video at the top is showing active speaker as the major portion, with tiny activepresence for non-active speaker at the bottom of the main video. There is significant improvement of user experience with multistream enabled.
From the call statistics on the web interface, you will notice there are multiple incoming video instead of a single video from Telepresence Server.
http://www.cisco.com/c/dam/en/us/td/docs/telepresence/endpoint/software/ce8/release-notes/ce-software-release-notes-ce8.pdf
This is the layout of a multi-party conference call on MX300G2 with CE 8 firmware. The call is terminated on a mm820 telepresence server blade with multistream enabled. It has a maximum 4 participants at the top when the remote end is sharing the presentation. The number of additional participants are showed at the bottom right corner.
Comparing with this SX20 endpoint that is running TC 7.3.4 and you can spot the difference. Presentation is occupying the majority of the screen, and the main video at the top is showing active speaker as the major portion, with tiny activepresence for non-active speaker at the bottom of the main video. There is significant improvement of user experience with multistream enabled.
From the call statistics on the web interface, you will notice there are multiple incoming video instead of a single video from Telepresence Server.
Labels:
Cisco,
Multistream,
MX300G2,
SX20,
Telepresence Server,
Video
Cisco Spark Bot + Energywise Demo
I have developed a very basic bot and one of the use case that was developed is the energy control use case. I can talk to my bot and ask the bot to switch off / on the energy of my Cisco DX650 phones using the energywise command of the Cisco switch.
This bot is based on the Flint project in Github, for more information please check it out here:
https://github.com/nmarus/flint
This bot is based on the Flint project in Github, for more information please check it out here:
https://github.com/nmarus/flint
Labels:
API,
Bot,
Cisco,
Energywise,
Programming,
Spark
Friday, June 17, 2016
Old phones will not be supported in UCM 11.5
This is something that caught my attention. Unlike the previous release, in UCM 11.5 it is going to remove some of the old phones support.
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/rel_notes/11_5_1/cucm_b_release-notes-cucm-imp-1151/cucm_b_release-notes-cucm-imp-1151_chapter_010.html
Deprecated Endpoints
As of Cisco Unified Communications Manager Firmware Release 11.5, the following phones are not supported:
If you use any of these phone models on an older release of Cisco Unified Communications Manager and you upgrade to Release 11.5, the phone will not work after the upgrade completes.
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/rel_notes/11_5_1/cucm_b_release-notes-cucm-imp-1151/cucm_b_release-notes-cucm-imp-1151_chapter_010.html
Deprecated Endpoints
As of Cisco Unified Communications Manager Firmware Release 11.5, the following phones are not supported:
- Cisco IP Phone 12 SP+ and related models
- Cisco IP Phone 30 VIP and related models
- Cisco Unified IP Phone 7902
- Cisco Unified IP Phone 7905
- Cisco Unified IP Phone 7910
- Cisco Unified IP Phone 7910SW
- Cisco Unified IP Phone 7912
- Cisco Unified Wireless IP Phone 7920
- Cisco Unified IP Conference Station 7935
If you use any of these phone models on an older release of Cisco Unified Communications Manager and you upgrade to Release 11.5, the phone will not work after the upgrade completes.
Labels:
11.5,
Cisco,
Collaboration,
CUCM
Phone registration to Spark Call Services
My lab 8861 registers to the Spark Call Services in the cloud. I am using a Cisco dCloud setup that has recently updated with this Spark Call capability. The experience will be even better if I have a 8865 / 8845 video phone to recognise the QR code to get the activation code, which I don't have it with me.
Clean and nice user interface!
More info:
http://www.cisco.com/c/en/us/solutions/collateral/unified-communications/hosted-collaboration-solution-hcs/datasheet-c78-736823.html
Clean and nice user interface!
More info:
http://www.cisco.com/c/en/us/solutions/collateral/unified-communications/hosted-collaboration-solution-hcs/datasheet-c78-736823.html
Labels:
Cisco,
phone,
registration,
Spark,
Spark Call
Public Law - Judicial Review
Principle | Case Name / Definition |
Senior Courts Act 1981 | s31 |
Civil Procedure Rule (CPR) | part 54 |
Remedies | Prerogative orders: (CPR 54.2) quashing order prohibiting order mandatory order Non-prerogative orders: declarations injunctions (may include damages, but not damages alone) CPR 54.3(2), SCA s31(4) |
using private law procedure for public law rights - abuse of process Procedure Exclusivity | O'Reilly v Mackman [1983] - Prison Riot |
Datafin 2 part test | source of power test - if setup under statute / delegated legislation / or derives power from a reviewable prergative power = public body nature of power test - if the body making the decision is exercising public law functions = may still be a public body |
Locus Standii | S31(3) Senior Courts Act - court must not grant leave for application for JR unless it considers that the applicant has a sufficient interest in the matter to which the application relates |
whose rights or interests are directly affected by public decision or action | Schmidt v SS Home Affairs [1969] - Study Scientology |
May recognise the sufficient interest of an individual to challenge a decision that affects society as a whole | R v SS Foreign Affairs ex p Rees-Mogg [1994] - former editor ot Times, regarding EU law power |
courts will recognise the interests of organisations when decisions or actions affect members individually | R v Liverpool Corporation ex p. Liverpool Taxi Fleet Operators Association [1972] |
May recognise interest to decision or action that allegedly harms the public interest | IRC v National Federation of Small Business [1982] - evade tax |
Factors the court will take into account when deciding whether a pressure group has sufficient standing to bring a claim for JR: 1. the importance of the matter 2. whether anybody is better placed to bring the claim 3. the need to uphold the rule of law 4. the role of the pressure group 5. the relevant statutory duty involved | R v Secretary of States for Foreign Affairs, ex p World Development Movement Limited [1995] |
Time Limits | CPR Part 54.5 - 3 months SCA 1981 s31(6) - Without undue delay |
Full Ouster - 'should not be called into question in any court of law' | Anisminic v Foreign Compensation Commission [1969] |
Partial Ouster - to exclude jurisdiction of the court once a time limit has expired | R v Secretary of State for the Environment ex p Ostler [1976] |
In the absence of any negligence or breach of contract - no right to damages may not seek damages alone | R v Knowsley MBC, ex p Maguire [1992] |
Grounds for JR | CCSU v Minister for Civil Service [1984] GCHQ - Lord Diplock 1. illegality 2. irrationality 3. procedural improprietary future - proportionality |
Illegality (PREF WA) | - Acting without legal authority - Wrongful delegation - Fettering of discretion - Purposes - Relevant / irrelevant considerations - Error of law / Error of fact? |
Procedural Impropriety (RM LOR) | - procedural fairness - natural justice - bias? - procedural ultra vires |
Irrationality | so unreasonable - no reasonable recision-making would have come to it (Wednesbury) |
Illegality - Acting without Legal Authority | Laker Airways v Department of Trade [1977] - Airline operator license, also frustrating the purpose of the Act SS for Education v Tameside MBC [1977] - Grammar school AG v Fulham - laundry case |
Illigeality - The rule against delegation - decision making powers once given by Parliament, cannot then be further delegated, or sub-delegated | Vine v National Dock Labour Board [1957] |
Exceptions to the rule against delegation Ministers sub-delegateing decision making powers to civil servants in their departments provides an exception to the generul rule against delegation - because of individual ministerial responsibility - government ministers are utimately responsible for Parliament for their departments - there is an expectation that they act through their civil servants in taking even major decisions | Carltona |
Exceptions to the rule against delegation s101 of the Local Government Act 1972 | Local authorities may delegate decision-making powers to committees, provided they make a formal resolution so to do |
Illigality - Fettering by Dictation the decision is not based on a general policy, but based on another Minister's objection - fettered his discretion by not opening hist mind to hist application- | Lavender & Sons Ltd v Minister of Housing and Local Government [1970] |
Illegality - Fettering by Self-created rules of policy Lord Reid - The general rule is that anyone who has to exercise a statutory discretion must not shout his ears to an application | British Oxygen v Minister of Technology [1971] |
Illegality - Improper purposes | Congreve v Home Office [1976] - TV license $12 -> $18 |
Illegality - Dual purposes Provided the permitted/authorised purpose is the primary purpose -> not ultra vires | Westminister Corporation v LNWR [1905] - Toilet Subway |
Illegality - Material Influence Test | R v ILEA, ex p Westminister City Council [1986] - $651000 ad campaign |
Illegality - Taking account of irrelevant considerations or failing to take account of relevant considerations | Roberts v Hopwood [1925] - pay higher wage due to socialist policy |
Illegality - Errors of law | Anisminic v Foreign Compensation Commission [1969] |
Illegality - Errors of Fact | SSHD ex p Khawaja |
Irrationality - The Wednesbury Priniciple The decision-maker came to a conclusion so unreasonable that no reasonable authority could ever have come to it | Associated Provincial Picture House v Wednesbury Corporation [1948] |
Post-Wednesbury - to be irrational, a decision must be so outrageous in its difiance of logic or of accepted moral standards, that no sensible person could have arrived at it | GCHQ |
Post-Wednesbury - the decision should be beyond the range of reasonable responses open to the decision maker - even higher standard | R v Ministry of Defence, ex p Smith [1996] |
Proportionality - Definition | R v Goldstein [1983] - You must not use a steam hammer to crack a nut, if a nutcracker would do |
Case not involving human rights, EU law - test remains Wednesbury unreasonableness / irrationality. For human rights, EU law - proportionality | R v SS for Defence ex p Associate of British Civilian Internees (Far East Region) [2003] |
Procedural Impropriety - including ... | Statutory Procedural Requirements - Procedural Ultra Vires Common Law Procedural Requirements - Procedural Fairness - The Rule Against Bias |
Procedural Impropriety - Procedural Ultra Vires | London and Clyde Estates Ltd v Aberdeen DC Lord Hailsham LC said: ‘When Parliament lays down a statutory requirement for the exercise of legal authority it expects its authority to be obeyed down to the minutest detail. But what the courts have to decide in a particular case is the legal consequence of non-compliance on the rights of the subject viewed in the light of a concrete state of facts and a continuing chain of events. Aylesbury Mushroom The procedure allowed for consultations with appropriate organisations but this procedure was not followed. |
Procedural Impropriety - Procedural Fairness - natural justice | Ridge v Baldwin [1963] - Chief Constable Dismissed without chance to defence |
Procedural Fairness | - Advance notice of the case to be met - A reasonable amount of time to prepare a response - An opportunity to make representations - An opportunity to cross-examine persons who may have made adverse statements to the decision maker - legal representation - reasons for decision |
Procedural Fairness - reasonable time to prepare responses | R v Thames Magistrates ex p Polemis [1974] |
Procedural Fairness - An opportunity to make representations | McInnes v Onslow Fane [1978] |
Procedural Fairness - Legal Representations Not an absolute right | R v Home Secretary ex p Tarrant [1985] |
Procedural Fairness - An opportunity to cross-examine | R v Hull Prison Board of Vistors, ex p St Germain |
Procedural Fairness - Reasons for the decision Reasons must be given when fairness requires it | R v Secretary of State for the Home Dept, ex p Doody [1994] |
Direct Interest - Financial decision automatically set aside | Dimes v Grand Junction Canal [1852] |
The Appearance of Bias | Porter v Magill Re Medicaments and Related Classes of Goods [2001] a fair-minded and informed observer would conclude that there was a real possibility that the judge was biased |
Lord Hailsham LC said: ‘When Parliament lays down a statutory requirement for the exercise of legal authority it expects its authority to be obeyed down to the minutest detail. But what the courts have to decide in a particular case is the legal consequence of non-compliance on the rights of the subject viewed in the light of a concrete state of facts and a continuing chain of events. | London and Clyde Estates Ltd v Aberdeen DC |
Proportionality case | Hook |
Labels:
Judicial Review,
Law,
Public Law
Public Law - Royal Prerogative
Principle | Case Name / Definition |
Royal Prerogative | RP is the residue of discretionary or arbitrary authority which at any given time is legally left in the hands of the Crown. Every act which the govenment can lawfully do without the authority of an Act of Parliament is done in virtue of this Prerogative AV Dicey |
... formulated the modern doctrine of the Separation of Powers | Montesquieu |
... popularised the term elective dictatorship | Lord Hailsham |
Definition of Convention | 1. Rules of constitutional behaviour 2. Considered binding by thouse who operate the constitution 3. Not enforced by Courts or Parliament Marshall & Moodie |
Sir Ivor Jenning's 3 stage test for existance of conventions | 1. What are the precedents? 2. Did the actors in the precedents believe that they were bound by a rule? 3. Whether there is a good reason for the rule? |
Freedom of Speech | Article 9 of the Bill of Rights 1689 |
Executive might exercise a power which appears to exist under the RP and is controlled by a statute, the executive must use the statutory power. The RP power is not available to the executive any more if a statute covers the same area. RP goes into abeyance | AG v De Keyser's Royal Hotel |
Where a statutory power and a prerogative power cover the same area, the executive may use the prerogative power alongside the statutory power, if in the opinion of the court, the RP power convers an additional benefit | R v Home Secretary exp Northumbria Police Authority |
Where a statute and a prerogative power exist in the same area, the executive may not use prerogative powers that confer and additional benefit if the statute clearly forbids what the executive wants to do | R v Home Secretary exp Fire Brigade Union |
It is 350 years and a civil war too late for the queen's courts to broaden the prerogative | BBC v Johns |
Traditional position - no right to review the exercise of power | Blackburn v AG |
HL changed the law bout the power of the court to oversee the RP - designate all RP as either justiciable or non-justiciable. Court could interfere with the way the executive used "justiciable" prerogatives if the use of the prerogative was "Wednesbury unreasonable" | GCHQ - Lord Roskill |
Non-justiciable prerogative could become justiciable, the court has the power to change it | R v Home Secretary exp Bentley case |
The Wednesbury test | So unreasonable that no reasonable person could come to it |
Management of civil service put on a statutory footing | Constitutional Reform and Governance Act 2010 (CRGA 2010) |
Dicey's Rule of Law | 1. the predominance of regular law over arbitrary power 2. no man is above the law 3. the existence of civil rights protected by the common law |
Separation of powers - 3 branches | Executive, Legislature, Judiciary |
The Crown can only exercise a royal prerogative that the common law has recognised | Case of Proclamations (1611), Entick v Carrington (1765) |
Old prerogative can be adapted to new circumstances - Crown's ancient power to preserve the peace used to arm the police | R v Secretary of State for the Home Department, ex p Northumbria Police Ahtuority [1989] |
Labels:
Law,
Public Law,
Royal Prerogative
Subscribe to:
Posts (Atom)