SVC cheatsheet

CLI

General

List commands starts with ls, try ls and tab to get a list or use the command: help

  • svctask
  • svcinfo
  • svcconfig

Get help with cli commands

  • svctask -?
  • svctask chvdisk -? (Helptext for the chvdisk command)

Easy Tier

  • svctask chvdisk –easytier off volume name/id (disable easy tier for volume)
  • svctask chmdiskgrp -easytier [on/off/auto] volume name/id (enable easy tier for a disk pool)

Cisco IOS – cheatsheet

General commands

  • sh ip traffic – all traffic through the Cisco
  • sh controllers ethernet-controller gi1/0/1 phy – information about the SFP module into a particular port
  • show vlan internal usage – used to show vlan
  • sh inventory raw – in 4924 about stuck SFP seems to be the only way to see.
  • sh ip protocols – all of the dynamic routing

Tracing

  • traceroute mac aaaa.bbbb.cccc dddd.eeee.ffff (Traces source and destination mac addresses over multiple switches)

Diagnosing problems with TCAM, ASIC

  • sh platform …
  • sh platform tcam utilization – a place in the TCAM Diagnosing problems with the fallback interface / memory / CPU
  • sh controllers cpu-interface
  • sh controllers utilization – the percentage loading of interfaces. Plus upload the switch factory
  • sh controllers tcam sh controllers tcam asic
  • sh controllers ethernet-controller phy
  • sh controllers ethernet-controller port-asic statistics
  • sh controllers ethernet-controller port-asic configuration
  • sh controllers ethernet-controller gigabitEthernet 1/0/1

Interface Commands show interfaces description

  • show interfaces counters protocol status
  • show interfaces summary
  • show interfaces accounting
  • sh interfaces stats – statistics on the interface, the method of switching
  • sh interfaces switching – a hidden command. More detail than the stats.
  • sh interface switchport – diagnostic vlan
  • show interface trunk – for the diagnosis of vlan
  • show int | i proto.*notconnect|proto.*administratively down|Last in.* [6-9]w|Last in.*[0-9][0-9]w|[0-9]y|disabled|Last input never, output never, output hang never

SDM

  • sh sdm prefer

CDP

  • show cdp neighbors
  • show cdp neighbors detail – here just shows the version of IOS from a neighbor
  • show cdp entry * version – IOS neighbor
  • show cdp entry * protocols – protocols

Multicast

  • sh ip multicast
  • sh ip multicast interface vlan 104
  • sh ip interface vlan 104

PIM troubleshooting

  • sh ip mroute
  • sh ip pim interface
  • sh ip pim rp [mapping]
  • sh ip rpf
  • sh ip pim interface vlan 25
  • sh ip pim neighbor

IGMP troubleshooting

  • sh ip igmp
  • sh ip igmp group
  • sh ip igmp interface ip igmp join-group

Linux cheatsheet

Search for directories and run getfacl for them: find . -type d -exec getfacl -t ‘{}’ ‘;’

Ping with don’t fragment bit set, packetsize 1472: ping {ip} -M do -s 1472

Ping with timestamp, redirect to file: ping {ip} -M do -s 8972 | while read pong; do echo “$(date): $pong”; done > pinglog.txt

Run command each <interval> seconds and output to stdout: watch –n 1 nfsstat –c (here with nfsstat)

VMWare esxi Unable to connect to the mks the operation is not allowed in the current state

Unable to shut down, migrate or doing pretty much any operation to a VM with error message including “operation is not allowed in the current state”?

Solution might be enabling ssh on the esxi  host, login and try:

  1. Run the esxtop utility using this command:esxtop
  2. Press c to switch to the CPU resource utilization screen.
  3. Press Shift+v to limit the view to virtual machines. This may make it easier to find the Leader World ID in step 6.
  4. Press f to display the list of fields.
  5. Press C (uppercase) to add the column for the Leader World ID.
  6. Identify the target virtual machine by its Name and Leader World ID (LWID).
  7. Press k.
  8. t the World to kill prompt, type in the Leader World ID from step 6 and press Enter.
  9. Wait 30 seconds and validate that the process is not longer listed.

In vSphere client, check if the machine detects it is shut down, if it doesn’t happen right click and choose shut down, hopefully this will work now.

Ref: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1014165

Bredbånd på landsbygda 2

Legger en oppdatering på tidligere innlegg om bredbånd på landsbygda. Etter 1,5 års drift er det vel på tide.

Stabilitetsmessig har dette fungert og fungerer fortsatt veldig bra. Ganske utrolig mtp at dette er forholdsvis billig utstyr.

Etter litt justeringer av antenner og tweaking av config oppnår jeg nå (~100Mbps) faktisk høyere hastighet enn hva som var tilfelle rett etter montering.

Testresultat 25.10.2013

Det var en liten oppdatering, dette utstyret anbefales!

Upgrade cisco catalyst 2960 series switch

Upgrade through webinterface doesn’t work well on those switches i think, so doing the upgrade through ios console is usually faster.

  1. Download the tar u want to upgrade to from cisco.com (login needed)
  2. Place the tar reachable for the tftp server (use jounin tftp server if u don’t have any other prefered one, http://tftpd32.jounin.net/tftpd32_download.html)
  3. Make sure firewall on your tftp machine/server is open for tftp or disabled
  4. Login to te switch ios console via serial/telnet/ssh
  5. IOS command: archive download-sw /overwrite /reload tftp://tftpserver_IP/c2960-lanbasek9-tar.150-2.SE4.tar
  6. Wait for the tftp download and the upgrade to finish, the switch will reboot

HP bl490 Virtual Connect NOT-LOGGED-IN

The following can help if you have this problem:

  • Remove the VC profile from the server
  • Open q-logic menu during boot (alt+q), reset the default config
  • Reassign server profile

This occures sometimes when doing firmware upgrades of the q-logic fc mezzanine card.

Egendefinerte maler i Office 2013

Angi område for malfiler: File/Options/Advanced/General/User templates

Gjøre malene tilgjengelig under File->New: File/Options/Save/Default personal templates location

Når dette er satt opp riktig får man et valg ved opprettelse av nye dokumenter som heter “PERSONAL” i tillegg til “FEATURED”.

Mangler skjermbilder her men en god artikkel på dette finnes her: http://blogs.msmvps.com/wordmeister/2013/02/06/word-2013-templates-location-and-filenew/

Windows Utforsker med Administrator privileger (explorer)

Hvis UAC er aktivert i Windows 2008r2 kan det være utfordrende å administrere NTFS rettigheter, du får ikke tilgang til å sette rettigheter i trestruktur. Får feilmelding “Access denied”.

Dette kan løses slik:

  • Start Task manager
  • Høyreklikk på explorer.exe og velg “End process Tree”. Startlinja og iconer på skrivebordet forsvinner.
  • Velg File->New Task (Run) og skriv explorer.exe og hak av “Create this task with administrative privileges”

Nå har du en windows utforsker som kjører med adminstrative privileger. Anbefaler å kjøre samme prosess på nytt når du er ferdig og starte explorer.exe uten hake for “Create this task with administrative privileges”.

Installer Telnet klient

For oss som fortsatt bruker telnetklienten for diverse feilsøking og testing kan denne installeres fra command shell:

pkgmgr /iu:”Telnetclient”

Dette gjelder Windows 7, Windows 8, Windows Server 2008r2