@DustinB3403 : No, I definitely don't have a better approach, especially when you have to capture wrapped lines.
I'd just toss a sample of your input file into a regex tester online and build out your regex from there...
Posts made by manxam
-
RE: If I wanted to grep through a file or multiple at once....
-
RE: If I wanted to grep through a file or multiple at once....
@DustinB3403 : Well that looks like fun
-
RE: If I wanted to grep through a file or multiple at once....
@DustinB3403 said in If I wanted to grep through a file or multiple at once....:
Windows Server 2008 R2 | SVR12.localdomain
Something like
/\werver.+/g
would get you "Server 2008 R2 | SVR12.localdomain"
You'd have to do a negative lookahead in order to capture the prior input. the /g gives you global results so that it doesn't stop at the first match. -
RE: If I wanted to grep through a file or multiple at once....
Wouldn't the following get every line containing a variation of "server" within this file?
grep -rin server server.txt > out.txt
-
RE: Curious case of high VM disk usage upon RDP logout but stops upon RDP login.
@biggen : Something like procmon with thread profiling events enabled should give you an application's processor or disk usage over a period of time.
EDIT: Good example here
-
RE: Curious case of high VM disk usage upon RDP logout but stops upon RDP login.
Windows defender scan or similar? Something that is designed to go low priority when it's being used and high priority when not. Many AV have that option but am uncertain what else within Windows will do that.
-
RE: I can't even
Thanks for calling My Company. Remember that I don't know who you are. I don't know what you want. I'd suggest you leave a message because what I do have is very particular set of skills. Skills I have acquired over a very long career. Skills that make me a nightmare for people like you. If you leave a message now that'll be the end of it. I will not look for you, I will not pursue you, but if you don't, I will look for you, I will find you and I will kill you.
-
RE: Domain Profile Copy; old to NEW
@gjacobse : What about just using Microsoft's USMT then? It's a little more difficult to use but accomplishes the same thing as Forenzit's tool.
-
RE: Domain Profile Copy; old to NEW
Don't even move it. Just use Profwiz User Profile Wizard to change the SID stuff in the registry.
Takes like 2 minutes and with thousands of devices I've never had an issue.
P.S. If it's a one off or so I'll just use the "free for non commercial" use version ( I know... ). If it's a batch I'll buy the licenses. It's about $150 for 50 computers. The commercial version can also be scripted quite easily to run from an RMM, PDQ Deploy, etc. -
RE: DBAs, man
@Dashrender : Bare metal, single drive, no AV is their recommendation. Because, ya know, it's still 1995...
-
RE: DBAs, man
Yepp. At my last job, we had our SQL Server virtualized. It ran link a champ for some stuff that we were told wouldn't work well in a VM.
WHO told you wouldn't work well in a VM?
The vendor, of course, lol. We promptly ignored them.
Several of our clients use the same LoB software (it's the "defacto" for this industry) and this vendor keeps telling us that the data cannot be stored on a RAID setup nor virtualized. Whenever there is an issue with their software, they always blame RAID -- even though the backend is MS SQL.
-
RE: Collision Domain - In POS
@scottalanmiller said in Collision Domain - In POS:
@manxam said in Collision Domain - In POS:
I can't recall ever seeing a switch "back in the day" that didn't have ASICs. There are a few newer switches that do, in fact, use CPU rather than ASICs, but they're built using MUCH faster CPUs than what are included in most -- if not all -- routers.
Early days, the ASICs didn't even exist yet. It wasn't a choice, it was all that there was to use software. Then the ASICs came along and obviously dominated. But yes, it always requires throwing more hardware at it.
How far back are we going here? My first experience with a switch was with Alantec/FORE ATMs (circa early 91/2). These had a RISC SCP processor to run the OS/management functions and custom ASICs for switching. After that, in the more mainstream, came Kalpana and then Cisco. To the best of my knowledge, there were no switches available prior to thicknet (first commercial ethernet).
I'd love more information if you have it available. I love the history of tech.
-
RE: Collision Domain - In POS
@JaredBusch : Because Ubiquiti themselves recommend that this not be done as the CPUs in their offerings suffer greatly without offloading.
Bridging an ER-3 which, from what I can tell, had been their #1 sell for many years hit 100% CPU when bridging 2 interfaces on a 100Mbps connection. This is without any additional NAT or firewall rules.
Unless this is a DSL connection, this essentially makes it useless to most users.@scottalanmiller : I can't recall ever seeing a switch "back in the day" that didn't have ASICs. There are a few newer switches that do, in fact, use CPU rather than ASICs, but they're built using MUCH faster CPUs than what are included in most -- if not all -- routers.
-
RE: Collision Domain - In POS
@scottalanmiller said in Collision Domain - In POS:
A Ubiquiti EdgeRouter for example you can choose to make ports switched or routed as needed.
This is only true on the ER-X (Mediatek) devices as they have a switch chip. All other Cavium based devices do not and can merely be "bridged" which is done in software and is definitely not recommended.
-
RE: Patching configuration files
@Pete-S : Does that not rely on always having the same context around the lines to patch though?
I.E. You will always have to have PasswordAuthentication directly preceding PermitRootLogin followed by RandomBlockOfText in order to find and patch PermitRootLogin?
I may be wrong, but I thought that if you added another config entry between PasswordAuthentication and PermitRootLogin that the patch would fail. -
RE: Patching configuration files
Create a shell script that just runs sed on the files you need?
#!/bin/sh sed -i 's/PermitRootLogin No/PermitRootLogin Yes/' /etc/sshd_config sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/' /etc/sshd_config
-
RE: Building your own lab
What node has access to the disks or is each node responsible for 3 drives?
Can you assign one node all the storage and the remaining 3 be just compute? -
RE: Cannot access USB drive
@Super-Sundae : Can you run Sysinternal's RegMon and patch another machine with InTune? That way you can capture the changes.
Perhaps running SysMon at the same time in case it makes changes to file permissions would help..If you can find out what the policy changes then you should be able to revert on both machines. Hopefully
-
RE: How can we recover data from Hard Drives were on RAID 10 without controller?
@PhlipElder : Why did you stop deploying RAID 10? It's about the most fault tolerant and performance oriented RAID config one can get for hardware RAID.
-
RE: 12 yo is learning a bit about Linux and Python.
That looks fantastic. Do you have a build log or instructions that you followed?
P.S. Why is that deer looking at me?!