esxi command-line networking

no more ifconfig…

i kind of like how vmware is unifying everything under the esxcli umbrella.
esxcli network
esxcli network vswitch standard list = lists standard vswitch details
esxcli network vswitch standard remove -v vSwitch0 = remove specified vswitch
esxcli network vswitch dvs vmware list = lists dvswitches
esxcli network vswitch standard uplink add -u vmnic4 -v vSwitch0 = adds specified uplink to vswitch

esxcfg-vswitch -Q vmnic5 -V 277 dvSwitch1 = removes specified interface from dvswitch
^one command that evidently hasn’t transitioned to esxcli yet. the 277 represents the dvport ID

esxcli network ip interface list = lists vmkernel interfaces
esxcli network ip interface remove -i vmk0 = remove specified vmkernel interface

esxcli network ip interface ipv4 get = list ipv4 settings
esxcli network ip interface ipv4 set -i vmk0 -I 10.0.0.1 -N 255.255.255.0 -t static = set IP address for specified interface

esxcli network ip route ipv4 add -g 10.0.0.254 -n default = sets default ipv4 gateway

esxcli network nic list = list of nics and their status
esxcli network nic up -n vmnic2 = bring up specified interface
esxcli network nic down -n vmnic1 = bring down specified interface

esxcli iscsi adapter list = lists iscsi adapters

esxcli network ip dns server list = lists currently used DNS servers
esxcli network ip dns server add –server=10.0.0.3 = add additional DNS server (can be used to add more than 2 DNS servers)
source: https://communities.vmware.com/thread/462429

according to the following article, all previous commands will eventually be deprecated and esxcli will be used for all functions:
http://blogs.vmware.com/vsphere/2011/07/esxi-50-command-line-part-1-introduction-to-the-new-esxcli.html

Posted in: IT by resinblade Comments Off on esxi command-line networking

esxi 5.1 snmp & openmanage

snmp seems a lot easier to configure in esxi…
esxcli system snmp set –communities <community>
esxcli system snmp set –targets <ip address>@162/<community>
esxcli system snmp set –enable true

source:
http://pubs.vmware.com/vsphere-51/index.jsp#com.vmware.vsphere.monitoring.doc/GUID-8EF36D7D-59B6-4C74-B1AA-4A9D18AB6250.html

for openmanage on 5.1 i tried the method of adding the patch to VUM and created a new baseline for it. i scanned and remediated the patch for the specified host. the install showed up as successful, but it doesn’t appear that OMSA actually installed (i’d like to revisit this again in the future).

i am retrying with:
esxcli software vib install -d <zip file absolute path>

this was successful…what’s interesting is that OMSA for esxi no longer supports https://<esxi host>:1311 for direct OMSA access. instead you must access the node from either openmanage essentials (OME) or a windows host running OMSA. to access from a windows OMSA instance enter this as the URL: https://<windows host>:1311/servlet/OMSALogin?manageDWS=false
you’ll then be requested to enter the info for the remote host. enable the option for “ignore certificate warnings”.

sources:
http://deinfotech.blogspot.com/2012/10/install-dell-openmanage-server.html
http://deinfotech.blogspot.com/2011/08/installing-dell-openmanage-server.html

at this point i still couldn’t see the ESX host in OME even after doing a new discovery and inventory scan.

looks like you need to edit the discovery range configuration and enable WS-Man Discovery. enable secure mode, skip common name check, & trusted site. all these details are in a dell document named “How to setup and configure ESXi 5 for OME.pdf”

update 10/25/2013: *important*
for a while now i’ve heard that agentless monitoring was coming to dell servers. however, when i searched for openmanage and 12 gen servers i came up with the info listed above. a dell representative set me straight on all this recently. there’s agentless options for 11th gen (w/ latest DRAC firmware) and 12th gen servers. the DRAC itself is taking the place of OMSA.

settings for idrac6 (11th gen)
System->Alerts
System->Alerts->Trap Settings
System->Alerts->Email Alert Settings
iDRAC Settings->Network/Security->Services->SNMP Agent

settings for idrac7 (12th gen)
Server->Alerts
Server->SNMP and E-mail Settings
iDRAC Settings->Network->Services->SNMP Agent

also interestingly enough, with the 12th gen idracs some firmware updates can be applied through the DRAC (i haven’t tried this yet). also the old dell systems build and update utility is now a part of the lifecycle controller. and final note…i’ve always wondered where IPMI fits in w/ everything else. evidently you would only use IPMI for monitoring if you did not have DRACs or if SNMP monitoring from the OS was not possible/suitable for your situation.

based on all that extra info, i am looking into getting away from installing OMSA agents and relying solely on the DRACs for hardware monitoring.

Posted in: IT by resinblade Comments Off on esxi 5.1 snmp & openmanage

remote desktop connection manager (RDCMan)

i recently learned about this utility from a coworker and then later saw it used at a microsoft conference. it’s an awesome “single pane of glass” console for RDP sessions. if you find yourself with lots of RDP windows open daily then this utility is for you.

link:
http://www.microsoft.com/en-us/download/details.aspx?id=21101

Posted in: IT by resinblade Comments Off on remote desktop connection manager (RDCMan)

office365 licensing

there’s various versions of office365 licensing for academic organizations. i believe office365 A4 licensing includes the most features.

for schools that just want to use basic email there is the exchange online plan 1 which is typically free for students & faculty/staff. the SKU is EXCHANGESTANDARD_STUDENT. features included with this plan are email, calendar, antivirus/antispam, personal archive.

differences between plans:
http://www.dummies.com/how-to/content/cloud-productivity-with-microsoft-office-365.html

list of SKUs:
http://blogs.technet.com/b/educloud/archive/2012/08/07/license-assignment-for-education-customers.aspx

Posted in: IT by resinblade Comments Off on office365 licensing

backing up sql 2005 express databases w/ osql

i had to create a few batch files a couple of years ago to back up sql 2005 express databases. sql express does not allow you to set up maintenance plans like you can in sql standard/enterprise.

database backup:
del c:\backups\*.bak
osql -E -S <server name\instance name> -i <database>.sql

you’ll need to create the .sql file, here’s an example:
BACKUP DATABASE [<database>] TO [Backup-<database>] WITH NOFORMAT, NOINIT,  NAME = N'<database>-Full Database Backup’, SKIP, NOREWIND, NOUNLOAD,  STATS = 10
GO

and here’s an integrity check with osql:
osql -E -S <server name\instance name> -Q “DBCC CHECKDB(‘<database>’)” -o output.txt

i’ve lost my original source for the .sql syntax and i can’t remember the reasoning for specifying so many options. from a quick google here’s another source:
http://metrix.fcny.org/wiki/display/dev/Using+OSQL+to+backup+and+restore+a+database

osql command reference:
http://technet.microsoft.com/en-us/library/aa214012(v=sql.80).aspx

Posted in: IT by resinblade Comments Off on backing up sql 2005 express databases w/ osql

diablo 3 (xbox360)

i enjoyed the first two diablo games on the PC, particularly diablo 2. i finished both of the games legitimately quite a few years ago. every now and then i’ll load up D2 for a replay…the last time was about 3 years ago. even though i still think highly of the game i believe there are some flaws with the replay value. for instance, when i typically play RPGs i compulsively search through areas until i find every bit of treasure/items. i played D2 like that the first couple of times i played it, but on my most recent replay i quickly discovered that it’s not worth it. rare items you find in one area quickly become obsolete in the next area. the enemies and such were already old news to me…and once i didn’t feel the need to search every single corner of the dungeons i found myself speeding through the areas and moving to the next one as quickly as possible. this isn’t how i like to play games, i like to take the time to actually enjoy them…but after finishing D2 and being fully aware of how the story develops…i’d hate to say it…but the game just becomes boring during replays.

there’s also tons of skill points to gain through leveling and i didn’t have the patience for it this time around. by the time i got to the jungle region i began using a save/character editor to give my character more skill points. since i had already beaten the game before i couldn’t bring myself to do all the grueling level building again. but who knows maybe i’ll try replaying D1 and D2 legitimately sometime in the future…

being a fan of the franchise i was of course excited by the release of diablo 3. however, i couldn’t bring myself to touch it with the always online DRM requirement for the PC. recently it was announced that D3 was coming to consoles. so i figured here’s my chance to actually play it. i was initially concerned that the controls wouldn’t translate over well to a console. i downloaded the D3 xbox360 demo yesterday to try it out. the controls actually are fine on a console controller. the graphics look good and some of the dungeons are very detailed. with the move over to a full 3d engine though i felt that everything looked a bit too clean/sterile. the enemies seemed a bit more repetitious and instead of having vast fields to travel across there are now well defined linear paths. i played up until level 6 or so and stopped playing. i unfortunately did not get to see any cutscenes so i’m not sure what’s going on with the story. the quests seemed to consist of going to kill minibosses or bosses (which is pretty standard for the series). without a good story motivating me to play the game i felt like it was kind of boring. the action seems more arcade oriented in D3 and i was very aware of all the button mashing i was doing.

anyways, the game still has pretty high reviews and i’ll most likely grab it when it drops into the $20 range or $30 if it includes an expansion.

update 1/10/2015:
i acquired the ultimate evil edition for xmas 2014. currently i am progressing through act 3. i’m playing as the witch doctor because i wanted a class similar to diablo 2’s necromancer…it’s not quite the same. as i stated when playing the demo, diablo3 definitely feels more arcade-like and less like a typical action rpg. i think they certainly used torchlight as an influence (just as torchlight obviously used diablo as one). i’m not sure i like the arcade rpg experience where the game seems to be loot-centric and all about insanely high stats. i should clarify – i like that arcadey experience in torchlight, but i don’t think i like it applied to a diablo game. i am playing on normal, but the level of difficulty compared to previous diablos feels very diminished. i have only died once and that was from not paying attention to my health…since i became so accustomed to feeling invincible i didn’t notice that arcane magic actually hurt. i barely ever seem to actually need to use health potions either. in previous games i definitely remembered needing a full stock of health potions throughout the entire game.

the story seems to be pretty good so far. the level design is gorgeous yet at times fairly repetitive. the level design is oddly scaled as well, everything seems overly large (a la torchlight). i thought deckard cain’s old man voice was humorous in the previous game…now it’s really laughable because of how exaggerated it is in this game. i dislike the addition of the leah character. not because she is female or anything like that, but because she’s a generic extra emotional teen girl type character that seems to be so prevalent in games of the 2010’s. a teen girl who always seems to be on the verge of tears doesn’t belong in a diablo game…at least have a strong female character. i imagine this is some type of lame way to attract younger players to the franchise but it sucks. zoltun kulle is the first character that i found to be intriguing. i kept wanting to play more of act 2 to find out more about him. act 2 didn’t seem to take as long as act 1. the last segment of act 1 went on forever. the part where you are trying to retrieve “the stranger”…the amount of 3 level deep dungeons you go through seems infinite. i was level 20 by the end of act 1 and level 30 by the end of act 2.

i’d say i’m mostly enjoying my play through of the game. one thing that crossed my mind the other day was a wish/desire that blizzard had done more with this franchise. what i mean by that is that the core gameplay of diablo 3 is the same as previous installments. and that boils down to walking around and being swarmed by hordes of enemies. this becomes tedious after a while. there are scripted events to add a little flair, but it still doesn’t change the fact this gameplay mechanic isn’t that interesting any more. it seems like they could add some enemy AI or something besides everything swarming on sight. like the goat people could be going about their business until provoked or utilize defenses from their campgrounds. certain creatures could attack each other…i don’t know just something to break up the monotony. i guess i just don’t like the fact that the world seems so static and unalive still 16 years after the first installment came out.

update 1/25/15
i killed diablo and finished act 4 more than a week ago and ended up finishing act 5 two days ago. i ended the game as level 48. overall i’d rate diablo 3 as a slightly above average game. i think all old timey diablo players will want to play it, but then at the same time they’ll end up feeling slightly disappointed like me. things i liked: picking up gold & potions is automated, no need for town portal or identify scrolls, companions are more fleshed out and actually have an identity, the story for the most part is pretty good, adventure mode is a nice perk. what i didn’t like: there’s nothing really to do with your fortune of gold, some lame characters (like leah), aspects of the level/character design reminded me of other blizzard franchises (warcraft, starcraft), passive skills seem overly complicated, player stats are crazy. i think the #1 glaring problem with the game is the difficulty. the game is just way too easy on normal and hard is more of the same except enemies take longer to kill. i never felt challenged by the game or had an oh crap i’m gonna die moment. i probably used a health potion less than 5 times during the game and i bet that i didn’t even need to. everything seems to quickly regenerate your health. this change is no doubt to attract new players, but it really takes away from the diablo experience. without a challenge this game is just like running through an interactive movie. i miss this franchise being developed by blizzard north…

anyways, i’ve started some new players as the other classes and i may add my 2 cents about those. i also might force myself to get my witch doctor up to level 70.

Posted in: Games by resinblade Comments Off on diablo 3 (xbox360)

vsphere 5.5 announcement

the other day i saw an announcement pop up for vsphere 5.5 which includes some features i’ve been waiting for…
most excited about max VMDK file size now being 62TB. also VCSA now being a serious replacement for windows based vcenter installations.

it looks like the requirement for a separate SSO database is removed (which is great)…however, i’m concerned about what kind of nightmare migration is in store for me moving from 5.1 to 5.5. hopefully, it’s not going to be as bad as i’m imagining.

update 9/23/2013:
i was thinking about using VCSA for a DR site, however, after further reading determined that VCSA cannot be used in linked mode. nor can VUM be used with VCSA. so it looks like i’ll need to proceed with the windows-based vcenter.

lots more info here:
http://blogs.vmware.com/vsphere/2013/09/a-summary-of-whats-new-in-vsphere-5-5.html
http://www.ivobeerens.nl/2013/09/02/is-the-vcenter-server-appliance-vcsa-5-5-a-replacement-for-the-windows-vcenter-server/

Posted in: IT by resinblade Comments Off on vsphere 5.5 announcement

create an MMC for a different domain

if you need to manage a different AD domain than the one your machine is joined to it’s useful to create a prebuilt MMC for that domain.

in this case i created an ADUC console for another domain.
steps involved…
first i added one of the DCs from the other domain as my tertiary DNS server on my workstation. then i opened up a blank MMC and added the ADUC snap-in. if you right-click on the ADUC snap-in once it’s added there’s an option for change domain. type in the other domain and make sure to check “save this domain setting for the current console”
then save the console.

all of that is pretty painless…but now you need to run the console with a user that has access to that domain. for this i used a batch file:
runas /u:mydomain.com\[user] /netonly “mmc C:\myconsole.msc”

source:
http://blog.remarqable.com/2011/12/06/runas-batch-file-to-launch-mmc-as-domain-admin/

update 4/10/2015:
so far i’m finding this to be a superior method…
add an entry in the local hosts file for mydomain.com
then create a batch file with the following:
runas /u:user@mydomain.com /netonly “mmc %SystemRoot%\system32\dsa.msc /domain=mydomain.com”

source:
http://sigkillit.com/2014/04/22/run-active-directory-management-tools-as-another-user/

Posted in: IT by resinblade Comments Off on create an MMC for a different domain

mac os x: add shared windows printer

i followed the instructions here to add a shared windows printer in mac os x:
http://support.apple.com/kb/HT3049

some differences from the article…”print & fax” was named “print & scan” in the version of mac os x i tested this out on. also when i initially added the Advanced settings icon i was unable to choose a printer type (it was greyed out). i rebooted the mac and was then able to add a printer from the advanced settings.

example:
type: windows printer via spoolss
device: another device
url: smb://<print server>/<printer name>

update 10/7/2013:
if there’s a space in the shared windows printer name a %20 can be used as the character representing the space.

also if authentication needs to take place the printer can be specified as:
smb://<user>:<password>@<printserver>/<printer name>

or the username & password can be stored in the mac user’s keychain. to check keychain settings goto Applications->Utilities->Keychain Access

Posted in: IT by resinblade Comments Off on mac os x: add shared windows printer

DDPE notes

pc recovery:
early 8.x releases are too buggy to test…will revisit this later

mac recovery:
slave encrypted HDD
run the recovery utility from the DDPE dmg file (within a Utilities folder)
import recovery bundle of slave drive’s endpoint (csv file and must have a .csv extension)
choose recover and you should be able to mount the encrypted drive (without recovery an encrypted drive cannot be mounted)

mac uninstall:
set endpoint encryption policy to false on DDPE server and commit change
mac DDPE client should display decrypting…
after decryption is complete run uninstall from DDPE dmg file

Posted in: IT by resinblade Comments Off on DDPE notes