Custom css

Cisco UCS XML API events

Working with the emulator for the Cisco UCS Manager there are certain events that can not be triggered because changes to inventory requires a restart.

If a blade is remove from a chassis an event of the following format will occur.

    <methodVessel cookie="">
        <inStimuli>
            ...
            <configMoChangeEvent cookie="" inEid="276132176">
                <inConfig>
                    <computeBlade dn="sys/chassis-10/blade-6" fltAggr="65536"
                        operQualifier="removed" operState="removed" presence="missing"
                        status="modified" />
                </inConfig>
            </configMoChangeEvent>
            ...
        </inStimuli>
    </methodVessel>

The operQualifier and operState attributes indicates what occurred while the presence attribute confirms that it is now missing.

If a blade is added to the chassis the first event that tells that will be of this format:

    <methodVessel cookie="">
        <inStimuli>
            ...
            <configMoChangeEvent cookie="" inEid="276132831">
                <inConfig>
                    <computeBlade availability="unavailable" checkPoint="shallow-checkpoint"
                        discovery="in-progress" dn="sys/chassis-10/blade-6" fltAggr="0"
                        fsmDescr="blade discovery 10/6(FSM:sam:dme:ComputeBladeDiscover)"
                        fsmFlags="sam:dme:ComputeBladeDiscover:check-point,sam:dme:ComputePhysicalFwUpgrade:config-board-ctrl-fw"
                        fsmPrev="DiscoverBmcPresence" fsmProgr="1"
                        fsmStageDescr="checking CIMC of server 10/6(FSM-STAGE:sam:dme:ComputeBladeDiscover:BmcPresence)"
                        fsmStamp="2014-02-10T17:06:12.513" fsmStatus="DiscoverBmcPresence"
                        fsmTry="1" operQualifier="" operState="discovery" presence="equipped"
                        status="modified" />
                </inConfig>
            </configMoChangeEvent>
            ...
        </inStimuli>
    </methodVessel>

The presence attribute confirms that it is now equipped. From there on it is then possible to query for more information.

Angular based Zendesk App

Asuming you have zat and npm installed on your system a new app can be created by running these commands:

zat new 
 
Enter your iFrame URI or leave it blank to use a default local template page:
 (assets/iframe.html) index.html 
 
sudo npm install -g @angular/cli 
 
ng new <app-name>

Create build and deploy scripts in the package.json:
{
"build": "ng build --deleteOutputPath --prod --base-href . --aot --source-map",
"deploy": "npm run build && cp manifest.json dist/ && cp -r translations dist/ && cp node_modules/@zendeskgarden/svg-icons/dist/index.svg dist/assets && mv dist/assets/assets/* dist/assets && cp dev.zat dist/.zat; cd dist; zat update; cd ..",
}

Because of the file size limits from Zendesk adding npm modules is not a viable solution since that would include the modules directly in the Zendesk app. Instead it is required to include the 3rd party components you depend on through script tags. Example of including access to required libraries in the index.html file:
<script src="https://assets.zendesk.com/apps/sdk/2.0/zaf_sdk.js" type="text/javascript"></script>
<script crossorigin="anonymous" integrity="sha256-27lOq325r4MQT9M9GG3pS3ts5iRaSqw+h9fHpW16NLw=" src="https://cdn.jsdelivr.net/npm/@zendeskgarden/css-variables@5.2.0/dist/index.js"></script>
<script crossorigin="anonymous" integrity="sha256-59IZ5dbLyByZgSsRE3Z0TjDuX7e1AiqW5bZ8Bg50dsU=" src="https://cdn.jsdelivr.net/npm/moment@2.22.2/moment.js"></script>
<link href="https://cdn.jsdelivr.net/combine/npm/@zendeskgarden/css-buttons@6,npm/@zendeskgarden/css-bedrock@7,npm/@zendeskgarden/css-forms@6,npm/@zendeskgarden/css-utilities@3,npm/@zendeskgarden/css-menus@8,npm/@zendeskgarden/css-tables@3,npm/@zendeskgarden/css-grid@0.1.15,npm/@zendeskgarden/css-callouts@3" rel="stylesheet" type="text/css"></link>

Remove the vertical scrollbar with this css:
html { overflow-y: hidden; }

Install AWS VPN Client for openSUSE Tumbleweed

Code: curl https://d20adtppz83p9s.cloudfront.net/GTK/latest/awsvpnclient_amd64.deb -o awsvpnclient_amd64.deb sudo zypper in alien alien --t...